Stream Live Perp Market Ticks with the /perps WebSocket
Stream throttled live mark price, oracle price, funding rate, and volume for perpetual markets using the /perps Socket.IO namespace.
The /perps namespace pushes live snapshots for perpetual markets as they update. Subscribe to only the symbols your bot is trading — the server throttles delivery to at most ~4 pushes per second per symbol, so you get low-latency data without flooding your connection.Connect to this namespace at wss://api.alpha-labs.trade/perps.
The example below connects to /perps, subscribes to BTC and SOL once the connection is confirmed, logs each incoming tick, and then unsubscribes from SOL after 30 seconds.
Mid-book price in USD. null if the order book is empty.
oraclePriceUsd
number
Oracle reference price in USD.
fundingRatePercentage
number
Funding rate for the current funding interval.
openInterestBaseLots
number
Total open interest expressed in base lots.
volume24hUsd
number
Rolling 24-hour notional volume in USD.
prevDayPriceUsd
number
Price 24 hours ago, used to compute percentage change.
receivedAt
string (ISO 8601)
Timestamp when the snapshot was captured by the gateway.
All price, funding, and volume fields in market_tick are JavaScript numbers, not decimal strings. This differs from the REST API, which returns money values as decimal strings to preserve full precision. If you are calculating exact entry sizes or doing accounting, fetch prices from GET /api/v1/perps/markets to get the full-precision decimal-string contract.
Subscribe only to the symbols your bot is actively tracking. Subscriptions are per symbol, and the server already throttles delivery to ~4 ticks per second per symbol — so a focused subscription list keeps your processing overhead low.