Skip to content

Close all trades

DELETE
/v2/options/all/close

Close all of the user option trades, the PL will be calculated against the current last price depending on the type of the options

Responses

200

200

object
trades
required
Array
One of:
object
id
required
string
uid
required
string
forward
required
number
forward_point
required
number
domestic
required
string
settlement
required
string
Allowed values: physical cash
fixing_price
required
number
creation_ts
required
number
expiry_ts
required
number
closed_ts
required
number
physical_delivery_id
leg_id
required
string
side
required
string
Allowed values: b s
type
required
string
Allowed values: c p
quantity
required
number
strike
required
number
volatility
required
number
margin
required
number
pl
required
number
maintenance_margin
required
number
opening_fee
required
number
closing_fee
required
number
running
required
boolean
closed
required
boolean
expired
required
boolean
exercised
required
boolean
[
{
"id": "49d4f418-5190-40b9-9c32-856381dc8aa2",
"uid": "c6c1a624-f2b4-48c9-b07a-7fd037770bd2",
"forward": 29840,
"forward_point": 0,
"domestic": "BTC",
"settlement": "cash",
"fixing_price": 29840,
"creation_ts": 1689695082638,
"expiry_ts": 1689753600000,
"closed_ts": 1689695087302,
"leg_id": "a6a05452-d445-4d08-a39a-c73126faa098",
"side": "b",
"type": "c",
"quantity": 100,
"strike": 29000,
"volatility": 1.1670000553131104,
"margin": 12744,
"pl": -2,
"maintenance_margin": 0,
"opening_fee": 172,
"closing_fee": 172,
"running": false,
"closed": true,
"expired": false,
"exercised": false
}
]

400

400