Receive collateral information such as available balance, free collateral and unsettled PnL.
import { useCollateral } from "@orderly.network/hooks"; const { totalCollateral, freeCollateral, totalValue, availableBalance, unsettledPnL, positions, accountInfo } = useCollateral({ dp: 2 //decimalPlaces });