WARNING - 通知: 与 wss://otg-citicsf.shinnytech.com/trade 的网络连接断开,请检查客户端及网络是否正常 WARNING - 通知: 与 wss://otg-citicsf.shinnytech.com/trade 的网络连接断开,请检查客户端及网络是否正常 WARNING - 通知: 与 wss://otg-citicsf.shinnytech.com/trade 的网络连接断开,请检查客户端及网络是否正常 WARNING - 通知: 与 wss://otg-citicsf.shinnytech.com/trade 的网络连接断开,请检查客户端及网络是否正常
ringo 已回答的问题 2020年12月7日
中信期货,参照文档上的代码连接的,试过很多次都是如此
from tqsdk import TqApi, TqAuth, TqAccount
api = TqApi(TqAccount(“Z中信期货”, “xxxxxx”, “xxxxxx”), auth=TqAuth(“xxxxxx”, “xxxxxx”))
account = api.get_account()
print(account)
api.close()