Skip to content
This repository was archived by the owner on Apr 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from Edanflame/main
Browse files Browse the repository at this point in the history
[Fix] 历史数据下载添加时区
  • Loading branch information
vnpy authored Oct 22, 2021
2 parents 80a8938 + 846641b commit 6160b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnpy_ftx/ftx_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def query_history(self, req: HistoryRequest) -> List[BarData]:
bar = BarData(
symbol=req.symbol,
exchange=req.exchange,
datetime=datetime.utcfromtimestamp(his_data["time"] / 1000),
datetime=datetime.fromtimestamp(his_data["time"] / 1000, timezone.utc),
interval=req.interval,
volume=his_data["volume"],
open_price=his_data["open"],
Expand Down

0 comments on commit 6160b9b

Please sign in to comment.