Skip to content

Order Management System REST API - Trades Controller

The trades/fromdate URL provides access to executed Trades.

GET /trades/fromdate

Retrieves the trades between two timestamps in the event stream for the requested views.

ParameterExpectedDescription
fromOptionalAn ISO8601 date and time. The earliest timestamp to return (exclusive). If omitted, defaults to the beginning of time.
toOptionalAn ISO8601 date and time. The most recent timestamp to return (inclusive). If omitted, defaults to now.
countOptionalAn integer. The maximum number of records to return. If omitted, returns every record.
ownerOptionalThe Owner ID to return events for. Repeat for additional owners. If omitted, returns all owners.
accountOptionalA Trading Account ID of the format <owner>/<account> to return events for. Repeat for additional accounts. If omitted, returns all accounts.

When using the owner and account filters, an event must match a listed owner OR a listed account to be returned.

Eg: owner=A&account=B%2FC will return events for all Accounts with Owner A, plus events for Account B/C.

CodeStatusDescription
200SuccessContent is an array of ExternalAction objects.
403FailureYou supplied invalid owner or account values.

In this example, we retrieve the first 100 Trades in the six-month period.

Terminal window
curl --oauth2-bearer $AccessToken http://oms.hub/trades/fromdate?from=20250101T000000Z&to=20250601T000000Z&count=100