curl --request POST \
--url https://api-testnet.context.markets/v2/orders/bulk/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orders": [
{
"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,
"results": [
{
"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>"
}
}
]
}Creates multiple orders in a single atomic batch.
curl --request POST \
--url https://api-testnet.context.markets/v2/orders/bulk/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orders": [
{
"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,
"results": [
{
"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>"
}
}
]
}