Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

erhan/pybtcturk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published

Languages