-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
=============================== | ||
sys_accounts Mod | ||
=============================== | ||
|
||
RQAlpha 扩展账户 Mod,实现了股票和期货的账户逻辑,提供了股票和期货的专用 API。 | ||
|
||
开启或关闭策略回测/模拟 Mod | ||
=============================== | ||
|
||
.. code-block:: bash | ||
# 关闭账户 Mod | ||
$ rqalpha mod disable sys_accounts | ||
# 启用账户 Mod | ||
$ rqalpha mod enable sys_accounts | ||
模块配置项 | ||
=============================== | ||
|
||
账户 Mod 的可用配置项如下: | ||
|
||
.. code-block:: python | ||
{ | ||
# 开启/关闭 股票 T+1, 默认开启 | ||
"stock_t1": True, | ||
# 分红再投资 | ||
"dividend_reinvestment": False, | ||
# 强平 | ||
"future_forced_liquidation": True, | ||
# 当持仓股票退市时,按照退市价格返还现金 | ||
"cash_return_by_stock_delisted": True, | ||
# 股票下单因资金不足被拒时改为使用全部剩余资金下单 | ||
"auto_switch_order_value": False | ||
} | ||