GetAccountMargin

Description

The GetAccountMargin method retrieves the current margin used by open positions. Margin represents the amount of money reserved as collateral for maintaining open positions in the trading account.

Syntax

public GetAccountMargin(): number

Return Value

Returns a number representing the current used margin.

Example

const margin = this.api.GetAccountMargin()
console.log(`Current used margin: ${margin}`)

Last updated