Beispiel #1
0
 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
Beispiel #2
0
 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()
Beispiel #3
0
 def __init__(self, *args, **kwargs):
     BaseStrategy.__init__(self, *args, **kwargs)
     self.local_dir = self.context.get("local_dir", "/tmp")
     self.filename = self.context.get("filename", "output.txt")
     self.file_directory = os.path.join(self.local_dir, self.filename)