COINPAY Software Development Kit
Project description
COINPAY SDK
Introduction
COINPAY.ua - payment platform that provides:
- deposit and withdrawal of funds to/from bank cards
- transfers within the platform free of commission fee
- currency and cryptocurrency exchange
Requirements
This library requires Python version from 3.5 to 3.9.
Please note that this library also uses requests and certifi. These libraries' supported Python versions can differ from the versions supported by coinpay_sdk
Installation
We recommend using PyPI to install the COINPAY Software Development Kit for Python.
$ pip install coinpay-sdk
Usage
After the registration, api_key and api_secret will become available. You can get them here. Please note that some features are fully available only after the verification.
Example
The examples folder has basic and advanced examples.
Base api url - https://api.coinpay.ua/
from coinpay.processing import CoinPay
api_key = ''
api_secret = ''
host = 'https://api.coinpay.ua/'
pay = CoinPay(api_key=api_key,
api_secret=api_secret,
host=host)
def get_total_balance(view_currency) -> float:
"""
Shows total balance for account in chosen currency
:param view_currency: currency for total balance
:return: total balance amount for account
"""
result = pay.get_balance()
balance_dict = result.get('balance')
total = 0
for currency in balance_dict:
total += ((balance_dict.get(currency).get(view_currency).get('total')) +
(balance_dict.get(currency).get(view_currency).get('reserved')))
return total
print(get_total_balance('BTC'))
Documentation
Please see the Documentation for more details.
Contact Us
- Website: https://coinpay.ua
- Mail: support@coinpay.ua
- Telegram BOT: https://t.me/COINPAY_Bot
- Facebook: https://www.facebook.com/coinpay.com.ua
License
COINPAY SDK for Python is licensed under MIT License.
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 Distributions
Built Distribution
File details
Details for the file coinpay_sdk-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: coinpay_sdk-0.0.3-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da83c272b484c5df4b1bb5c4a0279b3bddf05920fd45fd9c9550f6ab86f83e7e |
|
MD5 | 3504ec137c6ced8f1bd81ed8f4df0993 |
|
BLAKE2b-256 | c18fd384397f1b42e23d4f98ee5e0a6c975b14ca1a8715bc89069be484930066 |