[+] fix time serialization
This commit is contained in:
parent
f4831d5759
commit
e73f57670a
@ -68,7 +68,7 @@ class WebsocketAPI:
|
|||||||
schema.AssetHistoryResponse.message_t.point_t.model_construct(
|
schema.AssetHistoryResponse.message_t.point_t.model_construct(
|
||||||
asset_name=o.market.name,
|
asset_name=o.market.name,
|
||||||
asset_id=o.market.id,
|
asset_id=o.market.id,
|
||||||
time=o.timestamp.timestamp(),
|
time=int(o.timestamp.timestamp()),
|
||||||
value=o.value,
|
value=o.value,
|
||||||
)
|
)
|
||||||
for o in tickers
|
for o in tickers
|
||||||
|
Loading…
Reference in New Issue
Block a user