feat(pokedex): add --pokedex-card CLI inspector for time-series-grounded Gen IV Pokedex & multi-lens profiles (v2.0.18)
This commit is contained in:
1 parent
72958f9fe9
commit
451d2dfcc8
1 file changed
+33
-1
@@ -3190,6 +3190,12 @@ def main() -> int:
|
|||||||
default=None,
|
default=None,
|
||||||
help="Run or scan periodic quantitative financial telemetry harvest (financial-aq-harvest-latest.json) for Scope 1-3 contingent locks.",
|
help="Run or scan periodic quantitative financial telemetry harvest (financial-aq-harvest-latest.json) for Scope 1-3 contingent locks.",
|
||||||
)
|
)
|
||||||
|
ap.add_argument(
|
||||||
|
"--pokedex-card",
|
||||||
|
default=None,
|
||||||
|
metavar="SYMBOL_OR_DEX",
|
||||||
|
help="Inspect time-series-grounded Gen IV INFO Pokedex & multi-lens specimen profile for a ticker symbol or DEX coordinate (e.g. NVDA, 137, ASML).",
|
||||||
|
)
|
||||||
ap.add_argument("--out", default=None, help="Optional JSON output file path.")
|
ap.add_argument("--out", default=None, help="Optional JSON output file path.")
|
||||||
args = ap.parse_args()
|
args = ap.parse_args()
|
||||||
|
|
||||||
@@ -3217,7 +3223,33 @@ def main() -> int:
|
|||||||
report = analyze_terms(processed_terms, workdir=args.workdir)
|
report = analyze_terms(processed_terms, workdir=args.workdir)
|
||||||
report["quant_mode"] = args.quant_mode
|
report["quant_mode"] = args.quant_mode
|
||||||
|
|
||||||
if args.scan_quant_harvest is not None:
|
if args.pokedex_card is not None:
|
||||||
|
from hyperstitionstud_io.quant.timeseries import build_quant_timeseries_bundle
|
||||||
|
|
||||||
|
q_str = str(args.pokedex_card).strip().upper()
|
||||||
|
ts_bundle = build_quant_timeseries_bundle(write_files=False)
|
||||||
|
matched_inst = None
|
||||||
|
for inst in ts_bundle["instruments"]:
|
||||||
|
if (
|
||||||
|
inst["symbol"].upper() == q_str
|
||||||
|
or inst["entity_eng"].upper() == q_str
|
||||||
|
or str(inst["entity_ing_aq"]) == q_str.lstrip("#DEX ")
|
||||||
|
):
|
||||||
|
matched_inst = inst
|
||||||
|
break
|
||||||
|
if matched_inst is None:
|
||||||
|
matched_inst = ts_bundle["instruments"][0]
|
||||||
|
out_str = json.dumps(
|
||||||
|
{
|
||||||
|
"pokedex_profile": matched_inst.get("pokedex_profile"),
|
||||||
|
"lens_projections": matched_inst.get("lens_projections"),
|
||||||
|
"structural_vector": matched_inst.get("structural_vector"),
|
||||||
|
"timeseries_moments": matched_inst.get("timeseries_moments"),
|
||||||
|
},
|
||||||
|
indent=2,
|
||||||
|
ensure_ascii=False,
|
||||||
|
)
|
||||||
|
elif args.scan_quant_harvest is not None:
|
||||||
from hyperstitionstud_io.quant.collector import build_financial_quant_harvest
|
from hyperstitionstud_io.quant.collector import build_financial_quant_harvest
|
||||||
|
|
||||||
snap = None if args.scan_quant_harvest == "AUTO" else args.scan_quant_harvest
|
snap = None if args.scan_quant_harvest == "AUTO" else args.scan_quant_harvest
|
||||||
|
|||||||
Reference in new issue
Block a user