Skip to content

RQSDK-852#1004

Merged
Cuizi7 merged 4 commits into
developfrom
RQSDK-852
May 14, 2026
Merged

RQSDK-852#1004
Cuizi7 merged 4 commits into
developfrom
RQSDK-852

Conversation

@Lin-Dongzhao
Copy link
Copy Markdown
Collaborator

  1. 修复分红支付日在股票退市之后会报错的问题
  2. 补充 changelog 历史内容

from rqalpha.utils import create_custom_exception
strategy_file = Environment.get_instance().config.base.strategy_file
user_exc = create_custom_exception(exc_type, exc_val, exc_tb, strategy_file)
raise user_exc
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个删了是什么目的

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

误删

short: Optional[AbstractPosition]
) -> Dict:
instrument = self._env.data_proxy.get_active_instrument(order_book_id, trading_dt)
position = long or short
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有没有可能 long 和 short 都是 None?

Comment thread rqalpha/interface.py Outdated
@abc.abstractmethod
def instrument(self) -> Instrument:
"""
仓位合约详细信息
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

标的对象

@Cuizi7 Cuizi7 merged commit 5b0b554 into develop May 14, 2026
1 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants