Class GetOrderBookResponse

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

public final class GetOrderBookResponse extends com.google.protobuf.GeneratedMessageV3 implements GetOrderBookResponseOrBuilder
Информация о стакане.
 
Protobuf type tinkoff.public.invest.api.contract.v1.GetOrderBookResponse
See Also:
  • Field Details

  • 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 GetOrderBookResponseOrBuilder
      Returns:
      The figi.
    • getFigiBytes

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

      public int getDepth()
      Глубина стакана.
       
      int32 depth = 2;
      Specified by:
      getDepth in interface GetOrderBookResponseOrBuilder
      Returns:
      The depth.
    • getBidsList

      public List<Order> getBidsList()
      Множество пар значений на покупку.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order bids = 3;
      Specified by:
      getBidsList in interface GetOrderBookResponseOrBuilder
    • getBidsOrBuilderList

      public List<? extends OrderOrBuilder> getBidsOrBuilderList()
      Множество пар значений на покупку.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order bids = 3;
      Specified by:
      getBidsOrBuilderList in interface GetOrderBookResponseOrBuilder
    • getBidsCount

      public int getBidsCount()
      Множество пар значений на покупку.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order bids = 3;
      Specified by:
      getBidsCount in interface GetOrderBookResponseOrBuilder
    • getBids

      public Order getBids(int index)
      Множество пар значений на покупку.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order bids = 3;
      Specified by:
      getBids in interface GetOrderBookResponseOrBuilder
    • getBidsOrBuilder

      public OrderOrBuilder getBidsOrBuilder(int index)
      Множество пар значений на покупку.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order bids = 3;
      Specified by:
      getBidsOrBuilder in interface GetOrderBookResponseOrBuilder
    • getAsksList

      public List<Order> getAsksList()
      Множество пар значений на продажу.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order asks = 4;
      Specified by:
      getAsksList in interface GetOrderBookResponseOrBuilder
    • getAsksOrBuilderList

      public List<? extends OrderOrBuilder> getAsksOrBuilderList()
      Множество пар значений на продажу.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order asks = 4;
      Specified by:
      getAsksOrBuilderList in interface GetOrderBookResponseOrBuilder
    • getAsksCount

      public int getAsksCount()
      Множество пар значений на продажу.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order asks = 4;
      Specified by:
      getAsksCount in interface GetOrderBookResponseOrBuilder
    • getAsks

      public Order getAsks(int index)
      Множество пар значений на продажу.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order asks = 4;
      Specified by:
      getAsks in interface GetOrderBookResponseOrBuilder
    • getAsksOrBuilder

      public OrderOrBuilder getAsksOrBuilder(int index)
      Множество пар значений на продажу.
       
      repeated .tinkoff.public.invest.api.contract.v1.Order asks = 4;
      Specified by:
      getAsksOrBuilder in interface GetOrderBookResponseOrBuilder
    • hasLastPrice

      public boolean hasLastPrice()
      Цена последней сделки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation last_price = 5;
      Specified by:
      hasLastPrice in interface GetOrderBookResponseOrBuilder
      Returns:
      Whether the lastPrice field is set.
    • getLastPrice

      public Quotation getLastPrice()
      Цена последней сделки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation last_price = 5;
      Specified by:
      getLastPrice in interface GetOrderBookResponseOrBuilder
      Returns:
      The lastPrice.
    • getLastPriceOrBuilder

      public QuotationOrBuilder getLastPriceOrBuilder()
      Цена последней сделки за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation last_price = 5;
      Specified by:
      getLastPriceOrBuilder in interface GetOrderBookResponseOrBuilder
    • hasClosePrice

      public boolean hasClosePrice()
      Цена закрытия за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation close_price = 6;
      Specified by:
      hasClosePrice in interface GetOrderBookResponseOrBuilder
      Returns:
      Whether the closePrice field is set.
    • getClosePrice

      public Quotation getClosePrice()
      Цена закрытия за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation close_price = 6;
      Specified by:
      getClosePrice in interface GetOrderBookResponseOrBuilder
      Returns:
      The closePrice.
    • getClosePriceOrBuilder

      public QuotationOrBuilder getClosePriceOrBuilder()
      Цена закрытия за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation close_price = 6;
      Specified by:
      getClosePriceOrBuilder in interface GetOrderBookResponseOrBuilder
    • hasLimitUp

      public boolean hasLimitUp()
      Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
      Specified by:
      hasLimitUp in interface GetOrderBookResponseOrBuilder
      Returns:
      Whether the limitUp field is set.
    • getLimitUp

      public Quotation getLimitUp()
      Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
      Specified by:
      getLimitUp in interface GetOrderBookResponseOrBuilder
      Returns:
      The limitUp.
    • getLimitUpOrBuilder

      public QuotationOrBuilder getLimitUpOrBuilder()
      Верхний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation limit_up = 7;
      Specified by:
      getLimitUpOrBuilder in interface GetOrderBookResponseOrBuilder
    • hasLimitDown

      public boolean hasLimitDown()
      Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
      Specified by:
      hasLimitDown in interface GetOrderBookResponseOrBuilder
      Returns:
      Whether the limitDown field is set.
    • getLimitDown

      public Quotation getLimitDown()
      Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
      Specified by:
      getLimitDown in interface GetOrderBookResponseOrBuilder
      Returns:
      The limitDown.
    • getLimitDownOrBuilder

      public QuotationOrBuilder getLimitDownOrBuilder()
      Нижний лимит цены за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
       
      .tinkoff.public.invest.api.contract.v1.Quotation limit_down = 8;
      Specified by:
      getLimitDownOrBuilder in interface GetOrderBookResponseOrBuilder
    • hasLastPriceTs

      public boolean hasLastPriceTs()
      Время получения цены последней сделки.
       
      .google.protobuf.Timestamp last_price_ts = 21;
      Specified by:
      hasLastPriceTs in interface GetOrderBookResponseOrBuilder
      Returns:
      Whether the lastPriceTs field is set.
    • getLastPriceTs

      public com.google.protobuf.Timestamp getLastPriceTs()
      Время получения цены последней сделки.
       
      .google.protobuf.Timestamp last_price_ts = 21;
      Specified by:
      getLastPriceTs in interface GetOrderBookResponseOrBuilder
      Returns:
      The lastPriceTs.
    • getLastPriceTsOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastPriceTsOrBuilder()
      Время получения цены последней сделки.
       
      .google.protobuf.Timestamp last_price_ts = 21;
      Specified by:
      getLastPriceTsOrBuilder in interface GetOrderBookResponseOrBuilder
    • hasClosePriceTs

      public boolean hasClosePriceTs()
      Время получения цены закрытия.
       
      .google.protobuf.Timestamp close_price_ts = 22;
      Specified by:
      hasClosePriceTs in interface GetOrderBookResponseOrBuilder
      Returns:
      Whether the closePriceTs field is set.
    • getClosePriceTs

      public com.google.protobuf.Timestamp getClosePriceTs()
      Время получения цены закрытия.
       
      .google.protobuf.Timestamp close_price_ts = 22;
      Specified by:
      getClosePriceTs in interface GetOrderBookResponseOrBuilder
      Returns:
      The closePriceTs.
    • getClosePriceTsOrBuilder

      public com.google.protobuf.TimestampOrBuilder getClosePriceTsOrBuilder()
      Время получения цены закрытия.
       
      .google.protobuf.Timestamp close_price_ts = 22;
      Specified by:
      getClosePriceTsOrBuilder in interface GetOrderBookResponseOrBuilder
    • hasOrderbookTs

      public boolean hasOrderbookTs()
      Время формирования стакана на бирже.
       
      .google.protobuf.Timestamp orderbook_ts = 23;
      Specified by:
      hasOrderbookTs in interface GetOrderBookResponseOrBuilder
      Returns:
      Whether the orderbookTs field is set.
    • getOrderbookTs

      public com.google.protobuf.Timestamp getOrderbookTs()
      Время формирования стакана на бирже.
       
      .google.protobuf.Timestamp orderbook_ts = 23;
      Specified by:
      getOrderbookTs in interface GetOrderBookResponseOrBuilder
      Returns:
      The orderbookTs.
    • getOrderbookTsOrBuilder

      public com.google.protobuf.TimestampOrBuilder getOrderbookTsOrBuilder()
      Время формирования стакана на бирже.
       
      .google.protobuf.Timestamp orderbook_ts = 23;
      Specified by:
      getOrderbookTsOrBuilder in interface GetOrderBookResponseOrBuilder
    • getInstrumentUid

      public String getInstrumentUid()
      Uid инструмента
       
      string instrument_uid = 9;
      Specified by:
      getInstrumentUid in interface GetOrderBookResponseOrBuilder
      Returns:
      The instrumentUid.
    • getInstrumentUidBytes

      public com.google.protobuf.ByteString getInstrumentUidBytes()
      Uid инструмента
       
      string instrument_uid = 9;
      Specified by:
      getInstrumentUidBytes in interface GetOrderBookResponseOrBuilder
      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 GetOrderBookResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static GetOrderBookResponse.Builder newBuilder()
    • newBuilder

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

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

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

      public static GetOrderBookResponse getDefaultInstance()
    • parser

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

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