Overview
Task-focused guides against the real client surface. Public guides need no credentials;
authenticated ones need BYBIT_API_KEY/BYBIT_API_SECRET — see
API Keys Setup.
Market Data (Public)
- Fetch Candles - traded, mark, index, and premium index klines
- Read The Order Book - depth snapshots, full depth, and RPI depth
- List Instruments - trading rules, tick sizes, and risk limits
- Read Tickers And Trades - price snapshots, the tape, and price bands
- Listen To Streams - public order book/ticker/trade channels, and
the authenticated
private/tradeconnections
Trading And Account (Authenticated)
- Place & Manage Orders - create, amend, cancel, and list orders
- Fetch Account Data - wallet balance, positions, and trade history
- Manage Deposits & Withdrawals - deposit addresses, records, and submitting withdrawals
- Manage Earn Instruments - list, subscribe to, and redeem fixed-term savings products
Cross-Cutting
- Paginate Through Results - cursor and time-window paging, across market data, orders, positions, and transfers
Running The Examples
Each snippet is a complete program body. To run one, wrap it in asyncio.run:
import asyncio
from typed_bybit import Bybit
async def main():
async with Bybit.new(public=True) as client:
server_time = await client.http.market.time()
print(server_time['timeSecond'])
asyncio.run(main())The remaining guides omit the asyncio.run scaffolding for brevity.