Skip to content

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
side
required
string
Allowed values: b s
type
required
string
Allowed values: m l
margin
number
leverage
required
number
price
number
quantity
number
takeprofit
number
stoploss
number
{
"type": "l",
"side": "b",
"leverage": 10,
"quantity": 100,
"margin": 1000,
"price": 20000
}

Responses

200

200

One of:
object
id
required
string
uid
required
string
type
required
string
Allowed values: 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
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

400

400