Package ru.tinkoff.piapi.contract.v1
Interface VirtualPortfolioPositionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
VirtualPortfolioPosition,VirtualPortfolioPosition.Builder
public interface VirtualPortfolioPositionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionСредневзвешенная цена позиции.Средняя цена позиции по методу FIFO.Средняя цена позиции по методу FIFO.Средневзвешенная цена позиции.Текущая цена за 1 инструмент.Текущая цена за 1 инструмент.Текущая рассчитанная доходность позиции.Текущая рассчитанная доходность позиции.Текущая рассчитанная доходность позиции.Текущая рассчитанная доходность позиции.com.google.protobuf.TimestampДата до которой нужно продать виртуальные бумаги, после этой даты виртуальная позиция "сгорит"com.google.protobuf.TimestampOrBuilderДата до которой нужно продать виртуальные бумаги, после этой даты виртуальная позиция "сгорит"getFigi()Figi-идентификатора инструмента.com.google.protobuf.ByteStringFigi-идентификатора инструмента.Тип инструмента.com.google.protobuf.ByteStringТип инструмента.instrument_uid-идентификатора инструментаcom.google.protobuf.ByteStringinstrument_uid-идентификатора инструментаposition_uid-идентификатора инструментаcom.google.protobuf.ByteStringposition_uid-идентификатора инструментаКоличество инструмента в портфеле в штуках.Количество инструмента в портфеле в штуках.booleanСредневзвешенная цена позиции.booleanСредняя цена позиции по методу FIFO.booleanТекущая цена за 1 инструмент.booleanТекущая рассчитанная доходность позиции.booleanТекущая рассчитанная доходность позиции.booleanДата до которой нужно продать виртуальные бумаги, после этой даты виртуальная позиция "сгорит"booleanКоличество инструмента в портфеле в штуках.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getPositionUid
String getPositionUid()position_uid-идентификатора инструмента
string position_uid = 1;- Returns:
- The positionUid.
-
getPositionUidBytes
com.google.protobuf.ByteString getPositionUidBytes()position_uid-идентификатора инструмента
string position_uid = 1;- Returns:
- The bytes for positionUid.
-
getInstrumentUid
String getInstrumentUid()instrument_uid-идентификатора инструмента
string instrument_uid = 2;- Returns:
- The instrumentUid.
-
getInstrumentUidBytes
com.google.protobuf.ByteString getInstrumentUidBytes()instrument_uid-идентификатора инструмента
string instrument_uid = 2;- Returns:
- The bytes for instrumentUid.
-
getFigi
String getFigi()Figi-идентификатора инструмента.
string figi = 3;- Returns:
- The figi.
-
getFigiBytes
com.google.protobuf.ByteString getFigiBytes()Figi-идентификатора инструмента.
string figi = 3;- Returns:
- The bytes for figi.
-
getInstrumentType
String getInstrumentType()Тип инструмента.
string instrument_type = 4;- Returns:
- The instrumentType.
-
getInstrumentTypeBytes
com.google.protobuf.ByteString getInstrumentTypeBytes()Тип инструмента.
string instrument_type = 4;- Returns:
- The bytes for instrumentType.
-
hasQuantity
boolean hasQuantity()Количество инструмента в портфеле в штуках.
.tinkoff.public.invest.api.contract.v1.Quotation quantity = 5;- Returns:
- Whether the quantity field is set.
-
getQuantity
Quotation getQuantity()Количество инструмента в портфеле в штуках.
.tinkoff.public.invest.api.contract.v1.Quotation quantity = 5;- Returns:
- The quantity.
-
getQuantityOrBuilder
QuotationOrBuilder getQuantityOrBuilder()Количество инструмента в портфеле в штуках.
.tinkoff.public.invest.api.contract.v1.Quotation quantity = 5; -
hasAveragePositionPrice
boolean hasAveragePositionPrice()Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 6;- Returns:
- Whether the averagePositionPrice field is set.
-
getAveragePositionPrice
MoneyValue getAveragePositionPrice()Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 6;- Returns:
- The averagePositionPrice.
-
getAveragePositionPriceOrBuilder
MoneyValueOrBuilder getAveragePositionPriceOrBuilder()Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 6; -
hasExpectedYield
boolean hasExpectedYield()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 7;- Returns:
- Whether the expectedYield field is set.
-
getExpectedYield
Quotation getExpectedYield()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 7;- Returns:
- The expectedYield.
-
getExpectedYieldOrBuilder
QuotationOrBuilder getExpectedYieldOrBuilder()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 7; -
hasExpectedYieldFifo
boolean hasExpectedYieldFifo()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 8;- Returns:
- Whether the expectedYieldFifo field is set.
-
getExpectedYieldFifo
Quotation getExpectedYieldFifo()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 8;- Returns:
- The expectedYieldFifo.
-
getExpectedYieldFifoOrBuilder
QuotationOrBuilder getExpectedYieldFifoOrBuilder()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 8; -
hasExpireDate
boolean hasExpireDate()Дата до которой нужно продать виртуальные бумаги, после этой даты виртуальная позиция "сгорит"
.google.protobuf.Timestamp expire_date = 9;- Returns:
- Whether the expireDate field is set.
-
getExpireDate
com.google.protobuf.Timestamp getExpireDate()Дата до которой нужно продать виртуальные бумаги, после этой даты виртуальная позиция "сгорит"
.google.protobuf.Timestamp expire_date = 9;- Returns:
- The expireDate.
-
getExpireDateOrBuilder
com.google.protobuf.TimestampOrBuilder getExpireDateOrBuilder()Дата до которой нужно продать виртуальные бумаги, после этой даты виртуальная позиция "сгорит"
.google.protobuf.Timestamp expire_date = 9; -
hasCurrentPrice
boolean hasCurrentPrice()Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента..
.tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 10;- Returns:
- Whether the currentPrice field is set.
-
getCurrentPrice
MoneyValue getCurrentPrice()Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента..
.tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 10;- Returns:
- The currentPrice.
-
getCurrentPriceOrBuilder
MoneyValueOrBuilder getCurrentPriceOrBuilder()Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента..
.tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 10; -
hasAveragePositionPriceFifo
boolean hasAveragePositionPriceFifo()Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 11;- Returns:
- Whether the averagePositionPriceFifo field is set.
-
getAveragePositionPriceFifo
MoneyValue getAveragePositionPriceFifo()Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 11;- Returns:
- The averagePositionPriceFifo.
-
getAveragePositionPriceFifoOrBuilder
MoneyValueOrBuilder getAveragePositionPriceFifoOrBuilder()Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 11;
-