Proper parameters for retrieving bid ask information via Eikon Data API via Python.

Hello,
I would like to obtain tick data for equities. The example here is 'ADVANC.BK'. However, the function (1) gives all 'nan' responses. Since function (2) works well, I doubt the parameters in 'fields' are specified incorrectly. Please help correct the function (1) where they are needed.

(1) ek.get_timeseries(rics=['ADVANC.BK'],fields=['TR.PRICE','TR.BIDSIZE', 'TR.ASKPRICE', 'TR.BIDSIZE','TR.ASKSIZE'], start_date = "2019-09-24T06:00:00", end_date = "2019-09-30T09:30:00",interval="daily")

image

(2) ek.get_timeseries(rics=['CNYQM7R1Y=TPSC'],fields = ['Value'],start_date = "2019-09-24T06:00:00", end_date = "2019-09-30T09:30:00",interval="tick")

image

Best Answer

  • m.bunkowski
    Answer ✓

    Hi @tanaj

    Try this:

    ts=ek.get_timeseries("ADVANC.BK",['Bid','Ask','Bidsize','Asksize','Count','Trdprc_1'], start_date = "2019-12-01T06:00:00", end_date = "'2019-12-03T21:00:00", interval="tas")
    ts.tail()


    image

Answers