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.Open Order Limits
To prevent abuse, we enforce a limit on the number of open orders per market. The maximum number of open orders is 80 per market for market makers and 40 for other API users.Price and quantity restrictions
The order price must be within 50% of the current index price for the market. Otherwise, the order will be rejected with a400
status code.
We also enforce a tick size, lot size and minimum order value for each market. Please refer to Product Specifications page for details.
Order Quantity Fields
In theorder
object, quantity
represents the remaining quantity and filledQuantity
represents the cumulative filled quantity.
The two values will add up to the original order quantity.
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. If you haven’t set a leverage value for your account, it will default to1
. To update the leverage, you can use Update Leverage request.
Acknowledgment And Confirmation
When you place an order, you will first receive a response to acknowledge that the request has been received. Then you will receive another response to confirm that the order has been successfully created. There are three differences between these two responses:Acknowledgment | Confirmation | |
---|---|---|
Body | order created, pending acceptance | order accepted |
Order Status | pending | active |
Status Code | 202 | 200 |
Post-Only Option For Limit Orders
When placing a limit order, you can choose to set thepostOnly
option to true
or false
. By default, this option is set to false
, which means the order may match with an existing order in the order book and you may become the taker.
We provide a post-only option for limit orders. When this option is set to true
, the order will only be placed if it does not match with an existing order in the order book.
Using post-only orders will ensure that you are always the maker and never the taker.
If the order would match with an existing order, you will first receive the normal Acknowledgment and Confirmation responses, followed by a 400
response with resultType: rejectOrder
.
For more details, refer to ourOrder Rejected Notifications
Receive Window
The receive window constraint applies only to order creation, not to order cancellation. Order cancellation requests are not subject to this time limit.
400
status code and an error message receive window exceeded, order rejected
indicating that the request has timed out.
The order status in the response will be set to rejected
. You can then retry the request with a new clientRequestId
if you still wish to place the order.
Note that if you keep getting this error too often, it may indicate that your order creation/cancellation rate is at or above our current per-market processing capacity.
We recommend lowering the rate as needed, as requests beyond our capacity are rejected and won’t improve throughput.
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) :