PortfolioPosition

data class PortfolioPosition(positionId: Long, accountId: String?, product: Product?, osiKey: String?, symbolDescription: String?, dateAcquired: Instant?, pricePaid: Float?, price: Float?, commissions: Float?, otherFees: Float?, quantity: Float?, positionIndicator: PositionIndicatorType?, positionType: String?, change: Float?, changePct: Float?, daysGain: Float?, daysGainPct: Float?, marketValue: Float?, totalCost: Float?, totalGain: Float?, totalGainPct: Float?, pctOfPortfolio: Float?, costPerShare: Float?, todayCommissions: Float?, todayFees: Float?, todayPricePaid: Float?, todayQuantity: Float?, quotestatus: String?, dateTimeUTC: Int?, adjPrevClose: Float?, performance: PerformanceView?, fundamental: FundamentalView?, optionsWatch: OptionsWatchView?, quick: QuickView?, complete: CompleteView?, lotsDetails: String?, quoteDetails: String?, positionLot: List<PositionLot>?)

Parameters

positionId

The position ID

accountId

Numeric account ID

product

The product

osiKey

The Options Symbology Initiative (OSI) key containing the option root symbol, expiration date, call/put indicator, and strike price

symbolDescription

The symbol description

dateAcquired

The date the position was acquired

pricePaid

The price paid for the position

price

The price of the position

commissions

The commissions paid for the position

otherFees

The other fees paid to acquire the position

quantity

The quantity

positionIndicator

The position indicator

positionType

The position type

change

The change

changePct

The percentage change

daysGain

The day's gain

daysGainPct

The percentage day's gain

marketValue

The market value

totalCost

The total cost

totalGain

The total gain

totalGainPct

The total gain percentage

pctOfPortfolio

The percentage of the portfolio

costPerShare

The cost per share

todayCommissions

Today's total commissions

todayFees

Today's total fees

todayPricePaid

Today's total price paid

todayQuantity

Today's total quantity

quotestatus

The quote type

dateTimeUTC

The date and time in UTC

adjPrevClose

The previous adjusted close

performance

The performance view

fundamental

The fundamental view

optionsWatch

The options watch view

quick

The quick view

complete

The complete view

lotsDetails

The lots details

quoteDetails

The quote details

positionLot

The position lot

Constructors

PortfolioPosition
Link copied to clipboard
fun PortfolioPosition(positionId: Long, accountId: String?, product: Product?, osiKey: String?, symbolDescription: String?, dateAcquired: Instant?, pricePaid: Float?, price: Float?, commissions: Float?, otherFees: Float?, quantity: Float?, positionIndicator: PositionIndicatorType?, positionType: String?, change: Float?, changePct: Float?, daysGain: Float?, daysGainPct: Float?, marketValue: Float?, totalCost: Float?, totalGain: Float?, totalGainPct: Float?, pctOfPortfolio: Float?, costPerShare: Float?, todayCommissions: Float?, todayFees: Float?, todayPricePaid: Float?, todayQuantity: Float?, quotestatus: String?, dateTimeUTC: Int?, adjPrevClose: Float?, performance: PerformanceView?, fundamental: FundamentalView?, optionsWatch: OptionsWatchView?, quick: QuickView?, complete: CompleteView?, lotsDetails: String?, quoteDetails: String?, positionLot: List<PositionLot>?)
The position ID

Properties

accountId
Link copied to clipboard
val accountId: String?
Numeric account ID
adjPrevClose
Link copied to clipboard
val adjPrevClose: Float?
The previous adjusted close
change
Link copied to clipboard
val change: Float?
The change
changePct
Link copied to clipboard
val changePct: Float?
The percentage change
commissions
Link copied to clipboard
val commissions: Float?
The commissions paid for the position
complete
Link copied to clipboard
val complete: CompleteView?
The complete view
costPerShare
Link copied to clipboard
val costPerShare: Float?
The cost per share
dateAcquired
Link copied to clipboard
val dateAcquired: Instant?
The date the position was acquired
dateTimeUTC
Link copied to clipboard
val dateTimeUTC: Int?
The date and time in UTC
daysGain
Link copied to clipboard
val daysGain: Float?
The day's gain
daysGainPct
Link copied to clipboard
val daysGainPct: Float?
The percentage day's gain
fundamental
Link copied to clipboard
val fundamental: FundamentalView?
The fundamental view
lotsDetails
Link copied to clipboard
val lotsDetails: String?
The lots details
marketValue
Link copied to clipboard
val marketValue: Float?
The market value
optionsWatch
Link copied to clipboard
val optionsWatch: OptionsWatchView?
The options watch view
osiKey
Link copied to clipboard
val osiKey: String?
The Options Symbology Initiative (OSI) key containing the option root symbol, expiration date, call/put indicator, and strike price
otherFees
Link copied to clipboard
val otherFees: Float?
The other fees paid to acquire the position
pctOfPortfolio
Link copied to clipboard
val pctOfPortfolio: Float?
The percentage of the portfolio
performance
Link copied to clipboard
val performance: PerformanceView?
The performance view
positionId
Link copied to clipboard
val positionId: Long
The position ID
positionIndicator
Link copied to clipboard
val positionIndicator: PositionIndicatorType?
The position indicator
positionLot
Link copied to clipboard
val positionLot: List<PositionLot>?
The position lot
positionType
Link copied to clipboard
val positionType: String?
The position type
price
Link copied to clipboard
val price: Float?
The price of the position
pricePaid
Link copied to clipboard
val pricePaid: Float?
The price paid for the position
product
Link copied to clipboard
val product: Product?
The product
quantity
Link copied to clipboard
val quantity: Float?
The quantity
quick
Link copied to clipboard
val quick: QuickView?
The quick view
quoteDetails
Link copied to clipboard
val quoteDetails: String?
The quote details
quotestatus
Link copied to clipboard
val quotestatus: String?
The quote type
symbolDescription
Link copied to clipboard
val symbolDescription: String?
The symbol description
todayCommissions
Link copied to clipboard
val todayCommissions: Float?
Today's total commissions
todayFees
Link copied to clipboard
val todayFees: Float?
Today's total fees
todayPricePaid
Link copied to clipboard
val todayPricePaid: Float?
Today's total price paid
todayQuantity
Link copied to clipboard
val todayQuantity: Float?
Today's total quantity
totalCost
Link copied to clipboard
val totalCost: Float?
The total cost
totalGain
Link copied to clipboard
val totalGain: Float?
The total gain
totalGainPct
Link copied to clipboard
val totalGainPct: Float?
The total gain percentage

Sources

jvm source
Link copied to clipboard