Exported rates file format
This page contains the description of the standard for generating exported rates file supported by the BestChange.com exchanger monitor. It is based on the XML format with the abbreviated currency names from Estandards.
- The export file is generated in the XML format;
- Every entry starts on a new line. A new line is started by the \n character;
- A full stop is used as a decimal point for numerical values;
- The root element is <rates>;
- Every exchange direction is described in the <item> element;
- Main elements for describing exchange rates and currency reserves:
- <from> – source currency code. Electronic currency codes are listed below;
- <to> – destination currency code. Electronic currency codes are listed below;
- <in> – how much "from" currency the customer has to give;
- <out> – how much "to" currency the customer will get;
- <amount> – the "to" currency reserve in the exchanger.
- Additional data for better integration with the BestChange.com monitor (it is required to specify it in the exported file if your exchanger takes minimal or additional commission fees or if it has non-automatic exchange directions):
- <minfee> – the minimal commission fee the exchanger takes in the current exchange direction.
Example: <minfee>5 USD</minfee>
Possible national currency codes are listed below; - <fromfee> – the additional commission fee that is not included in the exchange rate and is taken from the sum the user transfers to the exchanger.
Example: <fromfee>2.15 EUR</fromfee>
Possible national currency codes are listed below. It is also possible to use the % character instead of the national currency code in order to specify the additional commission fee in percentage terms; - <tofee> – the additional commission fee that is not included in the exchange rate and is taken from the sum the exchanger transfers to the user.
Example: <tofee>2 EUR</tofee>
Possible national currency codes are listed below. It is also possible to use the % character instead of the national currency code in order to specify the additional commission fee in percentage terms; - <param> – this tag is used to specify additional properties, such as:
- manual – the property must be specified for all non-automatic, non-instant exchange directions (for manual, operator-controlled, etc.);
- juridical – this property means that the exchanger transfers money to the user bank account from a juridical account (for bank transfers);
- verifying – this property means that the exchanger will require ID documents from their client in order to perform the exchange operation;
- floating – floating rate, which is not fixed in the order. At the same time, the amount of exchange can change at the moment of sending funds to the client.
Example: <param>manual, floating</param>
- <minfee> – the minimal commission fee the exchanger takes in the current exchange direction.
Codes of electronic currencies
|
Codes of national currencies
Codes of cities
|
Example
<rates>
<item>
<from>WMZ</from>
<to>WMR</to>
<in>1</in>
<out>30.593562</out>
<amount>572962.42</amount>
</item>
<item>
<from>OKUSD</from>
<to>PMUSD</to>
<in>1</in>
<out>0.978</out>
<amount>2921.42</amount>
<minfee>7 USD</minfee>
<param>manual</param>
</item>
<item>
<from>WMR</from>
<to>CARDRUB</to>
<in>1</in>
<out>0.980</out>
<amount>67341.10</amount>
<minfee>130 RUB</minfee>
<tofee>1 %</tofee>
<param>manual, juridical</param>
</item>
<item>
<from>PMUSD</from>
<to>CASHUSD</to>
<in>1</in>
<out>0.9705</out>
<amount>3901.90</amount>
<minfee>5 USD</minfee>
<city>MSK</city>
</item>
</rates>
<item>
<from>WMZ</from>
<to>WMR</to>
<in>1</in>
<out>30.593562</out>
<amount>572962.42</amount>
</item>
<item>
<from>OKUSD</from>
<to>PMUSD</to>
<in>1</in>
<out>0.978</out>
<amount>2921.42</amount>
<minfee>7 USD</minfee>
<param>manual</param>
</item>
<item>
<from>WMR</from>
<to>CARDRUB</to>
<in>1</in>
<out>0.980</out>
<amount>67341.10</amount>
<minfee>130 RUB</minfee>
<tofee>1 %</tofee>
<param>manual, juridical</param>
</item>
<item>
<from>PMUSD</from>
<to>CASHUSD</to>
<in>1</in>
<out>0.9705</out>
<amount>3901.90</amount>
<minfee>5 USD</minfee>
<city>MSK</city>
</item>
</rates>
Example link to exported rates file
FAQ for Export rates file
- Our export file is updated every minute. Is this fast enough?
-
No, it is not enough. Our monitoring requests exchange rates every 5-8 seconds, therefore, to increase precision of the data transferred, it is required that your exchange office provides export file which would contain information representing exchange rates equivalent to those on your web page.
One of the following options of export implementation can be used:- A script that generates new export data on every request;
- Static export file being generated every time any change of rates/reserves/commissions occurs on your exchange office web page.
- Our exchanger has several levels of rates depending on the sum to be exchanged. How should we specify it in our export file?
- Our monitoring does not support multilevel rates. In this case, exchange rates with maximum percentage available should be reported.
- Our exchanger has limits with regard to the maximum sum to be exchanged at a time. How should we specify it in our export file?
-
To implement this, you should make correction of reserves respective to set limits in the exchange directions where the limits are applicable.
Example: Perfect Money USD → PayPal EUR direction is limited to accept maximum of 1000 USD Perfect Money. In this case, you should set 1000 USD reserve in target currency, this is to convert 1000 USD in EUR.
If a limit equal to 0 is set, such directions should not be exported, or their reserve should also be 0.
- Is it possible to set up our display in your list so that we are displayed from Monday to Saturday 9:00 to 19:00, but were not displayed on Sunday?
-
There are 2 ways to do it:
- Set up the export rates generation script so that the export file is cleared automatically (or rates or reserves are set to 0) on the days when you are not working;
- Enable or disable the listing of your exchange office manually using corresponding link in your bestchange.org account.
If you have any questions, you can ask them by contacting us with the help of the methods specified on the contacts page.