Skip to content
/ btcde Public
forked from peshay/btcde

A Python Module for Bitcoin.de Trading API

License

Notifications You must be signed in to change notification settings

wwender/btcde

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

btcde.py

A Python Module for the Bitcoin.de Trading API

Requires: requests

Install btcde.py

You can (not yet) install the btcde module via pip

pip install btcde

How to Use

This is an example how you can use it in a python script

#! /usr/bin/env python
import btcde
# create a object for the connection settings
api_key = <YourAPIKey>
api_secret = <YourAPISecret>
conn = btcde.Connection(api_key, api_secret)
orderbook = btcde.showOrderbook(conn, 'buy')
print('API Credits Left: ' + str(orderbook.get('credits')))
orders = orderbook.get('orders')
for order in orders:
    print('Order ID: ' + str(order.get('order_id')) + '\tPrice: ' + str(order.get('price')) + ' EUR')

API Methods

For more Details on the API Methods, please read bitcoin.de API Documentation All mandatory parameters have to be passed to a function, all optional are resolved via **args

showOrderbook(conn, OrderType, **args)

API Credits Cost: 2

createOrder(conn, OrderType, max_amount, price, **args)

API Credits Cost: 1

deleteOrder(conn, order_id)

API Credits Cost: 2

showMyOrders(conn, **args)

API Credits Cost: 2

showMyOrderDetails(conn, order_id)

API Credits Cost: 2

executeTrade(conn, order_id, OrderType, amount)

API Credits Cost: 1

showMyTrades(conn, **args)

API Credits Cost: 3

showMyTradeDetails(conn, trade_id)

API Credits Cost: 3

showAccountInfo(conn)

API Credits Cost: 2

showOrderbookCompact(conn)

API Credits Cost: 3

showPublicTradeHistory(conn, since_tid=None)

API Credits Cost: 3

showRates(conn)

API Credits Cost: 3

showAccountLedger(conn, **args)

API Credits Cost: 3

About

A Python Module for Bitcoin.de Trading API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%