Empyrical Risk Metrics

Empyrical Risk Metrics: Empyrical Risk Metrics: specialized toolkit for 3+ finance workflows covered in the triggers section.

✓ 0 reported success·v0.1.0·

Overview

Empyrical Risk Metrics skill for finance analytics + 因子. Covers 3+ use cases. (batch-v1 draft, needs English review) This skill is built on open-source project zvtvz/zvt and embeds 25 anti-pattern constraints. Visit doramagic.ai/r/empyrical-risk-metrics for bilingual documentation and use cases. Compatible with the Doramagic ecosystem (Claude Code, Cursor, openclaw, ChatGPT, Gemini, etc.).

Blueprint Source

finance-bp-107

zvtvz/zvt6360a632 source files

Constraints

55total
30fatal
30 must-not-violate

Evidence Quality

Confidence88%

Medium confidence — review before critical use

30 non-negotiable constraints

FATALdomain_rulefinance-C-001

WHENWhen implementing rolling window calculations for financial metrics

ACTIONpass a zero-length window to rolling_window function

CONSEQUENCERolling window with length 0 causes ValueError('Can't have 0-length window') at runtime, breaking all downstream rolling metric calculations like roll_sharpe_ratio and roll_max_drawdown

FATALdomain_rulefinance-C-002

WHENWhen implementing rolling window operations with stride tricks

ACTIONpass a scalar array to the rolling_window function

CONSEQUENCEPassing a scalar array causes IndexError('Can't restride a scalar'), preventing any rolling calculations from completing

FATALdomain_rulefinance-C-003

WHENWhen creating pandas structures from numpy arrays

ACTIONconvert arrays with dimensionality greater than 2 to pandas Series or DataFrame

CONSEQUENCEAttempting to convert arrays with dim > 2 raises ValueError('cannot convert array of dim > 2 to a pandas structure'), causing data transformation failures

FAQ

Discussion (0)

No comments yet. Be the first to share!

Changelog

v0.1.02026-04-23·Contributors: tangweigang-jpg

v0.1.0: Initial release on Doramagic.ai. Auto-generated batch-v1 metadata and FAQs based on zvtvz/zvt.