if __name__ == "__main__":
import os
api = TDXBroker(endpoint="http://10.11.5.175:10092/api",
enc_key=b"4f1cf3fec4c84c84", enc_iv=b"0c78abc083b011e7")
//api = TdxTradeApi(endpoint="http://10.11.5.175:10092/api")
print("---Ping---")
result = api.ping()
After Change
if __name__ == "__main__":
import os
print("这是测试代码, 下面需要输入的 key/iv在ini中自己查找, account 和password是自己的账户密码 ")
api = TDXBroker(endpoint="http://10.11.5.175:10092/api",
enc_key=bytes(input("enc_key"),encoding="utf-8"), enc_iv=bytes(input("enc_iv"),encoding="utf-8"))
print("---Ping---")