Trade
Market Close Position
This endpoint supports the closing of orders in USDT futures via Market sell.
HTTP Request
POST /v1/trade/market-close-position
NOTE
Don't include trailing slash
/
at the end of the endpoint. Doing so can result in a “not found” error.Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
id | true | number | id of the position |
size | true | number | size of the position |
coin | false | string | Values:
|
Response Parameters
Parameter | Type | Comments |
---|---|---|
statusCode | number | 200 |
result | string | Success |
message | string | Position closed successfully! |
Parameter | Type | Comments |
---|---|---|
statusCode | number | 404 |
result | string | Not Found |
message | string | Position not found! |
INFO
The ack of market close position indicates that the request is successfully accepted. Please use websocket order stream to confirm the status.