MoneyDTO
The MoneyDTO
object is used to represent monetary amounts in various currencies. It includes information about the amount, currency, and the number of decimal places (subunits).
Field Descriptions
Name | Type | Description |
---|---|---|
amount | string | Amount in the base currency, represented as a string to maintain precision (e.g., "10.00000000" ). |
currency | string | Account currency in ISO 4217 format (e.g., USDT ). |
subunit | integer | Number of decimal places used to represent fractional values of the currency. |
Example
{
"amount": "10.00000000",
"currency": "USDT",
"subunit": 8
}
```json
{
"amount": "10.00000000",
"currency": "USDT",
"subunit": 8
}