-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CCXTExchange] Add headers and options attribute #596
Conversation
8e39378
to
fafa811
Compare
fafa811
to
915450f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
:param options_dict: the additional option keys and values as dict | ||
""" | ||
for option_key in options_dict.keys(): | ||
self.options[option_key] = options_dict[option_key] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for option_key, option_value in options_dict.items():
self.options[option_key] = option_value
for option_key in options_dict.keys(): | ||
self.options[option_key] = options_dict[option_key] | ||
if self.client is not None: | ||
self.client.options[option_key] = options_dict[option_key] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.client.options[option_key] = option_value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that means that self.client
might only have some of the exchange option if it is set later ? maybe we should add every option all the time (to be sure it's always a mirror). Or upon creation all options are always passed ?
Add new headers to ccxt client | ||
:param headers_dict: the additional header keys and values as dict | ||
""" | ||
for header_key in headers_dict.keys(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for header_key header_value in headers_dict.idems():
915450f
to
fd72287
Compare
No description provided.