Download field names which is accessible via DSS API

Download list of field names which is accessible via DSS API.

I need to request the field in below format, so the field name should be compatible with the request type

1680699564077.png


Best Answer

  • Gurpreet
    Answer ✓

    Hi @zia,

    You can get a list of valid field types for the ReportTemplate that you are trying to extract. For PriceHistory this would be a HTTP-GET request to:

    GET https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/GetValidContentFieldTypes(ReportTemplateType=DataScope.Select.Api.Extractions.ReportTemplates.ReportTemplateTypes'PriceHistory')

    and the response JSON is the list of all the fields:

    {
    "@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#ContentFieldTypes",
    "value": [{
    "Code": "ET2.30-Day Implied Volatility - Call",
    "Name": "30-Day Implied Volatility - Call",
    "Description": "Volatility implied by the market price of a call option contract based on a theoretical pricing model on a 30 days period.",
    "FormatType": "Number",
    "FieldGroup": " "
    }, {
    "Code": "ET2.30-Day Implied Volatility - Put",
    "Name": "30-Day Implied Volatility - Put",
    "Description": "Volatility implied by the market price of a put option contract based on a theoretical pricing model on a 30 days period.",
    "FormatType": "Number",
    "FieldGroup": " "
    }, {
    "Code": "ET2.60-Day Implied Volatility - Call",
    "Name": "60-Day Implied Volatility - Call",
    "Description": "Volatility implied by the market price of a call option contract based on a theoretical pricing model on a 60 days period.",
    "FormatType": "Number",
    "FieldGroup": " "
    }, {
    "Code": "ET2.60-Day Implied Volatility - Put",
    "Name": "60-Day Implied Volatility - Put",
    "Description": "Volatility implied by the market price of a put option contract based on a theoretical pricing model on a 60 days period.",
    "FormatType": "Number",
    "FieldGroup": " "
    },
    ...