PortfolioPosition

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>?)

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

Sources

jvm source
Link copied to clipboard