Trade
Limit Close Position
This endpoint supports the closing of orders in USDT futures via Limit sell.
HTTP Request
POST /v1/trade/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 |
|---|---|---|---|
| exitPrice | true | number | exit price for the position |
| 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 | Response message |
| Parameter | Type | Comments |
|---|---|---|
| statusCode | number | 404 |
| result | string | Not Found |
| message | string | Position not found! |
INFO
The ack of limit close position indicates that the request is successfully accepted. Please use websocket order stream to confirm the status.