Notional Cap hooks
Available-liquidity gates. Use these to prevent a trade from being submitted when the solver has no room for it.
Read only.
Import
import { useNotionalCapAll, useNotionalCapBySymbolId, useOpenInterestBySymbolId } from "@symmio/trading-react";useNotionalCapBySymbolId
Cap for a single market.
const cap = useNotionalCapBySymbolId({ symbolId: 1n });useNotionalCapAll
Every market’s cap in one call. Cheaper than looping the by-id variant.
const caps = useNotionalCapAll();useOpenInterestBySymbolId
Used vs capped notional per market.
const oi = useOpenInterestBySymbolId({ symbolId: 1n });Related
- Core Solvers — the underlying REST reads.
- Locked Params — often paired for trade pre-flight.
Last updated on