# Alpaca API GET /v2/stocks/snapshots

Independent and unofficial. Not affiliated with or endorsed by any broker or platform named here. Educational only: nothing here is advice, and nothing here recommends a broker or a trade.

This is the markdown version of https://openbrokerapi.com/brokers/alpaca/endpoints/stock-snapshots, written from the same records as that page.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

For each symbol, the latest trade, latest quote, current minute bar, current daily bar and previous daily bar in one reply.

- Request: `GET /v2/stocks/snapshots`
- Version: v2
- Group: Market data (stocks)
- Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/openapi/market-data-api.json), checked 2026-11-30.

Note: Market Data API: the host is https://data.alpaca.markets, not the trading host, so the base address in a generated sample must be changed to it. Authentication is the same two headers as the Trading API. The OpenAPI document gives 200 with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers, and 400, 401, 403, 429 and 500. The reply is keyed by symbol with no wrapper. The single symbol form GET /v2/stocks/{symbol}/snapshot is not recorded separately.

## Parameters

- `symbols` (in query, type string, required): Comma separated symbols, such as AAPL,TSLA.
- `feed` (in query, type string, optional): sip, iex, delayed_sip, boats, overnight or otc. Default sip with a subscription that allows it, otherwise iex.
- `currency` (in query, type string, optional): The currency of the prices, an ISO 4217 code. Default USD.

### Authentication headers

- `APCA-API-KEY-ID` (type string, required): Your API key id. Placeholder only: never paste a real key into this site.
- `APCA-API-SECRET-KEY` (type string, required): The secret key that goes with the key id. Placeholder only: never paste a real secret into this site.

## Request

Written from the method, path and parameters recorded on this page, against the demo host. Not executed against a live or demo account. Credentials are read from environment variables on your own machine and are never entered on this site. The request builder at https://openbrokerapi.com/tools/request-builder writes these same snippets, from the same record.

### Python

```python
# Set ALPACA_API_KEY_ID, ALPACA_API_SECRET_KEY as environment variables first. Never paste real values into code.
# Replace each {placeholder}, "..." and 0 with a real value before running.
# Optional and not shown: query parameters feed, currency.
import os
import requests

BASE_URL = "https://paper-api.alpaca.markets"  # the demo host
headers = {
    "APCA-API-KEY-ID": os.environ["ALPACA_API_KEY_ID"],
    "APCA-API-SECRET-KEY": os.environ["ALPACA_API_SECRET_KEY"],
}
params = {"symbols": "{symbols}"}
resp = requests.get(BASE_URL + "/v2/stocks/snapshots", headers=headers, params=params, timeout=10)
resp.raise_for_status()
print(resp.json())
```

### JavaScript

```javascript
// Set ALPACA_API_KEY_ID, ALPACA_API_SECRET_KEY as environment variables first. Never paste real values into code.
// Replace each {placeholder}, "..." and 0 with a real value before running.
// Optional and not shown: query parameters feed, currency.
// Run as a module, for example a .mjs file, on a Node version that has fetch built in.
const BASE_URL = "https://paper-api.alpaca.markets"; // the demo host
const res = await fetch(BASE_URL + "/v2/stocks/snapshots" + "?symbols={symbols}", {
  method: "GET",
  headers: {
    "APCA-API-KEY-ID": process.env.ALPACA_API_KEY_ID,
    "APCA-API-SECRET-KEY": process.env.ALPACA_API_SECRET_KEY,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
```

### curl

```bash
# Set ALPACA_API_KEY_ID, ALPACA_API_SECRET_KEY as environment variables first. Never paste real values into code.
# Replace each {placeholder}, "..." and 0 with a real value before running.
# Optional and not shown: query parameters feed, currency.
curl -X GET "https://paper-api.alpaca.markets/v2/stocks/snapshots?symbols={symbols}" \
  -H "APCA-API-KEY-ID: $ALPACA_API_KEY_ID" \
  -H "APCA-API-SECRET-KEY: $ALPACA_API_SECRET_KEY"
```

## Response

A mock response. The values are invented, so check field names against the official reference.

```json
{
  "_mock": true,
  "MOCK": {
    "latestTrade": {
      "t": "2026-11-30T14:30:00Z",
      "p": 100.5,
      "s": 100,
      "x": "V",
      "i": 1,
      "c": [
        "@"
      ],
      "z": "C"
    },
    "latestQuote": {
      "t": "2026-11-30T14:30:00Z",
      "bp": 100.45,
      "bs": 3,
      "ap": 100.5,
      "as": 2,
      "bx": "V",
      "ax": "V",
      "c": [
        "R"
      ],
      "z": "C"
    },
    "minuteBar": {
      "t": "2026-11-30T14:30:00Z",
      "o": 100.4,
      "h": 100.6,
      "l": 100.4,
      "c": 100.5,
      "v": 1200,
      "n": 15,
      "vw": 100.5
    },
    "dailyBar": {
      "t": "2026-11-30T05:00:00Z",
      "o": 100,
      "h": 101,
      "l": 99.5,
      "c": 100.5,
      "v": 2000000,
      "n": 15000,
      "vw": 100.3
    },
    "prevDailyBar": {
      "t": "2026-11-27T05:00:00Z",
      "o": 99,
      "h": 100.2,
      "l": 98.9,
      "c": 100,
      "v": 1800000,
      "n": 14000,
      "vw": 99.6
    }
  }
}
```

