Python package to communicate with the bitstamp.net API.
Compatible with Python 2.7+ and Python 3.3+
Overview
There are two classes. One for the public part of API and a second for the trading part.
Public class doesn’t need user credentials, because API commands which this class implements are not bound to bitstamp user account.
Description of API: https://www.bitstamp.net/api/
Install
Install from PyPi:
pip install BitstampClient
Install from git:
pip install git+git://github.com/kmadac/bitstamp-python-client.git
Usage
Here’s a quick example of usage:
>>> import bitstamp.client >>> public_client = bitstamp.client.Public() >>> print(public_client.ticker()['volume']) 8700.01208078 >>> trading_client = bitstamp.client.Trading( ... username='999999', key='xxx', secret='xxx') >>> print(trading_client.account_balance()['fee']) 0.5000 >>> print(trading_client.ticker()['volume']) # Can access public methods 8700.01208078
How to activate a new API key
Login your Bitstamp account
Click on Security -> Api Access
Select permissions which you want to have for you access key (if you don’t check any box, you will get error message ‘No permission found’ after each API call)
Click the ‘Generate key’ button and don’t forget to write down your Secret!
Click ‘Activate’
Goto your Inbox and click on link sent by Bitstamp to activate this API key
Class diagram
Metadata
Release files for BitstampClient 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| BitstampClient-2.0.3.tar.gz | 5.1 kB | Without provenance | Details |
Release files / BitstampClient-2.0.3.tar.gz
| Download URL | BitstampClient-2.0.3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b686e12939b5781785d48f8c5f419ee0e9cab1d04e5519c7bb9ce42dcb0f0d37
|
|
BLAKE2b-256 checksum How to use checksums |
1c8f930db0ca539d11f24de9de826e17b5d2d3968b579050e05750ec126fd1ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for BitstampClient 2.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.