MCPcopy Create free account
hub / github.com/ScottfreeLLC/AlphaPy / frame_name

Function frame_name

alphapy/frame.py:47–69  ·  view source on GitHub ↗

r"""Get the frame name for the given name and space. Parameters ---------- name : str Group name. space : alphapy.Space Context or namespace for the given group name. Returns ------- fname : str Frame name. Examples -------- >>> fna

(name, space)

Source from the content-addressed store, hash-verified

45#
46
47def frame_name(name, space):
48 r"""Get the frame name for the given name and space.
49
50 Parameters
51 ----------
52 name : str
53 Group name.
54 space : alphapy.Space
55 Context or namespace for the given group name.
56
57 Returns
58 -------
59 fname : str
60 Frame name.
61
62 Examples
63 --------
64
65 >>> fname = frame_name('tech', Space('stock', 'prices', '1d'))
66 # 'tech_stock_prices_1d'
67
68 """
69 return USEP.join([name, space.subject, space.schema, space.fractal])
70
71
72#

Callers 12

__init__Method · 0.90
exec_tradeFunction · 0.90
gen_portfolioFunction · 0.90
vapplyFunction · 0.90
vunapplyFunction · 0.90
get_market_dataFunction · 0.90
trade_systemFunction · 0.90
run_systemFunction · 0.90
__init__Method · 0.85
__str__Method · 0.85
load_framesFunction · 0.85
dump_framesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected