Skip to main content
For installation and client setup, see the quickstart guide.

Installation & setup

The Python client also accepts optional api_base_url, timeout (default 30s), and max_retries (default 3) constructor arguments.

Vault discovery

getAllVaults / get_all_vaults

Returns a paginated, filterable list of vaults with full performance metrics.

getVault / get_vault

Returns full detail for a single vault by network and address.

getVaultApyBreakdown / get_vault_apy_breakdown

Returns only the APY breakdown for a vault — lighter than fetching the full vault object.

getAssets / get_assets

Lists all tracked assets across networks.

Historical data

getVaultHistoricalData / get_vault_historical_data

Returns combined APY, TVL, and share price time-series for a vault.

getVaultHistoricalApy / get_vault_historical_apy

APY-only time series. Lighter than the combined endpoint when TVL is not needed.

getVaultHistoricalTvl / get_vault_historical_tvl

TVL-only time series.

getVaultHistoricalSharePrice / get_vault_historical_share_price

Share price time series.

getHistoricalAssetPrices / get_historical_asset_prices

Historical USD prices for a tracked asset.

Portfolio

getPositions / get_positions

Returns all active vault positions for a wallet, optionally filtered and sorted.

getPosition / get_position

Returns a single vault position for a specific wallet and vault.

getIdleAssets / get_idle_assets

Returns assets sitting in a wallet not currently earning yield.

getDepositOptions / get_deposit_options

Returns ranked vault recommendations for each idle asset in a wallet.

getBestVault / get_best_vault

Returns the single highest-yielding vault opportunity for a wallet’s current balances.

getUserVaultTotalReturns / get_vault_total_returns

Returns total yield earned in a specific vault since the wallet’s first deposit.

getUserVaultEvents / get_vault_holder_events

Returns the full deposit and withdrawal history for a wallet in a specific vault.

Transactions

getTransactionsContext / get_transactions_context

Returns the current state for a vault interaction: available action steps, token balances, and allowance status. Call this before getActions to determine what step is next.

getActions / get_actions

Returns ready-to-sign transaction calldata for a vault action. Execute actions in order — each must confirm onchain before sending the next. The action parameter accepts: deposit, redeem, request-redeem, claim-redeem, request-deposit, claim-deposit, claim-rewards, start-redeem-cooldown.

Rewards

getRewardsTransactionsContext / get_rewards_context

Returns all claimable reward balances for a wallet across every supported network.

getRewardsClaimActions / get_rewards_claim

Returns transaction calldata to claim one or more pending rewards. Pass claimIds from the rewards context response.

Benchmarks

getBenchmarks / get_benchmarks

Returns current benchmark APY rates for a network. Use code to specify usd or eth denomination.

getHistoricalBenchmarks / get_historical_benchmarks

Returns paginated historical benchmark rates within a time range.

Error handling

The Python SDK exposes five exception classes, all inheriting from VaultsFyiError:

TypeScript types

The TypeScript SDK ships full type definitions generated from the OpenAPI spec. All response types are inferred automatically — no manual casting required.