API ReferenceWebSocketUser Data Stream

User Data Stream

Real-time private account and order events.

The user data stream pushes your private events, order updates and balance changes, the moment they happen, so you never poll your account.

1. Create a listen key

POST/api/v1/userDataStreamWeight: 1API_KEY

Returns a listenKey that identifies your private stream. It is valid for 60 minutes.

json
{ "listenKey": "aX9f2c...e01" }

2. Connect

text
wss://stream.spacedex.com/ws/<listenKey>

3. Keep it alive

PUT/api/v1/userDataStreamWeight: 1API_KEY

Send a keepalive at least every 30 minutes to extend the listen key another 60 minutes. Delete it with DELETE when you are done.

Events

An executionReport arrives whenever one of your orders changes, and an outboundAccountPosition arrives whenever a balance changes.

json
{
  "e": "executionReport",
  "s": "BTCUSDT",
  "i": 288274,
  "S": "BUY",
  "X": "FILLED",
  "l": "0.01000000",
  "L": "64000.00",
  "n": "0.64",
  "N": "USDT",
  "T": 1717430400500
}
© 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.