Competitor rates
Description
Please note! When using this option, you must understand that this is a course parser from a third-party source. In some cases, the source may provide incorrect rates. Before you start using this option, please read everything written here CAREFULLY!
Go to the admin section: AEO (Other) - Competitor courses.
This section contains a course parser from the BestChange website.
You can link the course of any selected competitor’s site to your course in each area.
You can set the rate change, including with negative numbers and the rate change limit (minimum and maximum).
The result will be recorded in the courses and will change depending on the settings of the parser for this direction.
The parser in any direction can be disabled or deleted at any time.
If a direction or source disappears from the parser during the process, the added direction will be automatically disabled.
In this case, you will be sent a system notification by E-mail and Telegram (if configured and enabled)
To get started, go to the section: System - Scheduler (CRON) and enable CRON Competitor courses.
You can add CRON servers for more stable operation.
CRON servers for receiving competitors' courses
In the control panel of your server, go to the section: CronTab (Task Scheduler) (example for Beget.com hosting).
Add a task:
yourdomain.com replace with your domain
The screenshot shows an example of running a task every 5 minutes.

Tab Competitor courses
In this section, all sites are sources and courses of competitors from the BestChange site.
Only those destinations that are included on your site are displayed.
Source - name of the source site. Unfortunately, BestChange does not provide website URLs.
Perhaps you will find your site. Don't try to compete with yourself :)
If your site is added to BestChange monitoring and when adding a parser you selected: Highest rate or Lowest rate , then we can congratulate you! You started competing with yourself. Wait to see who will win. :)
Adding a parser
Choose the desired direction.
If the direction is defined incorrectly, do not create a parser for this direction under any circumstances
Source - select the source
Highest rate or Lowest rate - automatic detection of the source with the highest or lowest rate at the time the parser is launched. The sources of Highest rate or Lowest rate may change when the parser is updated.
Comparison of rates - displayed for ease of calculation. Your rate and the source rate
Difference - the difference in rates is displayed. In the case where it is impossible to compare the difference with a calculator, Comparison is impossible
will be displayed.
Comparison is not possible in cases where the source rate and your rate are calculated using different algorithms. For example: 1 => 0.98208000 - your rate 1.03924177 => 1 - source rate or 10.00000000 => 9.90000000 - your rate 1.01009999 => 1 - source rate
Rate change limits (Minimum) - a number below which the rate will not decrease under any conditions. Cannot be equal to or below zero
Rate change limits (Maximum) - a number above which the rate will not increase under any conditions. Cannot be lower than the source rate
Change the rate - by what amount the rate of the selected source will be changed. By default, it increases the rate - makes it more profitable. You can use negative numbers to reduce the rate. Use minus
Result - after saving the parser, this particular course will be recorded as a course in the direction. The source will be recorded as BestChange
The BestChange source can be changed to any other, only by disabling or removing the parser in this direction.
Click on the icon = go to the parser in this direction in the Active course parsers section.
Example of adding a parser
Direction - Advanced Cash USD => Bitcoin (BTC)
Source - Highest rate
Rate change limits (Minimum) - 3951.29184140
Rate change limits (Maximum) - 5233.63000000
Rate change - 0.00000001
Thus, your rate will be more profitable for your clients by 0.00000001 until the rate reaches the maximum limit you set 5233.63000000 But if a competitor’s rate is higher than your limit 5233.63000000, then your rate will not change. Remains at your limit 5233.63000000
Process of the parser
After adding the parser, you will see it in the Active course parsers
tab
After each launch of CRON Competitor courses the active parser is also updated.
If there are changes in the selected source, the data will be updated. Including your course in the direction will be updated in accordance with the conditions you set.
Parsers no longer turn off if they do not receive courses.
You need to monitor the activity of parsers yourself.
For this purpose, the dates of the latest updates of parser courses have been added.
Please note that when updating courses from the parser, all your referral commissions are reset to zero.
The parser is written for competition. If you include your commissions in the course, then there is no point in using a parser. In this case, use stable sources for receiving courses.
If you have your own ideas and need your commissions to be taken into account, then do the following:
In the file competitor.class.php, which is located in the module/exchange directory, find:
Comment out the first line and uncomment the line below.
Nuances
Very often, when adding payment cards to the parser, the answer is: Direction missing from parser
Search from the donor website is case sensitive.
For example, if your payment card is named Qiwi, it will not be found.
Rename it to QIWI, update the parser and find the payment in this section.
Similarly with other payments.
You can check which payment cards you can parse in the section: AOP (Miscellaneous) - Competitors' Courses.
Perhaps in the future the API of the BestChange source site will be more or less logical.
For example, in the format: XML
Now BestChange calls this set of DAT files API: http://api.bestchange.ru/info.zip
If you find that the courses are not updated, and CRON is enabled and works without errors, then delete all files with the .DAT extension from the /file/update/ directory
Protection from unhealthy competition
A competitor may give you a file with an incorrect exchange rate. For example, the opposite.
How does this happen? You have annoyed your competitor by fighting for the client, constantly reducing the exchange rate.
He can provide the reverse exchange rate in the XML file for monitoring, and he will have the correct exchange rate in his calculator.
Protection against such fraud has been implemented. In case of data substitution, your rate will remain unchanged until the rate is received correctly.
Using the source course with substitution as an example:
Your exchange rate will not change in this case:
I.e. will remain the same until the correct rate is received.
If the rate is initially (excluding commissions), for example: 1 WMR = 1 Yandex Money RUB, then it will not be updated by the parser. The units will be locked so that the course cannot be reversed.
Rates of your exchanger
If your exchanger is included in the BestChange monitoring, it may turn out that the parser will take your own rate as a competitor’s rate.
To avoid this, a setting has been added: “ID of your exchanger in BestChange”
The setting is in the settings of the exchanger module: Currency exchange - Module settings
The exchanger ID looks like a 2-4 digit number.
Last updated