BoxExchanger Limited

Reading time icon 3 min.

Bestchange rate parser v2 update

Added: May 13, 2024

Updated: October 1, 2024

Dear friends!

We are pleased to announce that we have released an update to the bestchange v2 course parser.

What new things does the update offer?

  1. In order to receive courses it is only necessary to have an API key, which can be obtained by any user in the LC bestchange. Previously it was necessary to be added to the BestChange monitoring and be in the TOP 30 in the direction. 
  2. Added course validation: https://manual.boxexchanger.net/obmen/parser-kursov/bestchange-v2#validaciya-kursov. 
  3. Added ability to parse courses from 2 versions of monitoring.
  4. You can specify a course update interval of up to 15 seconds. Previously, you could only receive courses every 30 seconds. 
  5. The parser is optimised and fast.
  6. You can specify the TOP places to receive courses.

How do I set up the parser?

  1. To run the parser, you need to follow the instructions at https://manual.boxexchanger.net/obmen/parser-kursov#konfiguraciya-parsera.
  2. In the "api_key" section, you need to specify the API key to get the exchange rates and then click "Apply Changes" (API_KEY). API key can be generated in the BestChange LK at the following link: https://www.bestchange.ru/partner/profile.html. Go to the "Profile" tab under "API to get exchange rates", click that you agree to BestChange's terms of use, and then click "Get" and copy the API key.
  3. Leave the "batch" section unchanged. It is responsible for the number of courses that will be processed in one API request. The maximum value is 500.
  4. In the "places" section, you will need to specify the locations for which you will receive courses. For example, if you would like to receive courses for 1, 3, and 4 places from the BestChange list by pair - enter 1, 3, 4, then click "Apply Changes (PLACES)".
  5. In the "routes" section, enter the pairs for which you want to get the rates. For example, non-cash currencies: XML1_XML2. To get the rates for the pair USDT TRC20 -> Monobank UAH, enter USDTTRC20_MONOBUAH. In case of cash currencies: XML1_XML2-CITY

In order to get rates for the pair Cash USD KIEV -> USDT TRC20, you need to enter CASHUSD_USDTTRC20-KIEV. Do not forget to separate pairs with comma. Example: USDTTRC20_MONOBUAH,CASHUSD_USDTTRC20-KIEV,BTC_USDTTRC20. At the end click "Apply changes (ROUTES)".

  1. In the "sourceRate" section, specify the source of the course: For example, if the value is bestchange.ru, the courses will be parsed from the Russian version of BestChange. If you set bestchange.com, the courses will be parsed from the English version of BestChange.
  2. In the "Interval2" section it is necessary to specify the frequency of course updating in milliseconds. The recommended value is 15000. After that click "Apply changes (INTERVAL)".
  3. In the "ignoreChangerIds" section you can specify BestChange id of exchange services whose rates will be ignored during parsing.
  4. The parser is set up.

Course validation

If BestChange does not have a rate for a pair specified in the "routes" section, the system will automatically set the rate to 0 for that pair. This direction will become unavailable for creating an order.  

In the admin panel, a warning sign will be displayed on the "Direction Setup" page with direction 0. 

If a rate for a pair appears on BestChange, the rate will be automatically updated in the parser and the direction will become available again for creating a request on the client side. The warning sign will disappear. 

For any questions, feel free to write to the working group with your personalised support.

Regards, BoxExchanger team.

Buy

Also read