Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 948 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 948 Bytes

pybtcc

btcc API for python

Installation

Usage

See the tests for detailed usage examples, but basically:

API object creation

from pybtcc.api import btcc
api = btcc(key, secret. options)

Where options can be

option key description default
hostname the API host api.mybtcc.com
port the TCP port to attach to 443
pair The currency pair to provide results for XBTZAR
ca The root certificate None
timeout The maximum time to wait for requests 30 (s)

API calls

Latest ticker

api.get_ticker()

Returns: dictionary containing the latest ticker values

All tickers

api.get_all_tickers()

Returns: dictionary containing the latest ticker values for all currency pairs

Acknowledgements

A nod to @bausmeier/node-btcc for the node.js version, which helped accelerate the development of this code