Integration guides
Integration guides
Patterns for common runtimes.
Scope
The SDK is Nutrimatic’s interface for market data and operations — not a UI kit or realtime dashboard product.
Nutrimatic provides:
- Read methods and response types; display-ready OHLCV, prices, pool views, and event feeds
- Windowed candle and feed queries plus kernel merge helpers
- Stable IDs and ledger scope across network families (
kind) - Write path: quotes, swaps, liquidity add/remove, balances approve, product staking, farming, settlement tracking
- Position reads (
lp/stake/farm) for portfolio UIs you build - A
WalletAdaptercontract so your wallet signs what the SDK requests
You provide:
- Chart libraries and layout
- UI refresh presentation (loading/error); market freshness defaults to
sdk.live - Cache and storage policy; loading, error, and empty states
- Wallet connection and session UX
- Any product rules and branding on top of SDK calls
Each read call returns a snapshot at request time. Keeping a view fresh is application logic — use Chart windows for OHLCV and Activity feeds for trade/event panels.
| Guide | When to use |
|---|---|
| Browser / SPA | React, Vue, mobile WebView |
| Backend service | API, bots, ETL, custom wrappers |
Same SDK everywhere — only integrationContext and config differ.
| Goal | Start here |
|---|---|
| Modes and wallet at init | Configuration |
| Market reads | Read operations |
| Swaps, LP, settlement | Write operations |
| Portfolio and product DeFi | Positions · Staking · Farming |