[Fix] typo in xtp_gateway

This commit is contained in:
vn.py 2019-08-07 15:43:40 +08:00
parent a9a23cbb3f
commit 1397c86ae8

View File

@ -241,7 +241,7 @@ class XtpQuoteApi(API.QuoteSpi):
self.server_ip = server_ip self.server_ip = server_ip
self.server_port = server_port self.server_port = server_port
if quote_protocol == "CTP": if quote_protocol == "TCP":
self.quote_protocol = XTP_PROTOCOL_TYPE.XTP_PROTOCOL_TCP self.quote_protocol = XTP_PROTOCOL_TYPE.XTP_PROTOCOL_TCP
else: else:
self.quote_protocol = XTP_PROTOCOL_TYPE.XTP_PROTOCOL_UDP self.quote_protocol = XTP_PROTOCOL_TYPE.XTP_PROTOCOL_UDP