DevelopersOsai website ↗
API v1
Trades / API reference

List institution trades

Request and response reference for GET /v1/trades.

GET/v1/trades
Authentication: API key
Use the base URL and access configuration provided to your institution. Examples are request templates, not transaction results. Field tables focus on client fields; preserve additional metadata returned by the configured service.

Request

Keep API keys in your backend. Required entitlements and institution scope still apply.

Request templatecURL
curl -X GET "$OSAI_API_BASE_URL/v1/trades" \
  -H "Authorization: ApiKey $OSAI_PUBLIC_ID:$OSAI_API_SECRET"

Parameters

NameLocationRequirementDescription
Authorizationheader · stringRequiredUse the value defined for this resource.
X-Request-Idheader · stringOptionalUse the value defined for this resource.
pagequery · integerOptionalUse the value defined for this resource.
page_sizequery · integerOptionalUse the value defined for this resource.
fromquery · stringOptionalInclusive lower bound on trade creation time or terminal settlement time, according to the endpoint.
toquery · stringOptionalExclusive upper bound on trade creation time or terminal settlement time, according to the endpoint.
currencyquery · stringOptionalExact currency filter; trade lists use sell/base currency and settlement reports use settlement currency.
statusquery · stringOptionalExact canonical status for the endpoint's resource.
customer_referencequery · stringOptionalExact institution-scoped reference supplied when requesting the quote.

Request body

This operation does not define a JSON request body.

Responses

Inspect HTTP status before parsing a body. These tables describe client response fields rather than invented successful transaction payloads.

200 · Trade page
FieldTypeDescription & constraints
itemsRequired in parent objectarrayDefined by the resource contract.
items[].trade_idRequired in parent objectstringDefined by the resource contract.
items[].quote_idRequired in parent objectstringDefined by the resource contract.
items[].institution_idRequired in parent objectstringDefined by the resource contract.
items[].statusRequired in parent objectstringDefined by the resource contract.
items[].base_amount_minorOptionalintegerDefined by the resource contract.
items[].base_currencyOptionalstringDefined by the resource contract.
items[].quote_currencyOptionalstringDefined by the resource contract.
items[].pricing_snapshotOptionalobjectImmutable accepted quote economics; present when the trade was created from a priced quote.
items[].pricing_snapshot.quote_modeRequired in parent objectstringDefined by the resource contract.Values: FIXED_SOURCE, FIXED_DESTINATION
items[].pricing_snapshot.requested_amount_minorOptionalintegerDefined by the resource contract.
items[].pricing_snapshot.source_principal_minorRequired in parent objectintegerDefined by the resource contract.
items[].pricing_snapshot.fee_minorRequired in parent objectintegerDefined by the resource contract.
items[].pricing_snapshot.total_debit_minorRequired in parent objectintegerDefined by the resource contract.
items[].pricing_snapshot.destination_amount_minorRequired in parent objectintegerDefined by the resource contract.
items[].pricing_snapshot.destination_target_minorOptionalintegerDefined by the resource contract.
items[].pricing_snapshot.destination_surplus_minorOptionalintegerDefined by the resource contract.
items[].pricing_snapshot.source_currencyRequired in parent objectstringDefined by the resource contract.
items[].pricing_snapshot.destination_currencyRequired in parent objectstringDefined by the resource contract.
items[].pricing_snapshot.rate_scaledRequired in parent objectintegerDefined by the resource contract.
items[].pricing_snapshot.rate_directionRequired in parent objectstringDefined by the resource contract.
items[].pricing_snapshot.rate_scaleRequired in parent objectintegerDefined by the resource contract.
items[].pricing_snapshot.fee_schedule_idRequired in parent objectstringDefined by the resource contract.
items[].pricing_snapshot.fee_schedule_versionRequired in parent objectintegerDefined by the resource contract.
items[].pricing_snapshot.source_minor_exponentRequired in parent objectintegerDefined by the resource contract.
items[].pricing_snapshot.destination_minor_exponentRequired in parent objectintegerDefined by the resource contract.
items[].pricing_snapshot.expires_atRequired in parent objectstringDefined by the resource contract.
items[].settlement_idOptionalstringDefined by the resource contract.
items[].fx_executionOptionalobjectFX execution state is separate from destination payout state; UNKNOWN requires reconciliation before another submission.
items[].fx_execution.execution_idOptionalstringDefined by the resource contract.
items[].fx_execution.executor_idOptionalstringDefined by the resource contract.
items[].fx_execution.request_referenceOptionalstringDefined by the resource contract.
items[].fx_execution.statusOptionalstringDefined by the resource contract.Values: READY, SUBMITTED, UNKNOWN, EXECUTED, FAILED
items[].customer_referenceOptionalstringInstitution-scoped client reference, when supplied.
items[].request_idOptionalstringDefined by the resource contract.
pageRequired in parent objectintegerDefined by the resource contract.
page_sizeRequired in parent objectintegerDefined by the resource contract.
totalRequired in parent objectintegerDefined by the resource contract.
request_idRequired in parent objectstringDefined by the resource contract.
400 · Validation failure
FieldTypeDescription & constraints
errorRequired in parent objectobjectDefined by the resource contract.
error.codeRequired in parent objectstringDefined by the resource contract.
error.messageRequired in parent objectstringDefined by the resource contract.
error.request_idRequired in parent objectstringDefined by the resource contract.
503 · Trade read service unavailable

No client body fields are defined for this response.

Retries & recovery

Keep the original request identifiers and any required idempotency key. A timeout does not establish failure. Read the original resource or command before another financial write; use expected versions for concurrent changes.

16 suggested pages

Get startedIntroductionIntegrate institutional FX and stablecoin trading with quotes, orders, market data, account records and settlement reporting.Get startedQuickstartMake an authenticated read, request a quote and follow an instruction without losing its original references.Get startedAuthenticationUse the correct authentication scheme for API credentials, Console sessions and market-data feeds.Get startedErrorsDistinguish invalid inputs, denied access, conflicts, rate limits and uncertain outcomes.Get startedRate limitsUse response headers, bounded concurrency and backoff rather than repeated bursts.Get startedAmounts & precisionKeep minor-unit money, fixed-point FX rates and instrument-scaled quantities exact.Get startedPagination & recoveryUse each resource’s pagination model and preserve stable recovery checkpoints.Financial workflowsQuotes & acceptanceRequest explicit FX economics, review conditions and retain accepted terms.Financial workflowsTrade lifecycleTrack funding, execution and settlement as distinct business transitions.Financial workflowsBalances & transactionsRead institutional financial positions and reconcile movements by currency.Financial workflowsBeneficiariesRegister beneficiaries and coordinate their institutional approval lifecycle.Financial workflowsCredential managementCreate, inspect, rotate and revoke application credentials without exposing secrets.Events & reliabilityIdempotencyPrevent duplicate financial effects across retries and uncertain outcomes.Events & reliabilityWebhooks & verificationVerify deliveries, persist original events and make downstream processing idempotent.Events & reliabilityEvent payloadsUnderstand the customer event envelope and business transitions behind subscriptions.Events & reliabilityDelivery retries & replayRepair webhook delivery without creating a second business event.