🔗 MCP API

Market Data Tools

Reference for the Market Data MCP tools that expose exchange rates, OHLCV, quotes, trades, order books, and options data.

Market Data MCP Market Data Tools

These tools return live market state, historical time series, and liquidity snapshots.

Exchange rates

ToolRequired argumentsOptional argumentsUse when
exchangerate_get_rateasset_id_base, asset_id_quotetimeYou need one asset-level rate such as BTC/USD.
exchangerate_get_all_ratesasset_id_basefilter_asset_id, invert, timeYou need one base asset quoted in many currencies or tokens.
exchangerate_get_historyasset_id_base, asset_id_quote, period_id, time_start, time_endlimitYou need historical OHLC rate data between two assets.
exchangerate_list_periodsnonenoneYou need valid period IDs for historical exchange-rate requests.

Notes

  • filter_asset_id accepts comma- or semicolon-delimited quote lists such as USD;EUR;GBP.
  • invert: true returns reciprocal rates such as USD/BTC instead of BTC/USD.
  • time lets exchangerate_get_rate and exchangerate_get_all_rates act as historical lookups.

OHLCV

ToolRequired argumentsOptional argumentsUse when
ohlcv_get_historysymbol_id, period_idtime_start, time_end, limitYou need historical candles for one symbol in ascending order.
ohlcv_get_latestsymbol_id, period_idlimitYou need recent candles without specifying a time window.
ohlcv_get_history_by_exchangeexchange_id, period_id, time_start, time_endnoneYou need exchange-level OHLCV series.
ohlcv_list_periodsnonenoneYou need valid candle granularities.

Notes

  • Typical period_id values include 1MIN, 1HRS, 1DAY, and longer intervals.
  • ohlcv_get_history returns candles in ascending order, while ohlcv_get_latest is the shortcut for most recent bars.
  • Every 100 returned items count as one request for billing on history-style endpoints.

Quotes

ToolRequired argumentsOptional argumentsUse when
quotes_get_currentnonefilter_symbol_idYou need current bid/ask snapshots across all or filtered symbols.
quotes_get_current_by_symbolsymbol_idnoneYou need one live quote with nested last trade information.
quotes_get_latestnonefilter_symbol_id, limitYou need recent quote updates in descending time order.
quotes_get_latest_by_symbolsymbol_idlimitYou need recent quote updates for one symbol.
quotes_get_historysymbol_id, time_starttime_end, limitYou need historical quote changes over time.

Notes

  • filter_symbol_id matches symbol fragments such as BTC_USD.
  • quotes_get_current_by_symbol is a good first call for realtime UI cards because it includes bid, ask, and last_trade.
  • Historical quote responses are ordered ascending by time.

Trades

ToolRequired argumentsOptional argumentsUse when
trades_get_latestnonefilter_symbol_id, limitYou need the newest trades across all or filtered symbols.
trades_get_latest_by_symbolsymbol_idlimitYou need the latest executions for one symbol.
trades_get_historysymbol_id, time_starttime_end, limitYou need historical executions in ascending order.

Notes

  • Latest trade endpoints return data in descending order.
  • History endpoints return executed trades in ascending order.
  • Trade payloads are useful for tape views, event-driven analytics, and slippage studies.

Order books

ToolRequired argumentsOptional argumentsUse when
orderbooks_get_currentsymbol_idlimit_levelsYou need the current L2 bid/ask snapshot for one symbol.
orderbooks_get_depthsymbol_idlimit_levelsYou need aggregated cumulative depth at price levels.
orderbooks_get_latestsymbol_idlimit, limit_levelsYou need the newest order-book snapshots for one symbol.
orderbooks_get_historysymbol_id, time_starttime_end, limit, limit_levelsYou need historical order-book snapshots.
orderbooks3_get_currentnonefilter_symbol_id, limit_levelsYou need current L3 books across all or filtered symbols.
orderbooks3_get_current_by_symbolsymbol_idlimit_levelsYou need individual order-level L3 data for one symbol.

Notes

  • L2 history and latest endpoints are limited to 20 levels per side.
  • limit_levels trims response size on both L2 and L3 endpoints.
  • L3 data is more detailed than L2 and may not be available for every exchange.

Options

ToolRequired argumentsOptional argumentsUse when
options_get_current_by_exchangeexchange_idnoneYou need the current options chain grouped by underlying, quote currency, expiration, and strike.

Notes

  • This endpoint is useful for derivatives dashboards and volatility workflows.
  • Returned quotes can include both calls and puts at each strike.

Practical patterns

Realtime market snapshot

  1. Resolve a symbol_id with symbols_list.
  2. Call quotes_get_current_by_symbol.
  3. Add trades_get_latest_by_symbol.
  4. Add orderbooks_get_current or orderbooks_get_depth if you need liquidity context.

Historical charting

  1. Call ohlcv_list_periods.
  2. Use ohlcv_get_history for bars.
  3. Join with trades_get_history or quotes_get_history for microstructure detail.

Asset-level pricing

  1. Use exchangerate_get_rate for one pair.
  2. Use exchangerate_get_all_rates when one base asset fans out to many quotes.
  3. Use exchangerate_get_history for historical conversion series.
Service StatusGitHub SDK