get_orderbook
Retrieve real-time orderbook data for specified symbols and categories on Bybit. Input symbol, limit, and category to access market depth and trading insights instantly.
Instructions
Get orderbook data
:parameter
symbol: Symbol (e.g., BTCUSDT)
limit: Number of orderbook entries to retrieve
category: Category (spot, linear, inverse, etc.)
Args:
category: Category (spot, linear, inverse, etc.)
symbol (str): Symbol (e.g., BTCUSDT)
limit (int): Number of orderbook entries to retrieve
Returns:
Dict: Orderbook data
Example:
get_orderbook("spot", "BTCUSDT", 10)
Reference:
https://bybit-exchange.github.io/docs/v5/market/orderbook
Input Schema
Name | Required | Description | Default |
---|---|---|---|
category | Yes | Category (spot, linear, inverse, etc.) | |
limit | No | Number of orderbook entries to retrieve | |
symbol | Yes | Symbol (e.g., BTCUSDT) |
Input Schema (JSON Schema)
{
"properties": {
"category": {
"description": "Category (spot, linear, inverse, etc.)",
"title": "Category",
"type": "string"
},
"limit": {
"default": 50,
"description": "Number of orderbook entries to retrieve",
"title": "Limit",
"type": "integer"
},
"symbol": {
"description": "Symbol (e.g., BTCUSDT)",
"title": "Symbol",
"type": "string"
}
},
"required": [
"category",
"symbol"
],
"title": "get_orderbookArguments",
"type": "object"
}