How to convert DSGRID in Excel to python?

I want to retrieve historical gross price and clean price for a certain bond.

The Excel query is:

=DSGRID("CA823901AK94","GP;CP","2016-05-31","2016-06-11","D","EDateCellRef=true;SDateCellRef=true;RowHeader=true;ColHeader=true;DispSeriesDescription=false;YearlyTSFormat=false;QuarterlyTSFormat=false","")

where CA823901AK94 is Bond ISIN.
I tried

ek.get_data('CA823901AK94',

fields = ['TR.CLEANPRICE.date','TR.CLEANPRICE','TR.DIRTYPRICE'],

parameters = {'SDate': '2016-05-31', 'EDate': '2016-06-11', 'FRQ': 'D'}),

but it returns NA

Best Answer