Software Development Kits
[EVM] React Components SDK
- Overview
- Getting started
- Theming
- Wallet connect
- Framework Guides
- Page Components
- Block Components
[EVM] React Hooks SDK
[EVM] Core SDK
[EVM] Perp SDK
Assets
useCollateral
Receive collateral information such as available balance, free collateral and unsettled PnL.
Example
Copy
Ask AI
import { useCollateral } from "@orderly.network/hooks";
const {
totalCollateral,
freeCollateral,
totalValue,
availableBalance,
unsettledPnL,
positions,
accountInfo
} = useCollateral({
dp: 2 //decimalPlaces
});
On this page
Assistant
Responses are generated using AI and may contain mistakes.