Code Monkey home page Code Monkey logo

bitstamp-python-client's Introduction

bitstamp-python-client

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

  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

bitstamp-python-client's People

Contributors

bitdeli-chef avatar jacopsd avatar kmadac avatar smileychris avatar vorwrath avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.