Files
OpenBB/website/versioned_docs/version-v3/sdk/reference/crypto/defi/vaults.md
Theodore Aptekarev f72bc8ccec Add Versioned Documentation (#5470)
* Adding versioning to docs

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: tehcoderer <me@tehcoderer.com>
2023-09-29 11:49:05 +02:00

3.3 KiB
Vendored

title, description
title description
vaults OpenBB SDK Function

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

vaults

Get DeFi Vaults Information. DeFi Vaults are pools of funds with an assigned strategy which main goal is to

Source Code: [link]

openbb.crypto.defi.vaults(chain: Optional[str] = None, protocol: Optional[str] = None, kind: Optional[str] = None, ascend: bool = True, sortby: str = "apy")

Parameters

Name Type Description Default Optional
chain str Blockchain - one from list [
'ethereum', 'polygon', 'avalanche', 'bsc', 'terra', 'fantom',
'moonriver', 'celo', 'heco', 'okex', 'cronos', 'arbitrum', 'eth',
'harmony', 'fuse', 'defichain', 'solana', 'optimism'
]
None True
protocol str DeFi protocol - one from list: [
'aave', 'acryptos', 'alpaca', 'anchor', 'autofarm', 'balancer', 'bancor',
'beefy', 'belt', 'compound', 'convex', 'cream', 'curve', 'defichain', 'geist',
'lido', 'liquity', 'mirror', 'pancakeswap', 'raydium', 'sushi', 'tarot', 'traderjoe',
'tulip', 'ubeswap', 'uniswap', 'venus', 'yearn'
]
None True
kind str Kind/type of vault - one from list: ['lp','single','noimploss','stable'] None True

Returns

Type Description
pd.DataFrame Top 100 DeFi Vaults for given chain/protocol sorted by APY.

Prints table showing Top DeFi Vaults - pools of funds with an assigned strategy which main goal is to

Source Code: [link]

openbb.crypto.defi.vaults_chart(chain: Optional[str] = None, protocol: Optional[str] = None, kind: Optional[str] = None, limit: int = 10, sortby: str = "apy", ascend: bool = True, link: bool = False, export: str = "")

Parameters

Name Type Description Default Optional
chain str Blockchain - one from list [
'ethereum', 'polygon', 'avalanche', 'bsc', 'terra', 'fantom',
'moonriver', 'celo', 'heco', 'okex', 'cronos', 'arbitrum', 'eth',
'harmony', 'fuse', 'defichain', 'solana', 'optimism'
]
None True
protocol str DeFi protocol - one from list: [
'aave', 'acryptos', 'alpaca', 'anchor', 'autofarm', 'balancer', 'bancor',
'beefy', 'belt', 'compound', 'convex', 'cream', 'curve', 'defichain', 'geist',
'lido', 'liquity', 'mirror', 'pancakeswap', 'raydium', 'sushi', 'tarot', 'traderjoe',
'tulip', 'ubeswap', 'uniswap', 'venus', 'yearn'
]
None True
kind str Kind/type of vault - one from list: ['lp','single','noimploss','stable'] None True
limit int Number of records to display 10 True
sortby str Key by which to sort data apy True
ascend bool Flag to sort data descending True True
link bool Flag to show links False True
export str Export dataframe data to csv,json,xlsx file True

Returns

This function does not return anything