We add a datetime object form the datetime module to the above example and that gives us the currency exchange rate at specific time and date. Running the above code gives us the following result − 0.7357387755 Historical currency rates Example from forex_nverter import CurrencyRates The below example gives the live conversion rate. It has functions and parameters which can take inputs for the required currency codes and then give the result for the conversion. This module provides the most direct way of getting the currency conversion rates. In this article we will see how we can handle the API calls for currency exchange rates in real time as well as historical.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |