Skip to content

Commit

Permalink
修复分钟回测open_auction价格异常;修改github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhou-JiaJun committed Sep 27, 2023
1 parent 975a801 commit 99d3450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
# Checks out a copy of your repository on the ubuntu-latest machine
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache bundle
Expand Down
2 changes: 1 addition & 1 deletion rqalpha/data/bar_dict_price_board.py
Expand Up @@ -26,7 +26,7 @@ def __init__(self):

def _get_bar(self, order_book_id):
if ExecutionContext.phase() == EXECUTION_PHASE.OPEN_AUCTION:
return self._env.data_proxy.get_open_auction_bar(order_book_id, self._env.calendar_dt)
return self._env.data_proxy.get_open_auction_bar(order_book_id, self._env.trading_dt)
return self._env.get_bar(order_book_id)

def get_last_price(self, order_book_id):
Expand Down

0 comments on commit 99d3450

Please sign in to comment.