hi, i try to request the api with the lseg lib with
import lseg.data as ld
the problem is :
with theses fields
FIELDS = [
"TR.CommonName",
"TR.CouponRate",
"TR.FiCouponFrequency",
"TR.FiDayCountCode",
"TR.FiNumberAccruedDays",
"TR.FiCouponEffectiveDate",
"TR.FiNextPayDate",
"TR.FiMaturityDate",
"TR.AssetCategory",
"TR.IndexRatio",
"TR.FiCurrency",
]
with the desktop call
session_definition = self.ld.session.desktop.Definition(app_key=settings.reuters_app_key)
its work and i got return
{ "Instrument": "IT0004532559", "Company Common Name": "Italy, Republic of (Government)", "Coupon Rate": 5, "Coupon Frequency": 2, "Day Count Code": 5, "Number Accrued Days": 27, "Coupon Effective Date": "2009-09-01 00:00:00", "Next Pay Date": "2027-03-01 00:00:00", "Maturity Date": "2040-09-01 00:00:00", "Asset Category Description": "Bond", "Index Ratio": "", "Currency": "EUR"}
but with the plateform
session_definition = self.ld.session.platform.Definition( app_key=settings.app_key, grant=ld.session.platform.GrantPassword(username=settings.username, password=settings.password), proxies={"http": settings.http_proxy, "https": settings.https_proxy}, signon_control=True)
it got none instead of value for most of item
{
"Instrument": "IT0004532559",
"Company Common Name": "Italy, Republic of (Government)",
"Coupon Rate": null,
"Coupon Frequency": null,
"Day Count Code": null,
"Number Accrued Days": null,
"Coupon Effective Date": null,
"Next Pay Date": null,
"Maturity Date": null,
"Asset Category Description": "Bond",
"Index Ratio": null,
"Currency": null
}
i use this
response = self.ld.get_data( universe=[normalized_isin], fields=FIELDS,)
Someone know if there are differences between desktop and plateform call ?
Thx