Skip to Content
Scalar
Trading APIs

List a user's orders

Returns all resting orders for a user, optionally filtered by instrument. Requires an `Authorization: Bearer` SIWE token proving control of `user`; otherwise 401.

GET
/orders

Returns all resting orders for a user, optionally filtered by instrument. Requires an Authorization: Bearer SIWE token proving control of user; otherwise 401.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Query Parameters

user*string

User address in hex format (0x prefix optional)

instrument?string

Instrument identifier; omit to list across every instrument

Response Body

Orders

application/json
  1. response

A user's resting orders. GET /orders, and the trading-WebSocket orders frame.

items*array<>
user*string

User address as 0x-prefixed lowercase hex

Example Request
curl -X GET 'https://testnet-api.scalar.market/orders?user=string'
Example Response
{
  "items": [
    {
      "client_tag": "string",
      "executed_quantity": 0,
      "instrument": "string",
      "price": 0.1,
      "quantity": 0,
      "side": "bid",
      "signature": "string",
      "valid_till": 0
    }
  ],
  "user": "string"
}