Binance Broker Plug-in
OCO group is emulated by MultiCharts. Emulated OCO group means that all OCO orders are sent to the broker, price is monitored by MultiCharts and once one of the orders is filled, other orders from this OCO group are cancelled by MultiCharts. When one of the OCO orders is filled, MultiCharts sends a command to cancel the second OCO order to the broker. Note that the second order may also be filled if price reaches its level before the cancellation is processed by the broker (see OCO Orders Risk).
Binance Futures Broker Plug-in
All types of orders are supported:
- Market orders
- Limit orders
- Stop orders
- Stop-Limit orders
Binance provides information on the list of accounts, balance, and open positions.
Equity is calculated by MultiCharts.
Open position Profit/Loss and Unrealized Profit/Loss is calculated in MultiCharts as it is not provided by Binance.
Setting up Binance Futures Broker Plug-in
To connect Binance Futures broker profile, make sure that you have the following API permissions enabled on Binance website:
- Enable Reading
- Enable Futures
In the Binance Futures Settings window enter the information provided by Binance.
- Main tab:
- Connectivity section:
- Enter your API key and Secret key for Binance.
- Select the USDT Futures server for unexpired futures or Coin Futures server for the futures with the expiry date.
- In the Currency section you can select the base currency.
- Default Order Settings section:
- Select Time in Force.
- Use the option Orders request waiting limits to enable automatic monitoring or requests from MultiCharts.Binance has limitations for the number of requests from one IP per minute.
- Use the Reduce Only option to enable Reduce Only orders and avoid the Binance minimum trade size limit when closing a position.
- Global section:
- You can set the Timing security interval to specify the time during which the request is considered to be active.
- Enable the option Use heartbeats for connection loss detection to automatically restore the connection with the Binance server in case of temporary connection loss.
- Use Show Error pop-up alert to receive alerts.
- Connectivity section:
- Contracts Ratio tab:
Here you can check the ratio for one contract in MultiCharts.MultiCharts does not support fractional shares. For trading crypto symbols Contracts Ratio was added into Binance broker settings.
For example, the Contracts Ratio for BTCUSDT futures is 0.001. When you buy 1 contact in MultiCharts, 0.001 contract will be bought at Binance. - Leverage tab:
Press Lookup to synchronize the symbol list and leverage with the broker.
The leverage value will be applied at the moment when you connect the broker profile.It is required to press Lookup each time when you connect Binance Broker profile for correct operation.
Binance Spot and Binance .US Spot Broker Plug-in
- Stop orders are not supported by the exchange.
- Market, Limit, and Stop-Limit orders are supported.
Balance, equities, the list of accounts, and open positions are emulated by MultiCharts since this data is not provided by Binance.
Setting up Binance Spot/Binance .US Spot Broker Plug-in
To connect Binance Spot broker profile, make sure that you have the following API permissions enabled on Binance website:
- Enable Reading
- Enable Spot & Margin Trading
In the Binance Spot Settings window enter the information provided by Binance.
- Main tab:
- Connectivity section:
- Enter your API key and Secret key for Binance.
- Select the trading mode from the trading mode drop-down list.
- Select the base currency in the Currency field.
- Default Order Settings section:
- Select Time in Force.
- Use the option Orders request waiting limits to enable automatic monitoring or requests from MultiCharts.Binance has limitations for the number of requests from one IP per minute.
- Global section
- You can set the Timing security interval to specify the time during which the request is considered to be active.
- Enable the option Use heartbeats for connection loss detection to automatically restore the connection with the Binance server in case of temporary connection loss.
- Use Show Error pop-up alert to receive alerts.
- Connectivity section:
- Contracts Ratio tab:
Here you can check the ratio for one contract in MultiCharts.MultiCharts does not support fractional shares. For trading crypto symbols Contracts Ratio was added into Binance broker settings.
For example, the Contracts Ratio for BTCUSDT futures is 0.001. When you buy 1 contact in MultiCharts, 0.001 contract will be bought at Binance. - Open Positions tab:
As Binance Spot operates with wallets, MultiCharts has to emulate positions.
The first time you connect to the Binance Spot broker profile in MultiCharts, MultiCharts considers the position to be flat. When you open a position in MultiCharts, it will be displayed in this tab.- Click Lookup to emulate positions based on the orders sent from MultiCharts.If a position was opened/changed outside MultiCharts, MultiCharts will not be aware of it.
- Click Recalculate to recalculate all the positions based on orders starting from the set date.
To recalculate a position for a specific symbol click the button next to it. - Click Add to select symbols to add to the positions list.
- Click Lookup to emulate positions based on the orders sent from MultiCharts.
After the broker profile is set up, you can select it for trading, see the How to Select a Broker Account For Trading guide.
Troubleshooting
Broker profile is not connecting
If broker profile connection is not established after you click Connect:
- Make sure you pressed the Lookup button in the Leverage tab (for Binance Futures).
- Check the Order and Position Tracker → Logs tab.
- If you see the Timestamp for this request is outside of the recvWindow messages, synchronize the time of your PC: right-click your PC time → Adjust date/time → in the Date&time tab click Sync now.
- If you see the Invalid API-key, IP, or permissions for action messages, check your email for notifications from Binance, contact them directly for details or create a new API and Secret Key.
Orders are rejected
If your orders get rejected, check the Order and Position Tracker → Logs tab to see the rejection reason.
- Minimum trade volume = X. Price: Y * Quantity: Z =
Adjust your trade size to fit the Binance limit taking into account the Contract Ratio.
In MultiCharts it is only possible to trade integer values. For trading crypto symbols Contracts Ratio was added into Binance broker settings. You can access it in Binance Settings → Contracts Ratio tab.Contracts Ratio for BNBUSDT is 0,01. So, when you buy 1 BNBUSDT contract in MC, you buy 0,01 (1*0,01) contract at Binance, which doesn’t correspond to their minimal allowed trade size – 5. - Not found symbol from server X and currency Y
- Re-add the symbol in QuoteManager → Instrument → Add Symbol → From Data Source → Binance.
- Make sure you trade Futures with Binance Futures and Cryptocurrencies with Binance Spot.
- Make sure the correct server and currency is selected in the Binance broker profile settings depending on the traded symbol.
- Order’s notional must be no smaller than 5.0 (unless you choose reduce only)
Enable the Reduce Only option in the Main tab of the Binance Futures settings to avoid the Binance minimum trade size limit when closing a position.