TradablePrice

@objc public class TradablePrice: NSObject

Contains the ask and bid price for an instrument ID, alongside with a spread in pips.

  • The unique identifier for the price’s instrument.

    Declaration

    Swift

    public let instrumentId: String
  • The current value of one pip for one unit of this instrument converted to the account currency. If the instrument doesn’t have pip precision this field contains the change in account currency when the price of the instrument moves one unit (1.0).

    Declaration

    Swift

    public let pipValue: Double
  • ask

    The ask price, this price is used when you open a SELL (SHORT) position. Might not be available.

    Declaration

    Swift

    public let ask: Double?
  • bid

    The bid price, this price is used when you open a BUY (LONG) position. Might not be available.

    Declaration

    Swift

    public let bid: Double?
  • The distance between the ask and bid price, in pips. Might not be available.

    Declaration

    Swift

    public let spread: Double?
  • Optional object that may be included when includeMarginFactors in TradableUpdatesRequest is true. Contains information that can be used to estimate margin requirement before placing an order. Not all trading systems expose their instrument leverage so this field may not be present for all brokers.

    Declaration

    Swift

    public let marginBands: TradableMarginBands?
  • Simple description of this object.

    Declaration

    Swift

    public override var description: String