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
object
leverage
required
number
stoploss
number
takeprofit
number
side
required
string
One of:
object
quantity
required
integer
margin
object
margin
required
integer
quantity
One of:
object
price
required
number
type
required
string
object
type
required
string
price
{ "type": "l", "side": "b", "leverage": 10, "quantity": 100, "margin": 1000, "price": 20000}
Responses
200
200
One of:
object
id
required
string format: uuid
uid
required
string format: uuid
type
required
string
side
required
string
opening_fee
required
integer
closing_fee
required
integer
maintenance_margin
required
integer
quantity
required
number
margin
required
integer
leverage
required
number
price
required
number
liquidation
required
number
stoploss
required
number
takeprofit
required
number
exit_price
required
number
pl
required
integer
creation_ts
required
number
market_filled_ts
required
string format: null
closed_ts
required
string format: null
entry_price
required
number
entry_margin
required
integer
open
required
boolean
running
required
boolean
canceled
required
boolean
closed
required
boolean
sum_carry_fees
required
integer
object
id
required
string format: uuid
uid
required
string format: uuid
type
required
string
side
required
string
opening_fee
required
integer
closing_fee
required
integer
maintenance_margin
required
integer
quantity
required
number
margin
required
integer
leverage
required
number
price
required
number
liquidation
required
number
stoploss
required
number
takeprofit
required
number
exit_price
required
number
pl
required
integer
creation_ts
required
number
market_filled_ts
required
number
closed_ts
required
string format: null
entry_price
required
number
entry_margin
required
integer
open
required
boolean
running
required
boolean
canceled
required
boolean
closed
required
boolean
sum_carry_fees
required
integer
400
400