Skip to main content

#本项目做了几个更改:

1 基于开源rqalpha4.0版本,支持分钟和tick级别的回测

增加了两个mod,:rqalpha_mod_minute_trade(\rqalpha4_min_tick_trade_mod\minute_trade\rqalpha_mod_minute_trade)和rqalpha_mod_tick_trade(\rqalpha4_min_tick_trade_mod\tick_trade\rqalpha_mod_tick_trade)。当你按照rqalpha的h5格式存放你的分钟和tick数据时,就可以支持分钟和tick级别的回测

2 基于开源rqalpha3.4版本支持模拟交易的功能

2.1需要用rqalpha3.4_patch下面的文件覆盖原有的rqalpha3.4的文件

cp -rd ./rqalpha3.4_patch/disk_persist_provider.py /rqalpha_home/rqalpha/utils/ cp -rd ./rqalpha3.4_patch/asset_position.py /rqalpha_home/rqalpha/mod/rqalpha_mod_sys_accounts/position_model/

2.2 改写rqalpha_mod_stock_realtime,并且需要你有本地的历史指数和股票数据。因为rqalpha做模拟的时候有些条件下会需要历史history_bar,你可以不使用dataapi,但是你需要找到rqalpha相应的函数。

Metadata

Release files for rqalpha-minsec-trade-realtime 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rqalpha-minsec-trade-realtime 1.2.1
File Size Uploaded
rqalpha_minsec_trade_realtime-1.2.1.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rqalpha-minsec-trade-realtime 1.2.1
File Interpreter ABI Platform
rqalpha_minsec_trade_realtime-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.6 kB

Release files / rqalpha_minsec_trade_realtime-1.2.1.tar.gz

Download URL rqalpha_minsec_trade_realtime-1.2.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
406778a3578bee3cedd47b97b3fd5a5d4d65679b548552afd816ad1b86db6769
BLAKE2b-256 checksum
How to use checksums
801e1225ce50f624108d8d1e17b20a754cd7c76325a8c9626eedec42852beafd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.2

Release files / rqalpha_minsec_trade_realtime-1.2.1-py3-none-any.whl

Download URL rqalpha_minsec_trade_realtime-1.2.1-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b1af6058d6ac64e1eaa49581850fa77292229b13a6c6e363c86ad604eaf150d
BLAKE2b-256 checksum
How to use checksums
3126dc9cc20b8cd1d923ac0abb0e0dd64daa91372d2d5c5f96c9399b2d75f4bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page