Skip to main content
POST
/
orders
/
bulk
/
create
Bulk create orders
curl --request POST \
  --url https://api.context.markets/v2/orders/bulk/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orders": [
    {
      "marketId": "0x1111111111111111111111111111111111111111111111111111111111111111",
      "trader": "0x1111111111111111111111111111111111111111",
      "price": "1000000",
      "size": "1000000",
      "outcomeIndex": 123,
      "nonce": "0xabc123",
      "expiry": "1000000",
      "maxFee": "1000000",
      "signature": "0xabc123",
      "buyValue": "1000000"
    }
  ]
}
'
{
  "results": [
    {
      "order": {
        "marketId": "0x1111111111111111111111111111111111111111111111111111111111111111",
        "trader": "0x1111111111111111111111111111111111111111",
        "nonce": "0xabc123",
        "price": "1000000",
        "size": "1000000",
        "filledSize": "1000000",
        "remainingSize": "1000000",
        "percentFilled": 123,
        "insertedAt": "2023-11-07T05:31:56Z",
        "voidedAt": "2023-11-07T05:31:56Z",
        "outcomeIndex": 123,
        "expiry": "1000000",
        "sv2MinSharesOut": "1000000",
        "sv2MaxCollateralIn": "1000000",
        "sv2MinCollateralOut": "1000000"
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.context.markets/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Body

application/json
orders
object[]
required

Response

Bulk orders created

success
enum<boolean>
required
Available options:
true
results
object[]
required