Fetch basic acccount information from API.

This hooks returns the data provided by the account information endpoint.

Example

const { data: account, error, isLoading } = useAccountInfo();
if (account == null || isLoading) {
  return "Loading...";
}

const {
  account_id,
  email,
  account_mode,
  max_leverage,
  taker_fee_rate,
  maker_fee_rate,
  futures_taker_fee_rate,
  futures_maker_fee_rate,
  maintenance_cancel_orders,
  imr_factor,
  max_notional
} = account;