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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
7 3 2 5

Close Price Not Available

Hi,

It is Aug 13, 2019, 4:30 pm IST now and I am trying to download close price for couple of Indian RICs `TCS.NS` and `HDBK.NS` since it has been end of trading hours for Indian market (3:30 pm IST).

Usually everyday by this time, the close price gets downloaded via Excel or Python API, but today I am unable to retrieve them.

Please see my below code and corresponding output.

import eikon as ek
rics = ['HDBK.NS', 'TCS.NS']
fields = [ek.TR_Field('TR.PriceClose'), ek.TR_Field('TR.PriceClose.date')]
df = ek.get_data(instruments=rics, fields=fields, parameters={'SDate': '2019-08-08', 'EDate': '2019-08-13', 'FRQ': 'D', 'CH': 'Fd;IN', 'RH': 'date', 'SORTD': 'date'})
print(df)

Output is as follows:

(  Instrument  Price Close                  Date
0    HDBK.NS      2233.15  2019-08-08T00:00:00Z
1    HDBK.NS      2282.00  2019-08-09T00:00:00Z
2    HDBK.NS      2282.00  2019-08-09T00:00:00Z
3     TCS.NS      2258.10  2019-08-08T00:00:00Z
4     TCS.NS      2246.25  2019-08-09T00:00:00Z
5     TCS.NS      2246.25  2019-08-09T00:00:00Z, None)

Note that the price downloaded is for Aug 8 and 9, not Aug 13.

Any help would be appreciated.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonpricing
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
18k 21 12 20

Hi @dayquant

Because the historical database is not ready yet (it takes some time)

You can retrieve today close price from "Intraday" fields.


ahs-updated.png (8.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thanks for the answer.

Can you help me with understanding the difference between these fields?

  • TR.PriceClose
  • TR.ClosePrice
  • OFF_CLOSE
  • TR.OFFICIALCLOSEPRICE
  • CF_CLOSE

I am looking for 30-min closing (end of day) VWAP price. Which of the above should I use?

Upvotes
6.7k 8 6 7

Hi @dayquant The figures from chavalit above are in fact the previous days close (ie 9th)

I have just run the code and it has correctly delivered the results.

The only reason I can think of is there was some delay with closing run process of that exchange today. Im not sure if this can help - but please observe it tomorrow again. If there is a similar issue we can investigate further.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thanks for the answer.

Can you help me with understanding the difference between these fields?

  • TR.PriceClose
  • TR.ClosePrice
  • OFF_CLOSE
  • TR.OFFICIALCLOSEPRICE
  • CF_CLOSE

I am looking for 30-min closing (end of day) VWAP price. Which of the above should I use?

Hi @dayquant

You can use "Data Item Browser" to see each of the field description.

Please type in "DIB" (without double quotes) on the Eikon Desktop search bar and press enter.

Then input the instrument code and field name.

The fields you provided are from 3 different databases:

For example TR.PRICECLOSE is on "Prine & Volume" database.

OFF_CLOSE and CF_CLOSE are on "Real Time" database.

TR.ClosePrice and TR.OFFICIALCLOSEPRICE are on "Time Series Data" database.

If the Data Item Browser does not provide enough information on each fields, you can contact Refinitiv Content Support at https://my.refinitiv.com/

ahs.png (128.9 KiB)
ahs2.png (155.6 KiB)
Upvotes
18k 21 12 20

Sorry I would like to update my answer a bit.

CF_CLOSE of today is the previous trading day CLOSE (which @jason.ramchandani pointed out, thanks.)

CF_<xx> fields are on realtime data set, while TR.PriceClose is on a time series dataset.

It usually takes some time before the data is ready in time series dataset.

So you have to use "CF_LAST" field for today last price like you experienced it yourselves that the data was not ready yet and you could not retrieve it using TR.PriceClose field.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea