I have read through the document regarding the "Sync Account Position", and how it will submit orders to attempt to make the account positions (real) match the strategy positions. This seems a bit backwards and potentially dangerous if you are submitting market orders in illiquid names, and possibly at a time of low trading volume.
I understand that there isn't a setting to "Sync Strategy", and I would like to write my own. To do this I was wondering what classes/methods are available to query on startup:
1) Broker Positions for all instruments
2) Pending or Working orders for all instruments
3) Current Margin
etc
Thanks!
Comment