GetAccountName

Description

The GetAccountName method retrieves the name of the trading account.

Syntax

public GetAccountName(): string

Return Value

Returns a string representing the account name (project name).

Example

try {
    const accountName = this.api.GetAccountName()
    console.log(`Trading account name: ${accountName}`)
} catch (error) {
    console.error('Could not retrieve account name:', error.message)
}

Last updated