API Reference
Create a quote
/v1/quoteshttps://trace.mimicr.dev · provider: https://api.sandbox.tracefinance.comCreates a quote that locks an FX rate for a short window. The withdrawal, swap, and deposit operation endpoints require a quoteId — see the request body of POST /v1/operations/withdrawals, POST /v1/operations/swaps, or POST /v1/operations/deposits. Same-asset quotes (sourceAsset == targetAsset) are valid and return a 1:1 spot with zero spread, so callers can use the same flow for fiat and FX. A quote is bound 1:1 to an operation: once consumed, it cannot be reused. Quotes also expire after a short window (see expiresAt in the response).
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Headers
Unique key to ensure idempotent request processing. Required on all POST, PUT, and PATCH requests.
API version. Omit to use the default version.
"1"Body
application/jsonAccount the quote is bound to. The consuming operation must reference the same account.
"a1b2c3d4-5e6f-7890-abcd-ef1234567890"ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals |
|---|---|
| BRL | 2 |
| USDT | 6 |
| USDC | 6 |
BRLUSDTUSDC"BRL"ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals |
|---|---|
| BRL | 2 |
| USDT | 6 |
| USDC | 6 |
BRLUSDTUSDC"BRL"Decimal monetary amount in the associated asset. The number of fractional digits must not exceed the asset's precision — see Asset for the per-asset table. Exceeding the precision fails with INVALID_AMOUNT_PRECISION.
"500.00"Decimal monetary amount in the associated asset. The number of fractional digits must not exceed the asset's precision — see Asset for the per-asset table. Exceeding the precision fails with INVALID_AMOUNT_PRECISION.
"500.00"Responses
201Quote created.
Reference to a customer account, including the registered owner name.
Show child attributes
Account identifier.
"a1b2c3d4-5e6f-7890-abcd-ef1234567890"Registered owner name on the account.
"Acme Importação Ltda"Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.
Show child attributes
Decimal amount in the asset's canonical scale.
"500.00"ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals |
|---|---|
| BRL | 2 |
| USDT | 6 |
| USDC | 6 |
BRLUSDTUSDC"BRL"Number of decimal places for the asset.
2Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.
Show child attributes
Decimal amount in the asset's canonical scale.
"500.00"ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals |
|---|---|
| BRL | 2 |
| USDT | 6 |
| USDC | 6 |
BRLUSDTUSDC"BRL"Number of decimal places for the asset.
2Exchange rate between two assets.
Show child attributes
Rate value as a decimal string, expressed as quote units per one base unit.
"5.25"ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals |
|---|---|
| BRL | 2 |
| USDT | 6 |
| USDC | 6 |
BRLUSDTUSDC"BRL"ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals |
|---|---|
| BRL | 2 |
| USDT | 6 |
| USDC | 6 |
BRLUSDTUSDC"BRL"Time at which the quote expires. Operations referencing the quote after this fail with QUOTE_EXPIRED.
400Validation error.
Machine-readable error code.
Human-readable description.
401Missing or invalid authentication token.
Machine-readable error code.
Human-readable description.
422Quote could not be created (no rate available, asset pair unsupported, etc.).
Machine-readable error code.
Human-readable description.