Docs
Hooks
Assets

Assets

@orderly.network/hooks provides the following hooks to get data regarding a user's assets. This can be used under different use cases.

  • useCollateral - retrieves information about a user's collateral
  • useMaxQty - retrieves the maximum quantity a user can place based on the symbol, side, leverage etc.
  • useWithdraw - retrieves the amount available for withdrawal, see withdraw
  • useDeposit - retrieves a user's token balance in their wallet when depositing, see deposit

Functions regarding asset calculations are provided by @orderly.network/perp