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

Quarky9/btcde

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Codecov Scrutinizer Python version license Beerpay

btcde.py

API Wrapper for 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 = 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')

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(OrderType, trading_pair, **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

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

  • 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

deleteOrder(order_id, trading_pair)

  • Required Parameters:
    • order_id
    • trading_pair

API Credits Cost: 2

showMyOrders(**args)

  • Optional Parameters:
    • type
    • trading_pair
    • state
    • date_start
    • date_end
    • page

API Credits Cost: 2

showMyOrderDetails(order_id)

  • Required Parameters:
    • order_id

API Credits Cost: 2

executeTrade(order_id, OrderType, trading_pair, amount)

  • Required Parameters:
    • order_id
    • type
    • trading_pair
    • amount

API Credits Cost: 1

showMyTrades(**args)

  • Optional Parameters:
    • type
    • trading_pair
    • state
    • date_start
    • date_end
    • page

API Credits Cost: 3

showMyTradeDetails(trade_id)

  • Required Parameters:
    • trade_id

API Credits Cost: 3

showAccountInfo()

API Credits Cost: 2

showOrderbookCompact(trading_pair)

  • Required Parameters:
    • trading_pair

API Credits Cost: 3

showPublicTradeHistory(trading_pair, **args)

  • Required Parameters:
    • trading_pair
  • Optional Parameters:
    • since_tid

API Credits Cost: 3

showRates(trading_pair)

  • Required Parameters:
    • trading_pair

API Credits Cost: 3

showAccountLedger(currency, **args)

  • Required Parameters:
    • currency
  • Optional Parameters:
    • type
    • date_start
    • date_end
    • page

API Credits Cost: 3

About

A Python Module for Bitcoin.de Trading API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%