Skip to main content

Binance

The world's largest cryptocurrency exchange by trading volume. Binance offers spot, margin, and futures trading with separate account types.

Overview​

PropertyValue
Websitebinance.com
Account ModelSeparate accounts
Passphrase RequiredNo
API DocumentationBinance API Docs

Credential Requirements​

FieldRequiredDescription
apiKey✓API Key from Binance
apiSecret✓Secret Key from Binance
apiPassphrase-Not required

Account Types​

Binance uses separate accounts for different trading products. Each account has its own balance.

External IDAccount TypeDescription
spotSPOTSpot trading account
marginMARGINCross margin account
isolated_marginMARGINIsolated margin accounts
futuresFUTURESUSDT-M Futures account
coin_futuresCOIN_FUTURESCOIN-M Futures account

Trading Features​

FeatureSupportedNotes
Spot Trading✓
Cross Margin✓Up to 3x leverage
Isolated Margin✓Up to 10x leverage
USDT-M Futures✓Up to 125x leverage
COIN-M Futures✓Up to 125x leverage
Options✓European-style options

Supported Order Types​

Order TypeSpotMarginFutures
Market✓✓✓
Limit✓✓✓
Stop Limit✓✓✓
Stop Market✓✓✓
Trailing Stop--✓
Take Profit--✓

API Key Setup​

Step 1: Access API Management​

  1. Log in to Binance
  2. Hover over your profile icon
  3. Click API Management

Step 2: Create API Key​

  1. Enter a label for your API key (e.g., "Cadenza Trading")
  2. Click Create API
  3. Complete security verification (2FA, email, etc.)

Step 3: Configure Permissions​

Enable the following permissions based on your needs:

PermissionDescriptionRequired For
Enable ReadingRead account info, balances, ordersAll operations
Enable Spot & Margin TradingExecute spot and margin ordersSpot/Margin trading
Enable FuturesExecute futures ordersFutures trading
warning

Never enable "Enable Withdrawals" - Cadenza does not require withdrawal permissions.

  1. Select Restrict access to trusted IPs only
  2. Add all of Cadenza's IP addresses:
34.80.181.33,34.80.30.227,35.234.57.233,35.185.174.159,34.81.236.114,35.201.166.55

You must add all 6 IP addresses. Cadenza routes requests through multiple outbound IPs, and missing any address will cause intermittent connection failures.

  1. Click Confirm

Step 5: Save Credentials​

  1. Copy the API Key
  2. Copy the Secret Key (only shown once!)
  3. Store both securely

Demo Environment​

Binance provides a Demo Mode for testing API integrations with realistic market data. Demo mode supports spot and USDT-M futures accounts only — margin accounts are not available.

See Binance Demo Environment for base URLs, API key setup, and full details.

Rate Limits​

Endpoint TypeLimit
Order requests10 orders/second
Order updates100,000 orders/day
Weight limit1,200/minute

Example: Create Binance Credential​

response = credential_api.create_trading_account_credential(
cadenza_client.CreateTradingAccountCredentialRequest(
venue=cadenza_client.Venue.BINANCE,
credential_type=cadenza_client.CredentialType.EXCHANGE,
api_key="your-binance-api-key",
api_secret="your-binance-secret-key",
nickname="My Binance API"
)
)

Example: Connect Binance Accounts​

# Connect spot account
spot_response = trading_account_api.connect_trading_account(
cadenza_client.ConnectTradingAccountRequest(
credential_ids=[credential_id],
external_trading_account_id="spot",
nickname="Binance Spot"
)
)

# Connect futures account
futures_response = trading_account_api.connect_trading_account(
cadenza_client.ConnectTradingAccountRequest(
credential_ids=[credential_id],
external_trading_account_id="futures",
nickname="Binance Futures"
)
)

Instrument ID Format​

Binance instruments use the format: BINANCE:{BASE}/{QUOTE}

Instrument TypeExample
SpotBINANCE:BTC/USDT
MarginBINANCE:ETH/USDT
USDT-M FuturesBINANCE:BTC/USDT
COIN-M FuturesBINANCE:BTC/USD