Enum SubscriptionStatus

java.lang.Object
java.lang.Enum<SubscriptionStatus>
ru.tinkoff.piapi.contract.v1.SubscriptionStatus
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<SubscriptionStatus>

public enum SubscriptionStatus extends Enum<SubscriptionStatus> implements com.google.protobuf.ProtocolMessageEnum
Результат подписки.
 
Protobuf enum tinkoff.public.invest.api.contract.v1.SubscriptionStatus
  • Enum Constant Details

    • SUBSCRIPTION_STATUS_UNSPECIFIED

      public static final SubscriptionStatus SUBSCRIPTION_STATUS_UNSPECIFIED
      Статус подписки не определён.
       
      SUBSCRIPTION_STATUS_UNSPECIFIED = 0;
    • SUBSCRIPTION_STATUS_SUCCESS

      public static final SubscriptionStatus SUBSCRIPTION_STATUS_SUCCESS
      Успешно.
       
      SUBSCRIPTION_STATUS_SUCCESS = 1;
    • SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND

      public static final SubscriptionStatus SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND
      Инструмент не найден.
       
      SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND = 2;
    • SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID

      public static final SubscriptionStatus SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID
      Некорректный статус подписки, список возможных значений: [SubscriptionAction](https://tinkoff.github.io/investAPI/marketdata#subscriptionaction).
       
      SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID = 3;
    • SUBSCRIPTION_STATUS_DEPTH_IS_INVALID

      public static final SubscriptionStatus SUBSCRIPTION_STATUS_DEPTH_IS_INVALID
      Некорректная глубина стакана, доступные значения: 1, 10, 20, 30, 40, 50.
       
      SUBSCRIPTION_STATUS_DEPTH_IS_INVALID = 4;
    • SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID

      public static final SubscriptionStatus SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID
      Некорректный интервал свечей, список возможных значений: [SubscriptionInterval](https://tinkoff.github.io/investAPI/marketdata#subscriptioninterval).
       
      SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID = 5;
    • SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED

      public static final SubscriptionStatus SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED
      Превышен лимит на общее количество подписок в рамках стрима, подробнее: [Лимитная политика](https://tinkoff.github.io/investAPI/limits/).
       
      SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED = 6;
    • SUBSCRIPTION_STATUS_INTERNAL_ERROR

      public static final SubscriptionStatus SUBSCRIPTION_STATUS_INTERNAL_ERROR
      Внутренняя ошибка сервиса.
       
      SUBSCRIPTION_STATUS_INTERNAL_ERROR = 7;
    • SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS

      public static final SubscriptionStatus SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS
      Превышен лимит на количество запросов на подписки в течение установленного отрезка времени
       
      SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS = 8;
    • UNRECOGNIZED

      public static final SubscriptionStatus UNRECOGNIZED
  • Field Details

    • SUBSCRIPTION_STATUS_UNSPECIFIED_VALUE

      public static final int SUBSCRIPTION_STATUS_UNSPECIFIED_VALUE
      Статус подписки не определён.
       
      SUBSCRIPTION_STATUS_UNSPECIFIED = 0;
      See Also:
    • SUBSCRIPTION_STATUS_SUCCESS_VALUE

      public static final int SUBSCRIPTION_STATUS_SUCCESS_VALUE
      Успешно.
       
      SUBSCRIPTION_STATUS_SUCCESS = 1;
      See Also:
    • SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND_VALUE

      public static final int SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND_VALUE
      Инструмент не найден.
       
      SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND = 2;
      See Also:
    • SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID_VALUE

      public static final int SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID_VALUE
      Некорректный статус подписки, список возможных значений: [SubscriptionAction](https://tinkoff.github.io/investAPI/marketdata#subscriptionaction).
       
      SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID = 3;
      See Also:
    • SUBSCRIPTION_STATUS_DEPTH_IS_INVALID_VALUE

      public static final int SUBSCRIPTION_STATUS_DEPTH_IS_INVALID_VALUE
      Некорректная глубина стакана, доступные значения: 1, 10, 20, 30, 40, 50.
       
      SUBSCRIPTION_STATUS_DEPTH_IS_INVALID = 4;
      See Also:
    • SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID_VALUE

      public static final int SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID_VALUE
      Некорректный интервал свечей, список возможных значений: [SubscriptionInterval](https://tinkoff.github.io/investAPI/marketdata#subscriptioninterval).
       
      SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID = 5;
      See Also:
    • SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED_VALUE

      public static final int SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED_VALUE
      Превышен лимит на общее количество подписок в рамках стрима, подробнее: [Лимитная политика](https://tinkoff.github.io/investAPI/limits/).
       
      SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED = 6;
      See Also:
    • SUBSCRIPTION_STATUS_INTERNAL_ERROR_VALUE

      public static final int SUBSCRIPTION_STATUS_INTERNAL_ERROR_VALUE
      Внутренняя ошибка сервиса.
       
      SUBSCRIPTION_STATUS_INTERNAL_ERROR = 7;
      See Also:
    • SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS_VALUE

      public static final int SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS_VALUE
      Превышен лимит на количество запросов на подписки в течение установленного отрезка времени
       
      SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS = 8;
      See Also:
  • Method Details

    • values

      public static SubscriptionStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SubscriptionStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static SubscriptionStatus valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static SubscriptionStatus forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<SubscriptionStatus> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static SubscriptionStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null