See rate limit applied to this WebSocket request.
Unique Client Request ID
For the current WebSocket request, you can optionally include a unique client request ID in the request body. The same client request ID will be found in the response and is used to match the response to the request. The client request ID must be a UUID.Cross-Leverage Multiplier
We use a cross-leverage approach in our trading platform. This means leverage is applied at the account level rather than the market or trade level. Despite the fact that the update leverage request is sent to a specific market, the leverage change will apply to all markets in the account. The currently supported leverage values are1
, 2
, 3
, 4
, and 5
. If the leverage has never been set for the account, it will default to 1
.
Acknowledgment And Confirmation
When you update the leverage, you will first receive a response to acknowledge that the request has been received. Then you will receive another response to confirm that the leverage has been successfully updated. There are two differences between these two responses:Acknowledgment | Confirmation | |
---|---|---|
Body | leverage update in progress, pending approval | leverage updated successfully |
Status Code | 202 | 200 |
URL
This stream can be subscribed per market and you will need to pass in the market in the URL query. See below.
Query params
Example value:
ETH-USD
. To get all supported markets, call /api/v1/markets endpoint.Headers
See Authorization section on how to retrieve authorization token. Once token is received, setSec-WebSocket-Protocol
headers in the WebSocket handshake request or on connect()
.
Example value (authorization token) :