This PR adds three additional message types for dxFeed's /service/sub channel: trade, summary, and profile.
I also included a default case for tastyworks.dxfeed.map_message. If a message type that did not match either Quote or Greek, there is a case of use before assignment for the variable res. Where res is returned from the function but not yet assigned anything.
The default case prints a warning message to logger and assigns a list(dict()) message to res that includes a brief warning message as well as the contents of the message.
Problem addressed
This PR adds three additional message types for dxFeed's /service/sub channel:
trade
,summary
, andprofile
.I also included a default case for
tastyworks.dxfeed.map_message
. If a message type that did not match eitherQuote
orGreek
, there is a case of use before assignment for the variableres
. Whereres
is returned from the function but not yet assigned anything.The default case prints a warning message to logger and assigns a list(dict()) message to res that includes a brief warning message as well as the contents of the message.
trade
includes the following keys:summary
includes the following keys:profile
includes the following keys:Solution
Implement
trade.py
,summary.py
, andprofile.py
as closely as possible toquote.py
/greeks.py
.Add
else:
statement tomap_message()
function when received message does not match any comparisons in if/elif statement.Checklist