Fetch orders by filters.
Fetch orders by filters. At least one of the following filter parameters must be supplied: ids, appIds, eventIds, marketIds, walletIds, references. Page size limit 500.
Headers
Header with the accessToken for the current session
Query Parameters
list of order ids to filter by
list of apps to filter by
list of events to filter by
list of markets to filter by
list of wallets to filter by
list of references to filter by - requires appId to be provided also
statuses to filter by - valid values to choose are as follows:
- Cancelled - Orders that have not matched and have been cancelled either on request or automatically
- Matched - Orders that have been matched, either fully or partially, where the remaining unmatched stake has been cancelled, either on request or automatically
- PartiallyMatched - Orders that have been partially matched, and the remaining unmatched portion might still be matched
- Unmatched - Orders that have not yet been matched, and the remaining unmatched portion might still be matched
- Won - Previously Matched orders that have been deemed to have Won at the time of market settlement
- Lost - Previously Matched orders that have been deemed to have Lost at the time of market settlement
- Voided - All orders belonging to markets that have been voided
The status of an order can be one of the following
- Cancelled - The order was not matched and has been cancelled either on request or automatically
- Failed - A pending order was persisted but then failed to be fully created
- Matched - The order has been matched, either fully, or partially where the remaining unmatched stake has been cancelled, either on request or automatically
- PartiallyMatched - The order has been partially matched, and the remaining unmatched portion might still be matched
- Pending - An order has been persisted but has not yet been processed
- Unmatched - The order has not yet been matched, and the remaining unmatched portion might still be matched
- Won - The market has been settled and this previously Matched order has been deemed to have Won
- Lost - The market has been settled and this previously Matched order has been deemed to have Lost
- Voided - The market has been voided so this order has been voided
Cancelled, Failed, Matched, PartiallyMatched, Pending, Unmatched, Won, Lost, Voided beginning of the stake range filter (inclusive)
end of the stake range filter (inclusive)
beginning of the creation date range filter (inclusive)
end of the creation date range filter (inclusive)
Optional - How any unmatched portion of an order is treated:
- RetainUnmatched - unmatched portion persists as an offer (default)
- CancelUnmatched - unmatched portion is cancelled
RetainUnmatched, CancelUnmatched Zero-based page index (0..N)
The size of the page to be returned
Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.