Ribbon Subgraph
Ribbon's subgraph is hosted on The Graph. If you need any additional data, feel free to raise an issue at the ribbon-subgraph repo, or contribute a change.
We have two subgraphs hosted on the legacy Graph explorer:

Querying Vaults

This query returns the first 5 vaults and vital statistics about the vault.
1
{
2
vaults(first: 5) {
3
id
4
totalPremiumEarned
5
underlyingAsset
6
underlyingSymbol
7
}
8
}
Copied!

Querying Vault APY

This query returns a chronological list of pricePerShare values for the vault. pricePerShare represents how much a vault share is worth in the collateral asset. For example, for the ETH Theta Vault, if the value of pricePerShare is more than 1*10**18, the vault is profitable.
1
{
2
vaultPerformanceUpdates(
3
where:{vault:"0x25751853eab4d0eb3652b5eb6ecb102a2789644b"},
4
orderBy:timestamp, orderDirection:asc) {
5
id
6
pricePerShare
7
timestamp
8
}
9
}
Copied!

Querying Vault Fees

This query returns fee information for the vaults.
1
{
2
vaults(first: 5) {
3
id
4
totalFeeCollected
5
managementFeeCollected
6
performanceFeeCollected
7
underlyingAsset
8
underlyingSymbol
9
}
10
}
Copied!