Account
useAccountInfo
Hook to fetch basic account information like fee rates, leverage, and account mode from the API.
Fetch basic account information from API.
This hooks returns the data provided by the account information endpoint.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook to fetch basic account information like fee rates, leverage, and account mode from the API.
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;