Monobank.ua API implementation
Project description
python-monobank
Python client for Monobank API (https://api.monobank.ua/docs/)
Installation
pip install monobank
Usage
Personal api
-
Request your token at https://api.monobank.ua/
-
Use that token to initialize client:
import monobank
token = 'xxxxxxxxxxxxxxx'
mono = monobank.Client(token)
user_info = mono.personal_clientinfo()
print(user_info)
Methods
Get currencies
>>> mono.bank_currency()
[
{'currencyCodeA': 840,
'currencyCodeB': 980,
'date': 1561686005,
'rateBuy': 25.911,
'rateSell': 26.2357},
{'currencyCodeA': 978,
'currencyCodeB': 980,
'date': 1561686005,
'rateBuy': 29.111,
'rateSell': 29.7513},
...
Get client info
>>> mono.personal_clientinfo()
{
'name': 'Dmitriy Dubilet'
'accounts': [
{
'id': 'accidxxxxx'
'balance': 100000000,
'cashbackType': 'UAH',
'creditLimit': 100000000,
'currencyCode': 980,
}
],
}
Get statements
>>> mono.personal_statement('accidxxxxx', date(2019,1,1), date(2019,1,30))
[
{
'id': 'iZDPhf8v32Qass',
'amount': -127603,
'balance': 99872397,
'cashbackAmount': 2552,
'commissionRate': 0,
'currencyCode': 978,
'description': 'Smarass club',
'hold': True,
'mcc': 5411,
'operationAmount': 4289,
'time': 1561658263
},
...
]
Corporatre API
...still negotiating...
Handling Errors
TODO
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
monobank-0.3.0.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file monobank-0.3.0.tar.gz
.
File metadata
- Download URL: monobank-0.3.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.16 CPython/3.6.6 Darwin/16.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 591497cf9742977f36cfa92e9ae9e9861b8e03835466781a24a3df9e940afc20 |
|
MD5 | 612f57aea23d3f0d97e4e0abedd0992e |
|
BLAKE2b-256 | 2035fe35e2ea55255d4591fd191d81617965a9c2c12bf07be8b30da31e20deac |
Provenance
File details
Details for the file monobank-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: monobank-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.16 CPython/3.6.6 Darwin/16.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 907a897fc6a1402f6a9ebf4501c3bda1d870b79e15447f55d598f4e120f4a86c |
|
MD5 | 603ec486176dd9dd3e5949f3370df2f1 |
|
BLAKE2b-256 | cb2217cccf232e83e359ad68cdf1b3df4eb28bd374508a23478f2931a761e8e4 |