## Limits that apply at Alpaca

- client_order_id length: 128 characters
  - Scope: POST /v2/orders and PATCH /v2/orders/{order_id}
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/openapi/trading-api.json), checked 2026-11-30.
  - Note: From the CreateOrderRequest and PatchOrderRequest schemas.
- Crypto order size: 200,000 US dollars notional per order
  - Scope: Crypto spot orders, buy or sell
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/us/docs/crypto-trading.md), checked 2026-11-30.
  - Note: The Crypto Spot Trading page: each order is limited to 200,000 US dollars in notional value.
- Market data historical API, Basic plan: 200 requests per minute
  - Scope: Market Data API historical calls, Basic (free) plan
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/us/docs/about-market-data-api.md), checked 2026-11-30.
  - Note: The About Market Data API page: Historical API limit of 200 calls per minute on Basic, with IEX real time data and stock history since 2016 limited to data 15 minutes old.
- Market data points per page: 10,000 data points per page
  - Scope: Market Data API historical bars, trades and quotes, counted across all symbols
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/openapi/market-data-api.json), checked 2026-11-30.
  - Note: The limit query parameter: default 1000, maximum 10000, counted across every symbol in the request. Pages continue with next_page_token.
- Market data historical API, Algo Trader Plus: 10,000 requests per minute
  - Scope: Market Data API historical calls, Algo Trader Plus plan (99 US dollars a month)
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/us/docs/about-market-data-api.md), checked 2026-11-30.
  - Note: The About Market Data API page: Historical API limit of 10,000 calls per minute on Algo Trader Plus.
- GTC order age: 90 days
  - Scope: Orders with time in force gtc
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/us/docs/orders-at-alpaca.md), checked 2026-11-30.
  - Note: The Placing Orders page: GTC orders are cancelled automatically 90 days after creation, the date shown in expires_at, by a job that runs at 4:15 pm ET.
- Trading API request rate: HTTP 429 above the limit, with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers on replies; no figure on the pages opened
  - Scope: Trading API, per account
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/openapi/trading-api.json), checked 2026-11-30.
  - Note: The Trading API OpenAPI document gives the 429 reply and the three headers. None of the Trading API pages opened on 30 Nov 2026 prints a number, so this site records none.
- Market data WebSocket authentication timeout: 10 seconds
  - Scope: Market data WebSocket, from connecting to the auth message
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/us/docs/streaming-market-data.md), checked 2026-11-30.
  - Note: Error 404 auth timeout where no auth message arrives in time.
- Market data WebSocket connections: Depends on the subscription; 1 for many subscriptions and with none. A second connection is answered with error 406 connection limit exceeded
  - Scope: Market data WebSocket, per account
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/us/docs/streaming-market-data.md), checked 2026-11-30.
  - Note: The WebSocket Stream page gives no table of figures by plan.
- Market data WebSocket symbols, Basic plan: 30 symbol subscriptions
  - Scope: Market data WebSocket, US equities, Basic (free) plan; Algo Trader Plus is unlimited
  - Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/us/docs/about-market-data-api.md), checked 2026-11-30.
  - Note: The About Market Data API page: up to 30 WebSocket symbol subscriptions on Basic for equities, unlimited on Algo Trader Plus; for options 200 quote subscriptions on Basic and 1,000 on Algo Trader Plus. Over the limit the stream answers error 405.

## More on the Alpaca API

- [All Alpaca API endpoints](https://openbrokerapi.com/brokers/alpaca/endpoints): 25 documented, grouped by what they do.
- [Alpaca API quickstart](https://openbrokerapi.com/brokers/alpaca/quickstart)
- [All Alpaca API error codes](https://openbrokerapi.com/errors/alpaca)
- [Alpaca API page](https://openbrokerapi.com/brokers/alpaca): The full record: access, authentication, limits and the source for each.
- [Alpaca API as an OpenAPI file](https://openbrokerapi.com/specs/alpaca.json): Generated from these endpoint records. Independent and unofficial.

## Licence and how to cite

The records behind this page are all rights reserved. This file is the page itself, at its own address, in another format. It is not part of the CC BY 4.0 downloads listed at https://openbrokerapi.com/data. Quote from it with a link to the page.

Cite as: Alpaca API GET /v2/stocks/snapshots. Broker API Hub, https://openbrokerapi.com/brokers/alpaca/endpoints/stock-snapshots, newest check 2026-11-30.

Where you rely on a single figure, cite the source and the checked date printed beside it as well. Where this page and a broker's own documentation differ, the documentation wins.
