Skip to content

Close

DELETE
/v2/futures

Close the user trade, the PL will be calculated against the current last price depending on the side of the trade

Parameters

Query Parameters

id
required
string format: uuid

Responses

200

200

object
id
required
string
uid
required
string
type
required
string
Allowed values: m l
side
required
string
Allowed values: b s
opening_fee
required
number
closing_fee
required
number
maintenance_margin
required
number
quantity
required
number
margin
required
number
leverage
required
number
price
required
number
liquidation
required
number
stoploss
required
number
takeprofit
required
number
exit_price
required
number
pl
required
number
creation_ts
required
number
market_filled_ts
required
number
closed_ts
required
number
open
required
boolean
running
required
boolean
canceled
required
boolean
closed
required
boolean
last_update_ts
required
number
sum_carry_fees
required
number
entry_price
number
entry_margin
number
{
"uid": "821f4a4d-5fad-4cdb-ac89-60d4a1a9795b",
"type": "m",
"id": "d0b9f9a0-4f6e-4a5a-8b7a-7f0f5f9a8a1e",
"side": "b",
"opening_fee": 10,
"closing_fee": 10,
"maintenance_margin": 0,
"quantity": 100,
"margin": 1000,
"leverage": 10,
"price": 20000,
"liquidation": 18000,
"pl": 150,
"creation_ts": 1629782400000,
"market_filled_ts": 1629782400000,
"closed_ts": 1630200000000,
"open": false,
"running": false,
"canceled": false,
"closed": true,
"last_update_ts": 1630200000000,
"sum_carry_fees": 23
}

400

400