TradableMarginBands

@objc public class TradableMarginBands: NSObject

A collection of margin factors for an instrument, can be used to estimate the margin requirement before placing an order.

  • A list of margin bands.

    Declaration

    Swift

    public let marginBands: [TradableMarginBand]
  • Simple description of this object.

    Declaration

    Swift

    public override var description: String
  • Calculates the estimated margin requirement for these margin bands and given quantity.

    Declaration

    Swift

    public func calculateRequiredMarginEstimate(forQuantity quantity: Double) -> Double

    Parameters

    quantity

    The quantity of an order to calculate margin estimation for.