Fxapi Python Client
Project description
fxapi Python Client
Fxapi Python Client is the official Python Wrapper around the fxapi API.
Installation
Install from pip:
pip install fxapi
Install from code:
pip install git+https://github.com/everapihq/fxapi-python.git
Usage
All curencyapi 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 fxapi
and pass authentication information to initialize it:
import fxapi
client = fxapi.Client('API_KEY')
Retrieve Status
print(client.status())
Retrieve Currencies
https://fxapi.com/docs/currencies
result = client.currencies(currencies=['EUR', 'CAD'])
print(result)
Retrieve Latest Exchange Rates
result = client.latest()
print(result)
Retrieve Historical Exchange Rates
https://fxapi.com/docs/historical
result = client.historical('2022-02-02')
print(result)
Retrieve Historical Range Exchange Rates
result = client.range('2022-02-02', '2022-02-04')
print(result)
Retrieve Converted Exchange Rates
https://fxapi.com/docs/convert
result = client.convert(1234)
print(result)
Contact us
Any feedback? Please feel free to contact our team.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fxapicom-0.1.1.tar.gz
(2.5 kB
view hashes)