Candle API is live, same prices the contracts use

by

The SODAX oracle now has a public candle endpoint. GET returns USD-quoted OHLC data for 55+ symbols across four intervals (1m, 5m, 1h, 1d). No auth, no API key, no SDK dependency.

GET /v1/be/oracle/candles?symbol=BTC&interval=1h&from=1785952800&to=1786039200

These are the same prices solvers quote against and the money market uses for loan pricing. If you're building a chart and pulling from CoinGecko or DefiLlama, your chart will show one number and the contract will settle at another. That's not a rounding issue, that's your UI lying to the user. This endpoint gives you the actual oracle price.

Bound Exchange needed chart data for their UI and we had a choice between building a separate chart API against a market feed or exposing the oracle we already use internally. The market feed option had exactly that problem, so we went with the oracle.

Coverage includes majors (BTC, ETH, SOL, BNB), DeFi tokens, Sui and Solana ecosystem tokens, stablecoins, SODAX-native assets, and synthetic equities (COINx, MSTRx, NVDAx, TSLAx, GOOGLx, QQQx, SPYx). The full list is dynamic and comes from GET /v1/be/oracle/markets so you don't hardcode anything.

Symbols are canonical, not per-chain. BTC covers all wrapped BTC representations across networks. Timestamps are unix seconds, candles are oldest-first, and decimals are strings on purpose because JSON floats lose precision at exactly the wrong decimal places. Parse with a bignum library, not parseFloat.

The response shape maps almost directly to lightweight-charts and TradingView's expected candle format. Polling at normal chart-refresh rates from a browser is fine.

Docs:

8 views

Add a comment

Replies

Be the first to comment