post https://api.cvex.trade/v1/trading/replace-order
This endpoint is designed to replace an existing limit order with a new one while preserving the numeric order ID and customer order ID. The method will fail if the limit order no longer exists in the order book (e.g., if it has been cancelled, filled, etc.).
Required Request Headers:
X-Signature
: The required digital signature of the request.
Body Parameters:
id
: Numeric id or customer id of the order.type
: Specifies the type of order, such as limit or market"limit_price
: The limit price for the order.quantity_steps
: The size of the order expressed in the smallest tradable increments, always an integer. Only one quantity parameter should be provided.quantity_contracts
: The size of the order in terms of contracts. Only one quantity parameter should be provided.quantity_assets
: The size of the order in units of the underlying asset. Only one quantity parameter should be provided.timestamp
: Time of request creation, required for all trading requests. In milliseconds.recv_window
: The number of milliseconds after timestamp the request is valid for.
Responses:
200 OK
: Successfully created order details including status, order ID, transaction hash, and associated events.404 Not Found
: An order with provided id not found.
Undocumented
All possible API behavior is not documented yet.
Each request to this endpoint costs 1 API credits.