开云体育

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

Re: Can I create a condition to toggle a Limit order between ACTIVE and PAUSED states, depending on price of a completely different security?


 

grooooper,
The native conditional orders in the API only allow for a single action to be triggered - either the order can be submitted when the condition is true or cancelled when the order is true. So the other logic would need to reside in the API program. As JG mentioned, orders can't be paused from the API, so you would have to cancel/resubmit it. There could be a loop which:?
(1) waits until the underlying is within the range then submits the order with a conditional cancel attached
(2) monitors the orders status and if it is cancelled go back to state (1)
?
Josh

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