Support Board
Date/Time: Sun, 29 Dec 2024 13:52:30 +0000
Post From: dtc protocol historical price data request
[2016-04-26 08:11:59] |
User352015 - Posts: 5 |
Hi, i am developing one server using DTC protocol. my immediate requirement is for historical price data .. below is the structure.i just wanted to know in that structure t_DateTime StartDateTime and t_DateTime EndDateTime is in which format. can anyone please help me on this. struct s_HistoricalPriceDataRequest { uint16_t Size; uint16_t Type; int32_t RequestID; char Symbol[SYMBOL_LENGTH]; char Exchange[EXCHANGE_LENGTH]; char SecurityType[10]; char Maturity[7]; char StrikePrice[7]; char PutOrCall[3]; HistoricalDataIntervalEnum RecordInterval; t_DateTime StartDateTime; t_DateTime EndDateTime; uint32_t MaxDaysToReturn; uint8_t UseZLibCompression; uint8_t RequestDividendAdjustedStockData; uint8_t Flag_1; s_HistoricalPriceDataRequest() { Clear(); } uint16_t GetMessageSize(); void CopyFrom(void * p_SourceData); void Clear() { memset(this, 0, sizeof(s_HistoricalPriceDataRequest)); Type = HISTORICAL_PRICE_DATA_REQUEST; Size = sizeof(s_HistoricalPriceDataRequest); } int32_t GetRequestID(); void SetSymbol(const char* NewValue); const char* GetSymbol(); void SetExchange(const char* NewValue); const char* GetExchange(); void SetSecurityType(const char* NewValue); const char* GetSecurityType(); void SetMaturity(const char* NewValue); const char* GetMaturity(); void SetStrikePrice(const char* NewValue); const char* GetStrikePrice(); void SetPutOrCall(const char* NewValue); const char* GetPutOrCall(); HistoricalDataIntervalEnum GetRecordInterval(); t_DateTime GetStartDateTime(); t_DateTime GetEndDateTime(); uint32_t GetMaxDaysToReturn(); uint8_t GetUseZLibCompression(); uint8_t GetRequestDividendAdjustedStockData(); uint8_t GetFlag_1(); }; |