vnpy / vnpy_ib

VeighNa框架的InteractiveBrokers交易接口
https://www.vnpy.com
MIT License
34 stars 31 forks source link

ib产品类型映射里少了指数类型 #6

Closed OliverYangKe closed 2 years ago

OliverYangKe commented 2 years ago

PRODUCT_IB2VT: Dict[str, Product] = { "STK": Product.EQUITY, "CASH": Product.FOREX, "CMDTY": Product.SPOT, "FUT": Product.FUTURES, "OPT": Product.OPTION, "FOT": Product.OPTION, "CONTFUT": Product.FUTURES }

查了下ib的文档 指数应该是 "IND": Product.INDEX

没有的话会导致在录入指数数据时报错

noranhe commented 2 years ago

已修复https://github.com/vnpy/vnpy_ib/pull/8