コード例 #1
0
 def __init__(self,
              config,
              coin,
              base,
              user_id=20,
              accounts=None,
              price=1,
              password='******',
              limit_only=True):
     self.coin = coin
     self.base = base
     self.name = "test"
     self.ticker = translate_ticker(coin=coin, base=base)
     self.orderbook = Orderbook()
     self.user_id = user_id
     self.USER_ID = user_id
     self.user_accounts = accounts if accounts else {}
     self.order_history = []
     self.price = price
     self.retries = 3
     self.limit_only = True
     self.DEBUG = 3
     self.history = []
     self.index = 0
     print(config)
     self.load_history(config['start'])
コード例 #2
0
ファイル: exchange.py プロジェクト: binaryFate/merkato
 def __init__(self, config, coin, base):
     self.privatekey = config['privatekey']
     self.publickey = config['publickey']
     self.limit_only = config['limit_only']
     self.retries = 5
     self.coin = coin
     self.base = base
     self.ticker = translate_ticker(coin=coin, base=base)
コード例 #3
0
ファイル: exchange.py プロジェクト: evdc/merkato
 def __init__(self, config, coin, base):
     self.privatekey = config['private_api_key']
     self.publickey = config['public_api_key']
     self.limit_only = config['limit_only']
     log.info('TuxExchange config', config)
     self.retries = 5
     self.coin = coin
     self.base = base
     self.ticker = translate_ticker(coin=coin, base=base)
     self.name = 'tux'
コード例 #4
0
 def __init__(self,
              config,
              coin,
              base,
              user_id=20,
              accounts=None,
              price=1,
              password='******'):
     self.coin = coin
     self.base = base
     self.ticker = translate_ticker(coin=coin, base=base)
     self.orderbook = Orderbook(test_bids, test_asks)
     self.user_id = user_id
     self.USER_ID = user_id
     self.user_accounts = accounts if accounts else {}
     self.order_history = []
     self.price = price
     self.retries = 3
     self.limit_only = True
     self.DEBUG = 3