文件名称:python CTP
文件大小:264KB
文件格式:BZ2
更新时间:2014-04-06 07:27:42
python ctp
python 封装CTP接口 def main(): user = MdApi.CreateMdApi("data") user.RegisterSpi(myMdSpi(instruments=inst, broker_id="2030", investor_id="00092", passwd="888888")) user.RegisterFront("tcp://asp-sim2-md1.financial-trading-platform.com:26213") user.Init() while True: time.sleep(1)