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
apiKeyAPI Key from Binance
apiSecretSecret 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 MarginUp to 3x leverage
Isolated MarginUp to 10x leverage
USDT-M FuturesUp to 125x leverage
COIN-M FuturesUp to 125x leverage
OptionsEuropean-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 Cadenza's IP addresses (contact support for the list)
  3. Click Confirm

Step 5: Save Credentials

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

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