Login Page - Create Account

DTC Protocol Discussion Forum


Date/Time: Fri, 29 Nov 2024 15:42:40 +0000



Post From: Protocol buffers with golang - no response on wire to TRADE_ACCOUNTS_REQUEST

[2020-10-16 02:44:05]
vp_ftw - Posts: 12
Here's what the message log looks like on the server side.

DTC Protocol server | Incoming connection from 127.0.0.1. | 2020-10-15 21:36:22.053
DTC client #3. 127.0.0.1 (4) | Creating socket. | 2020-10-15 21:36:22.062
DTC client #3. 127.0.0.1 (4) | New receive buffer size: 262144 | 2020-10-15 21:36:22.062
DTC client #3. 127.0.0.1 | Set DTC encoding to Protocol Buffers | 2020-10-15 21:36:22.067
DTC client #3. 127.0.0.1 | Requested heartbeat interval: 6 | 2020-10-15 21:36:22.087
DTC client #3. go-dtc. 127.0.0.1 | Received logon request. | 2020-10-15 21:36:22.087
DTC client #3. go-dtc. 127.0.0.1 | Using relay server mode. | 2020-10-15 21:36:22.088
DTC client #3. go-dtc. 127.0.0.1 | Sent successful Logon response message to client. Username: XXXXXXXX. Result text: Connected to SC DTC Protocol server. Service=cqg|SymbolSettings=cqg | 2020-10-15 21:36:22.088
DTC client #3. go-dtc. 127.0.0.1 | Sending all symbols to relay client. | 2020-10-15 21:36:24.074
DTC client #3. go-dtc. 127.0.0.1| Sent relay client initial market data messages for: F.US.M2KZ20. SymbolID: 1. ServiceCode: cqg | 2020-10-15 21:36:24.074
DTC client #3. go-dtc. 127.0.0.1| Sent relay client initial market data messages for: USDX. SymbolID: 2. ServiceCode: fxstatscalc | 2020-10-15 21:36:24.074
DTC client #3. go-dtc. 127.0.0.1| Sent relay client initial market data messages for: F.US.MESZ20. SymbolID: 3. ServiceCode: cqg | 2020-10-15 21:36:24.075
DTC client #3. go-dtc. 127.0.0.1| Sent relay client initial market data messages for: F.US.MNQZ20. SymbolID: 4. ServiceCode: cqg | 2020-10-15 21:36:24.075



Client side (my implementation):
time="2020-10-15 21:36:22.045" level=info msg="Connecting: XXXXXXX@127.0.0.1:11099\n" file=" connection.go:55"
time="2020-10-15 21:36:22.051" level=debug msg="Sending ENCODING_REQUEST" file=" connection.go:208"
time="2020-10-15 21:36:22.054" level=debug msg="Received ENCODING_RESPONSE(7) with bytes [8 0 0 0 4 0 0 0 68 84 67 0]" file=" connection.go:211"
{
"ProtocolVersion": 8,
"Username": "XXXXXXXXXXXXXXX",
"Password": "XXXXXXXXXXXXXXX",
"Integer1": 2,
"HeartbeatIntervalInSeconds": 6,
"TradeMode": "TRADE_MODE_LIVE",
"ClientName": "go-dtc"
}
time="2020-10-15 21:36:22.076" level=debug msg="Sending LOGON_REQUEST" file=" connection.go:161"
time="2020-10-15 21:36:22.079" level=debug msg="Received LOGON_RESPONSE result: Connected to SC DTC Protocol server. Service=cqg|SymbolSettings=cqg" file=" connection.go:180"
{
"ProtocolVersion": 8,
"Result": "LOGON_SUCCESS",
"ResultText": "Connected to SC DTC Protocol server. Service=cqg|SymbolSettings=cqg",
"ServerName": "SC DTC Server",
"TradingIsSupported": 1,
"OCOOrdersSupported": 1,
"OrderCancelReplaceSupported": 1,
"SecurityDefinitionsSupported": 1,
"MarketDepthIsSupported": 1,
"BracketOrdersSupported": 1,
"MarketDataSupported": 1
}
time="2020-10-15 21:36:22.091" level=info msg="Client listener started" file=" connection.go:42"
time="2020-10-15 21:36:24.073" level=info msg="Added security M2KZ20 from exchange cqg as F.US.M2KZ20" file=" securities.go:12"
time="2020-10-15 21:36:24.076" level=info msg="Added security USDX from exchange fxstatscalc as USDX" file=" securities.go:12"
time="2020-10-15 21:36:24.076" level=info msg="Added security MESZ20 from exchange cqg as F.US.MESZ20" file=" securities.go:12"
time="2020-10-15 21:36:24.078" level=info msg="Added security MNQZ20 from exchange cqg as F.US.MNQZ20" file=" securities.go:12"
(DTC_PB.TradeAccountsRequest, protoreflect.FullName)
{
"RequestID": 1
}
([8 1], []uint8)
time="2020-10-15 21:36:25.108" level=debug msg="Sending TRADE_ACCOUNTS_REQUEST" file=" accountData.go:29"
(DTC_PB.AccountBalanceRequest, protoreflect.FullName)
{
"RequestID": 2
}
([8 2], []uint8)
time="2020-10-15 21:36:28.115" level=debug msg="Sending ACCOUNT_BALANCE_REQUEST" file=" accountData.go:51"
time="2020-10-15 21:37:22.620" level=trace msg="Received ORDER_UPDATE(301)" file=" messageRouter.go:253"
Date Time Of Last Edit: 2020-10-16 02:52:12