Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否应该有个gateway状态机 #3186

Open
WANGYE-2012 opened this issue Nov 11, 2021 · 1 comment
Open

是否应该有个gateway状态机 #3186

WANGYE-2012 opened this issue Nov 11, 2021 · 1 comment

Comments

@WANGYE-2012
Copy link

我们在进行连接行情交易时,发送后,回报vnpy是否没有管,有的时候,如果没有收到账户、持仓或者行情的回报数据,是否会造成策略上的错误,正如价差交易的国内外跨市场套利,突然由于行情没了,导致交易错误,是否vnpy,可以在全局上加个状态机对gateway这块,这边出现问题,全局停止策略

@vnpy
Copy link
Owner

vnpy commented Dec 7, 2023

这个Issue已经过去快2年,先记录下考虑情况:

  1. 底层接口的状态(行情交易下行是否正常连接、报盘上行是否阻塞等),对系统来说非常重要
  2. 但是对于不同的交易接口,这些状态可以说千差万别(API功能的拆分、通讯方式的不同等)
  3. 截止目前我们依然没有很好的梳理出一个标准化的设计方案
  4. 目前考虑的另一个方向,是在各个底层接口中实现高可用设计,以及对于不正常状态下的委托请求拦截

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants