How to query Morpho Data thanks to the API?
Select the query you are interested in in the list below, and paste it into this window below:
Query to get markets and vaults potential warnings
.
a. Warnings type
are:
For Morpho markets:
- unrecognized_collateral_asset,
- unrecognized_oracle,
- unrecognized_loan_asset,
- bad_debt_realized.
And for Morpho Vaults:
- unrecognized_deposit_asset,
- unrecognized_vault_curator.
b. Warning level
is either:
YELLOW
,RED
.
query {
markets {
items {
uniqueKey
warnings {
type
level
}
}
}
}
query {
vaults {
items {
name
warnings {
type
level
}
}
}
}