API - User Currency
*you can read about the user currency in the Tradesmarter API doc on page 12.
By default the base currency is USD, there is an option to allow the user to view the amounts in different currencies.
How to know which currency is the user profile:
User info api call:
{
"userID": "106495",
"email": "hagy@tradesmarter.com",
"firstName": "Hagy",
"lastName": "Ketashvily",
"dob": "1969-06-02",
"mobile": "972544216860",
"qq": null,
"location": "au",
"nationalID": "121212",
"confirmed": "1",
"validated": "1",
"frozen": "0",
"blocked": "0",
"affiliateID": "",
"tester": "1",
"facebookID": "100005070305828",
"vkID": null,
"social": "1",
"nickname": "All2trade",
"accountLevel": "5",
"userCurrency": "5",
"address1": "aaa",
"city": "bbbb",
"state": "",
"zip": "1111",
"country": "au",
"userClass": 1
}
How to set user default currency:
https://platform-api.tradesmarter.com/user/set-user-currency/session/ff1f66e6c348b81cc5908ba730e5ff86/currencyID/2
Possible values for userCurrency:
currencies.usd = 1
currencies.eur = 2
currencies.aud = 3
currencies.cny = 4
currencies.gbp = 5
currencies.jpy = 6
currencies.rub = 7