Olympus
Trading

Place orders

Submit one or more orders. Requires EIP-712 signature authentication. In dev mode, the `X-Account-Address` header can be used as a shortcut.

POST
/api/v1/order

Submit one or more orders. Requires EIP-712 signature authentication. In dev mode, the X-Account-Address header can be used as a shortcut.

Header Parameters

X-Account-Address?string

Account address (dev mode only, bypasses signature verification)

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "http://localhost:3000/api/v1/order" \  -H "Content-Type: application/json" \  -d '{    "orders": [      {        "instrument": "AAPL-USD",        "is_buy": true,        "limit_px": "150.00",        "sz": "10"      }    ],    "nonce": 1  }'
{
  "status": "ok",
  "response": {
    "type": "order",
    "data": {
      "statuses": [
        {
          "resting": {
            "oid": "550e8400-e29b-41d4-a716-446655440000"
          }
        }
      ]
    }
  }
}
{
  "error": "Invalid request: missing required field"
}
{
  "error": "Invalid request: missing required field"
}