# Path: datafeed/exchange.py
# class Security(object):
#     """Finance securities includes:
#     - stocks
#     - stock indexes
#     - funds/mutual funds
#     - options
#     - bonds
#     """
#     modules = sys.modules[__name__]
# 
#     __slots__ = ['exchange', 'symbol', 'name']
# 
#     def __init__(self, exchange, symbol, name=None):
#         assert isinstance(exchange, StockExchange), "Wrong exchange."
#         self.exchange = exchange
#         self.symbol = symbol
#         self.name = name
# 
#     def __eq__(self, other):
#         return self.exchange == other.exchange and \
#             self.symbol == other.symbol
# 
#     def __getstate__(self):
#         return self.exchange, self.symbol
# 
#     def __setstate__(self, state):
#         self.exchange, self.symbol = state
# 
#     def __repr__(self):
#         args = []
#         args.append("%s()" % self.exchange)
#         args.append("'%s'" % self.symbol)
#         if self.name:
#             args.append("'%s'" % self.name)
#         return "%s(%s)" % (self.__class__.__name__,
#                            ', '.join(args))
# 
#     def __str__(self):
#         """Symbol with exchange abbr (pre)suffix.
#         """
#         return "%s:%s" % (self._abbr, self.symbol)
# 
#     @classmethod
#     def from_security(cls, security):
#         """Helper method for convert from different services adapter."""
#         assert isinstance(security, Security)
#         return cls(security.exchange,
#                    security.symbol,
#                    security.name)
# 
#     @classmethod
#     def from_abbr(cls, abbr, symbol, name=None):
#         ex = getattr(cls.modules, abbr)
#         return cls(ex(), symbol, name)
#         
#     @property
#     def _abbr(self):
#         """Symbol with exchange abbr suffix.
#         """
#         return str(self.exchange)


from datetime import datetime
from datafeed.exchange import Security
# -*- coding: utf-8 -*-


__all__ = ['Report', 'Day', 'Minute', 'SecurityList']


class _Struct(object):

    def __init__(self, security, adict):
        assert isinstance(security, Security)

        self.__dict__.update(adict)

# Path: datafeed/exchange.py
# class Security(object):
#     """Finance securities includes:
#     - stocks
#     - stock indexes
#     - funds/mutual funds
#     - options
#     - bonds
#     """
#     modules = sys.modules[__name__]
# 
#     __slots__ = ['exchange', 'symbol', 'name']
# 
#     def __init__(self, exchange, symbol, name=None):
#         assert isinstance(exchange, StockExchange), "Wrong exchange."
#         self.exchange = exchange
#         self.symbol = symbol
#         self.name = name
# 
#     def __eq__(self, other):
#         return self.exchange == other.exchange and \
#             self.symbol == other.symbol
# 
#     def __getstate__(self):
#         return self.exchange, self.symbol
# 
#     def __setstate__(self, state):
#         self.exchange, self.symbol = state
# 
#     def __repr__(self):
#         args = []
#         args.append("%s()" % self.exchange)
#         args.append("'%s'" % self.symbol)
#         if self.name:
#             args.append("'%s'" % self.name)
#         return "%s(%s)" % (self.__class__.__name__,
#                            ', '.join(args))
# 
#     def __str__(self):
#         """Symbol with exchange abbr (pre)suffix.
#         """
#         return "%s:%s" % (self._abbr, self.symbol)
# 
#     @classmethod
#     def from_security(cls, security):
#         """Helper method for convert from different services adapter."""
#         assert isinstance(security, Security)
#         return cls(security.exchange,
#                    security.symbol,
#                    security.name)
# 
#     @classmethod
#     def from_abbr(cls, abbr, symbol, name=None):
#         ex = getattr(cls.modules, abbr)
#         return cls(ex(), symbol, name)
#         
#     @property
#     def _abbr(self):
#         """Symbol with exchange abbr suffix.
#         """
#         return str(self.exchange)


# Path: datafeed/quote.py
from datetime import datetime
from datafeed.exchange import Security

# -*- coding: utf-8 -*-


__all__ = ['Report', 'Day', 'Minute', 'SecurityList']


class _Struct(object):

    def __init__(self, security, adict):
        assert isinstance(security, Security)

        self.__dict__.update(adict)

        self.security = security