TradablePositions

@objc public class TradablePositions: NSObject

Contains lists of open and recently closed positions.

  • A list of open positions.

    Declaration

    Swift

    public let open: [TradablePosition]
  • A list of recently closed positions.

    Declaration

    Swift

    public let recentlyClosed: [TradablePosition]
  • The account these positions belong to.

    Declaration

    Swift

    public let associatedAccount: TradableAccount
  • Simple description of this object.

    Declaration

    Swift

    public override var description: String
  • Closes all positions.

    Declaration

    Swift

    public func closeAll(_ completionHandler: ((_ error: TradableError?) -> Void)!)

    Parameters

    completionHandler

    The closure to be called when the response comes back, with optional TradableError object.