@tyler663 @BitunixOfficial
I am succesfully able to create trades (via /api/v1/futures/trade/place_order).
In case this is a limit order, i get returned an orderId.
In case it is a market order, i assume i also get an orderId back?
But when I want to close this order, i am a bit stuck:
For pending trades, I can use /api/v1/futures/trade/cancel_orders
But what if the order is (partially or completely filled) ?
How do i close one specific position at market price and what happens to the order that is pending (in case of a partially filled order)?
Obviously i have checked the GitHub code, but there is no sample for getting the positionid or how to close orders that are running.
Some API's like the flash close, requires a parameter "positionID" and i don't know how to get that.
@tyler663 @BitunixOfficial
I am succesfully able to create trades (via /api/v1/futures/trade/place_order).
In case this is a limit order, i get returned an orderId.
In case it is a market order, i assume i also get an orderId back?
But when I want to close this order, i am a bit stuck:
For pending trades, I can use /api/v1/futures/trade/cancel_orders
But what if the order is (partially or completely filled) ?
How do i close one specific position at market price and what happens to the order that is pending (in case of a partially filled order)?
Obviously i have checked the GitHub code, but there is no sample for getting the positionid or how to close orders that are running.
Some API's like the flash close, requires a parameter "positionID" and i don't know how to get that.