GetAccountCurrency

Description

The GetAccountCurrency method retrieves the base currency of the trading account. This is the currency in which all account operations (balance, profit, margin, etc.) are denominated.

Syntax

public GetAccountCurrency(): string

Return Value

Returns a string representing the account's base currency (e.g., 'USD'). This is the currency used for all monetary values in the account.

Example

const currency = this.api.GetAccountCurrency()
console.log(`Account base currency: ${currency}`)

// Using it with monetary values
const balance = this.api.GetAccountBalance()
console.log(`Balance: ${balance} ${currency}`)

Last updated