← Back to home
MT5 BINANCE / API SETUP

Configure Binance API keys in MT5

Classic accounts · Portfolio Margin accounts · Illustrated guide

Binance API key configuration guide

Follow these steps to configure your API keys for trading Binance through MT5.

01Create API keys

First, create your Binance API keys.

Creating Binance API keys is free. Follow the official Binance instructions: https://www.binance.com/zh-CN/support/faq/detail/360002502072

02Save your keys

You will receive an API key and a secret key similar to the examples below. Keep both confidential.

API key:
OVNjzabcaRSoEUiE9Dxv9VabcuDD5HQrhu2fn1gJSfWbGDjVn2kEClsabcnnXonkQ

Secret key:
c4QUrxabcaxDlteiCS8XHdIt9n3qAInFvHabcKAwyEavEQtZXXabcl1OxTF52GZ0w

03Open the data folder

Open the MT5 data folder.

MT5 Binance guide screenshot
MT5 menu — File → Open Data Folder

04Configure a classic account

Open mt5binance.json in the MQL5\Libraries directory with Notepad and enter your API key and secret key.

For a classic Binance account, use the configuration shown below.

MT5 Binance guide screenshot
Classic account — mt5binance.json configuration

05Configure a Portfolio Margin account

For a Portfolio Margin account, use the configuration shown below.

MT5 Binance guide screenshot
Portfolio Margin account — mt5binance.json configuration

06Restart and start services

After configuration, restart MT5 and start all Binance services to enable trading.

MT5 Binance guide screenshot
Start all Binance services

🔑 API key setup complete!

Restart MT5 and start all Binance services to begin trading.
Keep your API keys secure and never disclose them.

← Back to home