Skip to content

Commit

Permalink
increase sampling date in order to avoid trade suspention
Browse files Browse the repository at this point in the history
  • Loading branch information
wsyxbcl committed Feb 15, 2021
1 parent 59cac19 commit 3fd9be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async def now(message):
except IndexError:
time_begin = stock_mix.create_time.strftime("%Y%m%d")
buf = io.BytesIO()
datetime_ref = (datetime.datetime.utcnow() - datetime.timedelta(days=9)).strftime("%Y%m%d") # refer to last trading day
datetime_ref = (datetime.datetime.utcnow() - datetime.timedelta(days=30)).strftime("%Y%m%d") # refer to last trading day
stock_data, matrix_close_price = await mix_data_collector_async(stock_mix, time_begin=datetime_ref)
profit_ratio, stock_profit_ratio = stock_mix.get_profit_ratio(stock_data, matrix_close_price,
date_ref='latest')
Expand Down

0 comments on commit 3fd9be8

Please sign in to comment.