mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 16:56:11 +08:00
WIP: Poloniex exchange - fix for multiple exchanges
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user