Eikon API Python

How extract historical Shanghai-Hong Kong connect northbound quota values from Eikon API

Best Answer

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭
    Answer ✓

    Use .NQUOTA.SH RIC. E.g. to retrieve the most recent daily quota limit and balance (scaled to 1000 CNY) use

    ek.get_data('.NQUOTA.SH',['QUTA_LMT','QUTA_REM'])

    To get the timeseries of daily quota balance for the last 90 days use

    ek.get_timeseries('.NQUOTA.SH', 
                      start_date = dt.timedelta(-90), 
                      end_date = dt.datetime.today())

Answers