its_happening
Tyler Goodlet 2020-07-28 14:45:18 -04:00
parent 80b656e2ab
commit 307bc87738
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ async def stream_quotes(
volume: float # Accumulated volume within interval volume: float # Accumulated volume within interval
count: int # Number of trades within interval count: int # Number of trades within interval
# XXX: ugh, super hideous.. why doesn't # XXX: ugh, super hideous.. needs built-in converters.
def __post_init__(self): def __post_init__(self):
for field, val in self.__dataclass_fields__.items(): for field, val in self.__dataclass_fields__.items():
setattr(self, field, val.type(getattr(self, field))) setattr(self, field, val.type(getattr(self, field)))

View File

@ -1171,10 +1171,10 @@ async def stream_quotes(
packetizer=partial( packetizer=partial(
packetizer, packetizer,
formatter=formatter, formatter=formatter,
symboal_data=sd, symbol_data=sd,
), ),
# actual func args # actual target "streaming func" args
get_quotes=get_quotes, get_quotes=get_quotes,
diff_cached=diff_cached, diff_cached=diff_cached,
rate=rate, rate=rate,