UNPKG

@coinbase/agentkit

Version:

Coinbase AgentKit core primitives

32 lines (31 loc) 779 B
import z from "zod"; import { VaultHistoricalDataActionSchema } from "../schemas"; import { ApiError } from "./types"; type ApyData = { timestamp: number; blockNumber: number; apy: { base: number; rewards: number; total: number; }; }; type TvlData = { timestamp: number; blockNumber: number; tvlDetails: { tvlUsd: number; }; }; /** * Fetch historical data for a vault * * @param args - The arguments for the action * @param apiKey - The API key to use for the request * @returns The historical data for the vault */ export declare function fetchVaultHistoricalData(args: z.infer<typeof VaultHistoricalDataActionSchema>, apiKey: string): Promise<ApiError | { apy: ApyData; tvl: TvlData; }>; export {};