CoinPayments API Client for Python
Project description
CoinPayments API Client
CoinPayments | API Documentation
This library will let you to easily interact with CoinPayments API directly from your Python application.
Installation
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',
private_key='your_api_private_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='http://example.com')
{'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,
private_key='your_ipn_secret_key')
>>> api.check_signature('ipn_message', 'ipn signautre')
False
Contributing
Contributions are welcome and will be fully credited. Contributions can be made via a Pull Request.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coinpayments_py-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: coinpayments_py-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
065e294fcc34a155125adc65092b03ccd38b0522717b3823c6ee8bb9c8a47ec6
|
|
| MD5 |
28920270a58ebfdbd337b0bb7f1a0229
|
|
| BLAKE2b-256 |
fd2edb600db26e0f252d95efb4da6d8543ae63b7a699e2f0b914ba339e23c5be
|