This script fetches currency rates from the Central Bank of Russia for yesterday. It uses SOAP API and convert received data to JSON.
https://www.cbr.ru/development/DWS/
Clone repository and chdir there.
composer install
cp .env_example .env
chmod +x currency_rate_fetcher.php
./currency_rate_fetcher.php | jq