Comments (6)
@handsomu @Cuizi7 broker 在初始化的 account 的时候 已经初始化了对应的 backward_trade_set 触发trade event 的时候 应该判断一下 trade_id 是否在backward_trade_set 中 如果在的话 就不再触发该event。 不过这么来说,order怎么处理.... 😂😂😂
from rqalpha-mod-vnpy.
这块的 order 打算这么处理:
- 维护一个订单对象的缓存
- 发单的时候将订单对象缓存在上述缓存中
- 收到订单回报的时候:
- 若缓存中无该订单对象则创建并缓存之,若存在则读取之
- 若订单对象的 order_status 为 pending_new (即首次收到该订单的回报)则发布 ORDER_PENDING_NEW 事件
- 若订单回报中的 order_status 为订单对象的前置状态,则忽略该回报
- 若订单回报中的 order_status 为订单对象的后置状态,则修改订单状态并发布对应事件
from rqalpha-mod-vnpy.
已尝试修复,明天交易时间我继续测试。
from rqalpha-mod-vnpy.
from rqalpha-mod-vnpy.
@hzliu 现在在初始化阶段和账户短线重连的时候都是用的我自己写的类似 fast_forward 的逻辑,因为最早写这段逻辑的时候 rqalpha 还没有现在的 fast_forward,纯属历史原因。
from rqalpha-mod-vnpy.
master 分支已修复。
from rqalpha-mod-vnpy.
Related Issues (20)
- vnpy在onRtnDepthMarketData的问题 HOT 4
- 脱离 vtGateway HOT 2
- 数据和交易解耦
- 加入 RPC 模式
- 运行vnpy mod报错,详细信息如下: HOT 2
- 在vnpy mod里如何做vnpy的交易呢 ? HOT 27
- 在vnpy mod里,如何获得vnpy的交易数据呢 ? HOT 3
- 如何通过代码运行 rqalpha-mod-vnpy? HOT 3
- 发送平仓单时针对上期所平今的处理 HOT 1
- 测试发单时候系统报错退出 HOT 2
- 获取当前持仓的市场行情出错 HOT 2
- 9:26启动策略报 signed integer greater than maximum错误 HOT 2
- 初始化时获取重复获取open orders,仓位回复时候昨仓有误 HOT 1
- 最新版本rqalpha 出错 ImportError: No module named account HOT 4
- 这用的ctp接口是64位还是32位的?
- ImportError: No module named account HOT 1
- 启动恢复仓位时出现空仓key error HOT 1
- 适配 vnpy 新版本 HOT 2
- 程序初始化时获取不到某些合约的last_price导致portfolio有关计算出错 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rqalpha-mod-vnpy.