使用 IBrokers 拉动期权链
像这样: opt<-reqContractDetails(tws,twsOption(local="", expiry="20111021",right="",symbol="UCO"))
这太慢了。这是因为IB吗?关于如何在 10 分钟内返回期权链有什么建议吗?
谢谢
Like this:
opt<-reqContractDetails(tws,twsOption(local="", expiry="20111021",right="",symbol="UCO"))
This is unusably slow. Is this because of IB? Any suggestions on how to get an option chain returned in less than 10 minutes?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找一个更好的 ISP?
Get a better ISP?
通常,您可以请求报价的速率是有限制的。请务必检查其参考指南中的 API 限制。他们还提供报价助推器,如果您想提高费率,您可以购买这些助推器。据我了解,这仅适用于历史数据,但它可能适用于实时数据以及您的情况。如果您达到了速率,API 将继续返回速率限制错误,直到经过一段时间并且您可以再次发出请求。
Usually there is a limit on the rate you can request quotes at. Make sure you check the API limitations in their reference guide. They also provide Quote boosters which you can buy in case you want to increase your rate. As far as I understand this applies to historical data only but it might apply to real time data as well as is your case. If you hit the rate the API will keep returning rate limit error until a certain period of time passes and you are allowed to make requests again.