Examples

Set SCROOGE_API_URL and SCROOGE_API_KEY as in Getting started.

Markets of one protocol on one chain

curl "$SCROOGE_API_URL/markets?chain=solana&protocol=Kamino" \
  -H "Authorization: Bearer $SCROOGE_API_KEY"

Supply APY of every market

curl "$SCROOGE_API_URL/markets" \
  -H "Authorization: Bearer $SCROOGE_API_KEY" \
  | jq '.data[] | {id, label, supplyApyBps}'