Error: unexpected argument "retName" when I try to get name of datatype

I want to get the name of datatype following datastreamDSWS help but in vain.

My code: ds.get_data(tickers='@AAPL';, fields='WC08311',retname=True)

Error message:1680012091888.png

The argument shall be there I suppose.

1680010483681.png

Can you please advise alternative way if available?

Best Answer

Answers

  • Hi @frank.ling1,

    It appears to be a bug in the library. The parameter retName is listed in the documentation and the get_data function uses it as well, but it is not defined as one of the arguments to the library function call - which is why you are getting this error.

    def get_data(self, tickers, fields=None, start='', end='', freq='', kind=1):

    I will raise this bug with Refinitiv Support.


  • I am unable to create a ticket on behalf of Refinitiv users. Please go to my.refinitiv.com and raise a support ticket for DSWS. Thanks.