Create order
Changed onSubmits a new order to Paradex.
Returns an order status object with a unique order id assigned by Paradex. This order id serves as the primary identifier for the order.
The REST API performs basic validation and queues the order for risk checks (order status=NEW).
Once validation and risk checks are successful, the order is sent to the matching engine. The matching engine processes the order and updates the status to OPEN if the order is resting. If the order is fully filled or cannot be processed, the status changes to CLOSED and a cancel_reason code is provided (e.g., fully filled or no liquidity).
Request
- Base URLhttps://api.prod.paradex.trade/v1
- URLhttps://api.prod.paradex.trade/v1/orders
- AuthAPI key in header Authorization
Request body
Example request
{
"client_id": "123454321",
"market": "BTC-USD-PERP",
"on_behalf_of_account": "0x1234567890abcdef",
"price": "29500.12",
"size": "1.213"
}Response
Created
Example response
{
"account": "0x4638e3041366aa71720be63e32e53e1223316c7f0d56f7aa617542ed1e7512x",
"avg_fill_price": "26000",
"cancel_reason": "NOT_ENOUGH_MARGIN",
"client_id": "x1234",
"created_at": 1681493746016,
"id": "123456",
"last_updated_at": 1681493746016,
"market": "BTC-USD-PERP",
"price": "26000",
"published_at": 1681493746016,
"received_at": 1681493746016,
"remaining_size": "0",
"seq_no": 1681471234972000000,
"size": "0.05",
"timestamp": 1681493746016,
"trigger_price": "26000"
}Changes
- warning
added the new
ADDRESS_BOOK_NOT_PARADEX_ACCOUNTenum value to the////response property for the response status - warning
added the new
ADDRESS_BOOK_REPEATED_IN_IMPORTenum value to the////response property for the response status - warning
added the new
STARKNET_PARENT_ONBOARDING_DISABLEDenum value to the////response property for the response status
- warning
- warning
added the new
SESSION_EXPIREDenum value to the////response property for the response status - warning
added the new
SESSION_REVOKEDenum value to the////response property for the response status
- warning