GetAvailableMargin

Description

The GetAvailableMargin method retrieves the amount of free margin available for opening new positions. Free margin is the amount of money in the trading account that is not being used as margin for open positions and is available for new trades.

Syntax

public GetAvailableMargin(): number

Return Value

Returns a number representing the available (free) margin that can be used for new positions.

Example

const freeMargin = this.api.GetAvailableMargin()
console.log(`Available margin for new trades: ${freeMargin}`)

Last updated