Documentation Index
Fetch the complete documentation index at: https://docs.nxos.io/llms.txt
Use this file to discover all available pages before exploring further.
Assets
An asset is a currency or token that can be held, traded, and paid out. Each asset has a code (uppercase identifier) and a scale (number of decimal places).| Code | Type | Scale | Example amount |
|---|---|---|---|
USD | Fiat | 2 | "10.50" |
EUR | Fiat | 2 | "100.00" |
USDC | Stablecoin | 6 | "10.500000" |
USDT | Stablecoin | 6 | "99.970000" |
fromAsset, toAsset), payout bodies (asset), and balance responses.
Amounts
All monetary amounts are strings in major units — the human-readable form of the currency. Ten US dollars is"10.50", not 1000 or 10.5.
Why strings?
JSON has no decimal type. A JSON number like10.50 may lose its trailing zero when parsed, and large values can exceed the precision of IEEE 754 floating-point numbers. Strings preserve the exact representation.
Precision rules
When sending amounts to the API (e.g., in quote requests or payout bodies), provide them in major units as strings. The API validates that:- The value is a valid decimal string
- The number of decimal places does not exceed the asset’s scale
validation_error.