code: def get_by_symbol(self, symbol: str) -> Commodity:
          
          assert isinstance(symbol, str)
  
          query = (
              self.currencies_query
                  .filter(Commodity.mnemonic == symbol)
          )
          return query.one()
docs: Loads currency by symbol