run_daily_scan

Documentation for eth_defi.grvt.daily_metrics.run_daily_scan function.

run_daily_scan(session=None, db_path=PosixPath('/home/runner/.tradingstrategy/vaults/grvt-vaults.duckdb'), timeout=30.0, vault_ids=None, only_discoverable=True)

Run the daily GRVT vault metrics scan.

  1. Discovers vaults via the public GraphQL API (includes per-vault fees)

  2. Fetches TVL from the market data API

  3. Fetches per-vault share price history

  4. Stores everything in DuckDB

No authentication is required — all data comes from public endpoints.

Parameters
  • session (requests.sessions.Session | None) – HTTP session. If None, one is created via create_grvt_session().

  • db_path (pathlib.Path) – Path to the DuckDB database file.

  • timeout (float) – HTTP request timeout.

  • vault_ids (list[str] | None) – If provided, only scan these specific vault string IDs. Overrides the default vault listing.

  • only_discoverable (bool) – If True, only scan vaults marked as discoverable.

Returns

The metrics database instance.

Return type

eth_defi.grvt.daily_metrics.GRVTDailyMetricsDatabase