Class PostStopOrderRequest

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

public final class PostStopOrderRequest extends com.google.protobuf.GeneratedMessageV3 implements PostStopOrderRequestOrBuilder
Запрос выставления стоп-заявки.
 
Protobuf type tinkoff.public.invest.api.contract.v1.PostStopOrderRequest
See Also:
  • Field Details

    • FIGI_FIELD_NUMBER

      public static final int FIGI_FIELD_NUMBER
      See Also:
    • QUANTITY_FIELD_NUMBER

      public static final int QUANTITY_FIELD_NUMBER
      See Also:
    • PRICE_FIELD_NUMBER

      public static final int PRICE_FIELD_NUMBER
      See Also:
    • STOP_PRICE_FIELD_NUMBER

      public static final int STOP_PRICE_FIELD_NUMBER
      See Also:
    • DIRECTION_FIELD_NUMBER

      public static final int DIRECTION_FIELD_NUMBER
      See Also:
    • ACCOUNT_ID_FIELD_NUMBER

      public static final int ACCOUNT_ID_FIELD_NUMBER
      See Also:
    • EXPIRATION_TYPE_FIELD_NUMBER

      public static final int EXPIRATION_TYPE_FIELD_NUMBER
      See Also:
    • STOP_ORDER_TYPE_FIELD_NUMBER

      public static final int STOP_ORDER_TYPE_FIELD_NUMBER
      See Also:
    • EXPIRE_DATE_FIELD_NUMBER

      public static final int EXPIRE_DATE_FIELD_NUMBER
      See Also:
    • INSTRUMENT_ID_FIELD_NUMBER

      public static final int INSTRUMENT_ID_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
    • getFigi

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

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

      public long getQuantity()
      Количество лотов.
       
      int64 quantity = 2;
      Specified by:
      getQuantity in interface PostStopOrderRequestOrBuilder
      Returns:
      The quantity.
    • hasPrice

      public boolean hasPrice()
      Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.Quotation price = 3;
      Specified by:
      hasPrice in interface PostStopOrderRequestOrBuilder
      Returns:
      Whether the price field is set.
    • getPrice

      public Quotation getPrice()
      Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.Quotation price = 3;
      Specified by:
      getPrice in interface PostStopOrderRequestOrBuilder
      Returns:
      The price.
    • getPriceOrBuilder

      public QuotationOrBuilder getPriceOrBuilder()
      Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.Quotation price = 3;
      Specified by:
      getPriceOrBuilder in interface PostStopOrderRequestOrBuilder
    • hasStopPrice

      public boolean hasStopPrice()
      Стоп-цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.Quotation stop_price = 4;
      Specified by:
      hasStopPrice in interface PostStopOrderRequestOrBuilder
      Returns:
      Whether the stopPrice field is set.
    • getStopPrice

      public Quotation getStopPrice()
      Стоп-цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.Quotation stop_price = 4;
      Specified by:
      getStopPrice in interface PostStopOrderRequestOrBuilder
      Returns:
      The stopPrice.
    • getStopPriceOrBuilder

      public QuotationOrBuilder getStopPriceOrBuilder()
      Стоп-цена заявки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента.
       
      .tinkoff.public.invest.api.contract.v1.Quotation stop_price = 4;
      Specified by:
      getStopPriceOrBuilder in interface PostStopOrderRequestOrBuilder
    • getDirectionValue

      public int getDirectionValue()
      Направление операции.
       
      .tinkoff.public.invest.api.contract.v1.StopOrderDirection direction = 5;
      Specified by:
      getDirectionValue in interface PostStopOrderRequestOrBuilder
      Returns:
      The enum numeric value on the wire for direction.
    • getDirection

      public StopOrderDirection getDirection()
      Направление операции.
       
      .tinkoff.public.invest.api.contract.v1.StopOrderDirection direction = 5;
      Specified by:
      getDirection in interface PostStopOrderRequestOrBuilder
      Returns:
      The direction.
    • getAccountId

      public String getAccountId()
      Номер счёта.
       
      string account_id = 6;
      Specified by:
      getAccountId in interface PostStopOrderRequestOrBuilder
      Returns:
      The accountId.
    • getAccountIdBytes

      public com.google.protobuf.ByteString getAccountIdBytes()
      Номер счёта.
       
      string account_id = 6;
      Specified by:
      getAccountIdBytes in interface PostStopOrderRequestOrBuilder
      Returns:
      The bytes for accountId.
    • getExpirationTypeValue

      public int getExpirationTypeValue()
      Тип экспирации заявки.
       
      .tinkoff.public.invest.api.contract.v1.StopOrderExpirationType expiration_type = 7;
      Specified by:
      getExpirationTypeValue in interface PostStopOrderRequestOrBuilder
      Returns:
      The enum numeric value on the wire for expirationType.
    • getExpirationType

      public StopOrderExpirationType getExpirationType()
      Тип экспирации заявки.
       
      .tinkoff.public.invest.api.contract.v1.StopOrderExpirationType expiration_type = 7;
      Specified by:
      getExpirationType in interface PostStopOrderRequestOrBuilder
      Returns:
      The expirationType.
    • getStopOrderTypeValue

      public int getStopOrderTypeValue()
      Тип заявки.
       
      .tinkoff.public.invest.api.contract.v1.StopOrderType stop_order_type = 8;
      Specified by:
      getStopOrderTypeValue in interface PostStopOrderRequestOrBuilder
      Returns:
      The enum numeric value on the wire for stopOrderType.
    • getStopOrderType

      public StopOrderType getStopOrderType()
      Тип заявки.
       
      .tinkoff.public.invest.api.contract.v1.StopOrderType stop_order_type = 8;
      Specified by:
      getStopOrderType in interface PostStopOrderRequestOrBuilder
      Returns:
      The stopOrderType.
    • hasExpireDate

      public boolean hasExpireDate()
      Дата и время окончания действия стоп-заявки в часовом поясе UTC. **Для ExpirationType = GoodTillDate заполнение обязательно**.
       
      .google.protobuf.Timestamp expire_date = 9;
      Specified by:
      hasExpireDate in interface PostStopOrderRequestOrBuilder
      Returns:
      Whether the expireDate field is set.
    • getExpireDate

      public com.google.protobuf.Timestamp getExpireDate()
      Дата и время окончания действия стоп-заявки в часовом поясе UTC. **Для ExpirationType = GoodTillDate заполнение обязательно**.
       
      .google.protobuf.Timestamp expire_date = 9;
      Specified by:
      getExpireDate in interface PostStopOrderRequestOrBuilder
      Returns:
      The expireDate.
    • getExpireDateOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireDateOrBuilder()
      Дата и время окончания действия стоп-заявки в часовом поясе UTC. **Для ExpirationType = GoodTillDate заполнение обязательно**.
       
      .google.protobuf.Timestamp expire_date = 9;
      Specified by:
      getExpireDateOrBuilder in interface PostStopOrderRequestOrBuilder
    • getInstrumentId

      public String getInstrumentId()
      Идентификатор инструмента, принимает значения Figi или instrument_uid.
       
      string instrument_id = 10;
      Specified by:
      getInstrumentId in interface PostStopOrderRequestOrBuilder
      Returns:
      The instrumentId.
    • getInstrumentIdBytes

      public com.google.protobuf.ByteString getInstrumentIdBytes()
      Идентификатор инструмента, принимает значения Figi или instrument_uid.
       
      string instrument_id = 10;
      Specified by:
      getInstrumentIdBytes in interface PostStopOrderRequestOrBuilder
      Returns:
      The bytes for instrumentId.
    • 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 PostStopOrderRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static PostStopOrderRequest.Builder newBuilder()
    • newBuilder

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

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

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

      public static PostStopOrderRequest getDefaultInstance()
    • parser

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

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