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.

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 quotesGETThe latest multi-quotes endpoint provides the latest bid and ask prices for each given contract symbol.
  • get_latest_option_tradesGet latest option tradesGETThe 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 symbolGETThe latest bar endpoint returns the latest minute bar for the given ticker symbol.
  • get_latest_stock_barsGet latest stock barsGETThe latest bars endpoint provides the latest minute bar for the given ticker symbols.
  • get_latest_stock_quote_for_symbolGet latest stock quote for symbolGETThe latest quote endpoint provides the latest best bid and ask prices for a given ticker symbol.
  • get_latest_stock_quotesGet latest stock quotesGETThe 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 symbolGETThe 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 tradesGETThe 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 barsGETThe crypto bars API provides historical aggregates for a list of crypto symbols between the specified dates.
  • get_latest_crypto_barsGet latest crypto barsGETThe latest multi-bars endpoint returns the latest minute-aggregated historical bar data for each of the crypto symbols provided.
  • get_option_barsGet option barsGETThe 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 barsGETThe 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 symbolGETThe historical stock bars API provides aggregates for the stock symbol between the specified dates.

Quote, 5 operations

  • get_crypto_quotesGet crypto quotesGETThe 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 quotesGETThe latest quotes endpoint returns the latest bid and ask prices for the crypto symbols provided.
  • get_latest_fixed_income_quotesGet latest fixed income quotesGETThis endpoint returns the latest quotes for the given fixed income securities.
  • get_stock_quotesGet stock quotesGETThe 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 symbolGETThe historical stock quotes API provides quote data for a stock symbol between the specified dates.

Snapshot, 5 operations

  • get_crypto_snapshotsGet crypto snapshotsGETThe 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 chainGETThe option chain endpoint provides the latest trade, latest quote, and greeks for each contract symbol of the underlying symbol.
  • get_option_snapshotsGet option snapshotsGETThe snapshots endpoint provides the latest trade, latest quote and greeks for each given contract symbol.
  • get_stock_snapshot_for_symbolGet stock snapshot for symbolGETThe 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 snapshotsGETThe 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 tradesGETThe crypto trades API provides historical trade data for a list of crypto symbols between the specified dates.
  • get_latest_crypto_tradesGet latest crypto tradesGETThe latest trades endpoint returns the latest trade data for the crypto symbols provided.
  • get_option_tradesGet option tradesGETThe 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 tradesGETThe 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 symbolGETThe historical stock trades API provides trade data for a stock symbol between the specified dates.

Auction, 2 operations

  • get_stock_auctionsGet stock auctionsGETThe historical auctions endpoint provides auction prices for a list of stock symbols between the specified dates.
  • get_stock_auctions_for_symbolGet stock auctions for symbolGETThe historical auctions endpoint provides auction prices for the given stock symbol between the specified dates.

Condition, 2 operations

  • get_option_condition_codesGet option condition codesGETReturns the mapping between the condition codes and names.
  • get_stock_condition_codesGet stock condition codesGETReturns the mapping between the condition codes and names.

Exchange, 2 operations

  • get_option_exchange_codesGet option exchange codesGETReturns the mapping between the option exchange codes and the corresponding exchange names.
  • get_stock_exchange_codesGet stock exchange codesGETReturns the mapping between the stock exchange codes and the corresponding exchange names.

Corporate action, 1 operation

  • list_corporate_actionsList corporate actionsGETThis endpoint provides data about the corporate actions for each given symbol over a specified time period.

Logo, 1 operation

  • get_company_logoGet company logoGETGet the image of the company logo for the given symbol.

Most active, 1 operation

  • get_most_active_stocksGet most active stocksGETReturns 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 moversGETReturns 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 newsGETReturns 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 orderbooksGETThe 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 pricesGETThis 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