All GET routes that return multiple records can be filtered via the query string. For example, if you wish to retrieve trades for a specific account you would pass the account_id or account_ids filter like below.
/trades?account_id=122289
The response would only include trade records for accounts with ID 122289.
If you wanted to pass multiple filters, you would chain them with & like below.
/trades?account_id=122289&state=open
This would return all open trades for ID 122289.
The filters available for each endpoint are listed under the relevant section, in the documentation.
Sign up to our newsletter to keep up-to-date.