MCPcopy Index your code
hub / github.com/ScottfreeLLC/AlphaPy / Space

Class Space

alphapy/space.py:62–90  ·  view source on GitHub ↗

Create a new namespace. Parameters ---------- subject : str An identifier for a group of related items. schema : str The data related to the ``subject``. fractal : str The time fractal of the data, e.g., "5m" or "1d".

Source from the content-addressed store, hash-verified

60#
61
62class Space:
63 """Create a new namespace.
64
65 Parameters
66 ----------
67 subject : str
68 An identifier for a group of related items.
69 schema : str
70 The data related to the ``subject``.
71 fractal : str
72 The time fractal of the data, e.g., "5m" or "1d".
73
74 """
75
76 # __init__
77
78 def __init__(self,
79 subject = "stock",
80 schema = "prices",
81 fractal = "1d"):
82 # code
83 self.subject = subject
84 self.schema = schema
85 self.fractal = fractal
86
87 # __str__
88
89 def __str__(self):
90 return space_name(self.subject, self.schema, self.fractal)

Callers 8

get_market_configFunction · 0.90
__new__Method · 0.90
__init__Method · 0.90
gen_portfolioFunction · 0.90
mainFunction · 0.90
get_market_dataFunction · 0.90
__init__Method · 0.90
run_systemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected