Skip to main content

CurrencyAPI Python Client

CurrencyAPI Python Client is the official Python Wrapper around the CurrencyAPI API.

Installation

Install from pip:

pip install currencyapicom

Install from code:

pip install git+https://github.com/everapihq/currencyapi-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 currencyapicom and pass authentication information to initialize it:

import currencyapicom
client = currencyapicom.Client('API_KEY')

Retrieve Status

print(client.status())

Retrieve Currencies

https://currencyapi.com/docs/currencies

result = client.currencies(currencies=['EUR', 'CAD'])
print(result)

Retrieve Latest Exchange Rates

https://currencyapi.com/docs/latest

result = client.latest()
print(result)

Retrieve Historical Exchange Rates

https://currencyapi.com/docs/historical

result = client.historical('2022-02-02')
print(result)

Retrieve Historical Range Exchange Rates

https://currencyapi.com/docs/range

result = client.range('2022-02-02', '2022-02-04')
print(result)

Retrieve Converted Exchange Rates

https://currencyapi.com/docs/convert

result = client.convert(1234)
print(result)

Contact us

Any feedback? Please feel free to contact our team.

Metadata

Release files for currencyapicom 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for currencyapicom 0.1.1
File Size Uploaded
currencyapicom-0.1.1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for currencyapicom 0.1.1
File Interpreter ABI Platform
currencyapicom-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / currencyapicom-0.1.1.tar.gz

Download URL currencyapicom-0.1.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9ccb8191f6a8579890119cda5b0b25318f7329571af652b50c9d4013c1cc4405
BLAKE2b-256 checksum
How to use checksums
e4e57dbf0afb2598984d3d0e6dbe4666381e4a1325943ac7932a8ca5d02b36ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / currencyapicom-0.1.1-py3-none-any.whl

Download URL currencyapicom-0.1.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb9c78adbea2fb08adec63736444e7322394d0ecb340698c766bfe49469297f7
BLAKE2b-256 checksum
How to use checksums
0496b6ae06ef5b1f74612d0bcdca53a6bed14c5bc88b88802302144bed77779c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page