A Python Module for the Bitcoin.de Trading API
Requires: requests
You can (not yet) install the btcde module via pip
pip install btcde
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')
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
API Credits Cost: 2
API Credits Cost: 1
API Credits Cost: 2
API Credits Cost: 2
API Credits Cost: 2
API Credits Cost: 1
API Credits Cost: 3
API Credits Cost: 3
API Credits Cost: 2
API Credits Cost: 3
API Credits Cost: 3
API Credits Cost: 3
API Credits Cost: 3