question

Upvotes
Accepted
3 0 0 0

FX Time-series requests Datastream Web Service

I am using C# to get FX data form Datastream webservice. The request is as follow.


DSGetDataRequest request = new DSGetDataRequest()

{

TokenValue = this.token,

DataRequest = new DSDataRequest()

{

Instrument = instrument,

DataTypes = prgDataTypes,

Date = new DSDate()

{

Kind = DSDateKind.TimeSeries,

Start = startDate.ToString("yyyy-MM-dd"),

End = endDate.ToString("yyyy-MM-dd"),

Frequency = FrequencySymbol

},

}

};

where:

instrument.Value="GBP=,DKK=,EUR=,SEK=".

DataTypes.Value = "ER"

I am getting no data back.

response.Dates = null

I believe the instrument.Value is wrong but I don't what is the correct format.

datastream-apidsws-apiforex
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

Upvote
Accepted
56.3k 145 45 65

@youssef.amine

To use RIC as an instrument, you need to enclose it with angle brackets <>. Therefore, the instrument.Value should be:

instrument.Value="<GBP=>,<DKK=>,<EUR=>,<SEK=>"


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.