Skip to main content

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 fxapicom

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 fxapicom
client = fxapicom.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

https://fxapi.com/docs/latest

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

https://fxapi.com/docs/range

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


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.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file fxapicom-0.1.2.tar.gz.

File metadata

  • Download URL: fxapicom-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for fxapicom-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8d4829be5e9f84f51d2dc0f33a946bcd95012c616763616cf76f51977a0f4520
MD5 80e032fc9e5e65e3be474537a14a70f3
BLAKE2b-256 28b082e830cbdf589195d1ece8b9e8d56906fa132b6fc61170e4d25223855649

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page