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. |
mgnMode | Yes | String | Margin mode, CROSS ISOLATED |
posSide | No | String | Position side. This parameter can be omitted in BOTH mode, and the default value is BOTH . You can only fill with BOTH .This parameter must be filled in under the LONG /SHORT mode. Fill in LONG for close-LONG and SHORT for close-SHORT . |
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",
"mgnMode":"CROSS",
"clOrdId":"12345"
}
Response Example
{
"code":200,
"data":{
"clOrdId":"12345",
"ordId":"331380687661957120"
},
"msg":"Success"
}