¿ªÔÆÌåÓý

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

Order Id in error messages


 

This one thing has almost blown my mind recently, so I guess the 'discovery' may be helpful for others.
Normally, when you handle errors, you would expect to get an order id the callback, but it actually does not work this way.
You only get the order id as a reqId if the last thing you did was placing an order, but if you requested something else requiring reqId, like reqPnLSingle for example, you would be getting this reqId back in the errors callback.
Yes, I know this is mentioned in the documentation, but still come to think about it, this can really mess up your algo, if you are not careful enough!

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