@乱咁UP http://www.mobiletrain.org/about/BBS/134047.html,可能你的redis配置没有改好。客户端的交易代码我不是发了吗,收到指令后直接用下单函数就是了,比如passorder。
if order_info[1]['action'] in ('buy', 'sell'):
passorder(23 if order_info[1]['action']=='buy' else 24, 1101,
ContextInfo.accID, order_info[1]['stock'],
0 if order_info[1]['action']=='buy' else 10, 15,
int(order_info[1]['amount']),
order_info[1]['strategy'],
2, ContextInfo)
2023-11-27