Alpaca Documentation Beta

Structure Position

public struct Position: Codable
Position Position Codable Codable Position->Codable

Nested Types

Position.Side

Conforms To

Codable

Properties

asset​Id

let assetId: UUID

symbol

let symbol: String

exchange

let exchange: Asset.Exchange

asset​Class

let assetClass: Asset.Class

avg​Entry​Price

let avgEntryPrice: NumericString<Double>

qty

let qty: NumericString<Double>

side

let side: Side

market​Value

let marketValue: NumericString<Double>

cost​Basis

let costBasis: NumericString<Double>

unrealized​Pl

let unrealizedPl: NumericString<Double>

unrealized​Plpc

let unrealizedPlpc: NumericString<Double>

unrealized​Intraday​Pl

let unrealizedIntradayPl: NumericString<Double>

unrealized​Intraday​Plpc

let unrealizedIntradayPlpc: NumericString<Double>

current​Price

let currentPrice: NumericString<Double>

lastday​Price

let lastdayPrice: NumericString<Double>

change​Today

let changeToday: NumericString<Double>