Skip to content

Commit

Permalink
Merge pull request #12 from Edanflame/main
Browse files Browse the repository at this point in the history
[Mod] 修复无法获取当日分钟数据问题
  • Loading branch information
vnpy authored Jul 9, 2022
2 parents 3712bb2 + b9af882 commit fbbd34b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vnpy_tushare/tushare_datafeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def query_bar_history(self, req: HistoryRequest) -> Optional[List[BarData]]:
symbol: str = req.symbol
exchange: Exchange = req.exchange
interval: Interval = req.interval
start: datetime = req.start.strftime("%Y%m%d")
end: datetime = req.end.strftime("%Y%m%d")
start: datetime = req.start.strftime("%Y-%m-%d %H:%M:%S")
end: datetime = req.end.strftime("%Y-%m-%d %H:%M:%S")

ts_symbol: str = to_ts_symbol(symbol, exchange)
if not ts_symbol:
Expand Down

0 comments on commit fbbd34b

Please sign in to comment.