Kumar

How to set limit close order?

Programming


Hello, I found that the close order API only support market order. 
How can I close a position using limit order?

 
tony lam

In market practice, a "close" order refers to immediately order closing using the best market price. Thus, it is a market order by nature.

For your case, you can use the update_opened_order function to adjust the take profit/ stop loss level to replicate a "limit close".


 
Kumar
Original Posted by - b'tony lam':

In market practice, a "close" order refers to immediately order closing using the best market price. Thus, it is a market order by nature.

For your case, you can use the update_opened_order function to adjust the take profit/ stop loss level to replicate a "limit close".


Got it. Thanks!