Binance allows to trade with futures using his REST API.
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.
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
Symbol: the product id symbol, example: BTCUSD_210326
Side: BUY or SELL
type: the order type
LIMIT
MARKET
STOP
TAKE_PROFIT
STOP_MARKET
TAKE_PROFIT_MARKET
TRAILING_STOP_MARKET
Additional Mandatory Fields based on Type
LIMIT: timeInForce, quantity, price
MARKET: quantity
STOP/TAKE_PROFIT: quantity, price, stopPrice
STOP_MARKET/TAKE_PROFIT_MARKET: stopPrice
TRAILING_STOP_MARKET: callbackRate
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.