¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

How to track orders via API, works in live not in paper trading


YSS
 

Hello,

I have many orders and I watch the positions via the API, I use the OrderID field which works on Live but when I code and I am using TWS Paper trading login when I place orders the Order ID Field stays empty.

I see we can have an Order Reference field which would solve it, I just would need to populate it with a unique ID I make but I cant' seem to find where I can fill in this field in an already placed orders.

My question is:

1/ Is the Order ID the best way to get information about my orders via the API?
2/ If so, since I can't use this in paper trade mode, do you have an alternative (like Order Reference?)

Thanks for the help!

Y.

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