Fees hooks
Read on-chain fee rates and compute per-quote platform fees.
Every hook on this page is a read.
Import
import { useFeeForUser, useQuotePlatformFee } from "@symmio/trading-react";useFeeForUser
Fee rate applied to a user’s trades (basis points).
const fee = useFeeForUser({ account });useQuotePlatformFee
Composed — quote size × fee rate → open + close fees for a specific quote.
const { openFee, closeFee } = useQuotePlatformFee({ quote });Related
- Unified Quotes — consumers of the derived fee.
- SYMMIO Contract — the underlying
getFeeForUserread.
Last updated on