Any assistance will be greatly appreciated.
Please check the real-time code, am I matching the code correctly for historical data and real-time?
Did I do something wrong with the domains?
The goal is to get real-time data that will match the historical data completely. Please take a look at the code. Am I working with the domains correctly?
RTMD service
real-time code for best ask\bid+trade
OmmConsumer consumer(config.host("1**.***.***.*:14002").username("EM1_****_*******"));
consumer.registerClient(ReqMsg().serviceName("hEDD").domainType(MMT_MARKET_PRICE).name("ESU1"), client);
sleep(1200000); /
Code for historical data best ask\bid+trade
new TickHistoryRawExtractionRequest
{
Condition = new TickHistoryRawCondition
{
ReportDateRangeType = ReportDateRangeType.Range,
QueryStartDate = startDate,
QueryEndDate = lastDate,
ExtractBy = TickHistoryExtractByMode.Ric,
MessageTimeStampIn = TickHistoryTimeOptions.LocalExchangeTime,
SortBy = TickHistorySort.SingleByRic,
DomainCode = TickHistoryRawDomain.MarketPrice,
DisplaySourceRIC = true
},
IdentifierList = new InstrumentIdentifierList
{
InstrumentIdentifiers = new[]
{
InstrumentIdentifier.Create(result.IdentifierType, result.Identifier)
},
ValidationOptions = new InstrumentValidationOptions
{
AllowHistoricalInstruments = true
},
UseUserPreferencesForValidationOptions = false
},
real-time code for MarketDepth (10 level - LegacyLevel2 )
OmmConsumer consumer(config.host("1**.***.***.*:14002").username("EM1_****_*******"));
consumer.registerClient(ReqMsg().serviceName("hEDD").domainType(MMT_MARKET_BY_PRICE).name("ESU1"), client);
sleep(1200000);
Code for historical data MarketDepth (10 level - LegacyLevel2)
new TickHistoryMarketDepthExtractionRequest
{
Condition = new TickHistoryMarketDepthCondition
{
ReportDateRangeType = ReportDateRangeType.Range,
QueryStartDate = startDate,
QueryEndDate = lastDate,
ExtractBy = TickHistoryExtractByMode.Ric,
MessageTimeStampIn = TickHistoryTimeOptions.LocalExchangeTime,
SortBy = TickHistorySort.SingleByRic,
View = TickHistoryMarketDepthViewOptions.LegacyLevel2,
DisplaySourceRIC = true
},
IdentifierList = new InstrumentIdentifierList
{
InstrumentIdentifiers = new[]
{
InstrumentIdentifier.Create(result.IdentifierType, result.Identifier)
},
ValidationOptions = new InstrumentValidationOptions
{
AllowHistoricalInstruments = true
}
},
I am concerned about the correctness of the real-time code to get LegacyLevel2