Custom Rate Parser
Last Updated: 03.05.2023 08:59
General Information
A custom course parser allows you to automatically update exchange rates using your own data source.
Configuration
To configure the custom course parser, go to the "Application Settings" - "Custom Rate Parser Settings (API)". You can specify a secret key that will be sent in the HTTP header "X-Authorization".
Example Request
curl -X POST 'https://YOUR.HOST' \
--header 'X-Authorization: SECRET_KEY'
Example Response
Successful response:
{
"success": true,
"result": {
"ETHUSD": [
1,
350.4355
],
"MYCUR1MYCUR2": [
765.4466,
1
]
}
}
The key is the value of the "Pair" field, as specified in the "Rate Parser" tab on the exchange direction editing page, and the value consists of the currency exchange rate.
Unsuccessful response:
{
"success": false,
"result": false
}
Work Documentation
For Developers
© Exchanger CMS, 2018 - 2024. E-currency exchange script. All rights reserved. Terms of Service.