Package ru.tinkoff.piapi.contract.v1
Interface PortfolioPositionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PortfolioPosition,PortfolioPosition.Builder
public interface PortfolioPositionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionСредневзвешенная цена позиции.Средняя цена позиции по методу FIFO.Средняя цена позиции по методу FIFO.Средневзвешенная цена позиции.Deprecated Средняя цена позиции в пунктах (для фьючерсов).Deprecated Средняя цена позиции в пунктах (для фьючерсов).booleanЗаблокировано на бирже.Текущий НКД.Текущий НКД.Текущая цена за 1 инструмент.Текущая цена за 1 инструмент.Текущая рассчитанная доходность позиции.Текущая рассчитанная доходность позиции.Текущая рассчитанная доходность позиции.Текущая рассчитанная доходность позиции.getFigi()Figi-идентификатора инструмента.com.google.protobuf.ByteStringFigi-идентификатора инструмента.Тип инструмента.com.google.protobuf.ByteStringТип инструмента.instrument_uid-идентификатора инструментаcom.google.protobuf.ByteStringinstrument_uid-идентификатора инструментаposition_uid-идентификатора инструментаcom.google.protobuf.ByteStringposition_uid-идентификатора инструментаКоличество инструмента в портфеле в штуках.Deprecated Количество лотов в портфеле.Deprecated Количество лотов в портфеле.Количество инструмента в портфеле в штуках.Вариационная маржаВариационная маржаbooleanСредневзвешенная цена позиции.booleanСредняя цена позиции по методу FIFO.booleanDeprecated Средняя цена позиции в пунктах (для фьючерсов).booleanТекущий НКД.booleanТекущая цена за 1 инструмент.booleanТекущая рассчитанная доходность позиции.booleanТекущая рассчитанная доходность позиции.booleanКоличество инструмента в портфеле в штуках.booleanDeprecated Количество лотов в портфеле.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
-
getFigi
String getFigi()Figi-идентификатора инструмента.
string figi = 1;- Returns:
- The figi.
-
getFigiBytes
com.google.protobuf.ByteString getFigiBytes()Figi-идентификатора инструмента.
string figi = 1;- Returns:
- The bytes for figi.
-
getInstrumentType
String getInstrumentType()Тип инструмента.
string instrument_type = 2;- Returns:
- The instrumentType.
-
getInstrumentTypeBytes
com.google.protobuf.ByteString getInstrumentTypeBytes()Тип инструмента.
string instrument_type = 2;- Returns:
- The bytes for instrumentType.
-
hasQuantity
boolean hasQuantity()Количество инструмента в портфеле в штуках.
.tinkoff.public.invest.api.contract.v1.Quotation quantity = 3;- Returns:
- Whether the quantity field is set.
-
getQuantity
Quotation getQuantity()Количество инструмента в портфеле в штуках.
.tinkoff.public.invest.api.contract.v1.Quotation quantity = 3;- Returns:
- The quantity.
-
getQuantityOrBuilder
QuotationOrBuilder getQuantityOrBuilder()Количество инструмента в портфеле в штуках.
.tinkoff.public.invest.api.contract.v1.Quotation quantity = 3; -
hasAveragePositionPrice
boolean hasAveragePositionPrice()Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4;- Returns:
- Whether the averagePositionPrice field is set.
-
getAveragePositionPrice
MoneyValue getAveragePositionPrice()Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4;- Returns:
- The averagePositionPrice.
-
getAveragePositionPriceOrBuilder
MoneyValueOrBuilder getAveragePositionPriceOrBuilder()Средневзвешенная цена позиции. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 4; -
hasExpectedYield
boolean hasExpectedYield()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5;- Returns:
- Whether the expectedYield field is set.
-
getExpectedYield
Quotation getExpectedYield()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5;- Returns:
- The expectedYield.
-
getExpectedYieldOrBuilder
QuotationOrBuilder getExpectedYieldOrBuilder()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield = 5; -
hasCurrentNkd
boolean hasCurrentNkd()Текущий НКД.
.tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6;- Returns:
- Whether the currentNkd field is set.
-
getCurrentNkd
MoneyValue getCurrentNkd()Текущий НКД.
.tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6;- Returns:
- The currentNkd.
-
getCurrentNkdOrBuilder
MoneyValueOrBuilder getCurrentNkdOrBuilder()Текущий НКД.
.tinkoff.public.invest.api.contract.v1.MoneyValue current_nkd = 6; -
hasAveragePositionPricePt
boolean hasAveragePositionPricePt()Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7;- Returns:
- Whether the averagePositionPricePt field is set.
-
getAveragePositionPricePt
Quotation getAveragePositionPricePt()Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7;- Returns:
- The averagePositionPricePt.
-
getAveragePositionPricePtOrBuilder
QuotationOrBuilder getAveragePositionPricePtOrBuilder()Deprecated Средняя цена позиции в пунктах (для фьючерсов). **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.Quotation average_position_price_pt = 7; -
hasCurrentPrice
boolean hasCurrentPrice()Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента..
.tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8;- Returns:
- Whether the currentPrice field is set.
-
getCurrentPrice
MoneyValue getCurrentPrice()Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента..
.tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8;- Returns:
- The currentPrice.
-
getCurrentPriceOrBuilder
MoneyValueOrBuilder getCurrentPriceOrBuilder()Текущая цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента..
.tinkoff.public.invest.api.contract.v1.MoneyValue current_price = 8; -
hasAveragePositionPriceFifo
boolean hasAveragePositionPriceFifo()Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9;- Returns:
- Whether the averagePositionPriceFifo field is set.
-
getAveragePositionPriceFifo
MoneyValue getAveragePositionPriceFifo()Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9;- Returns:
- The averagePositionPriceFifo.
-
getAveragePositionPriceFifoOrBuilder
MoneyValueOrBuilder getAveragePositionPriceFifoOrBuilder()Средняя цена позиции по методу FIFO. **Возможна задержка до секунды для пересчёта**.
.tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price_fifo = 9; -
hasQuantityLots
boolean hasQuantityLots()Deprecated Количество лотов в портфеле.
.tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10;- Returns:
- Whether the quantityLots field is set.
-
getQuantityLots
Quotation getQuantityLots()Deprecated Количество лотов в портфеле.
.tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10;- Returns:
- The quantityLots.
-
getQuantityLotsOrBuilder
QuotationOrBuilder getQuantityLotsOrBuilder()Deprecated Количество лотов в портфеле.
.tinkoff.public.invest.api.contract.v1.Quotation quantity_lots = 10; -
getBlocked
boolean getBlocked()Заблокировано на бирже.
bool blocked = 21;- Returns:
- The blocked.
-
getPositionUid
String getPositionUid()position_uid-идентификатора инструмента
string position_uid = 24;- Returns:
- The positionUid.
-
getPositionUidBytes
com.google.protobuf.ByteString getPositionUidBytes()position_uid-идентификатора инструмента
string position_uid = 24;- Returns:
- The bytes for positionUid.
-
getInstrumentUid
String getInstrumentUid()instrument_uid-идентификатора инструмента
string instrument_uid = 25;- Returns:
- The instrumentUid.
-
getInstrumentUidBytes
com.google.protobuf.ByteString getInstrumentUidBytes()instrument_uid-идентификатора инструмента
string instrument_uid = 25;- Returns:
- The bytes for instrumentUid.
-
hasVarMargin
boolean hasVarMargin()Вариационная маржа
.tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26;- Returns:
- Whether the varMargin field is set.
-
getVarMargin
MoneyValue getVarMargin()Вариационная маржа
.tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26;- Returns:
- The varMargin.
-
getVarMarginOrBuilder
MoneyValueOrBuilder getVarMarginOrBuilder()Вариационная маржа
.tinkoff.public.invest.api.contract.v1.MoneyValue var_margin = 26; -
hasExpectedYieldFifo
boolean hasExpectedYieldFifo()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27;- Returns:
- Whether the expectedYieldFifo field is set.
-
getExpectedYieldFifo
Quotation getExpectedYieldFifo()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27;- Returns:
- The expectedYieldFifo.
-
getExpectedYieldFifoOrBuilder
QuotationOrBuilder getExpectedYieldFifoOrBuilder()Текущая рассчитанная доходность позиции.
.tinkoff.public.invest.api.contract.v1.Quotation expected_yield_fifo = 27;
-