barChart
Retrieve historical price bars and candlestick data for trading symbols with customizable time intervals to analyze market trends and price movements.
Instructions
Get historical price bars/candles
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Trading symbol | |
| interval | Yes | Bar interval value (e.g., 1, 5, 15) | |
| unit | Yes | Bar interval unit | |
| beginTime | No | Begin time in ISO format (optional) | |
| endTime | No | End time in ISO format (optional) | |
| barsBack | No | Number of bars to return (optional) |
Input Schema (JSON Schema)
{
"properties": {
"barsBack": {
"description": "Number of bars to return (optional)",
"type": "number"
},
"beginTime": {
"description": "Begin time in ISO format (optional)",
"type": "string"
},
"endTime": {
"description": "End time in ISO format (optional)",
"type": "string"
},
"interval": {
"description": "Bar interval value (e.g., 1, 5, 15)",
"type": "number"
},
"symbol": {
"description": "Trading symbol",
"type": "string"
},
"unit": {
"description": "Bar interval unit",
"enum": [
"Minute",
"Daily",
"Weekly",
"Monthly"
],
"type": "string"
}
},
"required": [
"symbol",
"interval",
"unit"
],
"type": "object"
}