Skip to main content
https://badge.fury.io/py/BitstampClient.svg

bitstamp-python-client

Python package to communicate with the bitstamp.net API (v1 and v2).

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

  1. Login your Bitstamp account

  2. Click on Security -> Api Access

  3. 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)

  4. Click the ‘Generate key’ button and don’t forget to write down your Secret!

  5. Click ‘Activate’

  6. Goto your Inbox and click on link sent by Bitstamp to activate this API key

Class diagram

Class diagram

Metadata

Release files for BitstampClient 2.2.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BitstampClient 2.2.10
File Size Uploaded
BitstampClient-2.2.10.tar.gz 7.8 kB Details

Release files / BitstampClient-2.2.10.tar.gz

Download URL BitstampClient-2.2.10.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4224d2ed75dac2892f498436874e5d2cf72a054731a4e9ae48e1bfc79842c5c9
BLAKE2b-256 checksum
How to use checksums
76612272f9c55a8cb734530e80975685e1354f7c9d234e5faac4b8ff215dcd9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

2.2.10 This release

1 release file

2.2.9

1 release file

2.2.8

3 release files

2.2.7

3 release files

2.2.5

3 release files

2.2.4

3 release files

2.2.3

3 release files

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.0

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page