Skip to content

CVCO/python-trader-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 = 'me@example.com'
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.

About

Bincentive trader client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%