piker/piker
Tyler Goodlet 95dd0e6bd6 `ib` rt pps update hotfix..
Not sure this didn't get caught in usage, but basically real-time
updates got broken by a rework of `update_ledger_from_api_trades()`.
The issue is that the ledger was being updated **before** calling
`piker.pp.update_pps_conf()` which resulted in the `Position.size`
not being updated correctly since the [latest added] clears passed
in via the `trade_records` arg were already found in the `.clears` table
and thus were causing the loop to skip the `Position.lifo_update()`
call..

The solution here is to not update the ledger **until after** we call
`update_pps_conf()` - it's more read/writes but it's correct and we
figure out a less io heavy way to do the file writing later.

Further this includes a fix to avoid double emitting a pp update caused
by non-thorough logic that waits for a commission report to arrive
during a fill event; previously we were emitting the same message twice
due to the lack of a check for an existing comms report in the case
where the report arrives *after* the fill.
2022-07-05 16:25:11 -04:00
..
brokers `ib` rt pps update hotfix.. 2022-07-05 16:25:11 -04:00
clearing Drop nesting level from emsd's pp cacheing, adjust order mode 2022-07-02 16:19:58 -04:00
cli Terser startup msg fields 2022-06-28 10:07:57 -04:00
data Make our `Symbol` a `msgspec.Struct` 2022-06-28 10:07:56 -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 Right, handle brand-new pp case.. 2022-07-02 16:14:34 -04:00
trionics.py Start trionics mod with an `async_enter_all` 2022-01-23 19:41:57 -05:00