Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 903 Bytes

File metadata and controls

31 lines (21 loc) · 903 Bytes

Setup

  1. Clone this project from git repo.
  2. At project root, install this package by running
    $ pip install .

Usage

from bincentive_trader.client import TraderClient

email = '[email protected]'
password = 'super secret'

client = TraderClient(email, password, False)

Available clients methods are:

  • get_strategy_list(timeout=None)
  • get_exchange_list(timeout=None)
  • add_market_order(strategy_id, exchange_id, base_currency, quote_currency, side, amount, leverage=None, timeout=None)
  • get_history_list(strategy_id, begin_time, end_time, account_type='real', timeout=None)
  • add_api_key(api_key, api_secret_key, exchange_id, timeout=None)
  • get_api_key_list(timeout=None)
  • delete_api_key(exchange_id, timeout=None)

Each method has a timeout parameter that will cause a bincentive_trader.exceptions.Timeout exception if no response is received in specified seconds.