def setUp(self): exchange_bittrex = bittrex_wrapper(_get_value('bittrex','apikey'), _get_value('bittrex', 'secret')) exchange_poloniex = poloniex_wrapper(_get_value('poloniex','apikey'), _get_value('poloniex','secret')) self.exchange_pair = exchange_pair('etc',exchange_bittrex,exchange_poloniex,300) self.exchange_pair._price = self.exchange_pair._ex_A.ticker_pairs([self.exchange_pair._currency])[self.exchange_pair._currency] self.exchange_pair._sell_price = self.exchange_pair._price * 0.5 self.exchange_pair._balance_A = self.exchange_pair._ex_A.balance([self.exchange_pair._ex_A.default_currency, self.exchange_pair._currency]) self.exchange_pair._balance_B = self.exchange_pair._ex_B.balance([self.exchange_pair._ex_B.default_currency, self.exchange_pair._currency])
def test(): apikey = _get_value('yunbi','apikey') secret = _get_value('yunbi','secret') client = yunbi(apikey, secret) # params = {'market': 'sccny', 'side': 'sell', 'volume': 10, 'price': 0.001} # res = client.post('orders', params) # print client.post('clear',None, False) path = client.get_api_path('tickers') % "btccny" print(client.get_by_path(path, {}, False))
def setUp(self): exchange_bittrex = bittrex_wrapper(_get_value('bittrex', 'apikey'), _get_value('bittrex', 'secret')) exchange_poloniex = poloniex_wrapper(_get_value('poloniex', 'apikey'), _get_value('poloniex', 'secret')) self.exchange_pair = exchange_pair('etc', exchange_bittrex, exchange_poloniex, 300) self.exchange_pair._price = self.exchange_pair._ex_A.ticker_pairs( [self.exchange_pair._currency])[self.exchange_pair._currency] self.exchange_pair._sell_price = self.exchange_pair._price * 0.5 self.exchange_pair._balance_A = self.exchange_pair._ex_A.balance([ self.exchange_pair._ex_A.default_currency, self.exchange_pair._currency ]) self.exchange_pair._balance_B = self.exchange_pair._ex_B.balance([ self.exchange_pair._ex_B.default_currency, self.exchange_pair._currency ])
def setUp(self): apikey = _get_value('yunbi','apikey') secret = _get_value('yunbi','secret') self.client = yunbi(apikey, secret)
def setUp(self): apikey = _get_value('bittrex', 'apikey') secret = _get_value('bittrex', 'secret') self.client = bittrex(apikey, secret)
def setUp(self): apikey = _get_value('poloniex', 'apikey') secret = _get_value('poloniex', 'secret') self.client = poloniex(apikey, secret)
def setUp(self): self.wrapper = yunbi_wrapper(_get_value('yunbi','apikey'), _get_value('yunbi','secret'))
def setUp(self): apikey = _get_value('bittrex','apikey') secret = _get_value('bittrex','secret') self.client = bittrex(apikey, secret)
def setUp(self): self.client = bittrex_wrapper(_get_value('bittrex', 'apikey'), _get_value('bittrex', 'secret'))
def setUp(self): self.client = poloniex_wrapper(_get_value('poloniex', 'apikey'), _get_value('poloniex', 'secret'), "USDT")
def setUp(self): self.client = poloniex_wrapper(_get_value('poloniex','apikey'), _get_value('poloniex','secret'))
def setUp(self): apikey = _get_value('yunbi', 'apikey') secret = _get_value('yunbi', 'secret') self.client = yunbi(apikey, secret)
def test_withdraw(self): print self.client.withdraw('fct',1,_get_value('poloniex','address_fct'))
def setUp(self): apikey = _get_value('poloniex','apikey') secret = _get_value('poloniex','secret') self.client = poloniex(apikey, secret)
def setUp(self): self.client = bittrex_wrapper(_get_value('bittrex','apikey'), _get_value('bittrex','secret'))
def test_withdraw(self): print self.client.withdraw('fct', 1, _get_value('bittrex', 'address_fct'))
def setUp(self): self.wrapper = yunbi_wrapper(_get_value('yunbi', 'apikey'), _get_value('yunbi', 'secret'))