π Get Used MarginΒΆ
Helper method: retrieves currently used margin (locked funds for open positions).
API Information:
- Sugar method:
MT5Sugar.getMargin() - Returns:
double- Used margin - Underlying:
MT5Service.getMargin()
β¬οΈ OutputΒΆ
Returns: double - Used margin in account currency
Throws: ApiExceptionMT5 if request fails
π Usage ExampleΒΆ
See alsoΒΆ
- Free margin:
getFreeMargin()