Bybit API
v5 unified trading account · testnet included · CFD-style TradFi pairs on derivatives
Create a key safely
- Profile → API → Create New Key → System-generated API keys.
- Pick API transaction type: read-only or read-write — Bybit makes the split explicit at creation.
- Scope the key to Unified Trading; skip derivatives-only legacy scopes for new code.
- Bind your server IP; unbound read-write keys auto-expire after 90 days.
- Test everything on testnet.bybit.com first — same API surface, separate keys.
Permissions: what to grant
- Read-only: wallet, positions, executions — our portfolio views stop here.
- Read-write (Trade): required only to run strategies live on your account.
- Withdrawal: never. Keys with withdrawal enabled are refused by our connect flow.
Worth knowing before you code
- v5 merges spot + derivatives into the Unified Trading Account API.
- A real testnet (not a flag) is the cleanest sandbox of the three exchanges.
- Rate limits are per-endpoint and per-UID; headers echo your remaining budget.
Never grant withdrawal permission to anyone. Not to us, not to any service. Our connect flow refuses keys that have it. A trading key can lose a trade; a withdrawal key can lose the account.
Connect this key to our engine → Official API docs Create a Bybit account
Other guides: Gate.io API · OKX API · MEXC API · Compare their fees