The Python `Exchange` class defines an attribute called `markets_by_slug` but never adds items to it. Presumably, `markets_by_slug` should be updated in `Exchange.load_markets`, which is where `Exchange.markets` is updated to index the markets by market ID.
The Python
Exchangeclass defines an attribute calledmarkets_by_slugbut never adds items to it.Presumably,
markets_by_slugshould be updated inExchange.load_markets, which is whereExchange.marketsis updated to index the markets by market ID.