Skip to content

Commit

Permalink
more python fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 6, 2017
1 parent c8c721c commit 757691a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/ccxt/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ def __init__(self, config={}):
settings = self.deep_extend(self.describe(), config)

for key in settings:
setattr(self, key, settings[key])
if hasattr(self, key) and isinstance(getattr(self, key), dict):
setattr(self, key, self.deep_extend(getattr(self, key), settings[key]))
else:
setattr(self, key, settings[key])

if self.api:
self.define_rest_api(self.api, 'request')
Expand Down

0 comments on commit 757691a

Please sign in to comment.