v1
latestOpenAPI 3.0.02026-08-04134348905.1 KBList settlements
Permissions required: Execute trades or Read trade activity
List of all settlements. With permission Read trade activity all settlements of the organization may be read. With permission Execute trades only settlements this api key has created may be read.
Settlements are sorted in a descending order by their timestamp, i.e. the most recent settlement or the settlement with a timestamp closest to endDate is listed first.
Filters
You may optionally supply the following filters:
- Specify a one or multiple status to filter settlements. Multiple statuses should be separated by commas.
Query parameters
The start date (inclusive) in YYYY-MM-DD format. The earliest valid start date is 2017-01-01. The last valid start date is the current date. Dates are always in UTC RFC 3339 'full-date'.
The end date (inclusive) in YYYY-MM-DD format. The latest valid end date is the current date. Dates are always in UTC RFC 3339 'full-date'.
One or more statuses to filter settlements. If provided, only settlements matching these statuses will be returned.
Filter by the vault ID of a settlement. If provided, only settlements linked to this vault ID will be returned.
Maximum number of results to return per query
If true, positions property will be excluded from the response. If false, positions will be included in the response as demonstrated in the example.
If true, instructionsCrypto property will be excluded from the response. If false, it will be included in the response as demonstrated in the example.
Filter by the trading account ID of a trade. If provided, only trades linked to this account ID will be returned.
Response
A list of Settlements and their metadata
Example response
{
"data": [
{
"account": {
"accountId": "6290d9bd-494f-11ed-975e-2e567b4c0e09"
},
"positions": [
{
"positionAmount": {
"quantity": "10.45234733",
"assetType": "BTC",
"currentPrice": "9751.01",
"currentUSDValue": "101920.94"
}
}
],
"vault": {
"vaultID": "1c920f4241b78a1d483a29f3c24b6c4c"
}
}
],
"page": {
"next": "<next page url>"
}
}