Rates file
All your rates in one file. The robot fetches it by itself.
How it is built
- The format is XML or JSON by the BestChange standard.
- Do you already give such a file to another monitoring service? It will do.
- One exchange direction is one item block.
- Write a fraction with a dot. We cannot read a number with a comma or a space.
- The encoding is UTF-8.
XML example
Fields12
| Field | What it is | Example | If there is a mistake |
|---|---|---|---|
from | The code of the currency the client gives. | SBERRUB | The code is not in the list — we do not take the row. |
to | The code of the currency the client gets. | USDTTRC20 | The code is not in the list — we do not take the row. |
in | How much the client gives. | 92.5 | Zero — the direction is off. Not a number — we do not take the row. |
out | How much the client gets for it. | 1 | Zero — the direction is off. Not a number — we do not take the row. |
amount | The reserve: how much you can pay out. | 250000 | Zero or less than the minimum — we do not show the row. |
minamount | The smallest amount of an exchange. | 5000 | More than the maximum — we do not take the row. |
maxamount | The largest amount of an exchange. | 500000 | Not a number — we do not take the row. |
city | The city code. Needed for cash. Several codes may be separated by commas. | MSK, SPB | Cash without a city or a city without cash — we do not take the row. |
param | Labels separated by commas: manual — a manual exchange, cardverify — a card check. | manual, cardverify | We skip a label we do not know. The row works. |
tofee | A fee on top of the rate, taken from the payout: a number or a percent. From the payment — fromfee. | 1 | Not a number and not a percent — we do not take the row. |
floating | A floating rate. The number is for how many minutes you hold it. | 15 | Not a number — the label stays, we do not show the minutes. |
delay | The delay of an exchange, in minutes. | 30 | Not a number — the label stays, we do not show the minutes. |
We do not take a row with a mistake. The other rows of the file work.
The same in JSON
JSON example
In JSON the minimum and maximum are frommin and frommax. Each label is a field of its own: "manual": true.