Freecurrencyapi Python Client is the official Python Wrapper around the freecurrencyapi API.
Install from pip:
pip install freecurrencyapiInstall from code:
pip install git+https://github.com/everapihq/freecurrencyapi-python.gitAll freecurrencyapi API requests are made using the Client class. This class must be initialized with your API access key string. Where is my API access key?
In your Python application, import freecurrencyapi and pass authentication information to initialize it:
import freecurrencyapi
client = freecurrencyapi.Client('API_KEY')print(client.status())https://freecurrencyapi.com/docs/currencies
result = client.currencies(currencies=['EUR', 'CAD'])
print(result)https://freecurrencyapi.com/docs/latest
result = client.latest()
print(result)https://freecurrencyapi.com/docs/historical
result = client.historical('2022-02-02')
print(result)Any feedback? Please feel free to contact our team.