Binance Futures Plugin

Binance is a Shanghai founded digital currency exchange that supports all major crypto currencies and crypto futures. The Binance Futures plugin is for trading cryptocurrency futures. For trading plain coins (spot market), use the Binance plugin.

If you already have a Binance account for the spot market, you can extend it to futures. You will need a new API key and secret for trading futures. This key will then also work for logging in to the spot market. Make sure that your account is in one-way mode (no hedging), since the plugin assumes single-side positions.

There are two Binance Futures plugins. One was developed by a Zorro user and is available on Github. The other one is included in the Zorro setup and described here. It requires Zorro S and an account list. It uses the Websocket API for streaming market data and the REST API for all other fuctions. There are two sorts of futures available that are treated slightkly differently: USDT futures, paid in dollar equivalents, and COIN futures, paid in crypto coins. Real mode uses the Binance production server, demo mode the test server. Thus, 4 different endpoints are available that can be set in the Server field of the account list:

USDT futures production endpoint: wss://fstream.binance.com
COIN futures production endpoint: wss://fstream.binance.com
USDT futures test endpoint: wss://fstream.binancefuture.com
COIN futures test endpoint: wss://fstream.binancefuture.com

Zorro login fields for Binance Futures:

User API Key
Password API Secret

Binance Futures symbols

Binance Fututures has inconsistent symbols across all endpoints, but the plugin takes care of this. It uses the below symbology:

Perpetual Futures: AAABBB, e.g. "BTCUSDT"
Expiring Futures: AAABBB-FUT-YYYYMMDD, e.g. "BTCUSDT-FUT-20210326"
Alternatively, use the contract functions for futures, using the currency pair "BTCUSDT" as the underlying.

Supported broker commands

The plugin supports the brokerCommand f function with the following commands:

There are 2 plugin specific commands:

Remarks

See also:

Brokers, broker plugin, brokerCommand, Binance plugin

► latest version online