Skip to content

Order Management System REST API - Trades Controller

The trades/between URL provides access to executed Trades.

Retrieves the trades between two positions in the event stream.

Section titled “Retrieves the trades between two positions in the event stream.”

GET /trades/between

Retrieves the trades between two positions in the event stream.

ParameterExpectedDescription
from[<seq>]OptionalDescribes the starting position of a sequence (exclusive). Repeat for each feed involved in OMS. If omitted, defaults to 0 for all feeds.
to[<seq>]RequiredDescribes the ending position of a sequence (inclusive). Repeat for each feed involved in OMS.
countOptionalThe 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 for the following sequences

SequenceFromTo
oms100200
foundry1010
prodigy120

Note that for Foundry the From and To are identical, so no events will be provided.

Terminal window
curl --oauth2-bearer $AccessToken http://oms.hub/trades/between?from[prodigy]=1&from[oms]=100&from[foundry]=10&to[prodigy]=20&to[oms]=200&to[foundry]=10&count=100