Skip to main content

CoinPayments API Client for Python

Project description

CoinPayments API Client

Build Status

CoinPayments | API Documentation

This library will let you to easily interact with CoinPayments API directly from your Python application.


To install coinpayments-py, simply use pip:

pip install coinpayments-py

Basic Usage

Initialize api object

>>> from coinpayments import CoinPaymentsAPI

>>> api = CoinPaymentsAPI(public_key='your_api_public_key',

Call any CoinPayments API method as api object method with corresponding arguments

>>> api.rates()
{'error': 'ok', 'result': 'LTCT': {'balance': 839700000, 'balancef': '8.39700000', 'status': 'available', 'coin_status': 'online'}}}

>>> api.get_callback_address(currency='BTC', ipn_url='')
{'error': 'ok', 'result': {'address': '36v6r1XuaWPtrTuhF8iq8AfBzPS8D4eios'}}

Also you can check IPN HMAC signature using check_signature method

>>> from coinpayments import CoinPaymentsAPI
>>> api = CoinPaymentsAPI(public_key=None,
>>> api.check_signature('ipn_message', 'ipn signautre')


Contributions are welcome and will be fully credited. Contributions can be made via a Pull Request.

Project details

Release history Release notifications

This version


Download files

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

Files for coinpayments-py, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size coinpayments_py-0.1.0-py2.py3-none-any.whl (3.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page