Best way to handle max open trades on a trading system #788
-
Hi, Given I have a strategy that use limit orders and is run on 50 markets Is it the expected behavior (process are independents and so the time to write the cache for orders_inflight the info can be outdated of a few ms) ? Do you recommend another way to do such a thing ? Many tks !! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It helps to consider the event driven nature of the platform. For live trading there will be a delay between submitting orders and events based on that coming back into the system. Even for backtesting the And so I would carefully consider your strategy logic, and leverage the |
Beta Was this translation helpful? Give feedback.
It helps to consider the event driven nature of the platform. For live trading there will be a delay between submitting orders and events based on that coming back into the system.
Even for backtesting the
SimulatedExchange
simulates the processing of trading messages.And so I would carefully consider your strategy logic, and leverage the
on_event
method to take actions based on event triggers, with no assumptions as to the state the cache may be in after executing commands, if that makes sense?