Bybit API
v5 unified trading account · testnet included · CFD-style TradFi pairs on derivatives
安全创建密钥
- 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.
权限:授予哪些
- 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.
编码前值得了解
- 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.
切勿授予任何人提现权限。 不要给我们,也不要给任何服务。我们的连接流程会拒绝具有提现权限的密钥。交易密钥可能亏损交易;提现密钥可能丢失账户。
将此密钥连接到我们的引擎 → 官方 API 文档 Create a Bybit account
其他指南: Gate.io API · OKX API · MEXC API · 比较他们的费用