.. Copyright (C) 2023-2024 Enzo Busseti
.. This file is part of Cvxportfolio.
.. Cvxportfolio is free software: you can redistribute it and/or modify it under
.. the terms of the GNU General Public License as published by the Free Software
.. Foundation, either version 3 of the License, or (at your option) any later
.. version.
.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT
.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
.. details.
.. You should have received a copy of the GNU General Public License along with
.. Cvxportfolio. If not, see .
Stock universes
===============
This example module is
`available in the repository
`_.
See the docstring below for its explanation. It's used by other examples
to get lists of stock tickers corresponding to various indexes. We run
it periodically to update the lists to the current constituents of each
index.
.. literalinclude:: ../../examples/universes.py
:language: python