Bybit
Reads a Bybit account’s balances and activity, so reconciliation and reporting agents can check them against the books. It is read-only. It reads in place, in your deployment; only ids, hashes and counts reach LightHouse.
It is built from Bybit’s public API reference and tested against invented responses; it has not been run against a Bybit account (CERTIFICATION.md).
At a glance
Section titled “At a glance”| Collector | Bybit, version 0.2.0 |
|---|---|
| Reads | Bybit: Bybit V5 API (the vendor's documentation) |
| Family | Finance |
| Kind | Exchange |
| Ways to connect | Access token |
| Scopes |
|
| Read only | Yes |
| Vendor's API can move money | Yes |
| Personal data | Financial |
| Hosts it may contact | api.bybit.com, api-testnet.bybit.com, {host} |
| Vendor API versions | V5 API (/v5) |
| Lowest engine version | 0.47.1 |
What it reads
Section titled “What it reads”- Balances: the unified trading account’s wallet balance, locked amount and equity per coin. One record per coin, rewritten only when it changes and removed when it disappears.
- Spot executions: symbol, side, price, quantity, fee and fee currency, and the order and execution ids, in seven-day windows.
- Deposits and withdrawals: coin, amount, chain, status, address and transaction id, and the withdrawal fee, in thirty-day windows.
- Each stream is read from the last cursor, paged by Bybit’s
nextPageCursor; the first read goes backhistory_days(default 90).
It does not read derivatives or options executions, open orders, sub-accounts or earn.
How to connect
Section titled “How to connect”- In Bybit, create a system-generated API key set to Read-Only, bound to your deployment’s egress IP addresses. Tick only the trade and history groups (Contract, Spot, Options, Derivatives, Exchange history, Earn); leave the Wallet group (transfers, withdrawals) and the P2P, pay, card, post and compliance groups off.
- In LightHouse, open Setup and admin, Connectors and choose Bybit.
- Paste the API key and secret. Your browser seals them to your deployment; LightHouse never sees them.
The credential is JSON in the variable the source names (AAL_BYBIT by
default): api_key, api_secret, and optionally environment (production or testnet).
Permissions
Section titled “Permissions”This collector is read-only in what it does.
- What the credential says is checked first: a credential whose
accessis not read-only, or whosescopesorpermissionsname anything but a read (trading, withdrawing, transferring, administering, or any permission the collector does not recognise as a read), is refused before any request is sent. The permissions Bybit states for the key are then checked when you connect it and before every read. - Only read endpoints: the collector holds a list of the Bybit endpoints it reads; a request to any other is refused before it is sent.
- What Bybit states:
GET /v5/user/query-apianswersreadOnly(“0: Read and Write. 1: Read only”) and the key’s permissions by group (Bybit V5, Get API Key Information). Bybit’s own example there is areadOnly: 1key that listsSpot: SpotTrade,ContractTrade: Order, PositionandDerivatives: DerivativesTrade: on a read-only key a group names what the key may read, andreadOnlyis what stops it acting. The same example also listsWallet: AccountTransfer, SubMemberTransfer, and Bybit does not say whetherreadOnly: 1stops a transfer or a withdrawal. - Refused by the code (an allow-list): before every read, and in the health check, a key whose
readOnlyis not 1 is refused. A read-only key is accepted only when every permission it lists is one ofContractTrade:Order,ContractTrade:Position,Spot:SpotTrade,Options:OptionsTrade,Derivatives:DerivativesTrade,Exchange:ExchangeHistory,Earn:Earn,CopyTrading:CopyTrading,BlockTrade:BlockTradeorAffiliate:Affiliate. Any other permission is refused, naming it: the whole Wallet group (Withdraw,AccountTransfer,SubMemberTransfer,SubMemberTransferList), because Bybit does not document that a read-only key cannot use it;FiatP2P,FiatBitPay,FiatConvertBroker,FiatGlobalPay,BitCard,ByXPostandCompliance(which Bybit limits to read-write keys); and any group Bybit adds later. - IP binding: a key bound to no IP (
ipsempty or*) is told to pin it to your egress addresses (it is not refused). - Signing: each request carries X-BAPI-SIGN, the hex HMAC-SHA256 of the timestamp, API key, receive window and query string, with X-BAPI-API-KEY, X-BAPI-TIMESTAMP and X-BAPI-RECV-WINDOW. The secret never leaves your store.
- Hosts: only
api.bybit.com(orapi-testnet.bybit.com), over https; redirects are never followed.
Limits
Section titled “Limits”- Spot executions only.
- Bybit limits each history request to a time window (seven days for executions, thirty for deposits and withdrawals), so a first read makes one request per window.
- Requests are paced and retried on 429 and 5xx with back-off.
- Amounts are exact decimals; a number that arrives as a float is refused.
- Each record is keyed by Bybit’s own id, so one read twice is still one record.
Data handling
Section titled “Data handling”- Records hold financial data: balances, trades and transfers. Documents
carry the
labelyou give the source (defaultconfidential). - Content is read in place, in your deployment. LightHouse receives ids, hashes and counts, never the records, and never opens the credential.
- Errors carry a status and fixed text, never a provider’s body.
- The data is audit-ready for your own agents; nothing here is itself a certification against any standard.
Troubleshooting
Section titled “Troubleshooting”| What you see | What it means | What to do |
|---|---|---|
Bybit: refused: the credential can trade and transfer (the key is read-write); make a view-only one |
The key is read-write | Make a Read-Only key |
Bybit: refused: the credential can Wallet:AccountTransfer; make a view-only one |
The read-only key also holds a permission outside the allow-list (here a Wallet transfer) | Untick that group in Bybit, or make a new Read-Only key without it |
Bybit answered HTTP 401 (the key or signature was refused) |
retCode 10003, 10004 or 10010: key, signature or IP refused | Check the key, secret and bound IP |
Bybit answered HTTP 403 (permission denied) |
retCode 10005 | Check the key’s read permissions |
Certification
Section titled “Certification”Each entry is a run by Atlantic Agentic Labs, newest first. Only a run against the vendor’s sandbox or a client environment certifies a collector; a certification lasts six months, or less if the vendor publishes an API version the collector does not list. See How collectors are certified.
| Date | Collector | Engine | Vendor API | Method | Expires |
|---|---|---|---|---|---|
| 21 November 2026 | 0.1.0 | 0.47.1 | V5 API (/v5) | Fixtures only: built, not certified | Not applicable |
Security posture
Section titled “Security posture”From the collector’s last scan on the default branch. What each line means, and what blocks a release: Security posture.
| Last scanned | 25 November 2026 |
|---|---|
| Critical findings | 0 |
| High findings | 0 |
| Medium findings | 0 |
| Low findings | 0 |
| Info findings | 0 |
| Release blocked | No |
| Network allow-list check | Pass |
| Read-only behavioural test | Pass |
| SBOM (CycloneDX) | Produced |
| Dependency licences | Pass |
| Scanners | bandit 1.9.4, semgrep 1.181.1, pip-audit 2.10.1, osv-scanner 2.7.0, cyclonedx-py 7.5.0, pip-licenses 5.5.5, gitleaks repository job aal-secrets, hosts_check tools/hosts_check.py, read-only test pytest -m read_only |