post https://api.cvex.trade/v1/trading/order
This endpoint is allow to create orders to using CVEX API. The endpoint requires the submission of necessary headers for authentication and the provision of detailed order parameters within the request body.
Required Request Headers:
X-Signature
: The required digital signature of the request.
Body Parameters:
customer_order_id
: A unique identifier for the order provided by the API customer. This ID must be unique to prevent duplication.contract
: The symbol or numeric ID of the contract for which the order is being placed.type
: Specifies the type of order, such as limit or market"limit_price
: (Optional) The limit price for the order, applicable only if the order type is limit.time_in_force
: Defines how long the order remains valid before expiration. Options include "GTC" (Good Till Canceled), "IOC" (Immediate or Cancel), "FOK" (Fill or Kill), and "PO" (Post Only).reduce_only
: A boolean flag indicating whether the order should only reduce a position, not increase it.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:
201 Created
: Successfully created order details including status, order ID, transaction hash, and associated events.422 Unprocessable Entity
: Order was rejected by the protocol.409 Conflict
: A conflict occurred, typically due to an existing order with the same customer order ID.
Undocumented
All possible API behavior is not documented yet.
Each request to this endpoint costs 1 API credit.