piker/piker/brokers
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
..
ib `ib` rt pps update hotfix.. 2022-07-05 16:25:11 -04:00
__init__.py Get symbol search working for binance 2021-05-25 08:46:04 -04:00
_util.py Add to signal broker won't deliver more data 2022-05-09 11:15:14 -04:00
binance.py Well that was easy, convert tick/lot step sizes to `float` 2022-05-11 10:41:03 -04:00
cli.py Drop `pandas` usage throughout brokers cli 2022-05-15 13:49:50 -04:00
core.py Maybe spawn `brokerd` in `asyncio` mode if declared in backend mod 2022-04-13 00:39:15 -04:00
data.py Update `msgpub` import from `tractor.experimental` 2022-01-30 12:46:54 -05:00
kraken.py Error log brokerd msgs that have `.reqid == None` 2022-06-05 22:13:08 -04:00
questrade.py Drop `pandas` timestamp for qt 2022-05-15 13:49:54 -04:00
robinhood.py Add license headers to pertinent files 2020-11-06 12:23:14 -05:00