Class PostOrderResponse

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

public final class PostOrderResponse extends com.google.protobuf.GeneratedMessageV3 implements PostOrderResponseOrBuilder
Информация о выставлении поручения.
 
Protobuf type tinkoff.public.invest.api.contract.v1.PostOrderResponse
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:
    • 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:
    • ACI_VALUE_FIELD_NUMBER

      public static final int ACI_VALUE_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:
    • ORDER_TYPE_FIELD_NUMBER

      public static final int ORDER_TYPE_FIELD_NUMBER
      See Also:
    • MESSAGE_FIELD_NUMBER

      public static final int MESSAGE_FIELD_NUMBER
      See Also:
    • INITIAL_ORDER_PRICE_PT_FIELD_NUMBER

      public static final int INITIAL_ORDER_PRICE_PT_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 PostOrderResponseOrBuilder
      Returns:
      The orderId.
    • getOrderIdBytes

      public com.google.protobuf.ByteString getOrderIdBytes()
      Идентификатор заявки.
       
      string order_id = 1;
      Specified by:
      getOrderIdBytes in interface PostOrderResponseOrBuilder
      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 PostOrderResponseOrBuilder
      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 PostOrderResponseOrBuilder
      Returns:
      The executionReportStatus.
    • getLotsRequested

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

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

      public boolean hasInitialOrderPrice()
      Начальная цена заявки. Произведение количества запрошенных лотов на цену.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_order_price = 5;
      Specified by:
      hasInitialOrderPrice in interface PostOrderResponseOrBuilder
      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 PostOrderResponseOrBuilder
      Returns:
      The initialOrderPrice.
    • getInitialOrderPriceOrBuilder

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

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

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

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

      public boolean hasTotalOrderAmount()
      Итоговая стоимость заявки, включающая все комиссии.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue total_order_amount = 7;
      Specified by:
      hasTotalOrderAmount in interface PostOrderResponseOrBuilder
      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 PostOrderResponseOrBuilder
      Returns:
      The totalOrderAmount.
    • getTotalOrderAmountOrBuilder

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

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

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

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

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

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

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

      public boolean hasAciValue()
      Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://tinkoff.github.io/investAPI/head-orders#coupon)
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10;
      Specified by:
      hasAciValue in interface PostOrderResponseOrBuilder
      Returns:
      Whether the aciValue field is set.
    • getAciValue

      public MoneyValue getAciValue()
      Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://tinkoff.github.io/investAPI/head-orders#coupon)
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10;
      Specified by:
      getAciValue in interface PostOrderResponseOrBuilder
      Returns:
      The aciValue.
    • getAciValueOrBuilder

      public MoneyValueOrBuilder getAciValueOrBuilder()
      Значение НКД (накопленного купонного дохода) на дату. Подробнее: [НКД при выставлении торговых поручений](https://tinkoff.github.io/investAPI/head-orders#coupon)
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue aci_value = 10;
      Specified by:
      getAciValueOrBuilder in interface PostOrderResponseOrBuilder
    • getFigi

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

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

      public int getDirectionValue()
      Направление сделки.
       
      .tinkoff.public.invest.api.contract.v1.OrderDirection direction = 12;
      Specified by:
      getDirectionValue in interface PostOrderResponseOrBuilder
      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 PostOrderResponseOrBuilder
      Returns:
      The direction.
    • hasInitialSecurityPrice

      public boolean hasInitialSecurityPrice()
      Начальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.MoneyValue initial_security_price = 13;
      Specified by:
      hasInitialSecurityPrice in interface PostOrderResponseOrBuilder
      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 PostOrderResponseOrBuilder
      Returns:
      The initialSecurityPrice.
    • getInitialSecurityPriceOrBuilder

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

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

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

      public String getMessage()
      Дополнительные данные об исполнении заявки.
       
      string message = 15;
      Specified by:
      getMessage in interface PostOrderResponseOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
      Дополнительные данные об исполнении заявки.
       
      string message = 15;
      Specified by:
      getMessageBytes in interface PostOrderResponseOrBuilder
      Returns:
      The bytes for message.
    • hasInitialOrderPricePt

      public boolean hasInitialOrderPricePt()
      Начальная цена заявки в пунктах (для фьючерсов).
       
      .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16;
      Specified by:
      hasInitialOrderPricePt in interface PostOrderResponseOrBuilder
      Returns:
      Whether the initialOrderPricePt field is set.
    • getInitialOrderPricePt

      public Quotation getInitialOrderPricePt()
      Начальная цена заявки в пунктах (для фьючерсов).
       
      .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16;
      Specified by:
      getInitialOrderPricePt in interface PostOrderResponseOrBuilder
      Returns:
      The initialOrderPricePt.
    • getInitialOrderPricePtOrBuilder

      public QuotationOrBuilder getInitialOrderPricePtOrBuilder()
      Начальная цена заявки в пунктах (для фьючерсов).
       
      .tinkoff.public.invest.api.contract.v1.Quotation initial_order_price_pt = 16;
      Specified by:
      getInitialOrderPricePtOrBuilder in interface PostOrderResponseOrBuilder
    • getInstrumentUid

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

      public com.google.protobuf.ByteString getInstrumentUidBytes()
      UID идентификатор инструмента.
       
      string instrument_uid = 17;
      Specified by:
      getInstrumentUidBytes in interface PostOrderResponseOrBuilder
      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 PostOrderResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static PostOrderResponse.Builder newBuilder()
    • newBuilder

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

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

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

      public static PostOrderResponse getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<PostOrderResponse> 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 PostOrderResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder