unleash_the_kraken
Tyler Goodlet 2020-07-28 14:45:18 -04:00
parent 3655e449d6
commit 9976bc3a3b
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
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):
for field, val in self.__dataclass_fields__.items():
setattr(self, field, val.type(getattr(self, field)))

View File

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