btcturk

Python btcturk.com API wrapper.


Keywords
btcturk, bitcoin, exchange, btc, eth, xrp, client, ethereum, python
License
MIT
Install
pip install btcturk==0.0.5

Documentation

pybtcturk

Python client for the Btcturk Api.

Build version License Python version

Installation

pip install btcturk
pip install git+git://github.com/erhan/pybtcturk.git

Usage

Btcturk Pair symbols

  • BTCTRY
  • ETHTRY
  • XRPTRY

Public Endpoint Methods

from btcturk import Btcturk  

client = Btcturk()  

Ticker

client.ticker()  

Get order book

client.get_order_book(pair_symbol)

Get all trades

client.get_all_trades(pair_symbol)

Get last trades

client.get_last_trades(pair_symbol, count)

Get all ohlc data

client.get_all_ohlc(pair_symbol)

Get daily ohlc data

client.get_daily_ohlc(pair_symbol, days)

Private Endpoint Methods

from btcturk import Btcturk  

client = Btcturk("public_key", "private_key")

Get balances

client.get_balances()
# example return : 
client.get_balances_v2()
# example return : 

Get transactions

client.get_transactions(limit, offset, ascending)

Get open orders

client.get_open_orders(pair_symbol)

Cancel order

client.cancel_order(order_id)

Market buy

client.market_buy(pair_symbol, total, total_precision)

Market sell

client.market_sell(pair_symbol, amount, amount_precision)

Limit buy

client.limit_buy(pair_symbol, amount, amount_precision, price, price_precision)

Limit sell

client.limit_sell(pair_symbol, amount, amount_precision, price, price_precision)

Stop buy

client.stop_buy(pair_symbol, total, total_precision, trigger_price, trigger_price_precision)

Stop sell

client.stop_sell(pair_symbol, total, total_precision, trigger_price, trigger_price_precision)