piker/piker
Tyler Goodlet 3765c61f2d Update ledger *after* pps updates from new trades
Addressing same issue as in #350 where we need to compute position
updates using the *first read* from the ledger **before** we update it
to make sure `Position.lifo_update()` gets called and **not skipped**
because new trades were read as clears entries but haven't actually been
included in update calcs yet.. aka we call `Position.lifo_update()`.

Main change here is to convert `update_ledger()` into a context mngr so
that the ledger write is committed after pps updates using
`pp.update_pps_conf()`..

This is basically a hotfix to #346 as well.
2022-07-08 19:13:32 -04:00
..
brokers Update ledger *after* pps updates from new trades 2022-07-08 19:13:32 -04:00
clearing Make ems relay loop report on brokerd `.reqid` changes 2022-07-08 19:13:32 -04:00
cli Terser startup msg fields 2022-06-28 10:07:57 -04:00
data Add a `ApplicationLogError` custom exc instead 2022-07-08 17:29:03 -04:00
fsp Use new `anext()` builtin 2022-06-27 13:59:08 -04:00
testing Import client for now until we make a proper shim 2018-02-12 10:35:54 -05:00
ui Drop nesting level from emsd's pp cacheing, adjust order mode 2022-07-02 16:19:58 -04:00
watchlists Add license headers to pertinent files 2020-11-06 12:23:14 -05:00
__init__.py Drop dependence on `msgpack` and `msgpack_numpy` 2022-02-28 08:15:18 -05:00
_cacheables.py Port to new `tractor.trionics.maybe_open_context()` api 2022-01-23 21:01:38 -05:00
_daemon.py Flip back to original daemon port 2022-06-16 15:50:05 -04:00
_profile.py Allow passing "ms slower then" value on cli to `--profile` 2022-04-30 11:36:23 -04:00
calc.py Lul, adhere to returning `str`s in `humanize()` 2022-01-25 07:57:01 -05:00
config.py Passthrough toml lib kwargs 2022-06-28 10:07:56 -04:00
log.py Type annot name in put to log routine 2022-06-05 22:13:36 -04:00
pp.py Fix typo / line length 2022-07-05 16:46:31 -04:00
trionics.py Start trionics mod with an `async_enter_all` 2022-01-23 19:41:57 -05:00