Filter Orders
Retrieve list of orders for an account
JWT token obtained from POST /auth endpoint
In: header
Query Parameters
Identifies the user whose orders are to be retrieved. Caller must be be authenticated as this account or a delegate.
Identifies the subaccount to retrieve orders for.
int320 <= valueFilter orders by one or more order types.
Filter orders by status.
"open" | "active" | "filled" | "closed"Filter orders by market symbol.
Limit to orders submitted on or after this timestamp. May not be used with updated filters.
int640 <= valueLimit to orders submitted before this timestamp. May not be used with updated filters.
int640 <= valueLimit to orders updated on or after this timestamp. May not be used with created filters.
int640 <= valueLimit to orders updated before this timestamp. May not be used with created filters.
int640 <= valueMaximum number of orders to return
int321 <= value <= 500Response Body
application/json
text/plain
text/plain
text/plain
curl -X GET "https://engine.cascade.cooking/account/orders?account=0xc2cbbb5bea8fdefb1f441feaf017a0df72e89c9f&subaccountIndex=0&orderType=Limit&status=open&symbol=ETH-USD-PERP&limit=50"{
"asks": [
{
"account": "string",
"clientId": "string",
"createdAt": 0,
"expiresAt": 0,
"flags": {
"ioc": true,
"postOnly": true,
"reduceOnly": true,
"selfTradeExpire": 0
},
"groupId": "string",
"lastUpdateSequenceNumber": 0,
"nonce": 0,
"ocoGroupId": "string",
"orderId": "string",
"orderType": "unsupported",
"originator": "string",
"originatorFee": 0,
"parentOrderId": "string",
"period": 0,
"price": "string",
"quantity": "string",
"reason": "string",
"remaining": "string",
"settled": "string",
"status": "new",
"subaccountIndex": 0,
"symbol": "string",
"trailingPercent": "string",
"triggerPrice": "string",
"updatedAt": 0
}
],
"bids": [
{
"account": "string",
"clientId": "string",
"createdAt": 0,
"expiresAt": 0,
"flags": {
"ioc": true,
"postOnly": true,
"reduceOnly": true,
"selfTradeExpire": 0
},
"groupId": "string",
"lastUpdateSequenceNumber": 0,
"nonce": 0,
"ocoGroupId": "string",
"orderId": "string",
"orderType": "unsupported",
"originator": "string",
"originatorFee": 0,
"parentOrderId": "string",
"period": 0,
"price": "string",
"quantity": "string",
"reason": "string",
"remaining": "string",
"settled": "string",
"status": "new",
"subaccountIndex": 0,
"symbol": "string",
"trailingPercent": "string",
"triggerPrice": "string",
"updatedAt": 0
}
],
"total": 0
}"string""string""string"