Skip to content

Commit

Permalink
rqalpha_mod_sys_accounts/README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuizi7 committed Aug 28, 2019
1 parent 7997ba5 commit f8a6e4e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions rqalpha/mod/rqalpha_mod_sys_accounts/README.rst
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
}

0 comments on commit f8a6e4e

Please sign in to comment.