Error with fundamental_and_reference.Definition data api

With the code below:

df_chunk = fundamental_and_reference.Definition(
universe= tickers,
fields = ['TR.CLOSEPRICE.date','TR.CLOSEPRICE','TR.Volume'],
params = {"SDate": 0, "EDate": -756, "FRQ": "d"})

why is it raising error?

Error processing chunk 1: Definition.__init__() got an unexpected keyword argument 'params'

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @augusto_krappa

    Thank you for reaching out to us.

    It should be the parameters, not params.

    |  parameters : dict, optional
    | Fields global parameters.

    You can use the help(fundamental_and_reference.Definition) command to verify its valid parameters.