Close At Market Price
Description
Close orders at market price.
HTTP Request
POST /v3/trade/position
Request Parameters
Parameter | Required | Type | Description |
---|---|---|---|
symbol | Yes | String | All positions will be closed if the symbol field is empty. |
clOrdId | No | String | Client Order ID as assigned by the client |
Response Parameters
Parameter | Type | Description |
---|---|---|
ordId | String | Order ID |
clOrdId | String | Order ID as assigned by the user |
Request Example
{
"symbol":"BTC_USDT_PERP",
"clOrdId":"12345"
}
Response Example
{
"code":200,
"data":{
"clOrdId":"12345",
"ordId":"331380687661957120"
},
"msg":"Success"
}