Skip to main content

Python client for Monobank open API

Project description


Build Status codecov

Python client for Monobank open API (


Without authorization

Monobank open API allows making certain requests without any authorization.

from pymonobank import Monobank

mono = Monobank()
currencies = mono.get_currency()

Personal token

Request and activate your personal token at

from pymonobank import PersonalMonobank
from datetime import datetime

TOKEN = "your token here"

mono = PersonalMonobank(TOKEN)

# Retrieve user's information (name, list of accounts, etc.)
user_info = mono.get_client_info()

# Get account statements for the given period
account_id = "some account id"
mono.get_statements(account_id, datetime(2019, 10, 30), datetime(2019, 11, 1))

Authorization request

Corporate API documentation (

In order to use this authorization method you'll need to generate a key and contact Monobank team.

Generate private key

ecparam -name secp256k1 -genkey -noout -out private_key.pem

NOTE: Do not share this key with anyone.

Generate public key

openssl ec -in private_key.pem -pubout -out public_key.pem

For more information check the API documentation.

Usage example

from pymonobank import CorporateMonobank, FULL_ACCESS

mono = CorporateMonobank.request_auth(FULL_ACCESS, "./private_key.pem")

if mono.check_auth():
    user_info = mono.get_client_info()



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pymonobank, version 2019.6.1.dev1
Filename, size File type Python version Upload date Hashes
Filename, size pymonobank-2019.6.1.dev1-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pymonobank-2019.6.1.dev1.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page