Skip to content
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

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

Herklos
Copy link
Member

@Herklos Herklos commented Aug 25, 2021

No description provided.

Copy link
Member

@GuillaumeDSM GuillaumeDSM left a 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]
Copy link
Member

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]
Copy link
Member

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

Copy link
Member

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():
Copy link
Member

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():

@Herklos Herklos merged commit a298b17 into master Aug 27, 2021
@Herklos Herklos deleted the feature/add-options-and-headers-attributes branch August 27, 2021 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants