Skip to main content

Market Data Tools

Read-only tools for fetching market data. Available in all permission modes.

get_tickers

Get latest price ticker for a symbol.

Parameters:

NameTypeRequiredDescription
categorystringYesspot, linear, inverse, option
symbolstringNoTrading pair (e.g. BTCUSDT)

Example prompt: "What's the current price of ETH?"


get_kline

Query historical candlestick data.

Parameters:

NameTypeRequiredDescription
categorystringYesspot, linear, inverse, option
symbolstringYesTrading pair
intervalstringYes1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, W, M
limitintNoNumber of records (max 1000, default 200)

get_orderbook

Get current orderbook depth.

Parameters:

NameTypeRequiredDescription
categorystringYesspot, linear, inverse, option
symbolstringYesTrading pair
limitintNoDepth level (1, 50, 200)

get_instruments_info

Get trading instrument specifications.

Parameters:

NameTypeRequiredDescription
categorystringYesspot, linear, inverse, option
symbolstringNoSpecific symbol to query

get_server_time

Get the current Bybit server time. No parameters required.


get_funding_rate_history

Get funding rate history for perpetual contracts.

Parameters:

NameTypeRequiredDescription
categorystringYeslinear, inverse
symbolstringYesTrading pair
limitintNoNumber of records (max 200)

get_public_trades

Get recent public trading history.

Parameters:

NameTypeRequiredDescription
categorystringYesspot, linear, inverse, option
symbolstringYesTrading pair
limitintNoNumber of records (max 1000)

get_open_interest

Get open interest data.

Parameters:

NameTypeRequiredDescription
categorystringYeslinear, inverse
symbolstringYesTrading pair
intervalTimestringYes5min, 15min, 30min, 1h, 4h, 1d