Create a new trade
POST
/v2/futures
Send the order form parameters to add a new trade in database. If type="l"
, the property price
must be included in the request to know when the trade should be filled.
You can choose to use the margin or the quantity as a parameter, the other will be calculated with the one you chose
Request Body
Body
Responses
200
200
One of:
object
id
required
string
uid
required
string
type
required
string
side
required
string
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
number
pl
required
number
creation_ts
required
number
market_filled_ts
closed_ts
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
object
id
required
string
uid
required
string
type
required
string
side
required
string
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
number
pl
required
number
creation_ts
required
number
market_filled_ts
required
number
closed_ts
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
400
400