This repository was archived by the owner on Jan 17, 2024. It is now read-only.
generated from pixel-foundry/swift-package
-
Notifications
You must be signed in to change notification settings - Fork 3
Position
hallee edited this page May 13, 2020
·
2 revisions
public struct Position: Codable, HashableCodable, Hashable
Asset ID.
let assetId: StringSymbol name of the asset.
let symbol: StringExchange name of the asset.
let exchange: StringAsset class name.
let assetClass: AssetClassAverage entry price of the position.
let avgEntryPrice: MoneyThe number of shares.
let qty: Quantitylet side: PositionSideTotal dollar amount of the position.
let marketValue: MoneyTotal cost basis in dollars.
let costBasis: MoneyUnrealized profit/loss in dollars.
let unrealizedPl: MoneyUnrealized profit/loss percent (by a factor of 1).
let unrealizedPlpc: StringUnrealized profit/loss in dollars for the day.
let unrealizedIntradayPl: MoneyUnrealized profit/loss percent (by a factor of 1) for the day.
let unrealizedIntradayPlpc: StringCurrent asset price per share.
let currentPrice: MoneyLast day’s asset price per share based on the closing value of the last trading day.
let lastdayPrice: MoneyPercent change from last day price (by a factor of 1).
let changeToday: StringGenerated at 2020-05-22T00:57:11+0000 using swift-doc 1.0.0-beta.3.
Types
- Account
- AccountStatus
- Alpaca
- Alpaca.Key
- Alpaca.Mode
- Alpaca.Version
- AlpacaAPI
- AlpacaAPI.Path
- AlpacaError
- Asset
- Asset.QueryParameters
- AssetClass
- AssetStatus
- Calendar
- Calendar.QueryParameters
- Cancel
- Clock
- Currency
- Direction
- Exchange
- Money
- Order
- Order.QueryParameters
- OrderCancellation
- OrderClass
- OrderRequest
- OrderSide
- OrderStatus
- OrderStatusFilter
- OrderType
- Position
- PositionLiquidation
- PositionSide
- Quantity
- StopLoss
- TakeProfit
- TimeInForce