Add pricing data for Morpho vault tokens *API already available*
R
Rose Clownfish
Morpho is currently #2 Top TVL Lending Protocol according to DefiLlama: https://defillama.com/protocols/lending
It's basically AAVE where vault tokens represent position the user has lent out on the protocol.
GraphQL endpoint: https://api.morpho.org/graphql
GraphQL query for scraping historical prices for all vaults:
query VaultPriceHistorical($options: TimeseriesOptions) {
vaults(first: 100, orderBy: TotalAssetsUsd, orderDirection: Desc) {
items {
address
chain {
id
network
}
historicalState {
sharePriceUsd(options:$options) {
x
y
}
}
}
}
}
Jacob
Thank you for the detailed request! 😊
Morpho does seem popular on Defillama!
Your request is on our radar and we will update here once there’s news. In the meantime, please upvote and share any example transactions where Koinly didn't work as intended for this protocol.