def __init__(self, *args, **kwargs): BaseStrategy.__init__(self, *args, **kwargs) self._market_expiration = self.context.get("market_expiration", 3600) # seconds self._remove_file = self.context.get("remove_file", True) # remove txt file after zip self._force_update = self.context.get( "force_update", True) # update after initial closure self.local_dir = self.context.get("local_dir", "/tmp") self.recorder_id = create_short_uuid() self._loaded_markets = [] # list of marketIds
def __init__(self, *args, **kwargs): BaseStrategy.__init__(self, *args, **kwargs) self._market_expiration = self.context.get("market_expiration", 3600) # seconds self._remove_file = self.context.get("remove_file", False) self._remove_gz_file = self.context.get("remove_gz_file", False) self._force_update = self.context.get("force_update", True) self._load_market_catalogue = self.context.get("load_market_catalogue", True) self.local_dir = self.context.get("local_dir", "/tmp") self.recorder_id = self.context.get("recorder_id", create_short_uuid()) self._loaded_markets = [] # list of marketIds self._queue = queue.Queue()
def test_create_short_uuid(self): self.assertTrue(utils.create_short_uuid())