Catalog PyPI
PACKAGE EXPLORERView in registry

abstract-python-exchange-rates

PyPI

AbstractExchangeRates - Wrapper to quickly start using the powerful AbstractAPI's exchange rates service in your projects.

Versions collected1
Direct dependencies9From release 1.0.1
Last observed20 Oct, 17:42 UTC

README

Version 1.0.1 documentation

AbstractAPI python-exchange-rates library

Integrate the powerful Exchange Rates API from Abstract in your Python project in a few lines of code.

The Exchange Rate API is an REST API that allows you to:

  • look up the latest exchange rates for 80+ currencies via the live endpoint
  • get historical exchange rates using the historical endpoint
  • convert an arbitrary amount from one currency to another using the convert endpoint

It's very simple to use: you only need to submit your API key and a currency symbol (such as "USD"), and the API will respond with current exchange rate, historical data, or convertion rates.

Documentation

Supported Python Versions

This library supports the Python version 3.6 and higher.

Installation

You can install python-exchange-rates via PyPi or by downloading the source.

Via PyPi:

python-exchange-rates is available on PyPi as the abstract-python-exchange-rates package:

pip install abstract-python-exchange-rates

API key

Get your API key for free and without hassle from the Abstact website.

Quickstart

Get exchange rates

import pprint
from python_exchange_rates import AbstractExchangeRates

EXCHANGE_RATES_API_KEY =  "YYYYYY"; # Get your API Key from https://app.abstractapi.com/api/exchange-rates/documentation

AbstractExchangeRates.configure(EXCHANGE_RATES_API_KEY)

# Get live exchange rates using Abstract's Exchange Rates API and Python
response = AbstractExchangeRates.live("EUR")
pprint(response)

# Get historical exchange rates using Abstract's Exchange Rates API and Python
response = AbstractExchangeRates.historical('EUR', '2021-05-01');
pprint(response)

# Convert currency using Abstract's Exchange Rates API and Python
response = AbstractExchangeRates.convert('EUR', 'USD');
pprint(response)

API response

The API response contains the following fields:

live response parameters

ParameterTypeDetails
baseStringThe base currency used to get the exchange rates.
last_updatedStringThe Unix timestamp of when the returned data was last updated.
exchange_ratesObjectA JSON Object containing each of the target currency as the key and its exchange rate versus the base currency as that key's value.

historical response parameters

ParameterTypeDetails
baseStringThe base currency used to get the exchange rates.
dateStringThe date the currencies were pulled from, per the successful request.
exchange_ratesObjectA JSON Object containing each of the target currency as the key and its exchange rate versus the base currency as that key's value.

convert response parameters

ParameterTypeDetails
baseStringThe base currency used to get the exchange rates.
targetStringThe target currency that the base_amount was converted into.
dateStringThe date the currencies were pulled from, per the successful request.
base_amountFloatThe amount of the base currency from the request.
converted_amountFloatThe amount of the target currency that the base_amount has been converted into
exchange_rateFloatThe exchange rate used to convert the base_amount from the base currency to the target currency

Detailed documentation

You will find additional information and request examples in the Abstract help page.

Getting help

If you need help installing or using the library, please contact Abstract's Support.

For bug report and feature suggestion, please use this repository issues page.

Contribution

Contributions are always welcome, as they improve the quality of the libraries we provide to the community.

Please provide your changes covered by the appropriate unit tests, and post them in the pull requests page.

Setup

To install the requirements, run:

python3 setup.py install --user

Once you implementer all your changes and the unit tests, run the following command to run the tests:

EXCHANGE_RATES_API_KEY=YYYYYY python3 tests/test_python_exchange_rates.py

Downloads & popularity

2downloads
1-day window · source-reported counts19 Oct 2026
36180
2026-07-23: 4 · observed 2026-10-20T21:17:49.0592361Z · period 2026-07-23–2026-07-232026-07-24: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-07-24–2026-07-242026-07-27: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-07-27–2026-07-272026-07-29: 3 · observed 2026-10-20T21:17:49.0592361Z · period 2026-07-29–2026-07-292026-07-31: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-07-31–2026-07-312026-08-01: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-01–2026-08-012026-08-02: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-02–2026-08-022026-08-03: 8 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-03–2026-08-032026-08-04: 7 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-04–2026-08-042026-08-06: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-06–2026-08-062026-08-09: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-09–2026-08-092026-08-10: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-10–2026-08-102026-08-13: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-13–2026-08-132026-08-14: 4 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-14–2026-08-142026-08-15: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-15–2026-08-152026-08-16: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-16–2026-08-162026-08-17: 6 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-17–2026-08-172026-08-18: 36 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-18–2026-08-182026-08-19: 3 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-19–2026-08-192026-08-20: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-20–2026-08-202026-08-22: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-22–2026-08-222026-08-23: 5 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-23–2026-08-232026-08-24: 15 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-24–2026-08-242026-08-28: 4 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-28–2026-08-282026-08-29: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-08-29–2026-08-292026-09-01: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-01–2026-09-012026-09-06: 4 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-06–2026-09-062026-09-07: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-07–2026-09-072026-09-09: 3 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-09–2026-09-092026-09-10: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-10–2026-09-102026-09-16: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-16–2026-09-162026-09-17: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-17–2026-09-172026-09-18: 4 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-18–2026-09-182026-09-21: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-21–2026-09-212026-09-24: 3 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-24–2026-09-242026-09-25: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-25–2026-09-252026-09-26: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-26–2026-09-262026-09-27: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-27–2026-09-272026-09-28: 3 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-28–2026-09-282026-09-29: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-29–2026-09-292026-09-30: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-09-30–2026-09-302026-10-02: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-02–2026-10-022026-10-06: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-06–2026-10-062026-10-07: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-07–2026-10-072026-10-08: 4 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-08–2026-10-082026-10-09: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-09–2026-10-092026-10-11: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-11–2026-10-112026-10-12: 4 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-12–2026-10-122026-10-13: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-13–2026-10-132026-10-14: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-14–2026-10-142026-10-15: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-15–2026-10-152026-10-16: 1 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-16–2026-10-162026-10-17: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-17–2026-10-172026-10-19: 2 · observed 2026-10-20T21:17:49.0592361Z · period 2026-10-19–2026-10-19
23 Jul19 Oct

