API functions: AI Factor

API functions for AI Factor

Marco Salerno
Written by Marco SalernoLast update 10 days ago

AI Factor Functions

aifactor_predict

Returns the predictions for a trained predictor.

aifactor_predict()

Wrapper for POST /aiFactor/predict/{id}

This operation allows you to get the predictions for a trained Predictor. Although you can specify any universe we recommended that you use the same one used to train the predictor.

p123api.Client().aifactor_predict(
    id # predictor id
    #
    # optional
    #
    ,{
    "asOfDt": "2024-10-07",  # defaults to latest available
    "precision": 2,
    "universe": "univ name", # defaults to AI Factor universe
    "includeNames": False, 
    "includeFeatures": False, 
    "figi": 'Share Class' |'Country Composite'
    }, 
    to_pandas=True
)

Go to:

Did this answer your question?