def market(self, symbol):
    if (not self.markets):
        self.raise_error(ExchangeError, details='Markets not loaded')
    if (isinstance(symbol, basestring) and (symbol in self.markets)):
        return self.markets[symbol]
    self.raise_error(ExchangeError, details=('No market symbol ' + str(symbol)))
def market(self, symbol):
    if (not self.markets):
        self.raise_error(ExchangeError, details='Markets not loaded')
    if (isinstance(symbol, basestring) and (symbol in self.markets)):
        return self.markets[symbol]
    self.raise_error(ExchangeError, details=('No market symbol ' + str(symbol)))