Our API returns asset values in their lowest denomination possible. For example,
- All Bitcoin (XBT) quantities are returned in Satoshis, the smallest unit of Bitcoin. 1 XBt (Satoshi) = 0.00000001 XBT (Bitcoin).
- All Tether (USDT) quantities are returned in USDt. 1 USDt = 0.000001 USDT.
- All Ethereum (ETH) quantities are returned in gwei, the smallest unit of Ethereum. 1 gwei = 0.000000001 ETH.
For other assets, please refer to the /wallet/assets endpoint, where the relationship between the major currency (e.g., XBT, ETH) and its lowest denomination (e.g., Satoshis, gwei) is specified using the Scale parameter.
How to convert the values using the Scale parameter
To convert from smaller units to larger ones, divide the smaller unit by 10^scale (i.e., 1 followed by the number of zeros indicated by the scale). And to convert from larger units to smaller ones, multiply the larger unit by 10^scale.
For example, if the scale is 6 (meaning 1 unit = 1,000,000 smaller units), and the smaller unit is 613,379,693 USDt, divide that by 10^6 (1,000,000) to get the larger one:
613,379,693 USDt/1,000,000 = 613.379693 USDT