TradableOrderCommand
@objc public class TradableOrderCommand: NSObject
Contains order data needed when issuing a new order.
-
The unique identifier for order’s instrument.
Declaration
Swift
@objc public let instrumentId: String -
Amount of the order.
Declaration
Swift
@objc public let amount: Double -
Trigger price for the order. Use 0.0 for market orders.
Declaration
Swift
@objc public let price: Double -
Order side.
Declaration
Swift
@objc public let side: TradableOrderSide -
/Order type.
Declaration
Swift
@objc public let type: TradableOrderType -
The take profit attached to the order. This is only supported for some account types.
Declaration
Swift
@objc public let takeProfit: TradableOrderProtection? -
The stop loss attached to the order. This is only supported for some account types.
Declaration
Swift
@objc public let stopLoss: TradableOrderProtection? -
Simple description of this object.
Declaration
Swift
public override var description: String -
Creates an object with given parameters.
Declaration
Swift
@objc public init(instrumentId: String, amount: Double, price: Double, side: TradableOrderSide, type: TradableOrderType, takeProfit: TradableOrderProtection? = nil, stopLoss: TradableOrderProtection? = nil)
View on GitHub
TradableOrderCommand Class Reference