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.
Fetch basic account 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;