BestChange exchanger monitoring parser, with the ability to use data in the exchange calculator and other calculations.
The parser operates via a REST API key. You must obtain the key from your personal account on the BestChange website.
Please note your server country. If BestChange is blocked in Russia and your server is located in Russia, the parser will not work.
When activated, the plugin creates a "BestChange Parser" section in the admin panel.
Settings
For the parser to work, you need to configure its settings.
General Settings
Your exchanger ID in the monitoring
If your exchanger is listed, enter its ID. This way, we'll exclude it from the results.
Parsing Logging
Parsing logging saves server responses when accessed. This setting is useful for testing. You can view the logs in the logs section.
Timeout (sec)
The time the parser will wait for a response from the server.
Last Updated
The date and time of the last data updаte.
If Row Missing
The rule the parser uses to determine what to do if the required row you request is missing.
updаte Basic Data
Check the checkbox if the data from the bestchange website has not yet been downloaded. Data must be uploaded.
Without data from the bestchange website, you will not be able to correctly configure the parser.
Parser Settings
Server
The server the parser will access.
Change server in case of access error
Should I change the server if an error response occurred?
API Key
The key you received in your bestchange account for using the API.
Site Version
API Language Version.
Value
The value to be taken from the API.
Adding Pairs
Adding a pair occurs from "BestChange Parser" section - "Add Pair"
When adding or editing a pair, you must fill in the following:
Pair Name
Pair name for the admin panel.
Currency I give and Currency I receive
Currencies of the pair.
City
City of the pair.
If currencies and cities are missing when adding or editing, you must "updаte basic data" in the settings.
Rate Side
Which side of the rate should be taken.
Min. Reserve for Position
Minimum reserve for the pair. If it's 0, all values are valid.
Quickly adding pairs
There's also a quick way to add a pair. In the shortcode calculator, you can specify a value like this:
[bc_xmlcurrency1_xmlcurrency2 line(position_number) float(rate_side)]
xmlcurrency1 and xmlcurrency2
These are the currency values for XML.
position_number
the number of the position you're interested in.
rate_side
1 - left side, 2 - right side, 0 - automatically detect side.
To quickly add a pair with a city, specify the city as the third parameter.
[bc_xmlcurrency1_xmlcurrency2_xmlcity line(position_number) float(rate_side)]
Where to find shortcodes for
Shortcodes for use can be found in the "Bestchange" section - "Pairs" or by quickly calling shortcodes and the calculator field with shortcodes.
Creating a pair does not mean that rates will be available immediately. Rates for new pairs are only recorded while the parser is running. The parser runs on a cron job.
If you need to parse data urgently, you can use the link in the settings.
The link is located at the top of the "Bestchange" page - "Settings".




