You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try to place two orders in opposite directions which can be matched at the same time, both of them are reported as accepted, but only one is really added to the order book.
add_limit_order doesn't check possible self-cross
there are several reasons for that, among them roundtrip - order is actually added after some time after add_order call, and it is very hard to predict what security state will be in future
It might be useful to have some notes about this kind of behavior in documentation.
Besides, is my understanding correct and participants orders doesn't cause a call to trading_book_update after a roundtrip, if this is the case it might also be useful to have this in documentation.
When you try to place two orders in opposite directions which can be matched at the same time, both of them are reported as accepted, but only one is really added to the order book.
Code
Output
The text was updated successfully, but these errors were encountered: