Automatic updates of foreign currency does not happen
Magento 2 gives you the option to update currency rates from one of the three options:
- Yahoo Finance Exchange
You need to specify which option you want to use for currency rates update. You also need to configure the update option you’ve selected.
Step 1: Go to Stores => Configurations (under Settings).
Step 2: Click on Currency Setup tab from the left sidebar in General configuration settings.
You’ll see Yahoo Finance Exchange, Fixer.io and Webservicex sections in the Currency Options page.
Step 3: Expand the section you want to use for currency rate import.
You’ll see the Connection Timeout in Seconds field in your selected import option.
Set the number of seconds for which your connection stays idle when trying to establish an import connection before it times out.
Step 4: Expand the Scheduled Import Settings section.
You’ll need to fill in the following details to schedule currency rates update import:
Enabled: Set this to “Yes” to automatically update currency rates.
Service: Select the service from where you want to update the currency rates.
Start Time: Set the time when your rate import should start.
Frequency: Set frequency of the rate updates. You can set the update frequency to:
Error Email Recipient: Specify an email address, where a notification should be sent if there is an error in the rate import process. Error Email Sender: Set which email should be used to send the error notification. Error Email Template: Set which email template should be used for error notification email.
Step 5: Click on Save Config button to save the currency rate update settings.
You’ll be prompted to refresh invalidated cache types through system pop-up message.
After all run command:
php bin/magento cache:flush
In magento 2 latest version you usually face this problem. You can get latest currency rate using below module.
I created this extension https://github.com/thanhdv2811/Magento-2-Currency-Convert to update currency rate using other services to fix the magento currency auto-update issue