Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRTH /
avatar image
Question by ziaul · Jan 23, 2020 at 01:15 PM · dss-rest-apitick-history-rest-apic#extraction

Data Extraction issue with Reuters DSS C# API

We are not able to extract EOD data for few expired contracts as per the defined start & end dates using C# .NET DSS API. And we are successfully able to extract data from Reuters DSS (User interfaces) for the same expired contract. I have checked the Developer forum but didn't get any positive response.


Below expired contracts are
1. Brent 2019

2. GasOil - 2017, 2018, 2019

3. KCBTWheat - 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019

4. CBOTWheat - 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019


Sample Code

public void PullDailyData()
{
var start = new DateTimeOffset(2017, 3, 30, 0, 0, 0, TimeSpan.FromHours(0));
var end = new DateTimeOffset(2019, 2, 28, 23, 59, 59, TimeSpan.FromHours(0));
ElektronTimeseriesExtractionRequest dailyCandle = new ElektronTimeseriesExtractionRequest
{
IdentifierList = new InstrumentIdentifierList()
{
InstrumentIdentifiers = new[] {
new InstrumentIdentifier{ Identifier= "LCOJ9", IdentifierType=IdentifierType.Ric}
}
},
Condition = new ElektronTimeseriesCondition
{
ReportDateRangeType = ReportDateRangeType.Range,
QueryStartDate = start,
QueryEndDate = end
},
ContentFieldNames = new[] { "Settlement Price", "Trade Date" }
};
var extractionResult = client.context.ExtractWithNotes(dailyCandle);
var extractRows = extractionResult.Contents;
if (extractRows.Any() && extractRows.Count > 1)
{
foreach (var row in extractRows)
{
Console.WriteLine($"{row.Identifier}, {row.DynamicProperties["Settlement Price"]},{row.DynamicProperties["Trade Date"]}");
}
}
}


People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Christiaan Meihsl · Jan 23, 2020 at 01:56 PM

@ziaul,

By default On Demand API requests do not deliver data for expired contracts, because On Demand extractions do not take the User Preferences set in the GUI into consideration.

For an On Demand extraction to deliver data for historical instruments (expired contracts are historical instruments), this must be specified in the request. This is explained here in the Tutorials introduction. This is done using the instrument validation options, as described here in the TRTH .Net tutorial 5.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
12 People are following this question.

Related Questions

ThomsonReuters Request Examples

AWS File Extraction not working properly

How to get single request for multiple symbols for RIC rename history using DSS / TRTH / HistoricalReference / HistoricalSearch

How can I use proxy settings on ExtractionsContext C# examples

Are there any TRTH On Demand limitations on results returned? Only seeing 22K lines returned for a given symbol

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges