WIP: Poloniex exchange - fix for multiple exchanges

This commit is contained in:
Victor Grau Serrat
2017-09-26 11:40:25 -06:00
parent fef08d1433
commit 2c2c861a8f
2 changed files with 1 additions and 3 deletions
@@ -40,7 +40,6 @@ class Poloniex_api(object):
req['command'] = method
req['nonce'] = int(time.time()*1000)
post_data = urllib.parse.urlencode(req)
print(post_data)
signature = hmac.new(self.secret, post_data, hashlib.sha512).hexdigest()
headers = { 'Sign': signature, 'Key': self.key}
else:
+1 -2
View File
@@ -170,7 +170,6 @@ def _run(handle_data,
base_currency=base_currency,
portfolio=portfolio
)
elif exchange_name == 'bittrex':
exchanges[exchange_name] = Bittrex(
key=exchange_auth['key'],
@@ -179,7 +178,7 @@ def _run(handle_data,
portfolio=portfolio
)
elif exchange_name == 'poloniex':
exchange = Poloniex(
exchanges[exchange_name] = Poloniex(
key=exchange_auth['key'],
secret=exchange_auth['secret'],
base_currency=base_currency,