Whats the issue with 0#.SSHI RIC

There seems to be an issue with 0#.SSHI in codebook ... it is not pulling the values correctly ... take for Example <0#.SPX> which has 500 stock RIC under .SPX. I get like One row 

image.png

But I replace the RIC from 0#.SPX >> to 0#.SSHI .  The value looks corrupt .

image.png

I have re-worked on the code, still it is pulling incorrect instruments on 15th Jan 2020

image.png

This code is also pulling incorrect values:

import eikon as ek
import datetime

 

ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')
index_ric = '0#.SSHI'
start_date = '2020-01-15'
end_date = '2020-01-15'

 

df, err = ek.get_data(index_ric, ['TR.ClosePrice','TR.ClosePrice.calcdate'],
{'SDate': start_date, 'EDate': end_date, 'IC': 'B'})

 

print(df)

Kindly check the issue.

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Razeen_Ptp

    Thank you for reaching out to us.

    For the TR.xxx fields, it is better to use the get_data method instead.

    ld.get_data(
    universe='0#.SSHI',
    fields=['TR.ClosePrice'],
    parameters={'SDate':'2020-01-15'})
    image.png

    To check the data, you can compare it with the data from the Workspace Excel.