API Binance Futures | Trade

Binance allows to trade with futures using his REST API.

 

Configuration

First you must create an API Key in your binance account and add privileges to trading with Futures.

Once this is done, you can start to trading with futures.

First you must select if you want to trade with USDT or COIN futures, there is a property called FuturesContracts where you can set which future contract you want to trade

Then, set your ApiKey and your ApiSecret in the Binance Futures Client Component, this will be used to sign the requests sent to Binance server.

 

Place an Order

To place a new order, just call to method REST_API.NewOrder of Binance Futures Client Component.

 

Depending of the type of the order (market, limit...) the API requires more or less fields.

 

Mandatory Fields

 

 

Additional Mandatory Fields based on Type

 

 

When you send an order, there are 2 possibilities:

 

1. Successful: the function NewOrder returns the message sent by binance server.

2. Error: the exception is returned in the event OnBinanceHTTPException.