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

Replaces 'symbol' with 'asset' and 'currency' in Events for consistency #56

Merged
merged 3 commits into from
Nov 24, 2017

Conversation

snth
Copy link
Owner

@snth snth commented Nov 22, 2017

Since symbol differs by Exchange, we decompose this into asset and currency so
that these are consistent across Exchanges.

@snth
Copy link
Owner Author

snth commented Nov 22, 2017

This fixes issue #52

Since symbol differs by Exchange, we decompose this into asset and currency so
that these are consistent across Exchanges.
return subscriptions

def _subscribe(self, asset, currency, channel, exchange=None,
interval=1.0):
if self._websocket_client_class is not None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the implementation below, if WS client is defined, it will ignore the Rest client class, implying that if you have both WS client and Rest Client defined, and (for argument sake) the subscribe you are interested in is defined on the Rest client, it will get ignored here?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you. We would need to define a mechanism to resolve that. I'll create an issue for that. This has existed in the codebase for a while and doesn't need to be fixed in this PR.


def subscribe(self, asset, currency, channel, interval=1.0, exchange=None):
exchange = exchange if exchange else self.exchange
# FIXME: Remove channel_info or make it more generic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to make it more generic...

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.

None yet

2 participants