Skip to main content

Bybit

A leading derivatives exchange with a unified trading account supporting spot, perpetuals, futures, and options.

Overview

PropertyValue
Websitebybit.com
Account ModelUnified account
Passphrase RequiredNo
API DocumentationBybit API Docs

Credential Requirements

FieldRequiredDescription
apiKeyAPI Key from Bybit
apiSecretSecret Key from Bybit
apiPassphrase-Not required

Account Types

Bybit offers both unified and legacy account types.

External IDAccount TypeDescription
unifiedUNIFIEDUnified Trading Account (UTA)
spotSPOTLegacy spot account
contractFUTURESLegacy derivatives account
fundFUNDINGFunding account
tip

We recommend using the Unified Trading Account for the best experience. It provides access to all trading products with shared collateral.

Trading Features

FeatureSupportedNotes
Spot Trading
Cross MarginUnified account margin
Isolated MarginPer-position margin
USDT PerpetualsUp to 100x leverage
USDC PerpetualsUp to 100x leverage
Inverse PerpetualsCoin-margined
OptionsUSDC-settled options

Position Modes

Bybit unified account supports:

ModeDescription
One-WaySingle position per symbol
HedgeLong and short positions simultaneously

Supported Order Types

Order TypeSpotDerivatives
Market
Limit
Stop Limit
Stop Market
Trailing Stop-
Take Profit / Stop Loss-
Conditional

API Key Setup

Step 1: Access API Management

  1. Log in to Bybit
  2. Click on your profile icon
  3. Select API from the dropdown

Step 2: Create API Key

  1. Click Create New Key
  2. Select System-generated API Keys
  3. Enter a name for the API key

Step 3: Configure Permissions

PermissionDescriptionRequired For
Read-OnlyRead account info onlyView-only access
Read-WriteFull trading accessTrading

Select specific permissions:

CategoryPermissionRequired For
WalletReadPortfolio balances
SpotTradeSpot orders
ContractTradeDerivatives orders
Unified TradingTradeUTA orders
warning

Never enable "Withdraw" - Cadenza does not require withdrawal permissions.

  1. Enable Bind to IP addresses
  2. Add Cadenza's IP addresses
  3. Click Submit

Step 5: Save Credentials

  1. Copy the API Key
  2. Copy the Secret Key
  3. Store both securely

Rate Limits

Endpoint TypeLimit
Order placement10 requests/second
Order cancellation10 requests/second
Position query50 requests/second

Example: Create Bybit Credential

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

Example: Connect Bybit Account

# Connect unified trading account
response = trading_account_api.connect_trading_account(
cadenza_client.ConnectTradingAccountRequest(
credential_ids=[credential_id],
external_trading_account_id="unified",
nickname="Bybit Unified"
)
)
trading_account_id = response.data.trading_account_id
print(f"Connected: {trading_account_id}")

Instrument ID Format

Bybit instruments use the format: BYBIT:{BASE}/{QUOTE}

Instrument TypeExample
SpotBYBIT:BTC/USDT
USDT PerpetualBYBIT:BTC/USDT:USDT
USDC PerpetualBYBIT:BTC/USDC:USDC
Inverse PerpetualBYBIT:BTC/USD:BTC

Unified Trading Account Benefits

  • Single account - All products in one place
  • Shared margin - Cross-collateral between assets
  • Portfolio margin - Lower margin requirements
  • Simplified management - No transfers between accounts