For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 3

.NET SDK Timeseries extraction

Client is looking for a script to extract timeseries data for any equity instrument since 1980. The tutorial guide does not contain any examples which match this requirement.

Can you please share a sample script for MSFT.O and hisotrical price for OPEN Price , HIGH Price , LOW Price , CLOSE Price and volume from period of 1980 to till date?

dss-rest-apidatascope-selectdss
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
648 5 4 6

@Meenakshi.Swarnkar

Please use below example

 {
   IdentifierList = InstrumentIdentifierList.Create(
    new[]
    {
    new InstrumentIdentifier { Identifier = "MSFT.O", IdentifierType = IdentifierType.Ric }
    }, null, false),
    ContentFieldNames = new[] {"RIC", "Trade Date", "Universal Close Price", "High Price", "Low Price", "Open Price", "Volume"},
    Condition = new TimeSeriesCondition
    {
        StartDate = new DateTimeOffset(new DateTime(1980, 01, 01)),
        EndDate = new DateTimeOffset(new DateTime(2019, 01, 25))
    }
};
icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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