TradablePositions
@objc public class TradablePositions: NSObject
Contains lists of open and recently closed positions.
-
A list of open positions.
Declaration
Swift
@objc public let open: [TradablePosition] -
A list of recently closed positions.
Declaration
Swift
@objc public let recentlyClosed: [TradablePosition] -
The account these positions belong to.
Declaration
Swift
@objc public let associatedAccount: TradableAccount -
Simple description of this object.
Declaration
Swift
public override var description: String -
Closes all positions.
Declaration
Swift
@objc public func closeAll(_ completionHandler: ((_ error: TradableError?) -> Void)!)Parameters
completionHandlerThe closure to be called when the response comes back, with optional TradableError object.
View on GitHub
TradablePositions Class Reference