help please with example code
how to get the REST API
is this the correct code or should I use another one?
Please give me an example code.
new TickHistoryTimeAndSalesExtractionRequest { //Condition = new TickHistoryMarketDepthCondition Condition = new TickHistoryTimeAndSalesCondition { ReportDateRangeType = ReportDateRangeType.Range, QueryStartDate = startDate, //new DateTimeOffset(2016, 07, 25, 20, 0, 0, TimeSpan.Zero), QueryEndDate = lastDate, //new DateTimeOffset(2016, 08, 02, 19, 59, 59, TimeSpan.Zero), ExtractBy = TickHistoryExtractByMode.Ric, MessageTimeStampIn = TickHistoryTimeOptions.GmtUtc, SortBy = TickHistorySort.SingleByRic, //View = TickHistoryMarketDepthViewOptions.LegacyLevel2, //Preview = PreviewMode.Content DisplaySourceRIC = true, ApplyCorrectionsAndCancellations = false, }, ContentFieldNames = availableTnSFields.Select(f => f.Name).ToArray(), IdentifierList = new InstrumentIdentifierList { InstrumentIdentifiers = new[] { InstrumentIdentifier.Create(result.IdentifierType, result.Identifier) }, ValidationOptions = new InstrumentValidationOptions { AllowHistoricalInstruments = true } },