get_kbars
Retrieve historical K-bar data for financial contracts to analyze market trends and price movements over specified time periods using the Shioaji MCP Server.
Instructions
Get historical K-bar data
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contract": "<contract>"
},
"name": "get_kbars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract | Yes | Contract code | |
| start_date | No | Start date (YYYY-MM-DD) | |
| end_date | No | End date (YYYY-MM-DD) | |
| timeframe | No | Timeframe (1D, 1H, 5M, etc.) |