Skip to main content

Sync/Async version monobank api

Project description

Sync/Async Python3 Monobank API

Installation

pip install mbnk

Getting Started

import os
from mbnk import Monobank

# Your Monobank API token 
TOKEN = os.getenv('<X-Token>')

mbnk = Monobank(api_token=TOKEN)

#Get currencies rates list
currencies_list = mbnk.public.currency_rates()
print(currencies_list)
#Get Client Info
client_info = mbnk.personal.info()

#Setup webhook url
WEB_HOOK_URL = 'https://example.com/webhook/endpoint'
mbnk.personal.set_webhook(web_hook_url=WEB_HOOK_URL)

#Get statement
from_timestamp = (datetime.now() + timedelta(days=-31)).timestamp()
statement = mbnk.personal.statement(from_date=int(from_timestamp))

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

mbnk-0.0.5.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

mbnk-0.0.5-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

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