MCPcopy Create free account
hub / github.com/DVampire/FinAgent / __init__

Method __init__

finagent/processor/processor.py:205–226  ·  view source on GitHub ↗
(self,
                 root=None,
                 path_params = None,
                 stocks_path = None,
                 start_date = None,
                 end_date = None,
                 interval="day",
                 if_parse_url = False,
                 workdir = None,
                 tag = None
                 )

Source from the content-addressed store, hash-verified

203@PROCESSOR.register_module(force=True)
204class Processor():
205 def __init__(self,
206 root=None,
207 path_params = None,
208 stocks_path = None,
209 start_date = None,
210 end_date = None,
211 interval="day",
212 if_parse_url = False,
213 workdir = None,
214 tag = None
215 ):
216 self.root = root
217 self.path_params = path_params
218 self.stocks_path = os.path.join(root, stocks_path)
219 self.start_date = start_date
220 self.end_date = end_date
221 self.interval = interval
222 self.if_parse_url = if_parse_url
223 self.workdir = workdir
224 self.tag = tag
225
226 self.stocks = self._init_stocks()
227
228 def _init_stocks(self):
229 with open(self.stocks_path) as op:

Callers

nothing calls this directly

Calls 1

_init_stocksMethod · 0.95

Tested by

no test coverage detected