get_kline
Retrieve candlestick (K-line) data for specific assets on Bybit, including historical price details, time intervals, and customizable start/end times for analysis and trading strategies.
Instructions
Get K-line (candlestick) data
Input Schema
Name | Required | Description | Default |
---|---|---|---|
category | Yes | Category (spot, linear, inverse, etc.) | |
end | No | End time in milliseconds | |
interval | Yes | Time interval (1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, W, M) | |
limit | No | Number of records to retrieve | |
start | No | Start time in milliseconds | |
symbol | Yes | Symbol (e.g., BTCUSDT) |
Input Schema (JSON Schema)
{
"properties": {
"category": {
"description": "Category (spot, linear, inverse, etc.)",
"type": "string"
},
"end": {
"description": "End time in milliseconds",
"type": "number"
},
"interval": {
"description": "Time interval (1, 3, 5, 15, 30, 60, 120, 240, 360, 720, D, W, M)",
"type": "string"
},
"limit": {
"default": 200,
"description": "Number of records to retrieve",
"type": "number"
},
"start": {
"description": "Start time in milliseconds",
"type": "number"
},
"symbol": {
"description": "Symbol (e.g., BTCUSDT)",
"type": "string"
}
},
"required": [
"category",
"symbol",
"interval"
],
"type": "object"
}