Skip to main content

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

License

COINPAY SDK for Python is licensed under MIT License.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

coinpay_sdk-0.0.3-py3-none-any.whl (13.5 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