piker/piker/accounting
Tyler Goodlet 7b68444c7a accounting.calc: `.error()` on bad txn-time fields..
Since i'm seeing IB records with a `None` value and i don't want to be
debugging every time order-mode boots up..

Also use `pdb=debug` in `.open_ledger_dfs()`

Note, this had conflicts on `piker/accounting/calc.py` when rebasing
onto the refactored `brokers_refinery` history which were resolved
manually!
2026-01-07 14:05:23 -05:00
..
README.rst Officially drop `Position.size` 2023-08-03 16:57:02 -04:00
__init__.py Don't override `Account.pps: dict` entries.. 2026-01-07 13:41:06 -05:00
_allocate.py Bleh, move `.data.types` back up to top level pkg 2023-08-05 15:57:10 -04:00
_ledger.py `.accounting._ledger`: typing anda more multiline styling 2026-01-02 16:49:16 -05:00
_mktinfo.py Finally drop `Symbol` 2026-01-02 16:49:16 -05:00
_pos.py Don't override `Account.pps: dict` entries.. 2026-01-07 13:41:06 -05:00
calc.py accounting.calc: `.error()` on bad txn-time fields.. 2026-01-07 14:05:23 -05:00
cli.py Drop some bps and style logic to multiline 2026-01-02 16:49:16 -05:00

README.rst

.accounting

A subsystem for transaction processing, storage and historical measurement.

.pnl

BEP, the break even price: the price at which liquidating a remaining position results in a zero PnL since the position was "opened" in the destination asset.

PPU: price-per-unit: the "average cost" (in cumulative mean terms) of the "entry" transactions which "make a position larger"; taking a profit relative to this price means that you will "make more profit then made prior" since the position was opened.