Skip to content

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

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.

3 participants