qatrader无法委托,哪位大神帮忙看下!
发布于 1 个月前 作者 dading105 66 次浏览 来自 问答

from QAPUBSUB import producer import datetime import json

p = producer.publisher_routing( user=‘admin’, password=‘admin’, exchange=‘QAORDER_ROUTER’)

p.pub(json.dumps({ ‘topic’: ‘sendorder’, ‘account_cookie’: ‘JCSC_EXAMPLE’, ‘strategy_id’: ‘test’, ‘code’: ‘600020’, ‘price’: 5.3, ‘order_direction’: ‘BUY’, ‘order_offset’: ‘OPEN’, ‘volume’: 1, ‘order_time’: str(datetime.datetime.now()), ‘exchange_id’: ‘SHFE’ }), routing_key=‘JCSC_EXAMPLE’) QQ图片20200531033446.png QQ图片20200531033543.png

回到顶部