Skip to main content

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

  1. Request your token at https://api.monobank.ua/

  2. Use that token to initialize client:

  token = 'xxxxxxxxxxxxxxx'

  mono = Monobank(token)
  client_info = mono.personal_clientinfo()
  print(client_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...

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

monobank-0.2.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

monobank-0.2.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file monobank-0.2.2.tar.gz.

File metadata

  • Download URL: monobank-0.2.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.6.6 Darwin/16.7.0

File hashes

Hashes for monobank-0.2.2.tar.gz
Algorithm Hash digest
SHA256 69baf23ff7c04ad6d3f1d60159a2833f8a7847f663b0bbdf843b2f8ee2a5efba
MD5 8dd1ed9c7aaabcd7934e479497d68015
BLAKE2b-256 025deb3e30ca2617cc9f99a2afa85c4b7ad0cea56f5e64ee71a2239f8e84be01

See more details on using hashes here.

Provenance

File details

Details for the file monobank-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: monobank-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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

Hashes for monobank-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ccb73fcf6ce4cd3f0d77dc4a6b25c9230663cf943b0b239ced96532d6a4d4d6e
MD5 400c1a04c09d1bcff47d471d7d056b20
BLAKE2b-256 3f68d5c8020cc0545450e84afb8a78a131844f1f158c0339e3c203b374103837

See more details on using hashes here.

Provenance

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