1wss://api.adjacent.markets/api/v1/stream
pro or premium.index_id or by ticker. The match ignores case. Every record uses the canonical index_id. Address a rate by rate_id.ak_ API key or an app session token.1003.connected.1234567{ "type": "connected", "protocol": 1, "session": "7f3c0c2e-1b4a-4d2e-9a11-0c6e5b2a9d70", "server_time": "2026-11-11T15:40:00.123456Z", "heartbeat_ms": 15000 }
session is opaque. It changes when the server accepts the socket. protocol is 1. A breaking change uses the path /api/v2/stream.Authorization: Bearer and the token on the handshake. The server checks the token and the plan before the upgrade completes. After a paid handshake you receive connected, then authenticated with no id.pro or premium plan connects.free gets forbidden and close 4004. An organization that disappears gets the same close. Prints stop. If that check cannot read the plan, the socket stays open.forbidden. Named subscriptions stay. The socket stays open.not_found.bad_request, unauthorized, forbidden, not_found, not_available, slow_consumer, limit_exceeded, and service_error.| Cap | Value |
| Connections per API key | 10 |
Subscriptions (sid) per connection | 50 |
| Ids in one subscribe or unsubscribe | 50 |
| Set subscriptions | Premium only. One set is one sid. |
| Outbound queue | 32 messages or 1 MiB, whichever comes first |
| Frame size | 1 MiB |
| Auth deadline | 10 seconds |
limit_exceeded and closes with 4029.op on a command. Data frames use type. Set id on each command so you can match the ack. The server sets one sid for each channel and canonical id. A set on that channel gets one sid.1{"op":"subscribe","id":2,"channel":"index.price","ids":["RED","blue"]}
subscribed, then one snapshot per accepted id. Snapshots arrive in canonical id order.123456789{ "type": "subscribed", "id": 2, "channel": "index.price", "subscriptions": [ {"sid": 10, "id": "red", "epoch": 1}, {"sid": 11, "id": "blue", "epoch": 1} ] }
not_found. The known ids still subscribe.1{"type":"error","id":2,"code":"not_found","channel":"index.price","ids":["nope"]}
sid and epoch. seq continues.set instead of a list of ids.indices is every index your authenticated GET would return. Use it on index.price, index.constituents, index.sleeves, index.implied_sleeves, and index.session.rates is every rate your authenticated GET would return. Use it on rate.price and rate.sources.sid, one epoch, and one seq. The 50-id cap does not apply. The 50-sid cap counts the set as one. A subscribe by id is unchanged.1{"op":"subscribe","id":6,"channel":"index.price","set":"indices"}
ids and set together. An unknown set is bad_request. A set on the wrong channel is bad_request.forbidden. Any other paid plan that is not Premium receives forbidden. The socket stays open.12345678{ "type": "error", "id": 6, "code": "forbidden", "message": "set subscriptions require a Premium plan", "channel": "index.price", "upgrade_url": "https://adjacent.markets/subscribe" }
upgrade_url is omitted when there is no page where you can buy a plan.members is the number of current ids.12345678{ "type": "subscribed", "id": 6, "channel": "index.price", "subscriptions": [ {"sid": 12, "set": "indices", "epoch": 1, "members": 2} ] }
index.priceindex.sleevesindex.implied_sleevesindex.sessionrate.pricerate.sourcessid. On the first subscribe, seq starts at 1 and increases by 1 for each snapshot. If a snapshot cannot be built, that member arrives as service_error.index.constituents set does not send opening snapshots. Read each basket with GET /api/v1/indices/{id}/constituents. An update still arrives when a member basket changes.sid stay. Later prints for a current member are update frames on the same sid. A new id you can read arrives on its next print. An id that leaves your visible set stops. You receive no removal frame.sid and the epoch. seq continues. Channels other than index.constituents send a fresh snapshot of the current members.unsubscribe.1{"op":"unsubscribe","id":3,"channel":"index.price","ids":["red"]}
ids to drop every named id on that channel. That command also drops the set when you hold one. The ack is unsubscribed. It includes set when a set was removed.1{"op":"unsubscribe","id":7,"channel":"index.price","set":"indices"}
set.subscriptions returns every subscription on the connection. A named row has id. A set row has set and no id.1{"op":"subscriptions","id":4}
snapshot sends the latest print for one sid. A named sid returns one snapshot. A set sid returns one snapshot per current member. Membership does not change.1{"op":"snapshot","id":5,"sid":10}
index.mark, index.methodology, index.nav, and index.funding return not_available. Nothing opens. A set on one of those channels does the same. * is not a set.123456789{ "type": "index.price", "kind": "snapshot", "sid": 10, "epoch": 1, "seq": 1, "as_of": "2026-11-11T15:40:00.123456Z", "data": {} }
kind is snapshot or update. as_of is the print time. For a price or rate frame, data.timestamp or data.updated_at matches as_of.seq.| Channel | What you receive | When an update arrives |
index.price | The published level, latest_price | A committed print for that index |
index.constituents | The full as-used basket | The as-used cycle changes |
index.sleeves | sleeves from the index detail | Those sleeve rows change |
index.implied_sleeves | implied_sleeves from the index detail | Those sleeve rows change |
index.session | Halt fields from the index detail | On subscribe, and when halt state changes |
rate.price | latest_price and spread on a 0 to 100 scale | A committed rate print |
rate.sources | sources from the rate detail | That print's source set changes |
index.sleeves or index.implied_sleeves returns an empty array.index.pricetimestamp. seq does not advance.123456789101112131415161718192021{ "type": "index.price", "kind": "update", "sid": 10, "epoch": 1, "seq": 42, "as_of": "2026-11-11T15:40:00.123456Z", "data": { "index_id": "red", "ticker": "RED", "methodology": "upfi", "quote_convention": "percent", "timestamp": "2026-11-11T15:40:00.123456Z", "price": 104.2, "price_raw": 104.05, "source": "live", "halted": false, "previous_close_1d": 103.7, "price_change_1d": 0.5 } }
index.constituentsdata contains index_id, computed_at, and constituents. Each constituent uses the REST fields kind, market_id, ticker, display_ticker, platform, weight, excluded, exclude_reason, price, and name. Volume and open interest are included when REST would send them. kind is market or index. A child index price is that child's published level.service_error. Read the REST list. The socket does not page.excluded true and exclude_reason set. A name that has never been priced stays at 0 and omits excluded.update replaces constituents in full. kind is snapshot when membership changes. kind is update when only weights or prices change. Both lists are complete. Replace your local list.index.sleeves and index.implied_sleevesdata is the REST field plus index_id.sleeves is populated for team indices. mark_price is a probability from 0 to 1 on that sleeve. It is not the index level.implied_sleeves level uses the sleeve unit. U-3 and CPI are percentage points. Other implied indices use the unit named by level_interpretation.index.session1234567{ "index_id": "red", "state": "publishing", "halted": false, "source": "live", "updated_at": "2026-11-11T15:40:00.123456Z" }
state is publishing or halted. When halted is true, the frame includes halt_reason, halt_valid_constituents, and halt_min_constituents when the index detail includes them.timestamp.rate.price and rate.sourcesprice and spread use a 0 to 100 scale. spread is the highest in-print source minus the lowest. A print older than seven days is omitted. The snapshot then omits price and sets stale to true.123456789{ "rate_id": "adj_redp", "timestamp": "2026-11-11T15:40:00.123456Z", "price": 52.4, "spread": 3.0, "methodology": "volume_weighted_average", "previous_close_1d": 51.5, "price_change_1d": 0.9 }
rate.sources data.sources is the REST sources array. A configured leg that missed the print has weight 0 and no latest_price. Each change replaces the list. Leg latest_price is the price that entered the print.op snapshot send kind snapshot. Drop your local copy for that sid and store the snapshot. Apply a later update only when its seq is next.update is the full latest record. Replace that record. Constituents, sleeves, implied sleeves, and rate sources arrive as full lists. Replace your local list.GET /api/v1/indices/{id}/prices?interval=1min, or the rate equivalent. Then apply the new snapshot.sid has its own seq and epoch. seq starts at 1 on the first snapshot. It increases by 1 for each later data frame on that sid. Acks, errors, and heartbeats do not use seq. A skipped minute does not use seq.sid, epoch, and seq.epoch changes, discard local state. Wait for a snapshot on that sid. Ignore updates until it arrives.kind is snapshot and seq is your last seq plus 1, replace local state. On a set sid, replace the member named in data.kind is update and seq is your last seq plus 1, replace local state with that record. On a set sid, that record is the member named in data.{"op":"snapshot","id":N,"sid":M} or unsubscribe and subscribe again.seq and the same epoch. seq does not reset to 1.seq shows a missing message.1{"type":"heartbeat","server_time":"2026-11-11T15:40:15.000000Z"}
4000. Your pings are answered. A text frame whose body is PING is bad_request.connected.session retires every previous sid. Discard local state and apply the new snapshots.1001. Reconnect on that code.seq. It does not merge two prints into one. When the queue passes 32 messages or 1 MiB, you receive slow_consumer if the frame still fits. The socket then closes with 4003.1{"type":"error","code":"slow_consumer"}