Skip to content

Algorithm SDK

USED_MARGIN

The margin your broker holds against your open positions, in your account currency. It depends on the positions’ size and the leverage the broker offers.

declare const USED_MARGIN: number;
function onIntervalClose() {
log("Margin in use", USED_MARGIN, "of", EQUITY);
}