# Alpaca unsubscribe

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/messages/unsubscribe, 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.

Removes symbols from the connection's subscriptions, by channel. The reply is the whole list that remains.

- Message: `unsubscribe`
- Interface: Alpaca WebSocket streams
- Group: Market data
- Status: verified. Source: [docs.alpaca.markets](https://docs.alpaca.markets/us/docs/streaming-market-data.md), checked 2026-11-30.

This is a message of the Alpaca WebSocket streams, not an HTTP endpoint. It has no method and no path: it is sent as JSON, or as MessagePack where the client asks for it, over an open WebSocket connection. It is in no OpenAPI file on this site and the request builder does not list it.

## The message

- Name: `unsubscribe`
- Direction: Request, sent by the client
- Carried by: WebSocket. Every message is a JSON array of objects, each with a T field naming its type; control messages (success, error, subscription) come one to an array. The client must authenticate within 10 seconds of connecting, with a message or with headers in the handshake. The connection limit depends on the plan and is 1 for many; a second connection is answered with error 406.
- Stocks, IEX feed (free plan): `wss://stream.data.alpaca.markets/v2/iex`
- Stocks, SIP feed (Algo Trader Plus): `wss://stream.data.alpaca.markets/v2/sip`
- Stocks, 15 minute delayed SIP: `wss://stream.data.alpaca.markets/v2/delayed_sip`
- Test stream outside market hours, symbol FAKEPACA: `wss://stream.data.alpaca.markets/v2/test`
- Crypto, Alpaca US: `wss://stream.data.alpaca.markets/v1beta3/crypto/us`

## Fields

- `action` (type string, required or not: not stated): Names the message: unsubscribe.
- `trades` (type array of strings, required or not: not stated): Symbols to stop receiving on the trades channel.
- `quotes` (type array of strings, required or not: not stated): Symbols to stop receiving on the quotes channel.
- `bars` (type array of strings, required or not: not stated): Symbols to stop receiving on the bars channel.
- `updatedBars` (type array of strings, required or not: not stated): Symbols to stop receiving on the updatedBars channel.
- `dailyBars` (type array of strings, required or not: not stated): Symbols to stop receiving on the dailyBars channel.
- `statuses` (type array of strings, required or not: not stated): Symbols to stop receiving on the statuses channel.
- `lulds` (type array of strings, required or not: not stated): Symbols to stop receiving on the lulds channel.
- `imbalances` (type array of strings, required or not: not stated): Symbols to stop receiving on the imbalances channel.
- `orderbooks` (type array of strings, required or not: not stated): Symbols to stop receiving on the orderbooks channel.

## What arrives

`subscription`: The whole subscription list after the change, in the same shape as the answer to subscribe.

- `T` (type string, required or not: not stated): subscription.

## Sample

Written by this site from the fields recorded on this page. It has not been run against a terminal, a server or an account, and the values in it are placeholders. No credential is typed into it: where a field holds one, the placeholder says where it comes from. Nothing is entered on this site.

```json
{
  "action": "unsubscribe",
  "quotes": ["AAPL"]
}
```

## 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.

## Related Alpaca messages: Market data

- [b](https://openbrokerapi.com/brokers/alpaca/messages/bar-message): A minute bar for a subscribed symbol, sent just after each minute: open, high, low, close, volume, trade count and VWAP. The same shape arrives as d for daily bars and u for updated bars.
- [q](https://openbrokerapi.com/brokers/alpaca/messages/quote-message): The best bid and ask for a subscribed symbol, with sizes and, for stocks, the exchange on each side.
- [subscribe](https://openbrokerapi.com/brokers/alpaca/messages/subscribe): Adds symbols to the connection's subscriptions, by channel. The message adds to the current set, so send only what is new; the reply lists everything now subscribed.
- [t](https://openbrokerapi.com/brokers/alpaca/messages/trade-message): One trade (print) for a subscribed symbol: price, size, exchange, conditions and a nanosecond timestamp. Crypto trades add the taker side.

## More on Alpaca

- [All Alpaca messages](https://openbrokerapi.com/brokers/alpaca/messages): 9 documented here, grouped by what they do.
- [Alpaca API quickstart](https://openbrokerapi.com/brokers/alpaca/quickstart)
- [All Alpaca 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.

## 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 unsubscribe. Broker API Hub, https://openbrokerapi.com/brokers/alpaca/messages/unsubscribe, 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.
