Class OrderState

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
ru.tinkoff.piapi.contract.v1.OrderState
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, OrderStateOrBuilder

public final class OrderState extends com.google.protobuf.GeneratedMessageV3 implements OrderStateOrBuilder
Информация о торговом поручении.
 
Protobuf type tinkoff.public.invest.api.contract.v1.OrderState
See Also:
  • Field Details

    • ORDER_ID_FIELD_NUMBER

      public static final int ORDER_ID_FIELD_NUMBER
      See Also:
    • EXECUTION_REPORT_STATUS_FIELD_NUMBER

      public static final int EXECUTION_REPORT_STATUS_FIELD_NUMBER
      See Also:
    • LOTS_REQUESTED_FIELD_NUMBER

      public static final int LOTS_REQUESTED_FIELD_NUMBER
      See Also:
    • LOTS_EXECUTED_FIELD_NUMBER

      public static final int LOTS_EXECUTED_FIELD_NUMBER
      See Also:
    • INITIAL_ORDER_PRICE_FIELD_NUMBER

      public static final int INITIAL_ORDER_PRICE_FIELD_NUMBER
      See Also:
    • EXECUTED_ORDER_PRICE_FIELD_NUMBER

      public static final int EXECUTED_ORDER_PRICE_FIELD_NUMBER
      See Also:
    • TOTAL_ORDER_AMOUNT_FIELD_NUMBER

      public static final int TOTAL_ORDER_AMOUNT_FIELD_NUMBER
      See Also:
    • AVERAGE_POSITION_PRICE_FIELD_NUMBER

      public static final int AVERAGE_POSITION_PRICE_FIELD_NUMBER
      See Also:
    • INITIAL_COMMISSION_FIELD_NUMBER

      public static final int INITIAL_COMMISSION_FIELD_NUMBER
      See Also:
    • EXECUTED_COMMISSION_FIELD_NUMBER

      public static final int EXECUTED_COMMISSION_FIELD_NUMBER
      See Also:
    • FIGI_FIELD_NUMBER

      public static final int FIGI_FIELD_NUMBER
      See Also:
    • DIRECTION_FIELD_NUMBER

      public static final int DIRECTION_FIELD_NUMBER
      See Also:
    • INITIAL_SECURITY_PRICE_FIELD_NUMBER

      public static final int INITIAL_SECURITY_PRICE_FIELD_NUMBER
      See Also:
    • STAGES_FIELD_NUMBER

      public static final int STAGES_FIELD_NUMBER
      See Also:
    • SERVICE_COMMISSION_FIELD_NUMBER

      public static final int SERVICE_COMMISSION_FIELD_NUMBER
      See Also:
    • CURRENCY_FIELD_NUMBER

      public static final int CURRENCY_FIELD_NUMBER
      See Also:
    • ORDER_TYPE_FIELD_NUMBER

      public static final int ORDER_TYPE_FIELD_NUMBER
      See Also:
    • ORDER_DATE_FIELD_NUMBER

      public static final int ORDER_DATE_FIELD_NUMBER
      See Also:
    • INSTRUMENT_UID_FIELD_NUMBER

      public static final int INSTRUMENT_UID_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getOrderId

      public String getOrderId()
      Идентификатор заявки.
       
      string order_id = 1;
      Specified by:
      getOrderId in interface OrderStateOrBuilder
      Returns:
      The orderId.
    • getOrderIdBytes

      public com.google.protobuf.ByteString getOrderIdBytes()
      Идентификатор заявки.
       
      string order_id = 1;
      Specified by:
      getOrderIdBytes in interface OrderStateOrBuilder
      Returns:
      The bytes for orderId.
    • getExecutionReportStatusValue

      public int getExecutionReportStatusValue()
      Текущий статус заявки.
       
      .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2;
      Specified by:
      getExecutionReportStatusValue in interface OrderStateOrBuilder
      Returns:
      The enum numeric value on the wire for executionReportStatus.
    • getExecutionReportStatus

      public OrderExecutionReportStatus getExecutionReportStatus()
      Текущий статус заявки.
       
      .tinkoff.public.invest.api.contract.v1.OrderExecutionReportStatus execution_report_status = 2;
      Specified by:
      getExecutionReportStatus in interface OrderStateOrBuilder
      Returns:
      The executionReportStatus.
    • getLotsRequested

      public long getLotsRequested()
      Запрошено лотов.
       
      int64 lots_requested = 3;
      Specified by:
      getLotsRequested in interface OrderStateOrBuilder
      Returns:
      The lotsRequested.
    • getLotsExecuted

      public long getLotsExecuted()
      Исполнено лотов.
       
      int64 lots_executed = 4;
      Specified by:
      getLotsExecuted in interface OrderStateOrBuilder
      Returns:
      The lotsExecuted.
    • hasInitialOrderPrice

      public boolean hasInitialOrderPrice()
      Начальная цена заявки. Произведение количества запрошенных лотов на цену.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
      Specified by:
      hasInitialOrderPrice in interface OrderStateOrBuilder
      Returns:
      Whether the initialOrderPrice field is set.
    • getInitialOrderPrice

      public MoneyValue getInitialOrderPrice()
      Начальная цена заявки. Произведение количества запрошенных лотов на цену.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
      Specified by:
      getInitialOrderPrice in interface OrderStateOrBuilder
      Returns:
      The initialOrderPrice.
    • getInitialOrderPriceOrBuilder

      public MoneyValueOrBuilder getInitialOrderPriceOrBuilder()
      Начальная цена заявки. Произведение количества запрошенных лотов на цену.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
      Specified by:
      getInitialOrderPriceOrBuilder in interface OrderStateOrBuilder
    • hasExecutedOrderPrice

      public boolean hasExecutedOrderPrice()
      Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
      Specified by:
      hasExecutedOrderPrice in interface OrderStateOrBuilder
      Returns:
      Whether the executedOrderPrice field is set.
    • getExecutedOrderPrice

      public MoneyValue getExecutedOrderPrice()
      Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
      Specified by:
      getExecutedOrderPrice in interface OrderStateOrBuilder
      Returns:
      The executedOrderPrice.
    • getExecutedOrderPriceOrBuilder

      public MoneyValueOrBuilder getExecutedOrderPriceOrBuilder()
      Исполненная цена заявки. Произведение средней цены покупки на количество лотов.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue executed_order_price = 6;
      Specified by:
      getExecutedOrderPriceOrBuilder in interface OrderStateOrBuilder
    • hasTotalOrderAmount

      public boolean hasTotalOrderAmount()
      Итоговая стоимость заявки, включающая все комиссии.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
      Specified by:
      hasTotalOrderAmount in interface OrderStateOrBuilder
      Returns:
      Whether the totalOrderAmount field is set.
    • getTotalOrderAmount

      public MoneyValue getTotalOrderAmount()
      Итоговая стоимость заявки, включающая все комиссии.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
      Specified by:
      getTotalOrderAmount in interface OrderStateOrBuilder
      Returns:
      The totalOrderAmount.
    • getTotalOrderAmountOrBuilder

      public MoneyValueOrBuilder getTotalOrderAmountOrBuilder()
      Итоговая стоимость заявки, включающая все комиссии.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
      Specified by:
      getTotalOrderAmountOrBuilder in interface OrderStateOrBuilder
    • hasAveragePositionPrice

      public boolean hasAveragePositionPrice()
      Средняя цена позиции по сделке.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
      Specified by:
      hasAveragePositionPrice in interface OrderStateOrBuilder
      Returns:
      Whether the averagePositionPrice field is set.
    • getAveragePositionPrice

      public MoneyValue getAveragePositionPrice()
      Средняя цена позиции по сделке.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
      Specified by:
      getAveragePositionPrice in interface OrderStateOrBuilder
      Returns:
      The averagePositionPrice.
    • getAveragePositionPriceOrBuilder

      public MoneyValueOrBuilder getAveragePositionPriceOrBuilder()
      Средняя цена позиции по сделке.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue average_position_price = 8;
      Specified by:
      getAveragePositionPriceOrBuilder in interface OrderStateOrBuilder
    • hasInitialCommission

      public boolean hasInitialCommission()
      Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
      Specified by:
      hasInitialCommission in interface OrderStateOrBuilder
      Returns:
      Whether the initialCommission field is set.
    • getInitialCommission

      public MoneyValue getInitialCommission()
      Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
      Specified by:
      getInitialCommission in interface OrderStateOrBuilder
      Returns:
      The initialCommission.
    • getInitialCommissionOrBuilder

      public MoneyValueOrBuilder getInitialCommissionOrBuilder()
      Начальная комиссия. Комиссия, рассчитанная на момент подачи заявки.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_commission = 9;
      Specified by:
      getInitialCommissionOrBuilder in interface OrderStateOrBuilder
    • hasExecutedCommission

      public boolean hasExecutedCommission()
      Фактическая комиссия по итогам исполнения заявки.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
      Specified by:
      hasExecutedCommission in interface OrderStateOrBuilder
      Returns:
      Whether the executedCommission field is set.
    • getExecutedCommission

      public MoneyValue getExecutedCommission()
      Фактическая комиссия по итогам исполнения заявки.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
      Specified by:
      getExecutedCommission in interface OrderStateOrBuilder
      Returns:
      The executedCommission.
    • getExecutedCommissionOrBuilder

      public MoneyValueOrBuilder getExecutedCommissionOrBuilder()
      Фактическая комиссия по итогам исполнения заявки.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue executed_commission = 10;
      Specified by:
      getExecutedCommissionOrBuilder in interface OrderStateOrBuilder
    • getFigi

      public String getFigi()
      Figi-идентификатор инструмента.
       
      string figi = 11;
      Specified by:
      getFigi in interface OrderStateOrBuilder
      Returns:
      The figi.
    • getFigiBytes

      public com.google.protobuf.ByteString getFigiBytes()
      Figi-идентификатор инструмента.
       
      string figi = 11;
      Specified by:
      getFigiBytes in interface OrderStateOrBuilder
      Returns:
      The bytes for figi.
    • getDirectionValue

      public int getDirectionValue()
      Направление заявки.
       
      .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12;
      Specified by:
      getDirectionValue in interface OrderStateOrBuilder
      Returns:
      The enum numeric value on the wire for direction.
    • getDirection

      public OrderDirection getDirection()
      Направление заявки.
       
      .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12;
      Specified by:
      getDirection in interface OrderStateOrBuilder
      Returns:
      The direction.
    • hasInitialSecurityPrice

      public boolean hasInitialSecurityPrice()
      Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
      Specified by:
      hasInitialSecurityPrice in interface OrderStateOrBuilder
      Returns:
      Whether the initialSecurityPrice field is set.
    • getInitialSecurityPrice

      public MoneyValue getInitialSecurityPrice()
      Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
      Specified by:
      getInitialSecurityPrice in interface OrderStateOrBuilder
      Returns:
      The initialSecurityPrice.
    • getInitialSecurityPriceOrBuilder

      public MoneyValueOrBuilder getInitialSecurityPriceOrBuilder()
      Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
      Specified by:
      getInitialSecurityPriceOrBuilder in interface OrderStateOrBuilder
    • getStagesList

      public List<OrderStage> getStagesList()
      Стадии выполнения заявки.
       
      repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
      Specified by:
      getStagesList in interface OrderStateOrBuilder
    • getStagesOrBuilderList

      public List<? extends OrderStageOrBuilder> getStagesOrBuilderList()
      Стадии выполнения заявки.
       
      repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
      Specified by:
      getStagesOrBuilderList in interface OrderStateOrBuilder
    • getStagesCount

      public int getStagesCount()
      Стадии выполнения заявки.
       
      repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
      Specified by:
      getStagesCount in interface OrderStateOrBuilder
    • getStages

      public OrderStage getStages(int index)
      Стадии выполнения заявки.
       
      repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
      Specified by:
      getStages in interface OrderStateOrBuilder
    • getStagesOrBuilder

      public OrderStageOrBuilder getStagesOrBuilder(int index)
      Стадии выполнения заявки.
       
      repeated .tinkoff.public.invest.api.contract.v1.OrderStage stages = 14;
      Specified by:
      getStagesOrBuilder in interface OrderStateOrBuilder
    • hasServiceCommission

      public boolean hasServiceCommission()
      Сервисная комиссия.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
      Specified by:
      hasServiceCommission in interface OrderStateOrBuilder
      Returns:
      Whether the serviceCommission field is set.
    • getServiceCommission

      public MoneyValue getServiceCommission()
      Сервисная комиссия.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
      Specified by:
      getServiceCommission in interface OrderStateOrBuilder
      Returns:
      The serviceCommission.
    • getServiceCommissionOrBuilder

      public MoneyValueOrBuilder getServiceCommissionOrBuilder()
      Сервисная комиссия.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue service_commission = 15;
      Specified by:
      getServiceCommissionOrBuilder in interface OrderStateOrBuilder
    • getCurrency

      public String getCurrency()
      Валюта заявки.
       
      string currency = 16;
      Specified by:
      getCurrency in interface OrderStateOrBuilder
      Returns:
      The currency.
    • getCurrencyBytes

      public com.google.protobuf.ByteString getCurrencyBytes()
      Валюта заявки.
       
      string currency = 16;
      Specified by:
      getCurrencyBytes in interface OrderStateOrBuilder
      Returns:
      The bytes for currency.
    • getOrderTypeValue

      public int getOrderTypeValue()
      Тип заявки.
       
      .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17;
      Specified by:
      getOrderTypeValue in interface OrderStateOrBuilder
      Returns:
      The enum numeric value on the wire for orderType.
    • getOrderType

      public OrderType getOrderType()
      Тип заявки.
       
      .tinkoff.public.invest.api.contract.v1.OrderType order_type = 17;
      Specified by:
      getOrderType in interface OrderStateOrBuilder
      Returns:
      The orderType.
    • hasOrderDate

      public boolean hasOrderDate()
      Дата и время выставления заявки в часовом поясе UTC.
       
      .google.protobuf.Timestamp order_date = 18;
      Specified by:
      hasOrderDate in interface OrderStateOrBuilder
      Returns:
      Whether the orderDate field is set.
    • getOrderDate

      public com.google.protobuf.Timestamp getOrderDate()
      Дата и время выставления заявки в часовом поясе UTC.
       
      .google.protobuf.Timestamp order_date = 18;
      Specified by:
      getOrderDate in interface OrderStateOrBuilder
      Returns:
      The orderDate.
    • getOrderDateOrBuilder

      public com.google.protobuf.TimestampOrBuilder getOrderDateOrBuilder()
      Дата и время выставления заявки в часовом поясе UTC.
       
      .google.protobuf.Timestamp order_date = 18;
      Specified by:
      getOrderDateOrBuilder in interface OrderStateOrBuilder
    • getInstrumentUid

      public String getInstrumentUid()
      UID идентификатор инструмента.
       
      string instrument_uid = 19;
      Specified by:
      getInstrumentUid in interface OrderStateOrBuilder
      Returns:
      The instrumentUid.
    • getInstrumentUidBytes

      public com.google.protobuf.ByteString getInstrumentUidBytes()
      UID идентификатор инструмента.
       
      string instrument_uid = 19;
      Specified by:
      getInstrumentUidBytes in interface OrderStateOrBuilder
      Returns:
      The bytes for instrumentUid.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static OrderState parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OrderState parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OrderState parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OrderState parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OrderState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OrderState parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OrderState parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OrderState parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OrderState parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OrderState parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OrderState parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OrderState parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public OrderState.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static OrderState.Builder newBuilder()
    • newBuilder

      public static OrderState.Builder newBuilder(OrderState prototype)
    • toBuilder

      public OrderState.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected OrderState.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static OrderState getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<OrderState> parser()
    • getParserForType

      public com.google.protobuf.Parser<OrderState> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public OrderState getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder