{"record":{"id":"63aacac3c7b18cd4","repo":"nautechsystems/nautilus_trader","slug":"ax-whoami-account-supplied-no-fee-rates","errorCode":null,"errorMessage":"AX whoami account {} supplied no fee rates","messagePattern":"AX whoami account (.+?) supplied no fee rates","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/adapters/architect_ax/src/http/client.rs","lineNumber":1395,"sourceCode":"            .get_whoami()\n            .await\n            .map_err(|e| anyhow::anyhow!(e))\n            .context(\"failed to request AX whoami\")?;\n\n        let Some(account) = whoami.accounts.first() else {\n            anyhow::bail!(\"AX whoami returned no accounts to resolve fees from\");\n        };\n\n        if whoami.accounts.len() > 1 {\n            log::warn!(\n                \"AX credentials cover {} accounts, using fee rates from {}\",\n                whoami.accounts.len(),\n                account.id,\n            );\n        }\n\n        let (Some(maker_fee), Some(taker_fee)) = (account.maker_fee, account.taker_fee) else {\n            anyhow::bail!(\"AX whoami account {} supplied no fee rates\", account.id);\n        };\n\n        let fees = (maker_fee, taker_fee);\n        self.account_fees.store(Some(Arc::new(fees)));\n\n        Ok(fees)\n    }\n\n    /// Requests all instruments from Ax.\n    ///\n    /// Fee rates fall back to the rates last resolved from `GET /whoami`, and to zero when no\n    /// rates have been resolved.\n    ///\n    /// # Errors\n    ///\n    /// Returns an error if the HTTP request fails or instrument parsing fails.\n    pub async fn request_instruments(\n        &self,","sourceCodeStart":1377,"sourceCodeEnd":1413,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/adapters/architect_ax/src/http/client.rs#L1377-L1413","documentation":"After picking the first account from AX whoami, request_account_fees requires both maker_fee and taker_fee to be present. If either (or both) is None on the account record, fees cannot be resolved and this error names the offending account id.","triggerScenarios":"Calling request_account_fees where the selected account has maker_fee = None and/or taker_fee = None (at least one missing; the error text is emitted whenever the tuple destructure fails).","commonSituations":"Newly created AX accounts that have not been assigned fee tiers; account types that do not carry fee rates; stale/incorrect environment with accounts lacking fee configuration.","solutions":["Check the account in the AX console and confirm fee tiers are configured","Contact the venue/admin to have maker and taker fee rates assigned to the account","Verify you are using credentials for the intended trading account that has fees set"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"let acct = &client.get_whoami().await?.accounts[0];\nif acct.maker_fee.is_none() || acct.taker_fee.is_none() {\n    return Err(anyhow::anyhow!(\"account {} missing fee rates\", acct.id));\n}","typeGuard":null,"tryCatchPattern":"match client.request_account_fees().await {\n    Err(e) if e.to_string().contains(\"no fee rates\") => {\n        log::warn!(\"falling back to default fee assumptions\");\n        (default_maker_fee, default_taker_fee)\n    }\n    Ok(fees) => fees,\n    Err(e) => return Err(e),\n}","preventionTips":["Verify fee tiers are configured on the AX account before go-live","Alert on accounts missing maker/taker fee rates at startup","Contact the venue admin to assign fee rates to new accounts"],"tags":["fees","account-config","missing-field"],"backgroundTag":"missing-config-value","analyzedSha":"18893faf8b356be3320add8de2f861b0b647cf06","analyzedAt":"2026-09-08T20:49:34.690Z","contentChangedAt":"2026-09-08T20:49:34.690Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}