Integration

Alpaca Market Data API integration

Alpaca Market Data serves historical and real-time prices for US stocks, options and crypto. Fetch bars (OHLCV candles), trades, quotes, auctions, snapshots and latest values for one or many symbols, option chains and option snapshots, crypto order books, top market movers and most active stocks, corporate actions, fixed income prices, condition and exchange codes, company logos and market news. The Basic data plan, the default for paper and live accounts, gives real-time stocks from IEX only; full exchange coverage needs Algo Trader Plus. Left out: the corporate-action event stream (SSE). Authentication is an Alpaca Trading API key pair sent as the APCA-API-KEY-ID and APCA-API-SECRET-KEY headers.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Alpaca Market Data API.Built from the 41 Alpaca Market Data API tools below, on the connection you add once.

What you can do with Alpaca Market Data API

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Latest, 8 operations

  • get_latest_option_quotesGet latest option quotesGETAgents: ask firstThe latest multi-quotes endpoint provides the latest bid and ask prices for each given contract symbol.
  • get_latest_option_tradesGet latest option tradesGETAgents: ask firstThe latest multi-trades endpoint provides the latest historical trade data for multiple given contract symbols.
  • get_latest_stock_bar_for_symbolGet latest stock bar for symbolGETAgents: ask firstThe latest bar endpoint returns the latest minute bar for the given ticker symbol.
  • get_latest_stock_barsGet latest stock barsGETAgents: ask firstThe latest bars endpoint provides the latest minute bar for the given ticker symbols.
  • get_latest_stock_quote_for_symbolGet latest stock quote for symbolGETAgents: ask firstThe latest quote endpoint provides the latest best bid and ask prices for a given ticker symbol.
  • get_latest_stock_quotesGet latest stock quotesGETAgents: ask firstThe latest quotes endpoint provides the latest best bid and ask prices for the given ticker symbols.
  • get_latest_stock_trade_for_symbolGet latest stock trade for symbolGETAgents: ask firstThe latest trade endpoint provides the latest trade for the given ticker symbol. Trades with any conditions that causes them to not update the bar price are excluded.
  • get_latest_stock_tradesGet latest stock tradesGETAgents: ask firstThe latest trades endpoint provides the latest trades for the given ticker symbols. Trades with any conditions that causes them to not update the bar price are excluded.

Bar, 5 operations

  • get_crypto_barsGet crypto barsGETAgents: ask firstThe crypto bars API provides historical aggregates for a list of crypto symbols between the specified dates.
  • get_latest_crypto_barsGet latest crypto barsGETAgents: ask firstThe latest multi-bars endpoint returns the latest minute-aggregated historical bar data for each of the crypto symbols provided.
  • get_option_barsGet option barsGETAgents: ask firstThe historical option bars API provides aggregates for a list of option symbols between the specified dates. The returned results are sorted by symbol first, then by bar timestamp.
  • get_stock_barsGet stock barsGETAgents: ask firstThe historical stock bars API provides aggregates for a list of stock symbols between the specified dates. The returned results are sorted by symbol first, then by bar timestamp.
  • get_stock_bars_for_symbolGet stock bars for symbolGETAgents: ask firstThe historical stock bars API provides aggregates for the stock symbol between the specified dates.

Quote, 5 operations

  • get_crypto_quotesGet crypto quotesGETAgents: ask firstThe crypto quotes API provides historical quote data for a list of crypto symbols between the specified dates. The oldest date to retrieve historical quotes of us-1 location is 14th October, 2025 12AM UTC.
  • get_latest_crypto_quotesGet latest crypto quotesGETAgents: ask firstThe latest quotes endpoint returns the latest bid and ask prices for the crypto symbols provided.
  • get_latest_fixed_income_quotesGet latest fixed income quotesGETAgents: ask firstThis endpoint returns the latest quotes for the given fixed income securities.
  • get_stock_quotesGet stock quotesGETAgents: ask firstThe historical stock quotes API provides quote data for a list of stock symbols between the specified dates. The returned results are sorted by symbol first, then by the quote timestamp.
  • get_stock_quotes_for_symbolGet stock quotes for symbolGETAgents: ask firstThe historical stock quotes API provides quote data for a stock symbol between the specified dates.

