Appearance
Plug a price feed into your app
Choose a feed. Refresh it when your app needs a price. Use the result in the same Solana transaction.
Mimir handles the onchain price calculation. Your application uses the result for its own action, whether that is a trade, a market or another product.
Three steps to integrate
- Choose your feed. Use an existing Source or Composite Feed, or create the reference your app needs.
- Refresh when needed. Place the feed refresh before the action that uses its price.
- Use the price. Your instruction reads the updated result and applies your application's rules.
Refresh the feedMimir calculates onchain
Use the priceYour app runs its action
One transaction. No keeper required for this flow. The refresh runs before consumption, when your app needs it. If a required instruction fails, the transaction does not commit a partial result.
The SDK is in development. Installation steps and code examples will accompany its release, following this integration pattern.
Colada puts this into practice
Colada uses Mimir's on-demand refresh and consumption pattern for its oracle-consuming actions. A feed supplies the price reference; Colada supplies the perpetual market and trading logic.
That reference can be a single asset or a custom composition such as AI Chips. You can select an existing feed or create one during market setup. Creating the feed and opening a market remain separate steps: the market also needs its liquidity and configuration.
Before going to production
Choose a feed suited to your product, combine its price and risk information with your application's rules, and define what your app displays while a price is unavailable.
Keep the details close when you need them: manipulation safeguards, liquidity sources, freshness and invalid data, and fees.