Change Currency
Users can change the currency in which to show the value of their balance and transactions.
In order to change the currency, call the URL /api/1/preferencetypes
to check which preference type corresponds to the currency:
{
"preferences": [
{
"id": 1,
"name": "currency",
"type": "string",
"created": "2022-07-01T14:01:43.000Z"
}
]
}
Change the currency for the current user by POSTing the new value to /user/preferences
{
"preferences": [
{
"value": "usd",
"preferenceType": {
"id": 1
}
}
]
}
making sure that the preferenceType id correspond to the id of the preference you want to change.
Once the new currency is saved, the user will be able to see balance and transactions with the new fiat value.
After changing the value of the currency, please, allow a short interval for the new price to be loaded in the transactions.