question

Upvotes
Accepted
1 0 0 0

How do I get the Eikon equivalent of calcdate in dsws API?

How do I get the Eikon equivalent of calcdate in dsws API?

The Eikon API call is:
=@TR('ASX300 List'!J3:J500,"TR.RecMean.calcdate;TR.NumOfRecommendations;TR.NumOfStrongSell;TR.NumOfSell;TR.NumOfHold;TR.NumOfBuy;TR.NumOfStrongBuy;TR.PriceTargetMean;TR.RecMedian;TR.RecMedianLabel","SDate=1D CH=Fd RH=IN",$AB$1)


DSWS API call:

ds.get_data(tickers = ', '.join(map(str, tickers)), fields = ['DSCD','NAME','LOC','ISIN','RIC','T1C','EXMNEM','EXDSCD','TYPE','SEGM','ISOMIC', 'DOISO', 'GGISO',
'RECNOD','RECNOU','RECBUY','RECHOLD','RECMBUY','RECMSELL','RECSELL',
'RECSBUY','RECSSELL','RECCON','RECTXT','RECMED','RECNO','RECSTD','PTMN'], start=PreviousTradeDay.strftime('%Y%m%d'), kind = 0)

pythonworkspace#technologydsws-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
85.2k 290 53 77

@sam.macaluso

Thank you for reaching out to us.

This forum is dedicated to software developers using LSEG APIs. The moderators on this forum do not have deep expertise in every bit of content available through LSEG products, which is required to answer content questions such as this one.

The best resource for Datastream content questions is the Datastream support team, which can be reached by submitting queries through MyAccount. The support team will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.