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

fix: Adjust auth request for TradingStream #554

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hiohiohio
Copy link
Contributor

Context:

Change:

  • adjust auth request for TradingStream

Copy link
Member

@aarjaneiro aarjaneiro left a comment

Choose a reason for hiding this comment

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

LGTM - minor comment

websocket_params: Optional[Dict] = None,
):
self._api_key = api_key
self._secret_key = secret_key
self._trade_updates_handler = None
self._trade_updates_handler: Optional[Callable] = None
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps, to be a bit more specific, we can specify this function's expected input and output:

Suggested change
self._trade_updates_handler: Optional[Callable] = None
self._trade_updates_handler: Optional[Callable[[Union[BaseModel, RawData]], None]]= None

And same for the arg in the function signature for subscribe_trade_updates.

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