Code Monkey home page Code Monkey logo

btcde's Introduction

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

btcde's People

Contributors

com8 avatar froseppl avatar ghgh2 avatar peshay avatar pmatos avatar wwender avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.