Intraday Embargoed data problem C# app
Find more posts tagged with
- REST API Tutorial 3: On Demand data extraction workflow
- REST API Tutorial 6: On Demand intraday bars extraction
My postman app request body : PostmanCURL.txt
My C# code request body : jsonBodyRequest.txt
In the C# code, you need to check the HTTP status code in the response.
If the status code is 202, it means that the extraction result is still not ready. Therefore, you need to get the Location of URL from the HTTP headers.
Use that URL in the Location to query for the result. The result is ready when the HTTP status code is 200.
Please refer to the following tutorials:
Moreover, you are using the old endpoint: https://hosted.datascopeapi.reuters.com/. Please update the code to use the new endpoint: https://selectapi.datascope.refinitiv.com/. Moreover, with the new endpoint, the @data.type in the body should be changed from ThomsonReuters.Dss.Api.* to DataScope.Select.Api.*, as shown below.
{
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.IntradayPricingExtractionRequest",
"ContentFieldNames": [
"RIC",
"Mid Spread",
"Universal Bid Ask Date",
"Settlement Date",
"Close Mark Mid Spread",
"Last Price",
"Close Yield",
"Trade Date"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{
"Identifier": "TRGV5YUSAC=R",
"IdentifierType": "Ric"
},
...
For more information, please refer to Refinitiv Datascope Select API Migration Tutorial.
- REST API Tutorial 3: On Demand data extraction workflow
- REST API Tutorial 6: On Demand intraday bars extraction
In the C# code, you need to check the HTTP status code in the response.
If the status code is 202, it means that the extraction result is still not ready. Therefore, you need to get the Location of URL from the HTTP headers.
Use that URL in the Location to query for the result. The result is ready when the HTTP status code is 200.
Please refer to the following tutorials:
Moreover, you are using the old endpoint: https://hosted.datascopeapi.reuters.com/. Please update the code to use the new endpoint: https://selectapi.datascope.refinitiv.com/. Moreover, with the new endpoint, the @data.type in the body should be changed from ThomsonReuters.Dss.Api.* to DataScope.Select.Api.*, as shown below.
{
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.IntradayPricingExtractionRequest",
"ContentFieldNames": [
"RIC",
"Mid Spread",
"Universal Bid Ask Date",
"Settlement Date",
"Close Mark Mid Spread",
"Last Price",
"Close Yield",
"Trade Date"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{
"Identifier": "TRGV5YUSAC=R",
"IdentifierType": "Ric"
},
...
For more information, please refer to Refinitiv Datascope Select API Migration Tutorial.
@eren
Please provide the request message used in Postman and the C# code.
Then, we can verify why it returns the different data.