Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
87 10 13 14

Retrieving timestamped historical data for fields with Eikon Data API Rest request

We're using Eikon Data Api via direct rest requests, e.g. http://localhost:9060/api/v1/data. Refiinitiv Workspace (or Refinitiv Eikon) is running locally and acts as a proxy for these requests.

We're using the data endpoint to retrieve historical daily timeseries data. Here is an example request:

{
    "Entity": {
        "E": "DataGrid_StandardAsync",
        "W": {
            "requests": [
                {
                    "instruments": [
                        "/TFMBMc1"
                    ],
                    "fields": [
                        {
                            "name": "TR.MIDPRICE"
                        },
                        {
                            "name": "TR.PriceCloseDate"
                        }
                    ],
                    "parameters": {
                        "SDate": "0",
                        "EDate": "-9900",
                        "Frq": "D"
                    }
                }
            ]
        }
    }
}

The result we get back looks something like this:


{
    "responses": [
        {
            "columnHeadersCount": 1,
            "data": [
                [
                    "/TFMBMc1",
                    83.77,
                    ""
                ],
                [
                    "/TFMBMc1",
                    86.35,
                    ""
                ],
                ...
            ],
            "headerOrientation": "horizontal",
            "headers": [
                [
                    {
                        "displayName": "Instrument"
                    },
                    {
                        "displayName": "Mid Price",
                        "field": "TR.MIDPRICE"
                    },
                    {
                        "displayName": "Date",
                        "field": "TR.PRICECLOSEDATE"
                    }
                ]
            ],
            "rowHeadersCount": 1,
            "totalColumnsCount": 3,
            "totalRowsCount": 7070
        }
    ]
}                

The issue is that there is no data delivered (or rather an empty string) in the result points for the requested field "TR.PriceCloseDate". We are pretty sure that we got results back in the past for this field.

Can you advise us which is the correct field to request to get the respective timestamp for each TR.MIDPRICE data point?

Please note that TR.MIDPRICE is just an example field, our app leaves the user the choice to plot whatever field is available for a given RIC. In order to plot the values in a timeseries chart, we do need the accompanying date information for every field data point.

eikon-data-apirefinitiv-data-platform
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
Upvote
Accepted
1.3k 3 2 4

Hi @GoGoGroundhog ,

You should try with TR.CLOSEPRICE.DATE field.

To get the date for TR.MIDPRICE, you can request TR.MIDPRICE.DATE


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.