API Functions: Universe

API functions for universe operations

Marco Salerno
Written by Marco SalernoLast update 10 days ago

Universe Functions

universe_update

This operation updates the Universe used by API.

universe_update()

Wrapper for POST โ€‹/universe

This operation updates the Universe used by API. This universe is always called "ApiUniverse" and it's stored in your account. If you donโ€™t have this Universe already saved in the platform, it will be created.

p123api.Client().universe_update( {
    'rules': ['rule1','rule2', ... ],
    # optional parameters
    'type': 'stock' | 'etf', 
    'currency': 'USD' | 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'NOK' | 'PLN' | 'SEK' | 'TRY',
    'startingUniverse': 'SP500' (optional)
})

Go to:

Did this answer your question?