开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: reqPositionsMulti does not work as intended


 

To add, my goal is to tag orders with different modelCodes in order to keep positions apart. For example. If I buy 100 shares of Apple with modelCode "Strategy1" and short 100 shares of Apple with modelCode "Strategy2" my net position in TWS would be 0 but when I request positions I want to see two positions, one for each modelcode with their own averagePrice and positions. But I do not seem to be able to get there....

Join [email protected] to automatically receive all group messages.