Trades / API reference
Get trade by ID
Request and response reference for GET /v1/trades/{trade_id}.
GET
/v1/trades/{trade_id}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.
curl -X GET "$OSAI_API_BASE_URL/v1/trades/$TRADE_ID" \
-H "Authorization: ApiKey $OSAI_PUBLIC_ID:$OSAI_API_SECRET"Parameters
| Name | Location | Requirement | Description |
|---|---|---|---|
Authorization | header · string | Required | Use the value defined for this resource. |
X-Request-Id | header · string | Optional | Use the value defined for this resource. |
trade_id | path · string | Required | Use the value defined for this resource. |
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 found
| Field | Type | Description & constraints |
|---|---|---|
trade_idRequired in parent object | string | Defined by the resource contract. |
quote_idRequired in parent object | string | Defined by the resource contract. |
institution_idRequired in parent object | string | Defined by the resource contract. |
statusRequired in parent object | string | Defined by the resource contract. |
base_amount_minorOptional | integer | Defined by the resource contract. |
base_currencyOptional | string | Defined by the resource contract. |
quote_currencyOptional | string | Defined by the resource contract. |
pricing_snapshotOptional | object | Immutable accepted quote economics; present when the trade was created from a priced quote. |
pricing_snapshot.quote_modeRequired in parent object | string | Defined by the resource contract.Values: FIXED_SOURCE, FIXED_DESTINATION |
pricing_snapshot.requested_amount_minorOptional | integer | Defined by the resource contract. |
pricing_snapshot.source_principal_minorRequired in parent object | integer | Defined by the resource contract. |
pricing_snapshot.fee_minorRequired in parent object | integer | Defined by the resource contract. |
pricing_snapshot.total_debit_minorRequired in parent object | integer | Defined by the resource contract. |
pricing_snapshot.destination_amount_minorRequired in parent object | integer | Defined by the resource contract. |
pricing_snapshot.destination_target_minorOptional | integer | Defined by the resource contract. |
pricing_snapshot.destination_surplus_minorOptional | integer | Defined by the resource contract. |
pricing_snapshot.source_currencyRequired in parent object | string | Defined by the resource contract. |
pricing_snapshot.destination_currencyRequired in parent object | string | Defined by the resource contract. |
pricing_snapshot.rate_scaledRequired in parent object | integer | Defined by the resource contract. |
pricing_snapshot.rate_directionRequired in parent object | string | Defined by the resource contract. |
pricing_snapshot.rate_scaleRequired in parent object | integer | Defined by the resource contract. |
pricing_snapshot.fee_schedule_idRequired in parent object | string | Defined by the resource contract. |
pricing_snapshot.fee_schedule_versionRequired in parent object | integer | Defined by the resource contract. |
pricing_snapshot.source_minor_exponentRequired in parent object | integer | Defined by the resource contract. |
pricing_snapshot.destination_minor_exponentRequired in parent object | integer | Defined by the resource contract. |
pricing_snapshot.expires_atRequired in parent object | string | Defined by the resource contract. |
settlement_idOptional | string | Defined by the resource contract. |
fx_executionOptional | object | FX execution state is separate from destination payout state; UNKNOWN requires reconciliation before another submission. |
fx_execution.execution_idOptional | string | Defined by the resource contract. |
fx_execution.executor_idOptional | string | Defined by the resource contract. |
fx_execution.request_referenceOptional | string | Defined by the resource contract. |
fx_execution.statusOptional | string | Defined by the resource contract.Values: READY, SUBMITTED, UNKNOWN, EXECUTED, FAILED |
customer_referenceOptional | string | Institution-scoped client reference, when supplied. |
request_idOptional | string | Defined by the resource contract. |
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.