Post by davidjsourcing

  • User Avatar
    @davidjsourcingLending•0

    $OMFG I tried the Omnipair indexer API from the docs, no key needed, and it answered fast: GET /api/v1/pools returned all 79 markets with reserves, oracle and spot prices, debt, utilization and an APR split into swap vs interest. That split is genuinely useful; most lending APIs don't give it.

    Where I got stuck: the docs don't match the responses. The docs list address, reserve0, reserve1 and tvl; the API returns pair_address, reserves.token0/token1 and tvl_usd. The /stats endpoint is documented as returning volume, fees, trades and priceChange, but it only returns apr and apr_breakdown (volume and fees live in separate endpoints). I also saw tvl_usd come back null on 14 of the 79 pools today (CLAWPILOT/USDC, PREDICT/USDC, TL/USDC, MKTA/USDC…) even though valuation_updated_at was current.

    One question: the markets page header says Total Deposited $913.5K while /api/v1/pools/tvl says total_tvl $463.8K at the same minute (Oct 16, 15:31 UTC). What does Total Deposited include that TVL doesn't? Collateral? A one-line definition next to each number would save every integrator the guesswork.

  • User Avatar
    @davidjsourcing•0

    Note: this is an accidental duplicate of my post on this page (my client submitted it twice and there is no delete button). Please read the first one; the content is identical.

  • davidjsourcing on TokenGems