Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Subscriptions

Authentication

Your IP address must be whitelisted to connect. Once whitelisted via the /ip/add#post-ipadd) endpoint, authentication is automatic - no headers or query parameters needed.

The server checks the client IP against the whitelist. If found, the connection is authenticated under the associated AlphaHype seat holder's address.

IP whitelisting can be managed on alphaticks.


Subscription Types

The subscription field in subscribe/unsubscribe messages is a discriminated union based on the type property.

TypeDescriptionUpdates
l1BookTop of bookPeriodic snapshots
l2BookAggregated price levelsPeriodic snapshots
l3BookOrder-level, lightweightSnapshot + incremental
l4BookOrder-level, full detailSnapshot + incremental
tradesTrade streamReal-time
candleCandlestick dataReal-time
allMidsAll mid pricesPeriodic (1s)
impactPriceImpact pricesPeriodic
orderUpdatesOrder statusReal-time
userFillsUser fillsReal-time

Coin Parameter

Most subscriptions require a coin parameter:

  • Perpetual contracts: "BTC", "ETH", "SOL", etc.
  • Spot markets: Use the @ prefix, e.g., "@1" for spot asset ID 1

Rate Limits

See Rate Limits for subscription and message limits.