Orders
Filter Orders
Retrieve list of orders for an account
Query Parameters
accountstring
Identifies the user whose orders are to be retrieved. Caller must be be authenticated as this account or a delegate.
subaccountIndexstring
Identifies the subaccount to retrieve orders for.
orderType?array<OrderType>
Filter orders by one or more order types.
status?string
Filter orders by status.
Value in
"open" | "active" | "filled" | "closed"symbol?string
Filter orders by market symbol.
createdFrom?integer
Limit to orders submitted on or after this timestamp. May not be used with updated filters.
Format
int64Range
0 <= valuecreatedTo?integer
Limit to orders submitted before this timestamp. May not be used with updated filters.
Format
int64Range
0 <= valueupdatedFrom?integer
Limit to orders updated on or after this timestamp. May not be used with created filters.
Format
int64Range
0 <= valueupdatedTo?integer
Limit to orders updated before this timestamp. May not be used with created filters.
Format
int64Range
0 <= valuelimit?integer
Maximum number of orders to return
Format
int32Range
1 <= value <= 500Response Body
application/json
text/plain
text/plain
text/plain
curl -X GET "https://matcher.cascade.xyz/account/orders?account=0xc2cbbb5bea8fdefb1f441feaf017a0df72e89c9f&subaccountIndex=0&orderType=Limit&status=open&symbol=ETHUSD&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,
"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,
"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
}
]
}"string""string""string"