Olympus
History

Account order history

Get all orders for the authenticated account, including active, filled, and cancelled orders. Returns order history in Binance-compatible format. Requires `DATABASE_URL` to be configured. **Dev mode:** Requires `X-Account-Address` header. **Production:** Requires `X-Account-Address`, `X-Signature`, and `X-Timestamp` headers.

GET
/api/v1/allOrders

Get all orders for the authenticated account, including active, filled, and cancelled orders. Returns order history in Binance-compatible format. Requires DATABASE_URL to be configured.

Dev mode: Requires X-Account-Address header. Production: Requires X-Account-Address, X-Signature, and X-Timestamp headers.

Query Parameters

symbol*string

Trading pair (e.g. ETH-USD)

startTime?integer

Start time in milliseconds since epoch

Formatint64
endTime?integer

End time in milliseconds since epoch

Formatint64
limit?integer

Number of orders to return (1–1000, default 500)

Default500
Range1 <= value <= 1000

Header Parameters

X-Account-Address*string

Account address (hex-encoded, checksummed)

X-Signature?string

Hex-encoded 65-byte signature (production only)

X-Timestamp?string

Unix timestamp in milliseconds (production only)

Response Body

application/json

application/json

application/json

curl -X GET "http://localhost:3000/api/v1/allOrders?symbol=ETH-USD" \  -H "X-Account-Address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
[
  {
    "symbol": "ETH-USD",
    "orderId": "b3f1a2c4-5d6e-7f89-0a1b-2c3d4e5f6789",
    "price": "3210.50",
    "origQty": "10.0000",
    "executedQty": "3.5000",
    "status": "PARTIALLY_FILLED",
    "type": "LIMIT",
    "side": "BUY",
    "time": 1709123456789,
    "updateTime": 1709123460000
  }
]
{
  "code": -1121,
  "msg": "Invalid symbol."
}
{
  "code": -1,
  "msg": "history not available"
}