How To Close A Position In One-way Mode With 'MARKET' Type

Hi there,

I’m curious that how can I close a ‘MARKET’ type position in One-way mode. I can’t find it anywhere in API docs as well as in this forum.

Really appreciate your help. Thank you a lot

You have to query to position number and explicitly specify it when you place the market order. Or you could use closePosition=true in a TP/SL order

Hi @MJW,

I don’t clearly understand what “position number” is and which parameter of a market order I need to pass the “position number” into?
Could you please explain to me more?

Thank you a lot