Support Board
Date/Time: Wed, 30 Apr 2025 14:48:49 +0000
Post From: Orders Not Being Processed via DTC
[2025-04-04 10:59:43] |
User483520 - Posts: 6 |
Below is the current logon request as implemented in client. Code zeroes out the reserved fields and uses the values as defined in official header (version 8): s_LogonRequest logonMsg;
memset(&logonMsg, 0, sizeof(logonMsg)); logonMsg.Size = sizeof(logonMsg); logonMsg.Type = DTC::LOGON_REQUEST; // Should be 1. logonMsg.ProtocolVersion = 8; strncpy_s(logonMsg.Username, sizeof(logonMsg.Username), "HIDDEN", _TRUNCATE); strncpy_s(logonMsg.Password, sizeof(logonMsg.Password), "HIDDEN", _TRUNCATE); strncpy_s(logonMsg.GeneralTextData, sizeof(logonMsg.GeneralTextData), "", _TRUNCATE); // Reserved fields set to 0 as per documentation. logonMsg.Integer_1 = 0; logonMsg.Integer_2 = 0; logonMsg.HeartbeatIntervalInSeconds = 30; // Set TradeMode to simulation mode (typically 2 for simulation). logonMsg.TradeMode = TRADE_MODE_SIMULATED; strncpy_s(logonMsg.TradeAccount, sizeof(logonMsg.TradeAccount), "HIDDEN", _TRUNCATE); strncpy_s(logonMsg.HardwareIdentifier, sizeof(logonMsg.HardwareIdentifier), "", _TRUNCATE); strncpy_s(logonMsg.ClientName, sizeof(logonMsg.ClientName), "DTC C++ Stop Market Order Client", _TRUNCATE); logonMsg.MarketDataTransmissionInterval = -1; I then send this logon request to Sierra. My understanding, based on your documentation, is that if all fields are aligned correctly, the server should accept my request and not force relay mode unless its configuration dictates that behavior. Is there any misalignment or any additional field required to avoid relay mode? I am not trying to deliberately setting relay mode. Date Time Of Last Edit: 2025-04-04 11:01:36
|