diff --git a/examples/OptionMaster/data/TRADE_MARKET_110100001088sop.dat b/examples/OptionMaster/data/TRADE_MARKET_110100001088sop.dat index 8d62ccfc..dff3957f 100644 --- a/examples/OptionMaster/data/TRADE_MARKET_110100001088sop.dat +++ b/examples/OptionMaster/data/TRADE_MARKET_110100001088sop.dat @@ -1 +1 @@ -rGu69UiZhQTMFXCkVHH1kg== \ No newline at end of file +tBr8RMewRABqiW7HBOkrkg== \ No newline at end of file diff --git a/examples/ServerClient/VT_setting.json b/examples/ServerClient/VT_setting.json index ef3bb771..a00ff35e 100644 --- a/examples/ServerClient/VT_setting.json +++ b/examples/ServerClient/VT_setting.json @@ -9,8 +9,10 @@ "darkStyle": true, "language": "chinese", - "logActive": false, + "logActive": true, "logLevel": "debug", "logConsole": true, - "logFile": true + "logFile": true, + + "tdPenalty": ["IF", "IH", "IC"] } \ No newline at end of file diff --git a/vnpy/trader/gateway/ctpGateway/ctpGateway.py b/vnpy/trader/gateway/ctpGateway/ctpGateway.py index edea15e8..20f98c79 100644 --- a/vnpy/trader/gateway/ctpGateway/ctpGateway.py +++ b/vnpy/trader/gateway/ctpGateway/ctpGateway.py @@ -542,6 +542,12 @@ class CtpTdApi(TdApi): self.writeLog(text.TRADING_SERVER_AUTHENTICATED) self.login() + else: + err = VtErrorData() + err.gatewayName = self.gatewayName + err.errorID = error['ErrorID'] + err.errorMsg = error['ErrorMsg'].decode('gbk') + self.gateway.onError(err) #---------------------------------------------------------------------- def onRspUserLogin(self, data, error, n, last):