API Functions: Universe

Marco Salerno
Written by Marco SalernoLast updated 2 months 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 article help you solve your issue?

Portfolio123 - Help Center

© 2025 Portfolio123 - Help Center. All rights reserved.

Knowledge Base Software by Customerly