Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuizi7 committed Sep 29, 2018
1 parent 83bb50f commit eeee585
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rqalpha/api/api_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,11 @@ def history_bars(order_book_id, bar_count, frequency, fields=None, skip_suspende

if frequency == '1d':
sys_frequency = Environment.get_instance().config.base.frequency
if ((sys_frequency in ['1m', 'tick'] and not include_now) or ExecutionContext.phase() == EXECUTION_PHASE.BEFORE_TRADING):
if ((
sys_frequency in ['1m', 'tick'] and not include_now
) or (
ExecutionContext.phase() == EXECUTION_PHASE.BEFORE_TRADING
)):
dt = env.data_proxy.get_previous_trading_date(env.trading_dt.date())
# 当 EXECUTION_PHASE.BEFORE_TRADING 的时候,强制 include_now 为 False
include_now = False
Expand Down

0 comments on commit eeee585

Please sign in to comment.