furkansahin / btcturk-client

btcturk.com api client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

btcturk-client

python client for btcturk api.

installation

$ (sudo) pip install btcturk_client

usage

from btcturk_client.client import Btcturk

_btcturk = Btcturk("publicKey", "privateKey")

# you can just init the Btcturk with zero arguments 
# if you don't plan to call authenticated api methods.

example call: ticker()

from btcturk_client.client import Btcturk

_btcturk = Btcturk()

print _btcturk.ticker()

response

{
    u 'Volume': 64.43,
    u 'Last': 889.85,
    u 'Timestamp': 1413890132.0,
    u 'Bid': 881.15,
    u 'High': 889.85,
    u 'Low': 872.15,
    u 'Ask': 885.0,
    u 'Open': 875.63
}

check out source for other methods.

notes

  • you can get your private/public key peer from your account at BTCTurk.

  • all methods including buy/sell are mapped to current API.

About

btcturk.com api client

License:MIT License


Languages

Language:Python 100.0%