Method RequiredMargin
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
RequiredMargin(string, double, DealType, double)
Margin the engine would charge to open lots alone (MT5 RequiredMargin), in the
deposit currency: the engine's MarginOf formula for the symbol's calculation mode, at the account leverage.
price 0 = the current ask (buy) / bid (sell). Hedged offsets against existing positions are not
applied here — the engine nets them when it admits the order.
public double RequiredMargin(string symbol, double lots, DealType type = DealType.DealBuy, double price = 0)
Parameters
Returns
Remarks
MT5 equivalent
MT5API.RequiredMargin(string symbol, double lots, DealType type = DealBuy, double price = 0)— full