RULE CHANGE
Market data streaming
Compression enabled by default for books, trades, candles; book snapshot frequency limited to one per 150 ms; connection admission rate reduced from 2048 to 30 per minute.
What this means
Permessage-deflate compression must be enabled in WebSocket clients for books, trades, and candles; connection admissions per minute per source address reduced from 2,048 with 2,048 burst to 30 with burst of 10; book snapshots now limited to at most one per market every 150 ms; Retry-After header added to HTTP 429 responses with value of 60 seconds. Market data delivery and REST API usage remain unchanged.
| What changed | Before Oct 20, 2026 | After Oct 23, 2026 | |
|---|---|---|---|
| 30 connection admissions per minute per source, with a burst of 10 · Excess request returns an error; heartbeat pings are excluded. | Excess upgrades return HTTP 429. | → | Excess upgrades return HTTP 429 with Retry-After: 60. |
▸ View exact changes
The change in place, line by line
Before Oct 20, 2026
Market data streaming
Source: https://docs.myfundedperpetuals.com/market-streaming
Subscribe to live prices, order books, trades, and candles over the public WebSocket API.
Connect
Open wss://api-stream.myfundedperpetuals.com/v1/market-data. Market data is
public: no API key, cookie, or authentication frame is required. Use this dedicated endpoint for developer integrations. Never send your trading API key to this
socket. Live and sandbox trading use the same market feed.
− Send one JSON object per WebSocket text frame. Compression is optional.
− Multiplex your subscriptions on one connection. This stream carries market
observations; submit orders through the REST API.
Market prices do not guarantee the price or size of a simulated fill.
javascript theme={null}
const socket = new WebSocket(
"wss://api-stream.myfundedperpetuals.com/v1/market-data",
);
const subscriptions = new Map();
socket.onopen = () =>
socket.send(
JSON.stringify({
op: "sub",
id: 1,
Prices and quantities in ticks, trades, candles, and books are decimal
strings. Use decimal arithmetic when calculating with them. Market
statistics use JSON numbers or null. Numeric time, openTime, and
closeTime fields are Unix milliseconds; receivedAt is a timestamp string.
| Event | Fields |
|---|---|
| tick | provider, symbol, kind (mark, mid, or last), price, time, receivedAt |
| book | provider, symbol, time, bids, asks, receivedAt; each level has px, sz, and nullable order count n |
| trade | provider, symbol, tradeId, side (buy or sell, the aggressor), price, size, time, receivedAt |
| candle | provider, symbol, interval, openTime, closeTime, open, high, low, close, volume, nullable quoteVolume and trades, isFinal, receivedAt |
| marketStats | provider, symbol, time, receivedAt, plus optional statistics described below |
| providerStatus | provider, state (idle, connecting, connected, closed, or error), nullable reason, receivedAt |
Books are complete snapshots, with bids descending and asks ascending. Replace
− your previous book; do not apply them as deltas. Candles replace the existing
bar identified by provider, symbol, interval, and openTime. Trade IDs are
unique within a provider and symbol; deduplicate retained replay accordingly.
Tick kinds represent different price observations, so do not overwrite a mark
with a midpoint without an explicit pricing policy.
Market statistics are patches. Omitted fields preserve the previous value;
null explicitly clears it. Fields include markPx, change24hPct,
fundingHourly, fundingRate, fundingIntervalHours, nextFundingTime,
openInterestUsd, and dayNtlVlm. Optional fundingSnapshot contains an atomic
funding observation: decimal strings fundingRate and fundingPrice, numeric
fundingIntervalHours, nextFundingTime, and observedAt, and
fundingPriceKind (mark or oracle). It may also be null.
Historical candles and heartbeat
used as your account fill ledger. A slow client can lose superseded state or
be disconnected; always monitor freshness.
On draining, connect a replacement, subscribe, wait for its initial snapshot
boundaries, and then close the old socket. Deduplicate overlapping events.
If the replacement fails, keep reading the old socket until it ends and retry
with backoff. Avoid unlimited reconnect loops on permanent filter errors.
| Bound | Behavior when exceeded |
|---|---|
| 256 active subscriptions per connection | New subscription rejected. |
| 32 symbols and 6 providers per subscription | Invalid filter rejected. |
| 64 distinct provider/symbol leases across candle, book, and trade subscriptions per connection | New subscription rejected. |
| 16 concurrent requests, including at most 4 history requests per connection | Excess request returns an error; heartbeat pings are excluded. |
| 512 active connections per source address | Upgrade rejected with HTTP 429. |
−
| Bound | Behavior when exceeded |
|---|---|
| 2,048 connection admissions per minute per source, with a 2,048 burst | Excess upgrades return HTTP 429. |
| Shared process connection, memory, and upstream budgets | Upgrade may return HTTP 503 or subscription/request may be rejected. Retry transient capacity failures with backoff. |
These budgets belong to the developer stream and are separate from the website feed.
The service also limits simultaneous history work and one-shot status requests;
prefer a status subscription and back off when capacity is exhausted. Keep one multiplexed socket per
client, unsubscribe unused views, cache closed candles, and avoid polling REST
quotes for every price update. Market streaming adds no REST quota usage.
Account balances, positions, orders, and fills are available through REST.
Private account streaming is not available.
After Oct 23, 2026
Market data streaming
Source: https://docs.myfundedperpetuals.com/market-streaming
Subscribe to live prices, order books, trades, and candles over the public WebSocket API.
Connect
Open wss://api-stream.myfundedperpetuals.com/v1/market-data. Market data is
public: no API key, cookie, or authentication frame is required. Use this dedicated endpoint for developer integrations. Never send your trading API key to this
socket. Live and sandbox trading use the same market feed.
+ Send one JSON object per WebSocket text frame. Enable permessage-deflate
+ compression in your WebSocket client: books, trades, and candles are several
+ times smaller compressed. Keep one long-lived connection and multiplex your
+ subscriptions on it; do not reconnect to poll for a fresh snapshot. This stream carries market
observations; submit orders through the REST API.
Market prices do not guarantee the price or size of a simulated fill.
javascript theme={null}
const socket = new WebSocket(
"wss://api-stream.myfundedperpetuals.com/v1/market-data",
);
const subscriptions = new Map();
socket.onopen = () =>
socket.send(
JSON.stringify({
op: "sub",
id: 1,
Prices and quantities in ticks, trades, candles, and books are decimal
strings. Use decimal arithmetic when calculating with them. Market
statistics use JSON numbers or null. Numeric time, openTime, and
closeTime fields are Unix milliseconds; receivedAt is a timestamp string.
| Event | Fields |
|---|---|
| tick | provider, symbol, kind (mark, mid, or last), price, time, receivedAt |
| book | provider, symbol, time, bids, asks, receivedAt; each level has px, sz, and nullable order count n |
| trade | provider, symbol, tradeId, side (buy or sell, the aggressor), price, size, time, receivedAt |
| candle | provider, symbol, interval, openTime, closeTime, open, high, low, close, volume, nullable quoteVolume and trades, isFinal, receivedAt |
| marketStats | provider, symbol, time, receivedAt, plus optional statistics described below |
| providerStatus | provider, state (idle, connecting, connected, closed, or error), nullable reason, receivedAt |
Books are complete snapshots, with bids descending and asks ascending. Replace
+ your previous book; do not apply them as deltas. Each book subscription
+ receives at most one snapshot per market every 150 ms, always the newest; a
+ snapshot superseded within that window is not sent. Candles replace the existing
bar identified by provider, symbol, interval, and openTime. Trade IDs are
unique within a provider and symbol; deduplicate retained replay accordingly.
Tick kinds represent different price observations, so do not overwrite a mark
with a midpoint without an explicit pricing policy.
Market statistics are patches. Omitted fields preserve the previous value;
null explicitly clears it. Fields include markPx, change24hPct,
fundingHourly, fundingRate, fundingIntervalHours, nextFundingTime,
openInterestUsd, and dayNtlVlm. Optional fundingSnapshot contains an atomic
funding observation: decimal strings fundingRate and fundingPrice, numeric
fundingIntervalHours, nextFundingTime, and observedAt, and
fundingPriceKind (mark or oracle). It may also be null.
Historical candles and heartbeat
used as your account fill ledger. A slow client can lose superseded state or
be disconnected; always monitor freshness.
On draining, connect a replacement, subscribe, wait for its initial snapshot
boundaries, and then close the old socket. Deduplicate overlapping events.
If the replacement fails, keep reading the old socket until it ends and retry
with backoff. Avoid unlimited reconnect loops on permanent filter errors.
| Bound | Behavior when exceeded |
|---|---|
| 256 active subscriptions per connection | New subscription rejected. |
| 32 symbols and 6 providers per subscription | Invalid filter rejected. |
| 64 distinct provider/symbol leases across candle, book, and trade subscriptions per connection | New subscription rejected. |
| 16 concurrent requests, including at most 4 history requests per connection | Excess request returns an error; heartbeat pings are excluded. |
| 512 active connections per source address | Upgrade rejected with HTTP 429. |
+
| Bound | Behavior when exceeded |
|---|---|
| 30 connection admissions per minute per source, with a burst of 10 | Excess upgrades return HTTP 429 with Retry-After: 60. |
| Shared process connection, memory, and upstream budgets | Upgrade may return HTTP 503 or subscription/request may be rejected. Retry transient capacity failures with backoff. |
These budgets belong to the developer stream and are separate from the website feed.
The service also limits simultaneous history work and one-shot status requests;
prefer a status subscription and back off when capacity is exhausted. Keep one multiplexed socket per
client, unsubscribe unused views, cache closed candles, and avoid polling REST
quotes for every price update. Market streaming adds no REST quota usage.
Account balances, positions, orders, and fills are available through REST.
Private account streaming is not available.
Market data streaming
Source: https://docs.myfundedperpetuals.com/market-streaming
Subscribe to live prices, order books, trades, and candles over the public WebSocket API.
Connect
Open wss://api-stream.myfundedperpetuals.com/v1/market-data. Market data is
public: no API key, cookie, or authentication frame is required. Use this dedicated endpoint for developer integrations. Never send your trading API key to this
socket. Live and sandbox trading use the same market feed.
− Send one JSON object per WebSocket text frame. Compression is optional.
− Multiplex your subscriptions on one connection. This stream carries market
+ Send one JSON object per WebSocket text frame. Enable permessage-deflate
+ compression in your WebSocket client: books, trades, and candles are several
+ times smaller compressed. Keep one long-lived connection and multiplex your
+ subscriptions on it; do not reconnect to poll for a fresh snapshot. This stream carries market
observations; submit orders through the REST API.
Market prices do not guarantee the price or size of a simulated fill.
javascript theme={null}
const socket = new WebSocket(
"wss://api-stream.myfundedperpetuals.com/v1/market-data",
);
const subscriptions = new Map();
socket.onopen = () =>
socket.send(
JSON.stringify({
op: "sub",
id: 1,
Prices and quantities in ticks, trades, candles, and books are decimal
strings. Use decimal arithmetic when calculating with them. Market
statistics use JSON numbers or null. Numeric time, openTime, and
closeTime fields are Unix milliseconds; receivedAt is a timestamp string.
| Event | Fields |
|---|---|
| tick | provider, symbol, kind (mark, mid, or last), price, time, receivedAt |
| book | provider, symbol, time, bids, asks, receivedAt; each level has px, sz, and nullable order count n |
| trade | provider, symbol, tradeId, side (buy or sell, the aggressor), price, size, time, receivedAt |
| candle | provider, symbol, interval, openTime, closeTime, open, high, low, close, volume, nullable quoteVolume and trades, isFinal, receivedAt |
| marketStats | provider, symbol, time, receivedAt, plus optional statistics described below |
| providerStatus | provider, state (idle, connecting, connected, closed, or error), nullable reason, receivedAt |
Books are complete snapshots, with bids descending and asks ascending. Replace
− your previous book; do not apply them as deltas. Candles replace the existing
+ your previous book; do not apply them as deltas. Each book subscription
+ receives at most one snapshot per market every 150 ms, always the newest; a
+ snapshot superseded within that window is not sent. Candles replace the existing
bar identified by provider, symbol, interval, and openTime. Trade IDs are
unique within a provider and symbol; deduplicate retained replay accordingly.
Tick kinds represent different price observations, so do not overwrite a mark
with a midpoint without an explicit pricing policy.
Market statistics are patches. Omitted fields preserve the previous value;
null explicitly clears it. Fields include markPx, change24hPct,
fundingHourly, fundingRate, fundingIntervalHours, nextFundingTime,
openInterestUsd, and dayNtlVlm. Optional fundingSnapshot contains an atomic
funding observation: decimal strings fundingRate and fundingPrice, numeric
fundingIntervalHours, nextFundingTime, and observedAt, and
fundingPriceKind (mark or oracle). It may also be null.
Historical candles and heartbeat
used as your account fill ledger. A slow client can lose superseded state or
be disconnected; always monitor freshness.
On draining, connect a replacement, subscribe, wait for its initial snapshot
boundaries, and then close the old socket. Deduplicate overlapping events.
If the replacement fails, keep reading the old socket until it ends and retry
with backoff. Avoid unlimited reconnect loops on permanent filter errors.
| Bound | Behavior when exceeded |
|---|---|
| 256 active subscriptions per connection | New subscription rejected. |
| 32 symbols and 6 providers per subscription | Invalid filter rejected. |
| 64 distinct provider/symbol leases across candle, book, and trade subscriptions per connection | New subscription rejected. |
| 16 concurrent requests, including at most 4 history requests per connection | Excess request returns an error; heartbeat pings are excluded. |
| 512 active connections per source address | Upgrade rejected with HTTP 429. |
−
| Bound | Behavior when exceeded |
|---|---|
| 2,048 connection admissions per minute per source, with a 2,048 burst | Excess upgrades return HTTP 429. |
+
| Bound | Behavior when exceeded |
|---|---|
| 30 connection admissions per minute per source, with a burst of 10 | Excess upgrades return HTTP 429 with Retry-After: 60. |
| Shared process connection, memory, and upstream budgets | Upgrade may return HTTP 503 or subscription/request may be rejected. Retry transient capacity failures with backoff. |
These budgets belong to the developer stream and are separate from the website feed.
The service also limits simultaneous history work and one-shot status requests;
prefer a status subscription and back off when capacity is exhausted. Keep one multiplexed socket per
client, unsubscribe unused views, cache closed candles, and avoid polling REST
quotes for every price update. Market streaming adds no REST quota usage.
Account balances, positions, orders, and fills are available through REST.
Private account streaming is not available.