API ReferenceWebSocketMarket Streams

Market Streams

Real-time public market data over WebSocket.

Market streams push live data as it happens, so you never poll for prices. Connect to a single stream, or combine many on one connection.

Connecting

text
Single stream:   wss://stream.spacedex.com/ws/<streamName>
Combined stream: wss://stream.spacedex.com/stream?streams=<s1>/<s2>/<s3>

Available streams

StreamPushes
<symbol>@tickerRolling 24h ticker, once per second
<symbol>@tradeEach executed trade in real time
<symbol>@depthOrder-book changes (diff updates)
<symbol>@kline_<interval>Candlestick updates for the interval

Stream names use the lowercase symbol. For example, live trades for BTCUSDT:

text
wss://stream.spacedex.com/ws/btcusdt@trade
json
{
  "e": "trade",
  "s": "BTCUSDT",
  "p": "64210.50",
  "q": "0.014",
  "m": false,
  "T": 1717430400500
}

Keeping a depth cache in sync

For a local order book: take a REST depth snapshot, then apply diff updates from the stream whose update id follows the snapshot's lastUpdateId. If you ever see a gap in update ids, discard the book and take a fresh snapshot.

NoteA connection is kept alive by the server with periodic ping frames; reply with a pong. Connections are recycled after 24 hours, so reconnect and resubscribe on close.
© 2018–2026 fexwave All rights reserved
Risk Warning

Cryptocurrencies and their derivatives are innovative financial products with great volatility and high investment risks. Although fexwave is committed to providing users with easy-to-use trading tools, trading itself is still a highly sophisticated field. Trading digital assets and their derivatives are subject to high market risk and price volatility and may result in partial or total loss of account funds. You must carefully consider and exercise clear judgment to evaluate your financial situation and the aforementioned risks before using fexwave Services. You shall be responsible for all losses arising therefrom. If necessary, please consult relevant professionals to make informed decisions before investing. By accessing, downloading, using or clicking on “I agree” to accept any fexwave Services provided by fexwave, you agree that you have read, understood and accepted all of the terms and conditions stipulated in fexwave's Terms of Use as well as our Privacy Policy.

Trading by copying or replicating the trades of other traders involves a high level of risks, even when copying or replicating the top-performing traders. Past performance of a fexwave community member is not a reliable indicator of future performance. Content on fexwave's trading platform is generated by members of its community and does not contain advice or recommendations by or on behalf of fexwave.