Yields

Supply rate, borrow rate, utilization, and oracle price for a lending market.

Yields is a GraphQL endpoint, separate from the REST resources above. It returns lending and borrowing market history: rates, utilization, size, and the oracle price used to value the loan asset.

Request#

POST the query as JSON to https://api.syncrone.fi/api/yields/graphql. Use the same x-api-Key header as the rest of the API. Filter with market_id and a created_at window.

Query
query GetMetrics {
  metrics(
    limit: 100
    where: {
      created_at: { _gt: "2025-09-12", _lt: "2025-09-15" }
      market_id: { _eq: "euler-ethereum-0xe415952f5ee06f8a548f4f7d5be18fbf144b4e4d" }
    }
  ) {
    block
    id
    borrow_apy
    supply_apy
    utilization
    nefture_price
    oracle_price
    total_borrowed
    total_borrowed_usd
    total_supplied
    total_supplied_usd
    market_id
    created_at
    oracle_last_update
    timestamp
    market {
      chain
      market_address
      collateral_asset
      collateral_asset_symbol
      collateral_asset_decimals
      loan_asset
      loan_asset_symbol
      loan_asset_decimals
      oracle
    }
  }
}
Example
curl -X POST "https://api.syncrone.fi/api/yields/graphql" \
  -H "x-api-Key: $SYNCRONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"{ metrics(limit: 100) { market_id supply_apy borrow_apy utilization timestamp } }"}'

Metric fields#

Each metrics row is one observation of a market. Rates are fractions (0.05 is 5%). Amounts are in token units unless the field ends in _usd.

blockChain block of the observation
idRow identifier
market_idStable id, usually protocol-chain-address
timestampObservation time
created_atWhen the row was written
supply_apySupply APY
borrow_apyBorrow APY
utilizationBorrowed amount divided by supplied amount
total_suppliedSupplied token units
total_supplied_usdSupplied value in USD
total_borrowedBorrowed token units
total_borrowed_usdBorrowed value in USD
oracle_priceLoan asset price from the market oracle
nefture_priceLoan asset price from the Syncrone price stack
oracle_last_updateLast time the market oracle updated

Market object#

market is the lending market the metric belongs to. Collateral and loan fields describe the two assets.

chainNetwork name
market_addressMarket or pool contract
oracleOracle contract
collateral_assetCollateral token address
collateral_asset_symbolCollateral symbol
collateral_asset_decimalsCollateral decimals
loan_assetLoan token address
loan_asset_symbolLoan symbol
loan_asset_decimalsLoan decimals