Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook to get collateral details including total value, free collateral, and unsettled PnL.
import { useCollateral } from "@orderly.network/hooks"; const { totalCollateral, freeCollateral, totalValue, availableBalance, unsettledPnL, positions, accountInfo } = useCollateral({ dp: 2 //decimalPlaces });