def __init__(self, underlingSymbol = None, tradeTime = None, symbol = None, expirationDate = None, daysToExpiration = None, date = None, optionType = None, strikePrice = None, askPrice = None, bidDate = None, bidPrice = None, openPrice = None, highPrice = None, lowPrice = None, lastPrice = None, priceChange = None, volatility = None, theoretical = None, delta = None, gamma = None, rho = None, theta = None, vega = None, openInterest = None, volume = None): BaseEntity.__init__(self) self.underlingSymbol = underlingSymbol self.tradeTime = tradeTime self.symbol = symbol self.expirationDate = expirationDate self.date = date self.daysToExpiration = daysToExpiration self.optionType = optionType self.strikePrice = strikePrice self.askPrice = askPrice self.bidDate = bidDate self.bidPrice = bidPrice self.openPrice = openPrice self.highPrice = highPrice self.lowPrice = lowPrice self.lastPrice = lastPrice self.priceChange = priceChange self.volatility = volatility self.theoretical = theoretical self.delta = delta self.gamma = gamma self.rho = rho self.theta = theta self.vega = vega self.openInterest = openInterest self.volume = volume
def __init__(self,package_name,date,cinfo=None): self.package_name=package_name #self.campaign_id=cinfo['campaign_id'] self.date=date self.cinfo=cinfo BaseEntity.expire_time=3600*24*7 BaseEntity.__init__(self,"camp_list:%s:%s" % (package_name,date))
def __init__(self, symbol=None, tradeTime=None, openPrice=None, highPrice=None, lowPrice=None, lastPrice=None, priceChange=None, volume=None): BaseEntity.__init__(self) self.symbol = symbol self.tradeTime = tradeTime self.openPrice = openPrice self.highPrice = highPrice self.lowPrice = lowPrice self.lastPrice = lastPrice self.priceChange = priceChange self.volume = volume
def __init__(self, symbol=None, lastPrice=None, priceChange=None, openPrice=None, highPrice=None, lowPrice=None, previousPrice=None, volume=None, tradeTime=None, dailyLastPrice=None, dailyPriceChange=None, dailyOpenPrice=None, dailyHighPrice=None, dailyLowPrice=None, dailyPreviousPrice=None, dailyVolume=None, dailyDate1dAgo=None): BaseEntity.__init__(self) self.symbol = symbol self.lastPrice = lastPrice self.priceChange = priceChange self.openPrice = openPrice self.highPrice = highPrice self.lowPrice = lowPrice self.previousPrice = previousPrice self.volume = volume self.tradeTime = tradeTime self.dailyLastPrice = dailyLastPrice self.dailyPriceChange = dailyPriceChange self.dailyOpenPrice = dailyOpenPrice self.dailyHighPrice = dailyHighPrice self.dailyLowPrice = dailyLowPrice self.dailyPreviousPrice = dailyPreviousPrice self.dailyVolume = dailyVolume self.dailyDate1dAgo = dailyDate1dAgo
def __init__(self,date): self.date=date self.expire_time=3600*24 BaseEntity.__init__(self,"appid_list_active:%s" % date)
def __init__(self,app_id): self.app_id=app_id BaseEntity.__init__(self,"appid_description:%s" % (app_id))
def __init__(self,app_id,date): self.date=date self.expire_time=3600*24*60 self.app_id=app_id BaseEntity.__init__(self,"appid_version_to_date:%s:%s" % (app_id,date))
def __init__(self,appid,date1,date2): self.date1=date1 self.date2=date2 self.expire_time=3600*24*60 self.app_id=appid BaseEntity.__init__(self,"appid_day_coverage:%s:%s:%s" % (appid,date1,date2))
def __init__(self,appid,date): self.date=date self.expire_time=3600*24*60 self.app_id=appid BaseEntity.__init__(self,"appid_active_hist:%s:%s" % (appid,date))
def __init__(self,date): self.date=date BaseEntity.expire_time=3600*24*60 BaseEntity.__init__(self,"date_report:%s" % date)
def __init__(self,date): self.date=date BaseEntity.expire_time=3600*24*7 BaseEntity.__init__(self,"offer_active_list:%s" % date)
def __init__(self,date,appid): self.date=date self.appid=appid BaseEntity.expire_time=3600*24*60 BaseEntity.__init__(self,"date_report:%s:%s" % (date,appid))
def __init__(self,hour): self.hour=hour BaseEntity.expire_time=3600*48 BaseEntity.__init__(self,"daily_report:%s" % hour)
def __init__(self,offer_id,date): self.offer_id=offer_id self.date=date BaseEntity.expire_time=3600*24*7 BaseEntity.__init__(self,"offer_report:%s:%s" % (offer_id,date))
def __init__(self,appid,date): self.appid=appid self.date=date BaseEntity.__init__(self,"appid_report:%s:%s" % (appid,date))
def __init__(self,date): self.date=date BaseEntity.expire_time=3600*24*45 BaseEntity.__init__(self,"daily_revenue:%s" % date)
def __init__(self,date): self.date=date BaseEntity.__init__(self,"date_country_report:%s" % (date))