专注股票、期货、外汇程序化交易开发
 企业微信
520量化编程
开启左侧

如何使用order_callback账号委托状态函数

[复制链接]
520量化编程 发表于 2024-7-19 21:36:55 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
 
  1. #encoding:gbk
  2. def init(ContextInfo):
  3.     account = '123456'
  4.     ContextInfo.set_account(account)
  5.     passorder(23,1101, account, '000001.SZ',5,0,200,'',2,'note1',ContextInfo)



  6. def order_callback(ContextInfo, orderInfo):
  7.     print(f"股票代码:{orderInfo.m_strInstrumentID} 市场代码:{orderInfo.m_strExchangeID} 委托号:{orderInfo.m_strOrderSysID}, 成交数量:{orderInfo.m_nVolumeTraded}, 投资备注:{orderInfo.m_strRemark}")


复制代码


回复

使用道具 举报

 
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热门图文
排行榜
作者专栏

关注我们:微信订阅号

公众号/p>

企业微信

全国服务热线:

18081412300

公司地址:四川省安岳县柠都大道226号

运营中心::四川省安岳县柠都大道226号

邮编:6243650 Email:525406187@qq.com

川公安网备案51202102000095

备案许可证:蜀ICP备20018290号-1

增值电信业务经营许可证:川B2-20220450

Copyright   ©2015-2016  520量化编程Powered by©Discuz!技术支持:迪恩网络    ( 蜀ICP备20018290号-1 )