Data fields for the Eikon streaming API

I was using the following call to get bid/ask/last data using Eikon's streaming API.

sp = ek.StreamingPrices(instruments = ['XOM'],
fields = ['CF_BID','CF_ASK','CF_LAST', 'CF_DATE', 'CF_TIME']
sp.open()
sp.get_snapshot()

Everything was working fine till this morning and now all I get is the following:

  Instrument
0        XOM

It looks like it does not recognize the data fields anymore. Did something change on the back-end? If so, what are the new fields I should be requesting?

Appreciate any help you can provide.

Thanks,


Matt

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @matt.edwards, @jordan.carney,

    There appears to be some changes in the API Proxy that may be affecting some customers. This is currently being looked into and I will update you once I hear back.

    In the meantime, try the following to see if it helps. Note: the code segment below includes a setting for service.

    sp = ek.StreamingPrices(instruments = ['XOM'],
    fields = ['CF_BID','CF_ASK','CF_LAST', 'TRDPRC_1', 'HST_CLOSE'],
    service = "IDN_RDFNTS_CF",
    on_refresh = lambda sp, instrument, fields : print(fields),
    on_update = lambda sp, instrument, fields : print(fields),
    on_status = lambda sp, instrument, status : print(status))


Answers