CryptoNativeAdmission

Documentation for eth_defi.vault.crypto_vaults.CryptoNativeAdmission Python class.

class CryptoNativeAdmission

Bases: object

Summarise native-unit admission for one cleaned price frame.

The summary is calculated from the lifetime maximum finite total_assets value for each ETH/BTC vault. It is also used to filter the cleaned Parquet before the expensive metadata calculation.

Attributes summary

native_ids

Native ETH/BTC vault IDs represented by the input frame.

qualifying_ids

IDs whose lifetime peak reaches the configured family threshold.

native_row_count

Number of ETH/BTC source rows represented by the input frame.

qualifying_row_count

Number of source rows belonging to qualifying IDs.

family_counts

Per-family vault and row counts for audit logging.

skipped_ids

Return native IDs rejected by the hard threshold.

skipped_row_count

Return the number of native rows belonging to rejected IDs.

Methods summary

__init__(native_ids, qualifying_ids, ...)

native_ids: frozenset[str]

Native ETH/BTC vault IDs represented by the input frame.

qualifying_ids: frozenset[str]

IDs whose lifetime peak reaches the configured family threshold.

native_row_count: int

Number of ETH/BTC source rows represented by the input frame.

qualifying_row_count: int

Number of source rows belonging to qualifying IDs.

family_counts: dict[str, dict[str, int]]

Per-family vault and row counts for audit logging.

property skipped_ids: frozenset[str]

Return native IDs rejected by the hard threshold.

The difference is computed from immutable ID sets, so callers cannot accidentally alter the admission decision.

Returns

Rejected native vault IDs.

property skipped_row_count: int

Return the number of native rows belonging to rejected IDs.

This count is derived from the source and qualifying row totals used by the admission log.

Returns

Number of rejected source rows.

__init__(native_ids, qualifying_ids, native_row_count, qualifying_row_count, family_counts)
Parameters
Return type

None