Exchange: fix missing comma and typehinting per PR comments
This commit is contained in:
parent
9f1544978d
commit
842b0c2270
@ -45,7 +45,7 @@ def retrier(f):
|
|||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
def init_ccxt(exchange_config: dict) -> ccxt:
|
def init_ccxt(exchange_config: dict) -> ccxt.Exchange:
|
||||||
"""
|
"""
|
||||||
Initialize ccxt with given config and return valid
|
Initialize ccxt with given config and return valid
|
||||||
ccxt instance.
|
ccxt instance.
|
||||||
@ -62,7 +62,7 @@ def init_ccxt(exchange_config: dict) -> ccxt:
|
|||||||
'apiKey': exchange_config.get('key'),
|
'apiKey': exchange_config.get('key'),
|
||||||
'secret': exchange_config.get('secret'),
|
'secret': exchange_config.get('secret'),
|
||||||
'password': exchange_config.get('password'),
|
'password': exchange_config.get('password'),
|
||||||
'uid': exchange_config.get('uid' ''),
|
'uid': exchange_config.get('uid', ''),
|
||||||
'enableRateLimit': True,
|
'enableRateLimit': True,
|
||||||
})
|
})
|
||||||
except (KeyError, AttributeError):
|
except (KeyError, AttributeError):
|
||||||
|
Loading…
Reference in New Issue
Block a user