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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 2 5 6

Cannot fetch high yield and low yield

When I try to fetch high yield and low yield for

{'IdentifierType': 'Ric', 'Identifier': '89352HAD1='}

in python using dss. It showed me that

{"error":{"message":"Validation Error:\r\n\r\nInvalid content FieldName \"High Yield\"\r\nInvalid content FieldName \"Low Yield\""}}

and

requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRaw

Also, the mid yield is empty but on dss web ui, I can see the values of High Yield, Low Yield and Mid Yield for this ric. What's the problem? The following is the request type.

'#DataScope.Select.Api.Extractions.ExtractionRequests.EndOfDayPricingExtractionRequest'

screen-shot-2021-11-26-at-11208-pm.png

dss-rest-api
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.

Hello @vuk.magdelinic

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 250 52 74

@vuk.magdelinic

"High Yield" and "Low Yield" fields are available in the "Price History" and "Intraday Pricing".

For example, I can use the following request to retrieve the data.

{
    "ExtractionRequest": {
        "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.PriceHistoryExtractionRequest",
        "ContentFieldNames": [            
            "RIC",
            "Trade Date",            
            "Yield",
            "Open Yield",
            "High Yield",
            "Low Yield"
        ],
        "IdentifierList": {
            "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
            "InstrumentIdentifiers": [
                {
                    "Identifier": "89352HAD1=",
                    "IdentifierType": "Ric"
                }
            ],
            "ValidationOptions": {
                "AllowHistoricalInstruments": true
            },
            "UseUserPreferencesForValidationOptions": false
        },
        "Condition": {
            "AdjustedPrices": true,
            "QueryStartDate": "2021-11-01T00:00:00.000Z",
            "QueryEndDate": "2021-11-29T00:00:00.000Z"
        }
    }
}

The output is:

1638182837862.png

You can refer to the Refinitiv DataScope Select Data Content Guide for available fields in each report template.



1638182837862.png (35.2 KiB)
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.