Optional
tradingAccountKey: PublicKeyThe key of the TradingAccount to fetch. If not provided, the client's default trading account is used.
Optional
fromCache: boolean = falseIf true, data is loaded from cache. If false, data is fetched from chain.
Optional
enableLogging: boolean = falseIf true, logging is enabled for the function.
A promise that resolves to the TradingAccount data.
Generated using TypeDoc
Fetches the TradingAccount data associated with a given key or the client's default trading account.
Throws
If there is an issue with the RPC call or parsing the TradingAccount data.