Permalink: |
Exchanger Best Rates
WM Exchanger allows receiving information about available exchange volumes in the automated mode.
- Requests using WM Keeper WinPro key authorization should be sent to https://wm.exchanger.ru/asp/XMLbestRates.asp for XML querys and to https://wm.exchanger.ru/asp/JSONbestRates.asp for JSON querys.
- Requests using WM Keeper WebPro certificate authorization should be sent to https://wmeng.exchanger.ru/asp/XMLbestRates.asp for XML querys and https://wmeng.exchanger.ru/asp/JSONbestRates.asp for JSON querys.
- Method - GET
- Request format: no parameters required
- Response format:
<?xml version="1.0" encoding="UTF-8"?> <response> <row exchtype="" Plus10="" Plus5="" Plus3="" Plus2="" Plus1="" Plus09="" Plus08="" Plus07="" Plus06="" Plus05="" Plus04="" Plus03="" Plus02="" Plus01="" BaseRate="" Direct=""/> ............. <row exchtype="" Plus10="" Plus5="" Plus3="" Plus2="" Plus1="" Plus09="" Plus08="" Plus07="" Plus06="" Plus05="" Plus04="" Plus03="" Plus02="" Plus01="" BaseRate="" Direct=""/> </response>
- Response parameters
Name | Purpose | Description |
Direct | exchange direction | First currency is the one, subject to the exchange .For example, for WMZ-WME exchange direction, in the following fields there are WMZ volumes which are currently can be exchanged into WME with the rates are equal to each subsequent field. |
BaseRate | basic exchange rate | basic exchange rate as per Central Bank average rates or its cross-exchange rate. Rate sign (symbol) indicates necessary/recommended actions, for example to increase or to reduce, so you will understand what volume is available for exchange as per basic rate |
Plus05, Plus1, Plus2, Plus3 | percentage (0.5%, 1%, 2%, 3%) | percentage relative to the basic rate, that should be added or deducted from the basic rate depending on its symbol next to it. |
exchtype | exchange direction | numerical value of the exchange direction (unique identity for exchange direction). |
- Example
<?xml version="1.0" encoding="UTF-8"?> <response> ............ <row exchtype="7" Plus10="247090.06" Plus5="247083.06" Plus3="193490.83" Plus2="193486.33" Plus1="192136.33" Plus09="192136.33" Plus08="192136.33" Plus07="190280.44" Plus06="190280.44" Plus05="190187.85" Plus04="161098.84" Plus03="161098.84" Plus02="161045.68" Plus01="161045.68" BaseRate="+28.7775" Direct="WMZ - WME"/> ............ </response>
This line means that currently you can exchange 190187.85 WME to WMZ at the exchange rate 0.5% differs from the basic WME - WMZ rate. So you deduct 0.5% from the basic rate of 28.7775, so you get 28.6336 – it is the rate that you can use to exchange 190187.85 WME to WMZ right now. In a similar way you can exchange 161098.84 WME to WMZ as per 28.7775 -3% = 27.9141