Skip to content

Commit

Permalink
waditu#30 0.6.7 优化笔因子
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Mar 5, 2021
1 parent f8daca4 commit 2693679
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 174 deletions.
1 change: 1 addition & 0 deletions czsc/data/jq.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def get_kline(symbol: str, end_date: [datetime, str], freq: str,
bars = [x for x in bars if x.dt >= start_date]
if "min" in freq:
bars[-1].dt = bar_end_time(bars[-1].dt, m=int(freq.replace("min", "")))
bars = [x for x in bars if x.dt <= end_date]
return bars


Expand Down
Loading

0 comments on commit 2693679

Please sign in to comment.