TradableOrderModification
@objc public class TradableOrderModification: NSObject
Contains information with which the order will be modified.
-
The new trigger price (always 0 for a market order). If nil, price will not be modified.
Declaration
Swift
public let price: Double?
-
The new stop loss, or nil to remove any stop loss on the order. If not set, stop loss will not be modified.
Declaration
Swift
@objc public let stopLoss: TradableOrderProtection?
-
The new take profit, or nil to remove any take profit on the order. If not set, take profit will not be modified.
Declaration
Swift
@objc public let takeProfit: TradableOrderProtection?
-
Simple description of this object.
Declaration
Swift
public override var description: String
-
Creates an object with given parameters.
Declaration
Swift
@objc public init(price: Double)
-
Creates an object with given parameters.
Declaration
Swift
@objc public init(price: Double, stopLoss: TradableOrderProtection?)
-
Creates an object with given parameters.
Declaration
Swift
@objc public init(price: Double, takeProfit: TradableOrderProtection?)
-
Creates an object with given parameters.
Declaration
Swift
@objc public init(price: Double, stopLoss: TradableOrderProtection?, takeProfit: TradableOrderProtection?)
-
Creates an object with given parameters.
Declaration
Swift
@objc public init(stopLoss: TradableOrderProtection?)
-
Creates an object with given parameters.
Declaration
Swift
@objc public init(takeProfit: TradableOrderProtection?)
-
Creates an object with given parameters.
Declaration
Swift
@objc public init(stopLoss: TradableOrderProtection?, takeProfit: TradableOrderProtection?)