Function loadTradingAccountImpl

  • 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.

    Parameters

    • this: SdxClient
    • Optional tradingAccountKey: PublicKey

      The key of the TradingAccount to fetch. If not provided, the client's default trading account is used.

    • Optional fromCache: boolean = false

      If true, data is loaded from cache. If false, data is fetched from chain.

    • Optional enableLogging: boolean = false

      If true, logging is enabled for the function.

    Returns Promise<TradingAccount>

    A promise that resolves to the TradingAccount data.

Generated using TypeDoc