# Oracle (/docs/risex/core/oracle)

## Stork Oracle

RISEx uses [Stork](https://stork.network) for price feeds. Stork is a high-frequency oracle network designed for DeFi applications requiring realtime pricing.

***

## Update Frequency

Prices are updated **onchain every 500ms — twice per RISE block** (RISE blocks are \~1 second).

This frequency ensures:

* Accurate mark prices for margin calculations
* Fair liquidation triggers
* Reliable funding rate computations

***

## How It Works

Stork aggregates prices from multiple sources and publishes them onchain with cryptographic attestations. The oracle network is designed for low-latency delivery, matching the performance requirements of realtime trading.

***

## Staleness

If a Stork feed goes stale (no update for **1 hour**), the market's oracle price is treated as stale and:

* New orders on that market are blocked
* Liquidations on that market are blocked

Existing positions and open orders are unaffected until the feed resumes updating.

***

## Onchain Verification

Index and mark prices can be read directly from `RISExOracle`:

```solidity
interface IRISExOracle {
    function getIndexPrice(uint16 marketId) external view returns (uint256);
    function getMarkPrice(uint16 marketId) external view returns (uint256);
}
```

See [Deployments](/docs/risex/contracts/deployments) for the `RISExOracle` address and [Market Specifications](/docs/risex/trading/markets) for `marketId` per symbol.
