Computational Feeds
Advanced on-chain data calculations for sophisticated DeFi applications
On-Chain Data Processing
Advanced financial metrics calculated directly on-chain using Pragma’s trusted price data
Overview
Pragma is an oracle fully on-chain. All the data that you consume through Pragma smart-contracts was aggregated from data that was pushed on-chain by reputable exchanges and market makers. This makes Pragma oracle transparent, and auditable, but also programmable. You can compose and program data with Cairo, in order to get the right computed data for your protocol.
Pragma has designed compute engines that use the same raw market data underlying our price feeds, but calculate different metrics to produce feeds of processed data. We call these new feeds computational feeds. Since computational feeds operate entirely on-chain, they don’t introduce any new security assumptions.
Available Computational Feeds
Realized Volatility / TWAP
Calculates historical volatility and time-weighted average prices using on-chain price history.
Use cases: Risk management, dynamic collateral requirements, automated market making
Yield Curve
Creates a crypto-native yield curve using verified data building blocks.
Use cases: Term structure modeling, interest rate derivatives, lending protocols
Contract Addresses
Benefits of Computational Feeds
Transparency
All calculations are performed on-chain and fully auditable
Composability
Build more complex financial applications using verifiable metrics
Efficiency
Reduce gas costs by utilizing pre-computed metrics
Use Cases
Get Started
Ready to integrate computational feeds into your protocol?