pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
103 stars 17 forks source link

Doin the splits #383

Closed goodboy closed 2 years ago

goodboy commented 2 years ago

Uber basic stock (not sure any other instrument does this?) split support in pps.toml files by allowing an split_ratio: float field in each position section that can avoid size discrepancies from a backend (like ib) when a split happens behind the scenes.

Probably more ideally we support different types of "events" in the clears table (but maybe relabel it as events: list[dict] and then we can have the user insert a split/reversesplit entry which will then generate a new ppu and accum_size when detected?


This patch also includes some general fixes to the .ib.broker module that seems to have been missed/broken as part of #372?

Mainly: