Tyler Goodlet
2baea21c7d
Drop pydantic from allocator
2022-07-09 12:09:38 -04:00
Tyler Goodlet
c617a06905
Port everything to `Position.be_price`
2022-06-28 10:07:56 -04:00
Tyler Goodlet
05a1a4e3d8
Use new `Position.bsuid` field throughout
2022-06-28 10:07:56 -04:00
Tyler Goodlet
1eb7e109e6
Start `piker.pp` module, LIFO pp updates
...
Start a generic "position related" util mod and bring in the `Position`
type from the allocator , convert it to a `msgspec.Struct` and add
a `.lifo_update()` method. Implement a WIP pp parser from a trades
ledger and use the new lifo method to gather position entries.
2022-06-28 10:07:56 -04:00
Tyler Goodlet
ed03d77e6e
Make a derivs intrustment type table for alloc config checks
2022-04-30 11:36:23 -04:00
Tyler Goodlet
772f871272
Use units by default for continuous futes
2022-04-30 11:36:23 -04:00
Tyler Goodlet
16b9e39e11
Dis-allow an allocator limit less then the current pp size
2022-03-02 10:05:33 -05:00
Tyler Goodlet
c737de7c74
Rage drop the limit size unit enum
2021-11-05 10:05:11 -04:00
Tyler Goodlet
8f70398d88
Fix exit-slot-edge-case when only one discrete unit remains
2021-11-05 10:05:11 -04:00
Tyler Goodlet
d706f35668
Keep slots ratio of 1 on derivs at startup
2021-11-05 10:05:11 -04:00
Tyler Goodlet
f4740da6a2
Drop `.accounts` field from allocator
2021-09-14 13:10:39 -04:00
Tyler Goodlet
f81d47efc4
Detail some comments
2021-09-11 13:10:20 -04:00
Tyler Goodlet
15aba154f2
Return account name in next order info
2021-09-09 10:33:52 -04:00
Tyler Goodlet
0d2cddec9a
Return accounts in `bidict`
2021-09-08 14:01:54 -04:00
Tyler Goodlet
09d34f7355
Make `accounts` field public, add an account name method
2021-09-07 09:21:55 -04:00
Tyler Goodlet
d38a6bf032
Create alloc instance in factory body, template out defaults loading
2021-09-07 08:38:24 -04:00
Tyler Goodlet
214c622328
Move allocator components to clearing sub-pkg
2021-09-06 22:05:42 -04:00