cURL
curl --request POST \ --url https://api-testnet.context.markets/v2/orders \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "marketId": "<string>", "trader": "<string>", "price": "<string>", "size": "<string>", "outcomeIndex": 0, "side": 123, "nonce": "<string>", "expiry": "<string>", "maxFee": "<string>", "makerRoleConstraint": 1, "inventoryModeConstraint": 1, "signature": "<string>", "type": "<string>" } '
{ "success": true, "order": { "side": 123, "price": "<string>", "size": "<string>", "filledSize": "<string>", "remainingSize": "<string>", "percentFilled": 123, "insertedAt": "2023-11-07T05:31:56Z", "type": "limit", "trader": "<string>", "marketId": "<string>", "status": "open", "voidedAt": "2023-11-07T05:31:56Z", "voidReason": "UNFILLED_MARKET_ORDER", "outcomeIndex": 123, "nonce": "<string>" } }
Submits a new limit or market order. The order type is determined by a discriminator field.
API key passed as Bearer token
Order to create
-9007199254740991 <= x <= 9007199254740991
0 <= x <= 2
"limit"
Order created
Show child attributes