pypistats · 54 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-19 – 2026-10-1922026-10-20T21:17:49.0592361Z
2026-10-17 – 2026-10-1722026-10-20T21:17:49.0592361Z
2026-10-16 – 2026-10-1612026-10-20T21:17:49.0592361Z
2026-10-15 – 2026-10-1512026-10-20T21:17:49.0592361Z
2026-10-14 – 2026-10-1412026-10-20T21:17:49.0592361Z
2026-10-13 – 2026-10-1312026-10-20T21:17:49.0592361Z
2026-10-12 – 2026-10-1242026-10-20T21:17:49.0592361Z
2026-10-11 – 2026-10-1112026-10-20T21:17:49.0592361Z
2026-10-09 – 2026-10-0922026-10-20T21:17:49.0592361Z
2026-10-08 – 2026-10-0842026-10-20T21:17:49.0592361Z
2026-10-07 – 2026-10-0722026-10-20T21:17:49.0592361Z
2026-10-06 – 2026-10-0612026-10-20T21:17:49.0592361Z
2026-10-02 – 2026-10-0212026-10-20T21:17:49.0592361Z
2026-09-30 – 2026-09-3022026-10-20T21:17:49.0592361Z
2026-09-29 – 2026-09-2912026-10-20T21:17:49.0592361Z
2026-09-28 – 2026-09-2832026-10-20T21:17:49.0592361Z
2026-09-27 – 2026-09-2712026-10-20T21:17:49.0592361Z
2026-09-26 – 2026-09-2612026-10-20T21:17:49.0592361Z
2026-09-25 – 2026-09-2522026-10-20T21:17:49.0592361Z
2026-09-24 – 2026-09-2432026-10-20T21:17:49.0592361Z
2026-09-21 – 2026-09-2112026-10-20T21:17:49.0592361Z
2026-09-18 – 2026-09-1842026-10-20T21:17:49.0592361Z
2026-09-17 – 2026-09-1712026-10-20T21:17:49.0592361Z
2026-09-16 – 2026-09-1612026-10-20T21:17:49.0592361Z
2026-09-10 – 2026-09-1022026-10-20T21:17:49.0592361Z
2026-09-09 – 2026-09-0932026-10-20T21:17:49.0592361Z
2026-09-07 – 2026-09-0712026-10-20T21:17:49.0592361Z
2026-09-06 – 2026-09-0642026-10-20T21:17:49.0592361Z
2026-09-01 – 2026-09-0112026-10-20T21:17:49.0592361Z
2026-08-29 – 2026-08-2912026-10-20T21:17:49.0592361Z
2026-08-28 – 2026-08-2842026-10-20T21:17:49.0592361Z
2026-08-24 – 2026-08-24152026-10-20T21:17:49.0592361Z
2026-08-23 – 2026-08-2352026-10-20T21:17:49.0592361Z
2026-08-22 – 2026-08-2222026-10-20T21:17:49.0592361Z
2026-08-20 – 2026-08-2022026-10-20T21:17:49.0592361Z
2026-08-19 – 2026-08-1932026-10-20T21:17:49.0592361Z
2026-08-18 – 2026-08-18362026-10-20T21:17:49.0592361Z
2026-08-17 – 2026-08-1762026-10-20T21:17:49.0592361Z
2026-08-16 – 2026-08-1622026-10-20T21:17:49.0592361Z
2026-08-15 – 2026-08-1512026-10-20T21:17:49.0592361Z
2026-08-14 – 2026-08-1442026-10-20T21:17:49.0592361Z
2026-08-13 – 2026-08-1322026-10-20T21:17:49.0592361Z
2026-08-10 – 2026-08-1012026-10-20T21:17:49.0592361Z
2026-08-09 – 2026-08-0922026-10-20T21:17:49.0592361Z
2026-08-06 – 2026-08-0612026-10-20T21:17:49.0592361Z
2026-08-04 – 2026-08-0472026-10-20T21:17:49.0592361Z
2026-08-03 – 2026-08-0382026-10-20T21:17:49.0592361Z
2026-08-02 – 2026-08-0212026-10-20T21:17:49.0592361Z
2026-08-01 – 2026-08-0112026-10-20T21:17:49.0592361Z
2026-07-31 – 2026-07-3112026-10-20T21:17:49.0592361Z
2026-07-29 – 2026-07-2932026-10-20T21:17:49.0592361Z
2026-07-27 – 2026-07-2722026-10-20T21:17:49.0592361Z
2026-07-24 – 2026-07-2412026-10-20T21:17:49.0592361Z
2026-07-23 – 2026-07-2342026-10-20T21:17:49.0592361Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.11 Jun 20219

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
abstractapi/python-exchange-rates

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
master
Last push
1 Jun 2021
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

0count
Gauge · observed snapshots21 Oct 2026
10.50
2026-10-21: 0 · observed 2026-10-21T17:20:10.8051899Z
21 Oct21 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2102026-10-21T17:20:10.8051899Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:42 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:246e66b39888a733c2e2689a81b8810daca50eb8cbe4f18c35d179e494fe5e93