Documentation Index
Fetch the complete documentation index at: https://tracefinance-docs-withdrawal-beneficiary-events.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Monetary amounts in the Trace FX API are represented as decimal strings in the asset’s canonical scale, paired with an ISO 4217 currency code or stablecoin ticker. This single shape works uniformly for fiat (2 decimals), stablecoins (6 decimals), and high-precision crypto (8+ decimals).How it works
Amount object
Every amount in a response uses the same structure:| Field | Type | Description |
|---|---|---|
value | string | Decimal amount in the asset’s canonical scale. Always a string to preserve precision. |
asset | string | ISO 4217 currency code or stablecoin ticker. |
decimals | integer | Number of decimal places for the asset. |
In request bodies
Quote and operation requests take amounts as a decimal-string scalar paired with a separate asset field — not the full object:INVALID_AMOUNT_PRECISION.
Decimal precision per asset
asset | decimals | Example value |
|---|---|---|
BRL | 2 | "5000.00" |
USD | 2 | "10.50" |
EUR | 2 | "10.50" |
USDC | 6 | "1.500000" |
USDT | 6 | "100.000000" |
BTC | 8 | "1.00000000" |