Skip to main content

Documentation Index

Fetch the complete documentation index at: https://orderly.network/docs/llms.txt

Use this file to discover all available pages before exploring further.

Receive collateral information such as available balance, free collateral and unsettled PnL.

Example

import { useCollateral } from "@orderly.network/hooks";

const {
  totalCollateral,
  freeCollateral,
  totalValue,
  availableBalance,
  unsettledPnL,
  positions,
  accountInfo
} = useCollateral({
  dp: 2 //decimalPlaces
});