piker/piker/accounting
Tyler Goodlet 69eac7bb15 Spurious first-draft of EG collapsing
Topically, throughout various (seemingly) console-UX-affecting or benign
spots in the code base; nothing that required more intervention beyond
things superficial. A few spots also include `trio.Nursery` ref renames
(always to something with a `tn` in it) and log-level reductions to
quiet (benign) console noise oriented around issues meant to be solved
long..

Note there's still a couple spots i left with the loose-ify flag because
i haven't fully tested them without using the latest version of
`tractor.trionics.collapse_eg()`, but more then likely they should flip
over fine.
2025-09-15 19:27:56 -04:00
..
README.rst Officially drop `Position.size` 2023-08-03 16:57:02 -04:00
__init__.py Finally drop `Symbol` 2025-04-21 13:34:12 -04:00
_allocate.py Bleh, move `.data.types` back up to top level pkg 2023-08-05 15:57:10 -04:00
_ledger.py Add paper-engine cost simulation support 2023-08-07 09:55:45 -04:00
_mktinfo.py Finally drop `Symbol` 2025-04-21 13:34:12 -04:00
_pos.py Spurious first-draft of EG collapsing 2025-09-15 19:27:56 -04:00
calc.py ib-related: cope with invalid txn timestamps 2025-09-15 18:29:19 -04:00
cli.py Add note about `xonsh.main.main()` attempted usage 2023-08-03 13:56:23 -04: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.