Account.Positions API is only keeping track of the overall position instead of lots.
Although I am trading the same instrument, my strategy has different reasons for entering each lot and I want to be able to tailor my exit strategy based on lot.
Currently I am doing my bookkeeping. I use specific signalName on EnterLong and I am using a Dict to keep track of the lots and to drive individual exit strategy. However, those data structures do not survive crashes. It would be great that it is being tracked on the Account side so even if the program restarts, it can pick up from where it left off.
Thanks,
Jonathan
Comment