mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-27 20:51:34 +08:00
BLD: added password into credentials
needed for exchanges such as 'gdax'
This commit is contained in:
@@ -43,7 +43,8 @@ SUPPORTED_EXCHANGES = dict(
|
||||
|
||||
|
||||
class CCXT(Exchange):
|
||||
def __init__(self, exchange_name, key, secret, base_currency):
|
||||
def __init__(self, exchange_name, key,
|
||||
secret, password, base_currency):
|
||||
log.debug(
|
||||
'finding {} in CCXT exchanges:\n{}'.format(
|
||||
exchange_name, ccxt.exchanges
|
||||
@@ -60,6 +61,7 @@ class CCXT(Exchange):
|
||||
self.api = exchange_attr({
|
||||
'apiKey': key,
|
||||
'secret': secret,
|
||||
'password': password,
|
||||
})
|
||||
self.api.enableRateLimit = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user