is_row_fresh

Documentation for eth_defi.vault.top_vaults_json.is_row_fresh function.

is_row_fresh(record, now, stale_warning_age_days)

Check if an exported current row is inside the freshness warning window.

Parameters
  • record (dict) – Exported current row.

  • now (datetime.datetime) – Current naive UTC datetime.

  • stale_warning_age_days (int) – Warning age in days.

Returns

True when the row is fresh.

Return type

bool