New Order

Submit a new Order, can be used to create margin, exchange, and derivative orders.

Form Data
string
required

The name of the symbol (see /symbols).

string
required

Order size: how much you want to buy or sell

string
required

Price to buy or sell at. Must be positive. Use random number for market orders. Note: For 'trailing-stop' orders, the price represents the desired 'distance'

string
required

Either “buy” or “sell”.

string
required

Either “market” / “limit” / “stop” / "stop limit" / “trailing-stop” / “fill-or-kill” / "immediate-or-cancel" / “exchange market” / “exchange limit” / “exchange stop” / "exchange stop limit" / “exchange trailing-stop” / “exchange fill-or-kill” / "exchange immediate-or-cancel" . (type starting by “exchange ” are exchange orders, others are margin trading orders)

string
Defaults to "bitfinex"
float

Specify the limit price on a stop limit buy or exchange stop limit buy order

string

Specify the limit price on a stop limit sell or exchange stop limit sell order

boolean
Defaults to false

true if the order should be hidden.

boolean
Defaults to false

true if the order should be post only. Only relevant for limit orders.

int32
Defaults to 0

1 will post an order that will use all of your available balance.

boolean
required

Set an additional STOP OCO order that will be linked with the current order.

float
required

If ocoorder is true, this field represent the price of the OCO stop order to place

float
required

If ocoorder is true, this field represent the price of the OCO stop order to place

int32
Defaults to 10

Set the leverage for a derivative order, supported by derivative symbol orders only. The value should be between 1 and 100 inclusive. The field is optional, if omitted the default leverage value of 10 will be used.

string

Allows you to pass along an affiliate code with your API orders

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json