We have used EXCHANGE RATE API to get exchange rate. Which is free API to provide current and historical exchange rate. So it's may provided delayed data. If you want the live data then you need to purchase paid API.
A regular license allows an item to be used in one project for either personal or commercial use by you or on behalf of a client. The item cannot be offered for resale either on its own or as part of a project. Distribution of source files is not permitted.
An extended license allows an item to be used in unlimited projects for either personal or commercial use. The item cannot be offered for resale "as-is". It is allowed to distribute/sublicense the source files as part of a larger project.