Rates
Getting Rates with Altalix
We recommend displaying the indicative rates inside your own application prior to proceeding with payments however you can skip straight to payments if required. Below is details on how to get an indicative rate from the Altalix API
tip
To find out which symbol to use - have a look at all our supported currencies.
Getting A Rate
By sending a fixed amount of either sell_volume
or buy_volume
and a symbol
allows retrieval of a rate
Sending the following JSON
{
"sell_volume": 10,
"symbol":"ETHEUR"
}
Returns:
{
"symbol": "ETHEUR",
"fixed_side": "SELL",
"buy_volume": 0.04777,
"sell_volume": 10,
"rate": 209.3,
"settlement_fee": 0
}
tip
As you know - JSON doesn't support a fixed number of decimal places - so feel free to use the display_decimals
stored on the Currency to format these buy and sell volumes.
tip
If you don't want to keep forwarding messages you can use "User Tokens" directly from your web client.