API Wrapper for Bitcoin.de Trading API
Requires: requests
You can 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 = conn.showOrderbook('buy', 'btceur')
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
- Required Parameters:
- type
- trading_pair
- Optional Parameters:
- amount
- price
- order_requirements_fullfilled
- only_kyc_full
- only_express_orders
- only_same_bankgroup
- only_same_bic
- seat_of_bank
API Credits Cost: 2
- Required Parameters:
- type
- trading_pair
- Optional Parameters:
- max_amount
- price
- min_amount
- end_datetime
- new_order_for_remaining_amount
- min_trust_level
- only_kyc_full
- payment_option
- seat_of_bank
API Credits Cost: 1
- Required Parameters:
- order_id
- trading_pair
API Credits Cost: 2
- Optional Parameters:
- type
- trading_pair
- state
- date_start
- date_end
- page
API Credits Cost: 2
- Required Parameters:
- order_id
API Credits Cost: 2
- Required Parameters:
- order_id
- type
- trading_pair
- amount
API Credits Cost: 1
- Optional Parameters:
- type
- trading_pair
- state
- date_start
- date_end
- page
API Credits Cost: 3
- Required Parameters:
- trade_id
API Credits Cost: 3
API Credits Cost: 2
- Required Parameters:
- trading_pair
API Credits Cost: 3
- Required Parameters:
- trading_pair
- Optional Parameters:
- since_tid
API Credits Cost: 3
- Required Parameters:
- trading_pair
API Credits Cost: 3
- Required Parameters:
- currency
- Optional Parameters:
- type
- date_start
- date_end
- page
API Credits Cost: 3