Snapshot, 5 operations

  • get_crypto_snapshotsGet crypto snapshotsGETAgents: ask firstThe snapshots endpoint returns the latest trade, latest quote, latest minute bar, latest daily bar, and previous daily bar data for crypto symbols.
  • get_option_chainGet option chainGETAgents: ask firstThe option chain endpoint provides the latest trade, latest quote, and greeks for each contract symbol of the underlying symbol.
  • get_option_snapshotsGet option snapshotsGETAgents: ask firstThe snapshots endpoint provides the latest trade, latest quote and greeks for each given contract symbol.
  • get_stock_snapshot_for_symbolGet stock snapshot for symbolGETAgents: ask firstThe snapshot endpoint provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar data for a given ticker symbol.
  • get_stock_snapshotsGet stock snapshotsGETAgents: ask firstThe snapshot endpoint for multiple tickers provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar data for each given ticker symbol.

Trade, 5 operations

  • get_crypto_tradesGet crypto tradesGETAgents: ask firstThe crypto trades API provides historical trade data for a list of crypto symbols between the specified dates.
  • get_latest_crypto_tradesGet latest crypto tradesGETAgents: ask firstThe latest trades endpoint returns the latest trade data for the crypto symbols provided.
  • get_option_tradesGet option tradesGETAgents: ask firstThe historical option trades API provides trade data for a list of contract symbols between the specified dates. The returned results are sorted by symbol first then by trade timestamp.
  • get_stock_tradesGet stock tradesGETAgents: ask firstThe historical stock trades API provides trade data for a list of stock symbols between the specified dates. The returned results are sorted by symbol first then by trade timestamp.
  • get_stock_trades_for_symbolGet stock trades for symbolGETAgents: ask firstThe historical stock trades API provides trade data for a stock symbol between the specified dates.

Auction, 2 operations

  • get_stock_auctionsGet stock auctionsGETAgents: ask firstThe historical auctions endpoint provides auction prices for a list of stock symbols between the specified dates.
  • get_stock_auctions_for_symbolGet stock auctions for symbolGETAgents: ask firstThe historical auctions endpoint provides auction prices for the given stock symbol between the specified dates.

Condition, 2 operations

  • get_option_condition_codesGet option condition codesGETAgents: ask firstReturns the mapping between the condition codes and names.
  • get_stock_condition_codesGet stock condition codesGETAgents: ask firstReturns the mapping between the condition codes and names.

Exchange, 2 operations

  • get_option_exchange_codesGet option exchange codesGETAgents: ask firstReturns the mapping between the option exchange codes and the corresponding exchange names.
  • get_stock_exchange_codesGet stock exchange codesGETAgents: ask firstReturns the mapping between the stock exchange codes and the corresponding exchange names.

Corporate action, 1 operation

  • list_corporate_actionsList corporate actionsGETAgents: ask firstThis endpoint provides data about the corporate actions for each given symbol over a specified time period.

Logo, 1 operation

  • get_company_logoGet company logoGETAgents: ask firstGet the image of the company logo for the given symbol.

Most active, 1 operation

  • get_most_active_stocksGet most active stocksGETAgents: ask firstReturns the most active stocks by volume or trade count based on real time SIP data. By default, returns the top 10 symbols by volume.

Mover, 1 operation

  • get_top_moversGet top moversGETAgents: ask firstReturns the top market movers (gainers and losers) based on real time SIP data. The change for each symbol is calculated from the previous closing price and the latest closing price. For stocks, the endpoint resets at market open.

New, 1 operation

  • list_newsList newsGETAgents: ask firstReturns the latest news articles across stocks and crypto. By default, returns the latest 10 news articles.

Orderbook, 1 operation

  • get_latest_crypto_orderbooksGet latest crypto orderbooksGETAgents: ask firstThe latest orderbook endpoint returns the latest bid and ask orderbook for the crypto symbols provided.

Price, 1 operation

  • get_latest_fixed_income_pricesGet latest fixed income pricesGETAgents: ask firstThis endpoint returns the latest prices for the given fixed income securities.

Use Alpaca Market Data API from Claude Code, Cursor or Codex

Connect Alpaca Market Data API in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Alpaca Market Data API operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Alpaca Market Data API

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Alpaca Market Data API once

    Add your Alpaca Market Data API connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Alpaca Market Data API integration FAQ

What can you do with the Alpaca Market Data API integration?

LiveContext exposes 41 operations on Alpaca Market Data API, covering latest, bar, quote and snapshot.

Popular integrations

Browse the whole catalog