Onepy 2.51
Onepy is an event-driven algorithmic trading Python library.
更新日志:Change Log
Install
Onepy is developed using Anaconda Python 3.6.x.
pip install plotly
pip install funcy
pip install arrow
pip install pymongo
pip install retry
pip install TA-Lib
pip install dataclasses # python 3.7不用安装
将该项目解压后,参照这里将OnePy项目文件夹添加到Python搜索目录
Getting Started
-
Tutorial Series
-
知乎专栏:OnePy
Main Features
OnePy 综合方面:
- 事件驱动回测设计 ✓
- 股票、外汇回测 ✓
- 多品种回测 ✓
- 多策略回测 ✓
- 设置手续费, 保证金/手, 杠杆大小 ✓
- 设置成交价格为 close 或者第二天 open ✓
- 设置是否打印交易日志 ✓
- Plot 画图模块 ✓
- 多进程参数优化 ✓
- 多进程Fordward analysis ✓
Tools 工具方面:
- To_MongoDB:自定义数据统一格式后存入数据库 ✓
- To_MongoDB:tushare 股票数据 CSV 存入数据库 ✓
- Tushare API 数据多线程存入 MongoDB ✓
- Oanda API 数据导入MongoDB ✓
DataHandler 数据方面:
- CSV 数据读取 ✓
- MongoDB 数据读取 ✓
Strategy 策略方面:
- 做多 buy & sell, 做空 sell & cover 指令 ✓
- 撤单 cancel_pennding, cancel_tst 指令 ✓
- 按百分比或盈亏多少钱, 设置止盈 Limit、止损 Stop 和 Trailingstop 移动止损 ✓
- 按百分比或者指定价格, 建立挂单。 ✓
- 技术指标 Cleaner 模块 ✓
- 整合 Talib 模块 ✓
Broker 执行方面:
- 模拟发送指令 ✓
- 模拟检查指令是否发送成功 ✓
- 打印交易日志 ✓
- 手续费 commission, 百分比类型和固定类型 ✓
Recorder 日志方面:
- 计算保证金, 仓位, 浮动利润, 已平仓利润, 总资金, 剩余现金, 收益率, 市值, 时间序列化 ✓
- 输出交易记录, 包括出场时间, 入场时间, 盈亏点数, 盈亏利润等 ✓
- 详细盘后交易结果分析 ✓
延展性方面:
- 在 Environment 中存有原始所有信号信息, 生成的订单信息, 便于分析 ✓
- 自定义扩展事件源 ✓
- 自定义数据源, 返回迭代器给 OnePy 即可 ✓
- 自定义策略模块 ✓
- 自定义技术指标模块 ✓
- 自定义风控模块 ✓
- 自定义经纪商模块 ✓
- 自定义日志记录模块 ✓
Quick Look
Road Map
Contact
I'm very interested in your experience with Onepy.Please feel free to contact me via chenjiayicjy@gmail.com
Chandler_Chan
Metadata
Release files for OnePy-pro 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onepy_pro-1.1.5.tar.gz | 59.9 kB | Without provenance | Details for onepy_pro-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| OnePy_pro-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for OnePy_pro-1.1.5-py3-none-any.whl |
Total release size: 137.5 kB
Release files / onepy_pro-1.1.5.tar.gz
| Download URL | onepy_pro-1.1.5.tar.gz |
|---|---|
| Size | 59.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f78b59826aba33b25b0b6ab04596616faa7f52297a65ec50496a38285dbab57f
|
|
BLAKE2b-256 checksum How to use checksums |
b2dea5179c73bc96c2c62eece2ae2c1dbc0a279eb0d2d081329f07a4ceca852a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Release files / OnePy_pro-1.1.5-py3-none-any.whl
| Download URL | OnePy_pro-1.1.5-py3-none-any.whl |
|---|---|
| Size | 77.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9286635ae1f78438c551ca32533ed2b4abb512ce3b9b1801e9be03befd9d273
|
|
BLAKE2b-256 checksum How to use checksums |
a1eeb1dc38eba2655bc3bbc873cf47f784295fab188d34ade1511772ec0e6eed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Security for OnePy-pro 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.