Skip to content

Commit

Permalink
bug fix ,当季数据要更新
Browse files Browse the repository at this point in the history
bug fix ,当季数据要更新
  • Loading branch information
yangguang760 authored Aug 8, 2018
1 parent bbfa8d2 commit 7de7b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fooltrader/api/technical.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def get_trading_dates(security_item, dtype='list', ignore_today=False, source='1

def kdata_exist(security_item, year, quarter, fuquan=None, source='163'):
df = get_kdata(security_item, fuquan=fuquan, source=source)
if "{}Q{}".format(year, quarter) in df.index:
if pd.Period("{}Q{}".format(year, quarter)).end_time < df.index.max():
return True
return False

Expand Down

0 comments on commit 7de7b13

Please sign in to comment.