Historic get_data() for TR.AssetCharterer returns blank

Hi,

I'm trying to get the charter history for oil tankers. It's possible to get this using `get_data()` on the `TR.AssetCharterer` field, as below:

image

`TR.AssetCharterer` is listed as a time series field in the Data Item Browser, yet whenever I try to get any historic data, either through `get_data()` or `get_timeseries()` it returns an empty string:

image

This holds true whether I'm specifying a specific date, a relative date or a range. Am I misunderstanding `TR.AssetCharterer` as a data point, or is this an issue with the API?

Any help would be much appreciated!

Louis.

Best Answer

  • chavalit-jintamalit
    Answer ✓

    Hi @lgoddard

    I think it is about the content available and your parameters.

    So your API call hit another record which has "Charterer" as blank.

    Please try this: (I add 2 more fields to show the difference between each blank value)

    rics = 'C}KM7309484069'
    fields = ['TR.AssetLoadingDateFrom',
              'TR.AssetLoadingDateTo',
              'TR.AssetCharterer']
    parameters = {'SDate':'2015-01-01', 'EDate':'2020-03-27', 'TOP':'100'}

    df,e = ek.get_data(rics, fields, parameters)
    df


    image

Answers

  • lgoddard
    lgoddard Newcomer
    Hi @chavalit.jintamalit - that's perfect, thank you. I should have explored the data a bit more before posting!