Get Price History
get_price_historyFetch historical OHLCV price data for a contract, choosing from multiple time periods and bar sizes to support market analysis.
Instructions
Get historical OHLCV price bars for a contract. Supports various periods and bar sizes. Requires brokerage session (auto-acquired, auto-releases after idle).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | Yes | Bar size: 1min, 2min, 5min, 15min, 30min, 1h, 2h, 4h, 1d, 1w, 1m | |
| conid | Yes | Contract ID | |
| period | Yes | Time period: 1d, 2d, 3d, 5d, 1w, 2w, 1m, 3m, 6m, 1y, 2y, 5y | |
| exchange | No | Exchange filter | |
| outsideRth | No | Include data outside regular trading hours |