HomeDocumentationAPI Reference
Log In
API Reference

Get Vault Statistics

Method Name

public/get_vault_statistics

Gets all the latest vault shareRate, totalSupply and TVL values for all vaults.

For data on shares across chains, use public/get_vault_assets.

Parameters

Response

idstring or integerrequired
resultarray of objectsrequired
result[].base_valuestringrequired
The value of the vault's token against the base currency. Ex: rswETHC vs rswETH
result[].block_numberintegerrequired
The Derive chain block number
result[].block_timestampintegerrequired
Timestamp of the Derive chain block number
result[].subaccount_value_at_last_tradestring or nullrequired
Will return None before vault creates subaccount or if no trades found.
result[].total_supplystringrequired
Total supply of the vault's token on Derive chain
result[].underlying_valuestring or nullrequired
The value of the vault's token against the underlying currency. Ex: rswETHC vs ETH
result[].usd_tvlstringrequired
Total USD TVL of the vault
result[].usd_valuestringrequired
The value of the vault's token against USD
result[].vault_namestringrequired
Name of the vault

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}