> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pragma.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Computational Feeds

> Advanced on-chain data calculations for sophisticated DeFi applications

> [card] 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

> [card] 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

> [card] 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

> [tab] Mainnet
>
> <table>
>   <thead>
>     <tr>
>       <th>Feed</th>
>       <th>Address</th>
>       <th>Explorer</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>Realized Volatility / TWAP</td>
>       <td>`0x49eefafae944d07744d07cc72a5bf14728a6fb463c3eae5bca13552f5d455fd`</td>
>
>       <td>
>         [Starkscan](https://starkscan.co/contract/0x49eefafae944d07744d07cc72a5bf14728a6fb463c3eae5bca13552f5d455fd#read-write-contract)
>         [Voyager](https://voyager.online/contract/0x049eefafae944d07744d07cc72a5bf14728a6fb463c3eae5bca13552f5d455fd#readContract)
>       </td>
>     </tr>
>
>     <tr>
>       <td>Yield Curve</td>
>       <td>❌</td>
>       <td>Coming soon</td>
>     </tr>
>   </tbody>
> </table>

> [tab] Sepolia Testnet
>
> <table>
>   <thead>
>     <tr>
>       <th>Feed</th>
>       <th>Address</th>
>       <th>Explorer</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>Realized Volatility / TWAP</td>
>       <td>`0x0379afb83d2f8e38ab08252750233665a812a24278aacdde52475618edbf879c`</td>
>
>       <td>
>         [Starkscan](https://sepolia.starkscan.co/contract/0x0379afb83d2f8e38ab08252750233665a812a24278aacdde52475618edbf879c#read-write-contract)
>         [Voyager](https://sepolia.voyager.online/contract/0x0379afb83d2f8e38ab08252750233665a812a24278aacdde52475618edbf879c#readContract)
>       </td>
>     </tr>
>
>     <tr>
>       <td>Yield Curve</td>
>       <td>❌</td>
>       <td>Coming soon</td>
>     </tr>
>   </tbody>
> </table>

## Benefits of Computational Feeds

> [card] Transparency
>
> All calculations are performed on-chain and fully auditable

> [card] Composability
>
> Build more complex financial applications using verifiable metrics

> [card] Efficiency
>
> Reduce gas costs by utilizing pre-computed metrics

## Use Cases

> [accordion] Volatility-Based Trading Strategies
>
> Volatility feeds enable the creation of dynamic trading strategies that adjust parameters based on market conditions:
>
> * Automatic position sizing based on recent volatility
> * Dynamic fee adjustments for AMMs
> * Risk-based collateral requirements for lending protocols

> [accordion] Yield Curve Applications
>
> On-chain yield curves open up new possibilities for DeFi:
>
> * Term structure modeling for fixed-rate lending
> * Pricing of interest rate derivatives
> * Advanced bond issuance mechanisms

> [accordion] Custom Computational Feeds
>
> Pragma's architecture allows for the creation of custom computational feeds:
>
> * Specialized risk metrics for your specific use case
> * Bespoke financial calculations tailored to your protocol
> * Integration with existing smart contracts

> [card] Get Started
>
> Ready to integrate computational feeds into your protocol?
>
> [Contact Team](https://twitter.com/PragmaOracle)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.