A small library for getting information on cash exchange rates of PrivatBank and the NBU on the selected date
Project description
Official Repo: https://github.com/ValentynKhoroshchak/privat-exchange-rates
It uses the following libraries:
- Requests for requests to exchanges
Quick Install / Usage
pip install privat_exchange_rates
from datetime import datetime
from privat_exchange_rates import get_exchange_rates
def main():
exchange_rates = get_exchange_rates(datetime(day=21, month=4, year=2022))
print(exchange_rates)
# {
# 'date': '21.04.2022',
# 'bank': 'PB',
# 'baseCurrency': 980,
# 'baseCurrencyLit': 'UAH',
# 'exchangeRate': [{
# "baseCurrency": "UAH",
# "currency": "AUD",
# "saleRateNB": 12.8319250,
# "purchaseRateNB": 12.8319250
# }]
# }
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
Built Distribution
Close
Hashes for privat-exchange-rates-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b0faddca0ca7c14db2733ced4a83b5587a2344141e959f8ad320847da35af80 |
|
MD5 | c00929d1153e078b4fe4ad0cdec1fb4a |
|
BLAKE2b-256 | f1d0a5c889a73fe2fab69eff5dda73fdc9586921d1db5294723c0e3c7e4b9cfb |
Close
Hashes for privat_exchange_rates-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2ee59010e170fe39ff24f2a9237bc2c6c5a2859ffc9462ed23294179009493 |
|
MD5 | 5b11133ecbac037f00dd33cd2dd46aa2 |
|
BLAKE2b-256 | b6eb0ffa24842ab976f5cdf620d5ca678bf105b13f49a4454ecd0109586a743c |