コード例 #1
0
	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])
コード例 #2
0
ファイル: test_yunbi.py プロジェクト: bhok/kundouzhishou
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))
コード例 #3
0
    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
        ])
コード例 #4
0
ファイル: test_yunbi.py プロジェクト: bhok/kundouzhishou
	def setUp(self):
		apikey = _get_value('yunbi','apikey')
		secret = _get_value('yunbi','secret')
		self.client = yunbi(apikey, secret)
コード例 #5
0
 def setUp(self):
     apikey = _get_value('bittrex', 'apikey')
     secret = _get_value('bittrex', 'secret')
     self.client = bittrex(apikey, secret)
コード例 #6
0
 def setUp(self):
     apikey = _get_value('poloniex', 'apikey')
     secret = _get_value('poloniex', 'secret')
     self.client = poloniex(apikey, secret)
コード例 #7
0
	def setUp(self):
		self.wrapper = yunbi_wrapper(_get_value('yunbi','apikey'), _get_value('yunbi','secret'))
コード例 #8
0
	def setUp(self):
		apikey = _get_value('bittrex','apikey')
		secret = _get_value('bittrex','secret')
		self.client = bittrex(apikey, secret)
コード例 #9
0
 def setUp(self):
     self.client = bittrex_wrapper(_get_value('bittrex', 'apikey'),
                                   _get_value('bittrex', 'secret'))
コード例 #10
0
 def setUp(self):
     self.client = poloniex_wrapper(_get_value('poloniex', 'apikey'),
                                    _get_value('poloniex', 'secret'),
                                    "USDT")
コード例 #11
0
	def setUp(self):
		self.client = poloniex_wrapper(_get_value('poloniex','apikey'), _get_value('poloniex','secret'))
コード例 #12
0
 def setUp(self):
     apikey = _get_value('yunbi', 'apikey')
     secret = _get_value('yunbi', 'secret')
     self.client = yunbi(apikey, secret)
コード例 #13
0
	def test_withdraw(self):
		print self.client.withdraw('fct',1,_get_value('poloniex','address_fct'))
コード例 #14
0
	def setUp(self):
		apikey = _get_value('poloniex','apikey')
		secret = _get_value('poloniex','secret')
		self.client = poloniex(apikey, secret)
コード例 #15
0
	def setUp(self):
		self.client = bittrex_wrapper(_get_value('bittrex','apikey'), _get_value('bittrex','secret'))
コード例 #16
0
 def test_withdraw(self):
     print self.client.withdraw('fct', 1,
                                _get_value('bittrex', 'address_fct'))
コード例 #17
0
 def setUp(self):
     self.wrapper = yunbi_wrapper(_get_value('yunbi', 'apikey'),
                                  _get_value('yunbi', 'secret'))