Skip to main content
Glama

get_historical_data

Retrieve historical market data for financial symbols, including trades, OHLCV bars, and order book depth, from Databento's datasets for analysis and research purposes.

Instructions

Retrieve historical market data for symbols from Databento.

Examples:

  • Get ES futures trades: dataset="GLBX.MDP3", symbols="ES.FUT", start="2024-01-15", end="2024-01-15", schema="trades"

  • Get AAPL OHLCV bars: dataset="XNAS.ITCH", symbols="AAPL", start="2024-01-01", end="2024-01-31", schema="ohlcv-1m"

  • Get BTC order book: dataset="GLBX.MDP3", symbols="BTC.FUT", schema="mbp-10"

Tips:

  • Use explain=true to preview query without executing

  • Use force_refresh=true to bypass cache

  • Start with small date ranges and use limit parameter

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
datasetYesDataset name (e.g., 'GLBX.MDP3' for CME Globex, 'XNAS.ITCH' for Nasdaq)
symbolsYesComma-separated list of symbols (e.g., 'ES.FUT', 'AAPL, MSFT')
startYesStart date in YYYY-MM-DD or ISO 8601 format (e.g., '2024-01-15')
endYesEnd date in YYYY-MM-DD or ISO 8601 format (e.g., '2024-01-16')
schemaNoData schema: 'trades', 'ohlcv-1m', 'ohlcv-1h', 'ohlcv-1d', 'mbp-1', 'mbp-10', 'tbbo', 'mbo'trades
limitNoMaximum records to return (default: 1000, max: 100000)
explainNoPreview query estimates without executing (no API call)
force_refreshNoBypass cache and fetch fresh data

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/deepentropy/databento-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server