@woodger/t-invest-node-sdk 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/NOTICE +2 -2
- package/dist/bootstrap/generated-exports.d.ts +2 -2
- package/dist/bootstrap/generated-exports.js +11 -9
- package/dist/generated/instruments.d.ts +16 -0
- package/dist/generated/instruments.js +159 -2
- package/dist/generated/marketdata.d.ts +22 -1
- package/dist/generated/marketdata.js +227 -10
- package/dist/generated/operations.d.ts +4 -0
- package/dist/generated/operations.js +45 -0
- package/dist/generated/users.d.ts +8 -0
- package/dist/generated/users.js +28 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
## [Не выпущено]
|
|
15
15
|
|
|
16
|
+
## [0.5.6] - 2026-10-02
|
|
17
|
+
|
|
18
|
+
### Изменено
|
|
19
|
+
|
|
20
|
+
- T-Invest proto-контракты обновлены с 1.49 до 1.51 (`798f880d8010ef4fffe74d0f63d7e5a0d57f23f7`), generated TypeScript перегенерирован. Добавлены рейтинги облигаций, валюта цен и статистика рыночных данных, вариационная маржа портфеля и четыре типа счетов. Новые сообщения `Rating` и `MarketValueStatistic` доступны через корневые exports SDK. Новые поля доступны в SDK DTO; вариационная маржа также передаётся в `portfolioStream` как в raw-выводе, так и в payload JSONL envelope. Схемы нормализованных unary-отчётов CLI и RPC сохранены.
|
|
21
|
+
- В `GetTechAnalysisRequest` добавлен optional `instrumentId`; `instrumentUid` стал optional и имеет тип `string | undefined`. Новые поля generated DTO имеют defaults, заданные proto-контрактами; Consumer-ам, которые создают полные DTO вручную, нужно обновить object literals или использовать `fromPartial()`.
|
|
22
|
+
|
|
16
23
|
## [0.5.5] - 2026-10-02
|
|
17
24
|
|
|
18
25
|
### Изменено
|
package/NOTICE
CHANGED
|
@@ -7,12 +7,12 @@ MIT License в [`LICENSE`](./LICENSE) применяется к исходном
|
|
|
7
7
|
## T-Invest API contracts
|
|
8
8
|
|
|
9
9
|
Пакет содержит JavaScript-код и TypeScript declarations, сгенерированные из
|
|
10
|
-
официальных proto-контрактов T-Invest API версии 1.
|
|
10
|
+
официальных proto-контрактов T-Invest API версии 1.51. Исходный snapshot
|
|
11
11
|
зафиксирован в
|
|
12
12
|
[`contracts/upstream.json`](https://github.com/woodger/t-invest-node-sdk/blob/main/contracts/upstream.json).
|
|
13
13
|
|
|
14
14
|
Официальный артефакт
|
|
15
|
-
[`ru.tinkoff.piapi:java-sdk-grpc-contract:1.
|
|
15
|
+
[`ru.tinkoff.piapi:java-sdk-grpc-contract:1.51`](https://central.sonatype.com/artifact/ru.tinkoff.piapi/java-sdk-grpc-contract/1.51)
|
|
16
16
|
содержит тот же snapshot контрактов и опубликован на условиях Apache License
|
|
17
17
|
2.0. Сгенерированные из этих контрактов файлы `dist/generated/*.js` и
|
|
18
18
|
`dist/generated/*.d.ts` распространяются с сохранением этих условий. Полный
|
|
@@ -11,9 +11,9 @@ export { Timestamp } from '../generated/google/protobuf/timestamp';
|
|
|
11
11
|
export { protobufPackage, Edition, editionFromJSON, editionToJSON, FileDescriptorSet, FileDescriptorProto, DescriptorProto, DescriptorProto_ExtensionRange, DescriptorProto_ReservedRange, ExtensionRangeOptions, ExtensionRangeOptions_VerificationState, extensionRangeOptions_VerificationStateFromJSON, extensionRangeOptions_VerificationStateToJSON, ExtensionRangeOptions_Declaration, FieldDescriptorProto, FieldDescriptorProto_Type, fieldDescriptorProto_TypeFromJSON, fieldDescriptorProto_TypeToJSON, FieldDescriptorProto_Label, fieldDescriptorProto_LabelFromJSON, fieldDescriptorProto_LabelToJSON, OneofDescriptorProto, EnumDescriptorProto, EnumDescriptorProto_EnumReservedRange, EnumValueDescriptorProto, ServiceDescriptorProto, MethodDescriptorProto, FileOptions, FileOptions_OptimizeMode, fileOptions_OptimizeModeFromJSON, fileOptions_OptimizeModeToJSON, MessageOptions, FieldOptions, FieldOptions_CType, fieldOptions_CTypeFromJSON, fieldOptions_CTypeToJSON, FieldOptions_JSType, fieldOptions_JSTypeFromJSON, fieldOptions_JSTypeToJSON, FieldOptions_OptionRetention, fieldOptions_OptionRetentionFromJSON, fieldOptions_OptionRetentionToJSON, FieldOptions_OptionTargetType, fieldOptions_OptionTargetTypeFromJSON, fieldOptions_OptionTargetTypeToJSON, FieldOptions_EditionDefault, FieldOptions_FeatureSupport, OneofOptions, EnumOptions, EnumValueOptions, ServiceOptions, MethodOptions, MethodOptions_IdempotencyLevel, methodOptions_IdempotencyLevelFromJSON, methodOptions_IdempotencyLevelToJSON, UninterpretedOption, UninterpretedOption_NamePart, FeatureSet, FeatureSet_FieldPresence, featureSet_FieldPresenceFromJSON, featureSet_FieldPresenceToJSON, FeatureSet_EnumType, featureSet_EnumTypeFromJSON, featureSet_EnumTypeToJSON, FeatureSet_RepeatedFieldEncoding, featureSet_RepeatedFieldEncodingFromJSON, featureSet_RepeatedFieldEncodingToJSON, FeatureSet_Utf8Validation, featureSet_Utf8ValidationFromJSON, featureSet_Utf8ValidationToJSON, FeatureSet_MessageEncoding, featureSet_MessageEncodingFromJSON, featureSet_MessageEncodingToJSON, FeatureSet_JsonFormat, featureSet_JsonFormatFromJSON, featureSet_JsonFormatToJSON, FeatureSetDefaults, FeatureSetDefaults_FeatureSetEditionDefault, SourceCodeInfo, SourceCodeInfo_Location, GeneratedCodeInfo, GeneratedCodeInfo_Annotation, GeneratedCodeInfo_Annotation_Semantic, generatedCodeInfo_Annotation_SemanticFromJSON, generatedCodeInfo_Annotation_SemanticToJSON } from '../generated/google/protobuf/descriptor';
|
|
12
12
|
export { InstrumentType, instrumentTypeFromJSON, instrumentTypeToJSON, InstrumentStatus, instrumentStatusFromJSON, instrumentStatusToJSON, SecurityTradingStatus, securityTradingStatusFromJSON, securityTradingStatusToJSON, PriceType, priceTypeFromJSON, priceTypeToJSON, RealExchange, realExchangeFromJSON, realExchangeToJSON, MoneyValue, Quotation, Ping } from '../generated/common';
|
|
13
13
|
export type { DeepPartial, MessageFns } from '../generated/common';
|
|
14
|
-
export { CouponType, couponTypeFromJSON, couponTypeToJSON, OptionDirection, optionDirectionFromJSON, optionDirectionToJSON, OptionPaymentType, optionPaymentTypeFromJSON, optionPaymentTypeToJSON, OptionStyle, optionStyleFromJSON, optionStyleToJSON, OptionSettlementType, optionSettlementTypeFromJSON, optionSettlementTypeToJSON, InstrumentIdType, instrumentIdTypeFromJSON, instrumentIdTypeToJSON, ShareType, shareTypeFromJSON, shareTypeToJSON, AssetType, assetTypeFromJSON, assetTypeToJSON, StructuredProductType, structuredProductTypeFromJSON, structuredProductTypeToJSON, EditFavoritesActionType, editFavoritesActionTypeFromJSON, editFavoritesActionTypeToJSON, RiskLevel, riskLevelFromJSON, riskLevelToJSON, Recommendation, recommendationFromJSON, recommendationToJSON, BondType, bondTypeFromJSON, bondTypeToJSON, InstrumentExchangeType, instrumentExchangeTypeFromJSON, instrumentExchangeTypeToJSON, GetBondEventsRequest_EventType, getBondEventsRequest_EventTypeFromJSON, getBondEventsRequest_EventTypeToJSON, StructuredNote_LogicPortfolio, structuredNote_LogicPortfolioFromJSON, structuredNote_LogicPortfolioToJSON, StructuredNote_ObservationPrinciple, structuredNote_ObservationPrincipleFromJSON, structuredNote_ObservationPrincipleToJSON, StructuredNote_YieldType, structuredNote_YieldTypeFromJSON, structuredNote_YieldTypeToJSON, GetAssetReportsResponse_AssetReportPeriodType, getAssetReportsResponse_AssetReportPeriodTypeFromJSON, getAssetReportsResponse_AssetReportPeriodTypeToJSON, GetInsiderDealsResponse_TradeDirection, getInsiderDealsResponse_TradeDirectionFromJSON, getInsiderDealsResponse_TradeDirectionToJSON, TradingSchedulesRequest, TradingSchedulesResponse, TradingSchedule, TradingDay, InstrumentRequest, InstrumentsRequest, FilterOptionsRequest, BondResponse, BondsResponse, GetBondCouponsRequest, GetBondCouponsResponse, GetBondEventsRequest, GetBondEventsResponse, Coupon, CurrencyResponse, CurrenciesResponse, DfaResponse, DfasRequest, DfasResponse, EtfResponse, EtfsResponse, FutureResponse, FuturesResponse, IndicativesRequest, IndicativesResponse, OptionResponse, OptionsResponse, Option, ShareResponse, SharesResponse, Bond, Currency, Etf, Future, Share, GetAccruedInterestsRequest, GetAccruedInterestsResponse, AccruedInterest, GetFuturesMarginRequest, GetFuturesMarginResponse, InstrumentResponse, Instrument, GetDividendsRequest, GetDividendsResponse, Dividend, AssetRequest, AssetResponse, AssetsRequest, AssetsResponse, AssetFull, Asset, AssetCurrency, AssetSecurity, AssetShare, AssetBond, AssetStructuredProduct, AssetEtf, AssetClearingCertificate, Brand, AssetInstrument, InstrumentLink, GetFavoritesRequest, GetFavoritesResponse, FavoriteInstrument, CreateFavoriteGroupRequest, CreateFavoriteGroupResponse, DeleteFavoriteGroupRequest, DeleteFavoriteGroupResponse, GetFavoriteGroupsRequest, GetFavoriteGroupsResponse, EditFavoritesRequest, EditFavoritesRequestInstrument, EditFavoritesResponse, GetCountriesRequest, GetCountriesResponse, CountryResponse, FindInstrumentRequest, FindInstrumentResponse, InstrumentShort, GetBrandsRequest, GetBrandRequest, GetBrandsResponse, GetAssetFundamentalsRequest, GetAssetFundamentalsResponse, GetAssetReportsRequest, GetAssetReportsResponse, GetConsensusForecastsRequest, GetConsensusForecastsResponse, GetForecastRequest, GetForecastResponse, RiskRatesRequest, RiskRatesResponse, GetInsiderDealsRequest, GetInsiderDealsResponse, StructuredNoteResponse, StructuredNotesResponse, NewsRequest, NewsResponse, InstrumentsServiceDefinition } from '../generated/instruments';
|
|
14
|
+
export { CouponType, couponTypeFromJSON, couponTypeToJSON, OptionDirection, optionDirectionFromJSON, optionDirectionToJSON, OptionPaymentType, optionPaymentTypeFromJSON, optionPaymentTypeToJSON, OptionStyle, optionStyleFromJSON, optionStyleToJSON, OptionSettlementType, optionSettlementTypeFromJSON, optionSettlementTypeToJSON, InstrumentIdType, instrumentIdTypeFromJSON, instrumentIdTypeToJSON, ShareType, shareTypeFromJSON, shareTypeToJSON, AssetType, assetTypeFromJSON, assetTypeToJSON, StructuredProductType, structuredProductTypeFromJSON, structuredProductTypeToJSON, EditFavoritesActionType, editFavoritesActionTypeFromJSON, editFavoritesActionTypeToJSON, RiskLevel, riskLevelFromJSON, riskLevelToJSON, Recommendation, recommendationFromJSON, recommendationToJSON, BondType, bondTypeFromJSON, bondTypeToJSON, InstrumentExchangeType, instrumentExchangeTypeFromJSON, instrumentExchangeTypeToJSON, GetBondEventsRequest_EventType, getBondEventsRequest_EventTypeFromJSON, getBondEventsRequest_EventTypeToJSON, StructuredNote_LogicPortfolio, structuredNote_LogicPortfolioFromJSON, structuredNote_LogicPortfolioToJSON, StructuredNote_ObservationPrinciple, structuredNote_ObservationPrincipleFromJSON, structuredNote_ObservationPrincipleToJSON, StructuredNote_YieldType, structuredNote_YieldTypeFromJSON, structuredNote_YieldTypeToJSON, GetAssetReportsResponse_AssetReportPeriodType, getAssetReportsResponse_AssetReportPeriodTypeFromJSON, getAssetReportsResponse_AssetReportPeriodTypeToJSON, GetInsiderDealsResponse_TradeDirection, getInsiderDealsResponse_TradeDirectionFromJSON, getInsiderDealsResponse_TradeDirectionToJSON, TradingSchedulesRequest, TradingSchedulesResponse, TradingSchedule, TradingDay, InstrumentRequest, InstrumentsRequest, FilterOptionsRequest, BondResponse, BondsResponse, GetBondCouponsRequest, GetBondCouponsResponse, GetBondEventsRequest, GetBondEventsResponse, Coupon, CurrencyResponse, CurrenciesResponse, DfaResponse, DfasRequest, DfasResponse, EtfResponse, EtfsResponse, FutureResponse, FuturesResponse, IndicativesRequest, IndicativesResponse, OptionResponse, OptionsResponse, Option, ShareResponse, SharesResponse, Bond, Rating, Currency, Etf, Future, Share, GetAccruedInterestsRequest, GetAccruedInterestsResponse, AccruedInterest, GetFuturesMarginRequest, GetFuturesMarginResponse, InstrumentResponse, Instrument, GetDividendsRequest, GetDividendsResponse, Dividend, AssetRequest, AssetResponse, AssetsRequest, AssetsResponse, AssetFull, Asset, AssetCurrency, AssetSecurity, AssetShare, AssetBond, AssetStructuredProduct, AssetEtf, AssetClearingCertificate, Brand, AssetInstrument, InstrumentLink, GetFavoritesRequest, GetFavoritesResponse, FavoriteInstrument, CreateFavoriteGroupRequest, CreateFavoriteGroupResponse, DeleteFavoriteGroupRequest, DeleteFavoriteGroupResponse, GetFavoriteGroupsRequest, GetFavoriteGroupsResponse, EditFavoritesRequest, EditFavoritesRequestInstrument, EditFavoritesResponse, GetCountriesRequest, GetCountriesResponse, CountryResponse, FindInstrumentRequest, FindInstrumentResponse, InstrumentShort, GetBrandsRequest, GetBrandRequest, GetBrandsResponse, GetAssetFundamentalsRequest, GetAssetFundamentalsResponse, GetAssetReportsRequest, GetAssetReportsResponse, GetConsensusForecastsRequest, GetConsensusForecastsResponse, GetForecastRequest, GetForecastResponse, RiskRatesRequest, RiskRatesResponse, GetInsiderDealsRequest, GetInsiderDealsResponse, StructuredNoteResponse, StructuredNotesResponse, NewsRequest, NewsResponse, InstrumentsServiceDefinition } from '../generated/instruments';
|
|
15
15
|
export type { InstrumentsServiceImplementation } from '../generated/instruments';
|
|
16
|
-
export { SubscriptionAction, subscriptionActionFromJSON, subscriptionActionToJSON, SubscriptionInterval, subscriptionIntervalFromJSON, subscriptionIntervalToJSON, SubscriptionStatus, subscriptionStatusFromJSON, subscriptionStatusToJSON, TradeDirection, tradeDirectionFromJSON, tradeDirectionToJSON, CandleInterval, candleIntervalFromJSON, candleIntervalToJSON, TradeSourceType, tradeSourceTypeFromJSON, tradeSourceTypeToJSON, CandleSource, candleSourceFromJSON, candleSourceToJSON, MarketValueType, marketValueTypeFromJSON, marketValueTypeToJSON, OrderBookType, orderBookTypeFromJSON, orderBookTypeToJSON, LastPriceType, lastPriceTypeFromJSON, lastPriceTypeToJSON, GetCandlesRequest_CandleSource, getCandlesRequest_CandleSourceFromJSON, getCandlesRequest_CandleSourceToJSON, GetTechAnalysisRequest_IndicatorInterval, getTechAnalysisRequest_IndicatorIntervalFromJSON, getTechAnalysisRequest_IndicatorIntervalToJSON, GetTechAnalysisRequest_TypeOfPrice, getTechAnalysisRequest_TypeOfPriceFromJSON, getTechAnalysisRequest_TypeOfPriceToJSON, GetTechAnalysisRequest_IndicatorType, getTechAnalysisRequest_IndicatorTypeFromJSON, getTechAnalysisRequest_IndicatorTypeToJSON, MarketDataRequest, MarketDataServerSideStreamRequest, MarketDataResponse, SubscribeCandlesRequest, CandleInstrument, SubscribeCandlesResponse, CandleSubscription, SubscribeOrderBookRequest, OrderBookInstrument, SubscribeOrderBookResponse, OrderBookSubscription, SubscribeTradesRequest, TradeInstrument, SubscribeTradesResponse, TradeSubscription, SubscribeInfoRequest, InfoInstrument, SubscribeInfoResponse, InfoSubscription, SubscribeLastPriceRequest, LastPriceInstrument, SubscribeLastPriceResponse, LastPriceSubscription, Candle, OrderBook, Order, Trade, TradingStatus, GetCandlesRequest, GetCandlesResponse, HistoricCandle, GetLastPricesRequest, GetLastPricesResponse, LastPrice, GetOrderBookRequest, GetOrderBookResponse, GetTradingStatusRequest, GetTradingStatusesRequest, GetTradingStatusesResponse, GetTradingStatusResponse, GetLastTradesRequest, GetLastTradesResponse, GetMySubscriptions, GetClosePricesRequest, InstrumentClosePriceRequest, GetClosePricesResponse, InstrumentClosePriceResponse, GetTechAnalysisRequest, GetTechAnalysisResponse, GetMarketValuesRequest, GetMarketValuesResponse, MarketDataServiceDefinition, MarketDataStreamServiceDefinition } from '../generated/marketdata';
|
|
16
|
+
export { SubscriptionAction, subscriptionActionFromJSON, subscriptionActionToJSON, SubscriptionInterval, subscriptionIntervalFromJSON, subscriptionIntervalToJSON, SubscriptionStatus, subscriptionStatusFromJSON, subscriptionStatusToJSON, TradeDirection, tradeDirectionFromJSON, tradeDirectionToJSON, CandleInterval, candleIntervalFromJSON, candleIntervalToJSON, TradeSourceType, tradeSourceTypeFromJSON, tradeSourceTypeToJSON, CandleSource, candleSourceFromJSON, candleSourceToJSON, MarketValueType, marketValueTypeFromJSON, marketValueTypeToJSON, OrderBookType, orderBookTypeFromJSON, orderBookTypeToJSON, LastPriceType, lastPriceTypeFromJSON, lastPriceTypeToJSON, GetCandlesRequest_CandleSource, getCandlesRequest_CandleSourceFromJSON, getCandlesRequest_CandleSourceToJSON, GetTechAnalysisRequest_IndicatorInterval, getTechAnalysisRequest_IndicatorIntervalFromJSON, getTechAnalysisRequest_IndicatorIntervalToJSON, GetTechAnalysisRequest_TypeOfPrice, getTechAnalysisRequest_TypeOfPriceFromJSON, getTechAnalysisRequest_TypeOfPriceToJSON, GetTechAnalysisRequest_IndicatorType, getTechAnalysisRequest_IndicatorTypeFromJSON, getTechAnalysisRequest_IndicatorTypeToJSON, MarketDataRequest, MarketDataServerSideStreamRequest, MarketDataResponse, SubscribeCandlesRequest, CandleInstrument, SubscribeCandlesResponse, CandleSubscription, SubscribeOrderBookRequest, OrderBookInstrument, SubscribeOrderBookResponse, OrderBookSubscription, SubscribeTradesRequest, TradeInstrument, SubscribeTradesResponse, TradeSubscription, SubscribeInfoRequest, InfoInstrument, SubscribeInfoResponse, InfoSubscription, SubscribeLastPriceRequest, LastPriceInstrument, SubscribeLastPriceResponse, LastPriceSubscription, Candle, OrderBook, Order, Trade, TradingStatus, GetCandlesRequest, GetCandlesResponse, HistoricCandle, GetLastPricesRequest, GetLastPricesResponse, LastPrice, GetOrderBookRequest, GetOrderBookResponse, GetTradingStatusRequest, GetTradingStatusesRequest, GetTradingStatusesResponse, GetTradingStatusResponse, GetLastTradesRequest, GetLastTradesResponse, GetMySubscriptions, GetClosePricesRequest, InstrumentClosePriceRequest, GetClosePricesResponse, InstrumentClosePriceResponse, GetTechAnalysisRequest, GetTechAnalysisResponse, GetMarketValuesRequest, GetMarketValuesResponse, MarketValueStatistic, MarketDataServiceDefinition, MarketDataStreamServiceDefinition } from '../generated/marketdata';
|
|
17
17
|
export type { MarketDataServiceImplementation, MarketDataStreamServiceImplementation } from '../generated/marketdata';
|
|
18
18
|
export { OperationState, operationStateFromJSON, operationStateToJSON, OperationType, operationTypeFromJSON, operationTypeToJSON, PortfolioSubscriptionStatus, portfolioSubscriptionStatusFromJSON, portfolioSubscriptionStatusToJSON, PositionsAccountSubscriptionStatus, positionsAccountSubscriptionStatusFromJSON, positionsAccountSubscriptionStatusToJSON, OperationsAccountSubscriptionStatus, operationsAccountSubscriptionStatusFromJSON, operationsAccountSubscriptionStatusToJSON, PortfolioRequest_CurrencyRequest, portfolioRequest_CurrencyRequestFromJSON, portfolioRequest_CurrencyRequestToJSON, OperationsRequest, OperationsResponse, Operation, OperationTrade, PortfolioRequest, PortfolioResponse, PositionsRequest, PositionsResponse, WithdrawLimitsRequest, WithdrawLimitsResponse, PortfolioPosition, VirtualPortfolioPosition, PositionsSecurities, PositionsFutures, PositionsOptions, BrokerReportRequest, BrokerReportResponse, GenerateBrokerReportRequest, GenerateBrokerReportResponse, GetBrokerReportRequest, GetBrokerReportResponse, BrokerReport, GetDividendsForeignIssuerRequest, GetDividendsForeignIssuerResponse, GenerateDividendsForeignIssuerReportRequest, GetDividendsForeignIssuerReportRequest, GenerateDividendsForeignIssuerReportResponse, GetDividendsForeignIssuerReportResponse, DividendsForeignIssuerReport, PortfolioStreamRequest, PortfolioStreamResponse, PortfolioSubscriptionResult, AccountSubscriptionStatus, GetOperationsByCursorRequest, GetOperationsByCursorResponse, OperationItem, OperationItemTrades, OperationItemTrade, PositionsStreamRequest, PositionsStreamResponse, PositionsSubscriptionResult, PositionsSubscriptionStatus, PositionData, PositionsMoney, OperationsStreamRequest, OperationsStreamResponse, OperationsServiceDefinition, OperationsStreamServiceDefinition } from '../generated/operations';
|
|
19
19
|
export type { OperationsServiceImplementation, OperationsStreamServiceImplementation } from '../generated/operations';
|
|
@@ -12,15 +12,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_FeatureSupport = exports.FieldOptions_EditionDefault = exports.fieldOptions_OptionTargetTypeToJSON = exports.fieldOptions_OptionTargetTypeFromJSON = exports.FieldOptions_OptionTargetType = exports.fieldOptions_OptionRetentionToJSON = exports.fieldOptions_OptionRetentionFromJSON = exports.FieldOptions_OptionRetention = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CType = exports.FieldOptions = exports.MessageOptions = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeMode = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.fieldDescriptorProto_LabelToJSON = exports.fieldDescriptorProto_LabelFromJSON = exports.FieldDescriptorProto_Label = exports.fieldDescriptorProto_TypeToJSON = exports.fieldDescriptorProto_TypeFromJSON = exports.FieldDescriptorProto_Type = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.extensionRangeOptions_VerificationStateToJSON = exports.extensionRangeOptions_VerificationStateFromJSON = exports.ExtensionRangeOptions_VerificationState = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.editionToJSON = exports.editionFromJSON = exports.Edition = exports.protobufPackage = exports.Timestamp = void 0;
|
|
13
13
|
exports.realExchangeFromJSON = exports.RealExchange = exports.priceTypeToJSON = exports.priceTypeFromJSON = exports.PriceType = exports.securityTradingStatusToJSON = exports.securityTradingStatusFromJSON = exports.SecurityTradingStatus = exports.instrumentStatusToJSON = exports.instrumentStatusFromJSON = exports.InstrumentStatus = exports.instrumentTypeToJSON = exports.instrumentTypeFromJSON = exports.InstrumentType = exports.generatedCodeInfo_Annotation_SemanticToJSON = exports.generatedCodeInfo_Annotation_SemanticFromJSON = exports.GeneratedCodeInfo_Annotation_Semantic = exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FeatureSetDefaults = exports.featureSet_JsonFormatToJSON = exports.featureSet_JsonFormatFromJSON = exports.FeatureSet_JsonFormat = exports.featureSet_MessageEncodingToJSON = exports.featureSet_MessageEncodingFromJSON = exports.FeatureSet_MessageEncoding = exports.featureSet_Utf8ValidationToJSON = exports.featureSet_Utf8ValidationFromJSON = exports.FeatureSet_Utf8Validation = exports.featureSet_RepeatedFieldEncodingToJSON = exports.featureSet_RepeatedFieldEncodingFromJSON = exports.FeatureSet_RepeatedFieldEncoding = exports.featureSet_EnumTypeToJSON = exports.featureSet_EnumTypeFromJSON = exports.FeatureSet_EnumType = exports.featureSet_FieldPresenceToJSON = exports.featureSet_FieldPresenceFromJSON = exports.FeatureSet_FieldPresence = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevel = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = void 0;
|
|
14
14
|
exports.StructuredNote_LogicPortfolio = exports.getBondEventsRequest_EventTypeToJSON = exports.getBondEventsRequest_EventTypeFromJSON = exports.GetBondEventsRequest_EventType = exports.instrumentExchangeTypeToJSON = exports.instrumentExchangeTypeFromJSON = exports.InstrumentExchangeType = exports.bondTypeToJSON = exports.bondTypeFromJSON = exports.BondType = exports.recommendationToJSON = exports.recommendationFromJSON = exports.Recommendation = exports.riskLevelToJSON = exports.riskLevelFromJSON = exports.RiskLevel = exports.editFavoritesActionTypeToJSON = exports.editFavoritesActionTypeFromJSON = exports.EditFavoritesActionType = exports.structuredProductTypeToJSON = exports.structuredProductTypeFromJSON = exports.StructuredProductType = exports.assetTypeToJSON = exports.assetTypeFromJSON = exports.AssetType = exports.shareTypeToJSON = exports.shareTypeFromJSON = exports.ShareType = exports.instrumentIdTypeToJSON = exports.instrumentIdTypeFromJSON = exports.InstrumentIdType = exports.optionSettlementTypeToJSON = exports.optionSettlementTypeFromJSON = exports.OptionSettlementType = exports.optionStyleToJSON = exports.optionStyleFromJSON = exports.OptionStyle = exports.optionPaymentTypeToJSON = exports.optionPaymentTypeFromJSON = exports.OptionPaymentType = exports.optionDirectionToJSON = exports.optionDirectionFromJSON = exports.OptionDirection = exports.couponTypeToJSON = exports.couponTypeFromJSON = exports.CouponType = exports.Ping = exports.Quotation = exports.MoneyValue = exports.realExchangeToJSON = void 0;
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.UsersServiceDefinition = exports.GetInfoResponse = exports.GetInfoRequest = exports.GetAccountValuesResponse = exports.GetAccountValuesRequest = exports.PayInResponse = void 0;
|
|
15
|
+
exports.Share = exports.Future = exports.Etf = exports.Currency = exports.Rating = exports.Bond = exports.SharesResponse = exports.ShareResponse = exports.Option = exports.OptionsResponse = exports.OptionResponse = exports.IndicativesResponse = exports.IndicativesRequest = exports.FuturesResponse = exports.FutureResponse = exports.EtfsResponse = exports.EtfResponse = exports.DfasResponse = exports.DfasRequest = exports.DfaResponse = exports.CurrenciesResponse = exports.CurrencyResponse = exports.Coupon = exports.GetBondEventsResponse = exports.GetBondEventsRequest = exports.GetBondCouponsResponse = exports.GetBondCouponsRequest = exports.BondsResponse = exports.BondResponse = exports.FilterOptionsRequest = exports.InstrumentsRequest = exports.InstrumentRequest = exports.TradingDay = exports.TradingSchedule = exports.TradingSchedulesResponse = exports.TradingSchedulesRequest = exports.getInsiderDealsResponse_TradeDirectionToJSON = exports.getInsiderDealsResponse_TradeDirectionFromJSON = exports.GetInsiderDealsResponse_TradeDirection = exports.getAssetReportsResponse_AssetReportPeriodTypeToJSON = exports.getAssetReportsResponse_AssetReportPeriodTypeFromJSON = exports.GetAssetReportsResponse_AssetReportPeriodType = exports.structuredNote_YieldTypeToJSON = exports.structuredNote_YieldTypeFromJSON = exports.StructuredNote_YieldType = exports.structuredNote_ObservationPrincipleToJSON = exports.structuredNote_ObservationPrincipleFromJSON = exports.StructuredNote_ObservationPrinciple = exports.structuredNote_LogicPortfolioToJSON = exports.structuredNote_LogicPortfolioFromJSON = void 0;
|
|
16
|
+
exports.GetAssetReportsRequest = exports.GetAssetFundamentalsResponse = exports.GetAssetFundamentalsRequest = exports.GetBrandsResponse = exports.GetBrandRequest = exports.GetBrandsRequest = exports.InstrumentShort = exports.FindInstrumentResponse = exports.FindInstrumentRequest = exports.CountryResponse = exports.GetCountriesResponse = exports.GetCountriesRequest = exports.EditFavoritesResponse = exports.EditFavoritesRequestInstrument = exports.EditFavoritesRequest = exports.GetFavoriteGroupsResponse = exports.GetFavoriteGroupsRequest = exports.DeleteFavoriteGroupResponse = exports.DeleteFavoriteGroupRequest = exports.CreateFavoriteGroupResponse = exports.CreateFavoriteGroupRequest = exports.FavoriteInstrument = exports.GetFavoritesResponse = exports.GetFavoritesRequest = exports.InstrumentLink = exports.AssetInstrument = exports.Brand = exports.AssetClearingCertificate = exports.AssetEtf = exports.AssetStructuredProduct = exports.AssetBond = exports.AssetShare = exports.AssetSecurity = exports.AssetCurrency = exports.Asset = exports.AssetFull = exports.AssetsResponse = exports.AssetsRequest = exports.AssetResponse = exports.AssetRequest = exports.Dividend = exports.GetDividendsResponse = exports.GetDividendsRequest = exports.Instrument = exports.InstrumentResponse = exports.GetFuturesMarginResponse = exports.GetFuturesMarginRequest = exports.AccruedInterest = exports.GetAccruedInterestsResponse = exports.GetAccruedInterestsRequest = void 0;
|
|
17
|
+
exports.getTechAnalysisRequest_IndicatorIntervalToJSON = exports.getTechAnalysisRequest_IndicatorIntervalFromJSON = exports.GetTechAnalysisRequest_IndicatorInterval = exports.getCandlesRequest_CandleSourceToJSON = exports.getCandlesRequest_CandleSourceFromJSON = exports.GetCandlesRequest_CandleSource = exports.lastPriceTypeToJSON = exports.lastPriceTypeFromJSON = exports.LastPriceType = exports.orderBookTypeToJSON = exports.orderBookTypeFromJSON = exports.OrderBookType = exports.marketValueTypeToJSON = exports.marketValueTypeFromJSON = exports.MarketValueType = exports.candleSourceToJSON = exports.candleSourceFromJSON = exports.CandleSource = exports.tradeSourceTypeToJSON = exports.tradeSourceTypeFromJSON = exports.TradeSourceType = exports.candleIntervalToJSON = exports.candleIntervalFromJSON = exports.CandleInterval = exports.tradeDirectionToJSON = exports.tradeDirectionFromJSON = exports.TradeDirection = exports.subscriptionStatusToJSON = exports.subscriptionStatusFromJSON = exports.SubscriptionStatus = exports.subscriptionIntervalToJSON = exports.subscriptionIntervalFromJSON = exports.SubscriptionInterval = exports.subscriptionActionToJSON = exports.subscriptionActionFromJSON = exports.SubscriptionAction = exports.InstrumentsServiceDefinition = exports.NewsResponse = exports.NewsRequest = exports.StructuredNotesResponse = exports.StructuredNoteResponse = exports.GetInsiderDealsResponse = exports.GetInsiderDealsRequest = exports.RiskRatesResponse = exports.RiskRatesRequest = exports.GetForecastResponse = exports.GetForecastRequest = exports.GetConsensusForecastsResponse = exports.GetConsensusForecastsRequest = exports.GetAssetReportsResponse = void 0;
|
|
18
|
+
exports.GetClosePricesRequest = exports.GetMySubscriptions = exports.GetLastTradesResponse = exports.GetLastTradesRequest = exports.GetTradingStatusResponse = exports.GetTradingStatusesResponse = exports.GetTradingStatusesRequest = exports.GetTradingStatusRequest = exports.GetOrderBookResponse = exports.GetOrderBookRequest = exports.LastPrice = exports.GetLastPricesResponse = exports.GetLastPricesRequest = exports.HistoricCandle = exports.GetCandlesResponse = exports.GetCandlesRequest = exports.TradingStatus = exports.Trade = exports.Order = exports.OrderBook = exports.Candle = exports.LastPriceSubscription = exports.SubscribeLastPriceResponse = exports.LastPriceInstrument = exports.SubscribeLastPriceRequest = exports.InfoSubscription = exports.SubscribeInfoResponse = exports.InfoInstrument = exports.SubscribeInfoRequest = exports.TradeSubscription = exports.SubscribeTradesResponse = exports.TradeInstrument = exports.SubscribeTradesRequest = exports.OrderBookSubscription = exports.SubscribeOrderBookResponse = exports.OrderBookInstrument = exports.SubscribeOrderBookRequest = exports.CandleSubscription = exports.SubscribeCandlesResponse = exports.CandleInstrument = exports.SubscribeCandlesRequest = exports.MarketDataResponse = exports.MarketDataServerSideStreamRequest = exports.MarketDataRequest = exports.getTechAnalysisRequest_IndicatorTypeToJSON = exports.getTechAnalysisRequest_IndicatorTypeFromJSON = exports.GetTechAnalysisRequest_IndicatorType = exports.getTechAnalysisRequest_TypeOfPriceToJSON = exports.getTechAnalysisRequest_TypeOfPriceFromJSON = exports.GetTechAnalysisRequest_TypeOfPrice = void 0;
|
|
19
|
+
exports.BrokerReport = exports.GetBrokerReportResponse = exports.GetBrokerReportRequest = exports.GenerateBrokerReportResponse = exports.GenerateBrokerReportRequest = exports.BrokerReportResponse = exports.BrokerReportRequest = exports.PositionsOptions = exports.PositionsFutures = exports.PositionsSecurities = exports.VirtualPortfolioPosition = exports.PortfolioPosition = exports.WithdrawLimitsResponse = exports.WithdrawLimitsRequest = exports.PositionsResponse = exports.PositionsRequest = exports.PortfolioResponse = exports.PortfolioRequest = exports.OperationTrade = exports.Operation = exports.OperationsResponse = exports.OperationsRequest = exports.portfolioRequest_CurrencyRequestToJSON = exports.portfolioRequest_CurrencyRequestFromJSON = exports.PortfolioRequest_CurrencyRequest = exports.operationsAccountSubscriptionStatusToJSON = exports.operationsAccountSubscriptionStatusFromJSON = exports.OperationsAccountSubscriptionStatus = exports.positionsAccountSubscriptionStatusToJSON = exports.positionsAccountSubscriptionStatusFromJSON = exports.PositionsAccountSubscriptionStatus = exports.portfolioSubscriptionStatusToJSON = exports.portfolioSubscriptionStatusFromJSON = exports.PortfolioSubscriptionStatus = exports.operationTypeToJSON = exports.operationTypeFromJSON = exports.OperationType = exports.operationStateToJSON = exports.operationStateFromJSON = exports.OperationState = exports.MarketDataStreamServiceDefinition = exports.MarketDataServiceDefinition = exports.MarketValueStatistic = exports.GetMarketValuesResponse = exports.GetMarketValuesRequest = exports.GetTechAnalysisResponse = exports.GetTechAnalysisRequest = exports.InstrumentClosePriceResponse = exports.GetClosePricesResponse = exports.InstrumentClosePriceRequest = void 0;
|
|
20
|
+
exports.OrderTrades = exports.TradesStreamResponse = exports.TradesStreamRequest = exports.orderStateStreamResponse_StatusCauseInfoToJSON = exports.orderStateStreamResponse_StatusCauseInfoFromJSON = exports.OrderStateStreamResponse_StatusCauseInfo = exports.orderStateStreamResponse_MarkerTypeToJSON = exports.orderStateStreamResponse_MarkerTypeFromJSON = exports.OrderStateStreamResponse_MarkerType = exports.orderExecutionReportStatusToJSON = exports.orderExecutionReportStatusFromJSON = exports.OrderExecutionReportStatus = exports.orderIdTypeToJSON = exports.orderIdTypeFromJSON = exports.OrderIdType = exports.timeInForceTypeToJSON = exports.timeInForceTypeFromJSON = exports.TimeInForceType = exports.orderTypeToJSON = exports.orderTypeFromJSON = exports.OrderType = exports.orderDirectionToJSON = exports.orderDirectionFromJSON = exports.OrderDirection = exports.OperationsStreamServiceDefinition = exports.OperationsServiceDefinition = exports.OperationsStreamResponse = exports.OperationsStreamRequest = exports.PositionsMoney = exports.PositionData = exports.PositionsSubscriptionStatus = exports.PositionsSubscriptionResult = exports.PositionsStreamResponse = exports.PositionsStreamRequest = exports.OperationItemTrade = exports.OperationItemTrades = exports.OperationItem = exports.GetOperationsByCursorResponse = exports.GetOperationsByCursorRequest = exports.AccountSubscriptionStatus = exports.PortfolioSubscriptionResult = exports.PortfolioStreamResponse = exports.PortfolioStreamRequest = exports.DividendsForeignIssuerReport = exports.GetDividendsForeignIssuerReportResponse = exports.GenerateDividendsForeignIssuerReportResponse = exports.GetDividendsForeignIssuerReportRequest = exports.GenerateDividendsForeignIssuerReportRequest = exports.GetDividendsForeignIssuerResponse = exports.GetDividendsForeignIssuerRequest = void 0;
|
|
21
|
+
exports.stopOrderExpirationTypeToJSON = exports.stopOrderExpirationTypeFromJSON = exports.StopOrderExpirationType = exports.stopOrderDirectionToJSON = exports.stopOrderDirectionFromJSON = exports.StopOrderDirection = exports.SignalServiceDefinition = exports.Signal = exports.GetSignalsResponse = exports.GetSignalsRequest = exports.Strategy = exports.GetStrategiesResponse = exports.GetStrategiesRequest = exports.signalStateToJSON = exports.signalStateFromJSON = exports.SignalState = exports.signalDirectionToJSON = exports.signalDirectionFromJSON = exports.SignalDirection = exports.strategyTypeToJSON = exports.strategyTypeFromJSON = exports.StrategyType = exports.SandboxServiceDefinition = exports.SandboxPayInResponse = exports.SandboxPayInRequest = exports.CloseSandboxAccountResponse = exports.CloseSandboxAccountRequest = exports.OpenSandboxAccountResponse = exports.OpenSandboxAccountRequest = exports.OrdersStreamServiceDefinition = exports.OrdersServiceDefinition = exports.OrderStateStreamResponse = exports.OrderStateStreamRequest = exports.ReplaceOrderRequest = exports.OrderStage = exports.OrderState = exports.GetOrderPriceResponse = exports.GetOrderPriceRequest = exports.GetMaxLotsResponse = exports.GetMaxLotsRequest = exports.GetOrdersResponse = exports.GetOrdersRequest = exports.GetOrderStateRequest = exports.CancelOrderResponse = exports.CancelOrderRequest = exports.PostOrderAsyncResponse = exports.PostOrderAsyncRequest = exports.PostOrderResponse = exports.PostOrderRequest = exports.OrderTrade = void 0;
|
|
22
|
+
exports.CurrencyTransferRequest = exports.GetBankAccountsResponse = exports.GetBankAccountsRequest = exports.StreamLimit = exports.UnaryLimit = exports.GetUserTariffResponse = exports.GetUserTariffRequest = exports.GetMarginAttributesResponse = exports.GetMarginAttributesRequest = exports.Account = exports.GetAccountsResponse = exports.GetAccountsRequest = exports.accountValueToJSON = exports.accountValueFromJSON = exports.AccountValue = exports.accessLevelToJSON = exports.accessLevelFromJSON = exports.AccessLevel = exports.accountStatusToJSON = exports.accountStatusFromJSON = exports.AccountStatus = exports.accountTypeToJSON = exports.accountTypeFromJSON = exports.AccountType = exports.StopOrdersServiceDefinition = exports.StopOrder = exports.CancelStopOrderResponse = exports.CancelStopOrderRequest = exports.GetStopOrdersResponse = exports.GetStopOrdersRequest = exports.PostStopOrderResponse = exports.PostStopOrderRequest = exports.trailingStopStatusToJSON = exports.trailingStopStatusFromJSON = exports.TrailingStopStatus = exports.trailingValueTypeToJSON = exports.trailingValueTypeFromJSON = exports.TrailingValueType = exports.takeProfitTypeToJSON = exports.takeProfitTypeFromJSON = exports.TakeProfitType = exports.exchangeOrderTypeToJSON = exports.exchangeOrderTypeFromJSON = exports.ExchangeOrderType = exports.stopOrderStatusOptionToJSON = exports.stopOrderStatusOptionFromJSON = exports.StopOrderStatusOption = exports.stopOrderTypeToJSON = exports.stopOrderTypeFromJSON = exports.StopOrderType = void 0;
|
|
23
|
+
exports.UsersServiceDefinition = exports.GetInfoResponse = exports.GetInfoRequest = exports.GetAccountValuesResponse = exports.GetAccountValuesRequest = exports.PayInResponse = exports.PayInRequest = exports.CurrencyTransferResponse = void 0;
|
|
24
24
|
var timestamp_1 = require("../generated/google/protobuf/timestamp");
|
|
25
25
|
Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return timestamp_1.Timestamp; } });
|
|
26
26
|
var descriptor_1 = require("../generated/google/protobuf/descriptor");
|
|
@@ -220,6 +220,7 @@ Object.defineProperty(exports, "Option", { enumerable: true, get: function () {
|
|
|
220
220
|
Object.defineProperty(exports, "ShareResponse", { enumerable: true, get: function () { return instruments_1.ShareResponse; } });
|
|
221
221
|
Object.defineProperty(exports, "SharesResponse", { enumerable: true, get: function () { return instruments_1.SharesResponse; } });
|
|
222
222
|
Object.defineProperty(exports, "Bond", { enumerable: true, get: function () { return instruments_1.Bond; } });
|
|
223
|
+
Object.defineProperty(exports, "Rating", { enumerable: true, get: function () { return instruments_1.Rating; } });
|
|
223
224
|
Object.defineProperty(exports, "Currency", { enumerable: true, get: function () { return instruments_1.Currency; } });
|
|
224
225
|
Object.defineProperty(exports, "Etf", { enumerable: true, get: function () { return instruments_1.Etf; } });
|
|
225
226
|
Object.defineProperty(exports, "Future", { enumerable: true, get: function () { return instruments_1.Future; } });
|
|
@@ -382,6 +383,7 @@ Object.defineProperty(exports, "GetTechAnalysisRequest", { enumerable: true, get
|
|
|
382
383
|
Object.defineProperty(exports, "GetTechAnalysisResponse", { enumerable: true, get: function () { return marketdata_1.GetTechAnalysisResponse; } });
|
|
383
384
|
Object.defineProperty(exports, "GetMarketValuesRequest", { enumerable: true, get: function () { return marketdata_1.GetMarketValuesRequest; } });
|
|
384
385
|
Object.defineProperty(exports, "GetMarketValuesResponse", { enumerable: true, get: function () { return marketdata_1.GetMarketValuesResponse; } });
|
|
386
|
+
Object.defineProperty(exports, "MarketValueStatistic", { enumerable: true, get: function () { return marketdata_1.MarketValueStatistic; } });
|
|
385
387
|
Object.defineProperty(exports, "MarketDataServiceDefinition", { enumerable: true, get: function () { return marketdata_1.MarketDataServiceDefinition; } });
|
|
386
388
|
Object.defineProperty(exports, "MarketDataStreamServiceDefinition", { enumerable: true, get: function () { return marketdata_1.MarketDataStreamServiceDefinition; } });
|
|
387
389
|
var operations_1 = require("../generated/operations");
|
|
@@ -752,6 +752,21 @@ export interface Bond {
|
|
|
752
752
|
dlongClient: Quotation | undefined;
|
|
753
753
|
/** Ставка риска в шорт с учетом текущего уровня риска портфеля клиента. [Подробнее про ставки риска](https://www.tbank.ru/invest/help/brokerage/account/margin/about/#q5). */
|
|
754
754
|
dshortClient: Quotation | undefined;
|
|
755
|
+
/** Массив рейтингов. */
|
|
756
|
+
ratings: Rating[];
|
|
757
|
+
}
|
|
758
|
+
/** Объект передачи информации о рейтинге. */
|
|
759
|
+
export interface Rating {
|
|
760
|
+
/** Название рейтингового агентства. */
|
|
761
|
+
agencyName: string;
|
|
762
|
+
/** Рейтинг. */
|
|
763
|
+
ratingLevel: string;
|
|
764
|
+
/** Дата выставления рейтинга. */
|
|
765
|
+
ratingDate: Date | undefined;
|
|
766
|
+
/** Прогноз. */
|
|
767
|
+
forecast: string;
|
|
768
|
+
/** Признак нахождения под наблюдением. */
|
|
769
|
+
isUnderWatch: boolean;
|
|
755
770
|
}
|
|
756
771
|
/** Объект передачи информации о валюте. */
|
|
757
772
|
export interface Currency {
|
|
@@ -2533,6 +2548,7 @@ export declare const Table: MessageFns<Table>;
|
|
|
2533
2548
|
export declare const NewsInstrument: MessageFns<NewsInstrument>;
|
|
2534
2549
|
export declare const NewsInstrumentInfo: MessageFns<NewsInstrumentInfo>;
|
|
2535
2550
|
export declare const Bond: MessageFns<Bond>;
|
|
2551
|
+
export declare const Rating: MessageFns<Rating>;
|
|
2536
2552
|
export declare const Currency: MessageFns<Currency>;
|
|
2537
2553
|
export declare const Etf: MessageFns<Etf>;
|
|
2538
2554
|
export declare const Future: MessageFns<Future>;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
// source: instruments.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.StructuredNotesResponse = exports.StructuredNoteResponse = exports.SharesResponse = exports.ShareResponse = exports.Option = exports.OptionsResponse = exports.OptionResponse = exports.FuturesResponse = exports.FutureResponse = exports.EtfsResponse = exports.EtfResponse = exports.CurrenciesResponse = exports.CurrencyResponse = exports.Coupon = exports.GetBondEventsResponse_BondEvent = exports.GetBondEventsResponse = exports.GetBondEventsRequest = exports.GetBondCouponsResponse = exports.GetBondCouponsRequest = exports.BondsResponse = exports.BondResponse = exports.NewsRequest = exports.FilterOptionsRequest = exports.InstrumentsRequest = exports.InstrumentRequest = exports.TradingDay = exports.TradingSchedule = exports.TradingSchedulesResponse = exports.TradingSchedulesRequest = exports.GetInsiderDealsResponse_TradeDirection = exports.GetAssetReportsResponse_AssetReportPeriodType = exports.StructuredNote_YieldType = exports.StructuredNote_ObservationPrinciple = exports.StructuredNote_LogicPortfolio = exports.GetBondEventsRequest_EventType = exports.InstrumentExchangeType = exports.BondType = exports.RiskLevel = exports.Recommendation = exports.EditFavoritesActionType = exports.StructuredProductType = exports.AssetType = exports.ShareType = exports.InstrumentIdType = exports.OptionSettlementType = exports.OptionStyle = exports.OptionPaymentType = exports.OptionDirection = exports.CouponType = exports.protobufPackage = void 0;
|
|
9
|
-
exports.
|
|
10
|
-
exports.InstrumentsServiceDefinition = exports.DfasResponse = exports.DfaResponse_ForecastYield = exports.DfaResponse_BasicAsset = exports.DfaResponse = exports.DfasRequest = exports.GetInsiderDealsResponse_InsiderDeal = exports.GetInsiderDealsResponse = exports.GetInsiderDealsRequest = exports.TradingInterval_TimeInterval = exports.TradingInterval = exports.RiskRatesResponse_RiskRate = exports.RiskRatesResponse_RiskRateResult = exports.RiskRatesResponse = exports.RiskRatesRequest = exports.GetForecastResponse_ConsensusItem = exports.GetForecastResponse_TargetItem = exports.GetForecastResponse = exports.GetForecastRequest = exports.GetConsensusForecastsResponse_ConsensusForecastsItem = exports.GetConsensusForecastsResponse = exports.GetConsensusForecastsRequest = exports.GetAssetReportsResponse_GetAssetReportsEvent = exports.GetAssetReportsResponse = exports.GetAssetReportsRequest = exports.GetAssetFundamentalsResponse_StatisticResponse = exports.GetAssetFundamentalsResponse = exports.GetAssetFundamentalsRequest = exports.GetBrandsResponse = exports.GetBrandRequest = exports.GetBrandsRequest = exports.InstrumentShort = exports.FindInstrumentResponse = exports.FindInstrumentRequest = exports.CountryResponse = exports.IndexInstrument = exports.IndicativeResponse = exports.IndicativesResponse = exports.IndicativesRequest = exports.GetCountriesResponse = exports.GetCountriesRequest = exports.GetFavoriteGroupsResponse_FavoriteGroup = exports.GetFavoriteGroupsResponse = void 0;
|
|
9
|
+
exports.DeleteFavoriteGroupResponse = exports.DeleteFavoriteGroupRequest = exports.CreateFavoriteGroupResponse = exports.CreateFavoriteGroupRequest = exports.EditFavoritesResponse = exports.EditFavoritesRequestInstrument = exports.EditFavoritesRequest = exports.FavoriteInstrument = exports.GetFavoritesResponse = exports.GetFavoritesRequest = exports.InstrumentLink = exports.AssetInstrument = exports.Brand = exports.AssetClearingCertificate = exports.AssetEtf = exports.AssetStructuredProduct = exports.AssetBond = exports.AssetShare = exports.AssetSecurity = exports.AssetCurrency = exports.Asset = exports.AssetFull = exports.AssetsResponse = exports.AssetsRequest = exports.AssetResponse = exports.AssetRequest = exports.Dividend = exports.GetDividendsResponse = exports.GetDividendsRequest = exports.Instrument = exports.InstrumentResponse = exports.GetFuturesMarginResponse = exports.GetFuturesMarginRequest = exports.AccruedInterest = exports.GetAccruedInterestsResponse = exports.GetAccruedInterestsRequest = exports.StructuredNote_Yield = exports.StructuredNote_BasicAsset = exports.StructuredNote = exports.Share = exports.Future = exports.Etf = exports.Currency = exports.Rating = exports.Bond = exports.NewsInstrumentInfo = exports.NewsInstrument = exports.Table = exports.NewsItem = exports.NewsResponse = void 0;
|
|
10
|
+
exports.InstrumentsServiceDefinition = exports.DfasResponse = exports.DfaResponse_ForecastYield = exports.DfaResponse_BasicAsset = exports.DfaResponse = exports.DfasRequest = exports.GetInsiderDealsResponse_InsiderDeal = exports.GetInsiderDealsResponse = exports.GetInsiderDealsRequest = exports.TradingInterval_TimeInterval = exports.TradingInterval = exports.RiskRatesResponse_RiskRate = exports.RiskRatesResponse_RiskRateResult = exports.RiskRatesResponse = exports.RiskRatesRequest = exports.GetForecastResponse_ConsensusItem = exports.GetForecastResponse_TargetItem = exports.GetForecastResponse = exports.GetForecastRequest = exports.GetConsensusForecastsResponse_ConsensusForecastsItem = exports.GetConsensusForecastsResponse = exports.GetConsensusForecastsRequest = exports.GetAssetReportsResponse_GetAssetReportsEvent = exports.GetAssetReportsResponse = exports.GetAssetReportsRequest = exports.GetAssetFundamentalsResponse_StatisticResponse = exports.GetAssetFundamentalsResponse = exports.GetAssetFundamentalsRequest = exports.GetBrandsResponse = exports.GetBrandRequest = exports.GetBrandsRequest = exports.InstrumentShort = exports.FindInstrumentResponse = exports.FindInstrumentRequest = exports.CountryResponse = exports.IndexInstrument = exports.IndicativeResponse = exports.IndicativesResponse = exports.IndicativesRequest = exports.GetCountriesResponse = exports.GetCountriesRequest = exports.GetFavoriteGroupsResponse_FavoriteGroup = exports.GetFavoriteGroupsResponse = exports.GetFavoriteGroupsRequest = void 0;
|
|
11
11
|
exports.couponTypeFromJSON = couponTypeFromJSON;
|
|
12
12
|
exports.couponTypeToJSON = couponTypeToJSON;
|
|
13
13
|
exports.optionDirectionFromJSON = optionDirectionFromJSON;
|
|
@@ -5506,6 +5506,7 @@ function createBaseBond() {
|
|
|
5506
5506
|
callDate: undefined,
|
|
5507
5507
|
dlongClient: undefined,
|
|
5508
5508
|
dshortClient: undefined,
|
|
5509
|
+
ratings: [],
|
|
5509
5510
|
};
|
|
5510
5511
|
}
|
|
5511
5512
|
exports.Bond = {
|
|
@@ -5681,6 +5682,9 @@ exports.Bond = {
|
|
|
5681
5682
|
if (message.dshortClient !== undefined) {
|
|
5682
5683
|
common_1.Quotation.encode(message.dshortClient, writer.uint32(730).fork()).join();
|
|
5683
5684
|
}
|
|
5685
|
+
for (const v of message.ratings) {
|
|
5686
|
+
exports.Rating.encode(v, writer.uint32(738).fork()).join();
|
|
5687
|
+
}
|
|
5684
5688
|
return writer;
|
|
5685
5689
|
},
|
|
5686
5690
|
decode(input, length) {
|
|
@@ -6095,6 +6099,13 @@ exports.Bond = {
|
|
|
6095
6099
|
message.dshortClient = common_1.Quotation.decode(reader, reader.uint32());
|
|
6096
6100
|
continue;
|
|
6097
6101
|
}
|
|
6102
|
+
case 92: {
|
|
6103
|
+
if (tag !== 738) {
|
|
6104
|
+
break;
|
|
6105
|
+
}
|
|
6106
|
+
message.ratings.push(exports.Rating.decode(reader, reader.uint32()));
|
|
6107
|
+
continue;
|
|
6108
|
+
}
|
|
6098
6109
|
}
|
|
6099
6110
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6100
6111
|
break;
|
|
@@ -6334,6 +6345,9 @@ exports.Bond = {
|
|
|
6334
6345
|
: isSet(object.dshort_client)
|
|
6335
6346
|
? common_1.Quotation.fromJSON(object.dshort_client)
|
|
6336
6347
|
: undefined,
|
|
6348
|
+
ratings: globalThis.Array.isArray(object?.ratings)
|
|
6349
|
+
? object.ratings.map((e) => exports.Rating.fromJSON(e))
|
|
6350
|
+
: [],
|
|
6337
6351
|
};
|
|
6338
6352
|
},
|
|
6339
6353
|
toJSON(message) {
|
|
@@ -6509,6 +6523,9 @@ exports.Bond = {
|
|
|
6509
6523
|
if (message.dshortClient !== undefined) {
|
|
6510
6524
|
obj.dshortClient = common_1.Quotation.toJSON(message.dshortClient);
|
|
6511
6525
|
}
|
|
6526
|
+
if (message.ratings?.length) {
|
|
6527
|
+
obj.ratings = message.ratings.map((e) => exports.Rating.toJSON(e));
|
|
6528
|
+
}
|
|
6512
6529
|
return obj;
|
|
6513
6530
|
},
|
|
6514
6531
|
create(base) {
|
|
@@ -6601,6 +6618,146 @@ exports.Bond = {
|
|
|
6601
6618
|
message.dshortClient = (object.dshortClient !== undefined && object.dshortClient !== null)
|
|
6602
6619
|
? common_1.Quotation.fromPartial(object.dshortClient)
|
|
6603
6620
|
: undefined;
|
|
6621
|
+
message.ratings = object.ratings?.map((e) => exports.Rating.fromPartial(e)) || [];
|
|
6622
|
+
return message;
|
|
6623
|
+
},
|
|
6624
|
+
};
|
|
6625
|
+
function createBaseRating() {
|
|
6626
|
+
return { agencyName: "", ratingLevel: "", ratingDate: undefined, forecast: "", isUnderWatch: false };
|
|
6627
|
+
}
|
|
6628
|
+
exports.Rating = {
|
|
6629
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
6630
|
+
if (message.agencyName !== "") {
|
|
6631
|
+
writer.uint32(10).string(message.agencyName);
|
|
6632
|
+
}
|
|
6633
|
+
if (message.ratingLevel !== "") {
|
|
6634
|
+
writer.uint32(18).string(message.ratingLevel);
|
|
6635
|
+
}
|
|
6636
|
+
if (message.ratingDate !== undefined) {
|
|
6637
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.ratingDate), writer.uint32(26).fork()).join();
|
|
6638
|
+
}
|
|
6639
|
+
if (message.forecast !== "") {
|
|
6640
|
+
writer.uint32(34).string(message.forecast);
|
|
6641
|
+
}
|
|
6642
|
+
if (message.isUnderWatch !== false) {
|
|
6643
|
+
writer.uint32(40).bool(message.isUnderWatch);
|
|
6644
|
+
}
|
|
6645
|
+
return writer;
|
|
6646
|
+
},
|
|
6647
|
+
decode(input, length) {
|
|
6648
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
6649
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
6650
|
+
if (previousRecursionDepth >= 100) {
|
|
6651
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
6652
|
+
}
|
|
6653
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
6654
|
+
try {
|
|
6655
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6656
|
+
const message = createBaseRating();
|
|
6657
|
+
while (reader.pos < end) {
|
|
6658
|
+
const tag = reader.uint32();
|
|
6659
|
+
switch (tag >>> 3) {
|
|
6660
|
+
case 1: {
|
|
6661
|
+
if (tag !== 10) {
|
|
6662
|
+
break;
|
|
6663
|
+
}
|
|
6664
|
+
message.agencyName = reader.string();
|
|
6665
|
+
continue;
|
|
6666
|
+
}
|
|
6667
|
+
case 2: {
|
|
6668
|
+
if (tag !== 18) {
|
|
6669
|
+
break;
|
|
6670
|
+
}
|
|
6671
|
+
message.ratingLevel = reader.string();
|
|
6672
|
+
continue;
|
|
6673
|
+
}
|
|
6674
|
+
case 3: {
|
|
6675
|
+
if (tag !== 26) {
|
|
6676
|
+
break;
|
|
6677
|
+
}
|
|
6678
|
+
message.ratingDate = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
6679
|
+
continue;
|
|
6680
|
+
}
|
|
6681
|
+
case 4: {
|
|
6682
|
+
if (tag !== 34) {
|
|
6683
|
+
break;
|
|
6684
|
+
}
|
|
6685
|
+
message.forecast = reader.string();
|
|
6686
|
+
continue;
|
|
6687
|
+
}
|
|
6688
|
+
case 5: {
|
|
6689
|
+
if (tag !== 40) {
|
|
6690
|
+
break;
|
|
6691
|
+
}
|
|
6692
|
+
message.isUnderWatch = reader.bool();
|
|
6693
|
+
continue;
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6697
|
+
break;
|
|
6698
|
+
}
|
|
6699
|
+
reader.skip(tag & 7);
|
|
6700
|
+
}
|
|
6701
|
+
return message;
|
|
6702
|
+
}
|
|
6703
|
+
finally {
|
|
6704
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
6705
|
+
}
|
|
6706
|
+
},
|
|
6707
|
+
fromJSON(object) {
|
|
6708
|
+
return {
|
|
6709
|
+
agencyName: isSet(object.agencyName)
|
|
6710
|
+
? globalThis.String(object.agencyName)
|
|
6711
|
+
: isSet(object.agency_name)
|
|
6712
|
+
? globalThis.String(object.agency_name)
|
|
6713
|
+
: "",
|
|
6714
|
+
ratingLevel: isSet(object.ratingLevel)
|
|
6715
|
+
? globalThis.String(object.ratingLevel)
|
|
6716
|
+
: isSet(object.rating_level)
|
|
6717
|
+
? globalThis.String(object.rating_level)
|
|
6718
|
+
: "",
|
|
6719
|
+
ratingDate: isSet(object.ratingDate)
|
|
6720
|
+
? fromJsonTimestamp(object.ratingDate)
|
|
6721
|
+
: isSet(object.rating_date)
|
|
6722
|
+
? fromJsonTimestamp(object.rating_date)
|
|
6723
|
+
: undefined,
|
|
6724
|
+
forecast: isSet(object.forecast) ? globalThis.String(object.forecast) : "",
|
|
6725
|
+
isUnderWatch: isSet(object.isUnderWatch)
|
|
6726
|
+
? globalThis.Boolean(object.isUnderWatch)
|
|
6727
|
+
: isSet(object.is_under_watch)
|
|
6728
|
+
? globalThis.Boolean(object.is_under_watch)
|
|
6729
|
+
: false,
|
|
6730
|
+
};
|
|
6731
|
+
},
|
|
6732
|
+
toJSON(message) {
|
|
6733
|
+
const obj = {};
|
|
6734
|
+
if (message.agencyName !== "") {
|
|
6735
|
+
obj.agencyName = message.agencyName;
|
|
6736
|
+
}
|
|
6737
|
+
if (message.ratingLevel !== "") {
|
|
6738
|
+
obj.ratingLevel = message.ratingLevel;
|
|
6739
|
+
}
|
|
6740
|
+
if (message.ratingDate !== undefined) {
|
|
6741
|
+
obj.ratingDate = message.ratingDate.toISOString();
|
|
6742
|
+
}
|
|
6743
|
+
if (message.forecast !== "") {
|
|
6744
|
+
obj.forecast = message.forecast;
|
|
6745
|
+
}
|
|
6746
|
+
if (message.isUnderWatch !== false) {
|
|
6747
|
+
obj.isUnderWatch = message.isUnderWatch;
|
|
6748
|
+
}
|
|
6749
|
+
return obj;
|
|
6750
|
+
},
|
|
6751
|
+
create(base) {
|
|
6752
|
+
return exports.Rating.fromPartial(base ?? {});
|
|
6753
|
+
},
|
|
6754
|
+
fromPartial(object) {
|
|
6755
|
+
const message = createBaseRating();
|
|
6756
|
+
message.agencyName = object.agencyName ?? "";
|
|
6757
|
+
message.ratingLevel = object.ratingLevel ?? "";
|
|
6758
|
+
message.ratingDate = object.ratingDate ?? undefined;
|
|
6759
|
+
message.forecast = object.forecast ?? "";
|
|
6760
|
+
message.isUnderWatch = object.isUnderWatch ?? false;
|
|
6604
6761
|
return message;
|
|
6605
6762
|
},
|
|
6606
6763
|
};
|
|
@@ -650,6 +650,8 @@ export declare function getCandlesRequest_CandleSourceToJSON(object: GetCandlesR
|
|
|
650
650
|
export interface GetCandlesResponse {
|
|
651
651
|
/** Массив свечей. */
|
|
652
652
|
candles: HistoricCandle[];
|
|
653
|
+
/** Валюта цены. */
|
|
654
|
+
priceCurrency: string;
|
|
653
655
|
}
|
|
654
656
|
/** Информация о свече. */
|
|
655
657
|
export interface HistoricCandle {
|
|
@@ -766,6 +768,8 @@ export interface GetOrderBookResponse {
|
|
|
766
768
|
closePriceTs: Date | undefined;
|
|
767
769
|
/** Время формирования стакана на бирже. */
|
|
768
770
|
orderbookTs: Date | undefined;
|
|
771
|
+
/** Валюта цены. */
|
|
772
|
+
priceCurrency: string;
|
|
769
773
|
}
|
|
770
774
|
/** Запрос получения торгового статуса. */
|
|
771
775
|
export interface GetTradingStatusRequest {
|
|
@@ -832,6 +836,8 @@ export interface GetLastTradesRequest {
|
|
|
832
836
|
export interface GetLastTradesResponse {
|
|
833
837
|
/** Массив сделок. */
|
|
834
838
|
trades: Trade[];
|
|
839
|
+
/** Валюта цены. */
|
|
840
|
+
priceCurrency: string;
|
|
835
841
|
}
|
|
836
842
|
/** Запрос активных подписок. Возвращает по одному сообщению на каждый тип активных подписок — `SubscribeLastPriceResponse`, `SubscribeInfoResponse`, `SubscribeTradesResponse`, `SubscribeOrderBookResponse`, `SubscribeCandlesResponse`. */
|
|
837
843
|
export interface GetMySubscriptions {
|
|
@@ -876,7 +882,7 @@ export interface GetTechAnalysisRequest {
|
|
|
876
882
|
/** Тип технического индикатора. */
|
|
877
883
|
indicatorType: GetTechAnalysisRequest_IndicatorType;
|
|
878
884
|
/** UID инструмента. */
|
|
879
|
-
instrumentUid
|
|
885
|
+
instrumentUid?: string | undefined;
|
|
880
886
|
/** Начало запрашиваемого периода по UTC. */
|
|
881
887
|
from: Date | undefined;
|
|
882
888
|
/** Окончание запрашиваемого периода по UTC. */
|
|
@@ -891,6 +897,8 @@ export interface GetTechAnalysisRequest {
|
|
|
891
897
|
deviation: GetTechAnalysisRequest_Deviation | undefined;
|
|
892
898
|
/** Параметры сглаживания. */
|
|
893
899
|
smoothing: GetTechAnalysisRequest_Smoothing | undefined;
|
|
900
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
901
|
+
instrumentId?: string | undefined;
|
|
894
902
|
}
|
|
895
903
|
/** Интервал свечи. */
|
|
896
904
|
export declare enum GetTechAnalysisRequest_IndicatorInterval {
|
|
@@ -1009,6 +1017,18 @@ export interface MarketValueInstrument {
|
|
|
1009
1017
|
ticker: string;
|
|
1010
1018
|
/** Класс-код (секция торгов). */
|
|
1011
1019
|
classCode: string;
|
|
1020
|
+
/** Дополнительная информация. */
|
|
1021
|
+
statistic: MarketValueStatistic | undefined;
|
|
1022
|
+
/** Валюта цены. */
|
|
1023
|
+
priceCurrency: string;
|
|
1024
|
+
}
|
|
1025
|
+
export interface MarketValueStatistic {
|
|
1026
|
+
/** Количество человек, просматривающих инструмент. */
|
|
1027
|
+
interestedCount?: number | undefined;
|
|
1028
|
+
/** Количество человек, торгующих инструментом. */
|
|
1029
|
+
tradedCount?: number | undefined;
|
|
1030
|
+
/** Дата и время актуализации данных. */
|
|
1031
|
+
time: Date | undefined;
|
|
1012
1032
|
}
|
|
1013
1033
|
export interface MarketValue {
|
|
1014
1034
|
/** Тип параметра. */
|
|
@@ -1074,6 +1094,7 @@ export declare const GetTechAnalysisResponse_TechAnalysisItem: MessageFns<GetTec
|
|
|
1074
1094
|
export declare const GetMarketValuesRequest: MessageFns<GetMarketValuesRequest>;
|
|
1075
1095
|
export declare const GetMarketValuesResponse: MessageFns<GetMarketValuesResponse>;
|
|
1076
1096
|
export declare const MarketValueInstrument: MessageFns<MarketValueInstrument>;
|
|
1097
|
+
export declare const MarketValueStatistic: MessageFns<MarketValueStatistic>;
|
|
1077
1098
|
export declare const MarketValue: MessageFns<MarketValue>;
|
|
1078
1099
|
/** Сервис для получения биржевой информации:<br/> 1. Свечи.<br/> 2. Стаканы.<br/> 3. Торговые статусы.<br/> 4. Лента сделок. */
|
|
1079
1100
|
export type MarketDataServiceDefinition = typeof MarketDataServiceDefinition;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// source: marketdata.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.OpenInterest = exports.LastPrice = exports.GetLastPricesResponse = exports.GetLastPricesRequest = exports.HistoricCandle = exports.GetCandlesResponse = exports.GetCandlesRequest = exports.TradingStatus = exports.Trade = exports.Order = exports.OrderBook = exports.Candle = exports.LastPriceSubscription = exports.SubscribeLastPriceResponse = exports.LastPriceInstrument = exports.SubscribeLastPriceRequest = exports.InfoSubscription = exports.SubscribeInfoResponse = exports.InfoInstrument = exports.SubscribeInfoRequest = exports.TradeSubscription = exports.SubscribeTradesResponse = exports.TradeInstrument = exports.SubscribeTradesRequest = exports.OrderBookSubscription = exports.SubscribeOrderBookResponse = exports.OrderBookInstrument = exports.SubscribeOrderBookRequest = exports.CandleSubscription = exports.SubscribeCandlesResponse = exports.CandleInstrument = exports.SubscribeCandlesRequest = exports.MarketDataResponse = exports.MarketDataServerSideStreamRequest = exports.MarketDataRequest = exports.GetTechAnalysisRequest_IndicatorType = exports.GetTechAnalysisRequest_TypeOfPrice = exports.GetTechAnalysisRequest_IndicatorInterval = exports.GetCandlesRequest_CandleSource = exports.LastPriceType = exports.OrderBookType = exports.MarketValueType = exports.CandleSource = exports.CandleInterval = exports.TradeDirection = exports.TradeSourceType = exports.SubscriptionStatus = exports.SubscriptionInterval = exports.SubscriptionAction = exports.protobufPackage = void 0;
|
|
9
|
-
exports.MarketDataStreamServiceDefinition = exports.MarketDataServiceDefinition = exports.MarketValue = exports.MarketValueInstrument = exports.GetMarketValuesResponse = exports.GetMarketValuesRequest = exports.GetTechAnalysisResponse_TechAnalysisItem = exports.GetTechAnalysisResponse = exports.GetTechAnalysisRequest_Deviation = exports.GetTechAnalysisRequest_Smoothing = exports.GetTechAnalysisRequest = exports.InstrumentClosePriceResponse = exports.GetClosePricesResponse = exports.InstrumentClosePriceRequest = exports.GetClosePricesRequest = exports.GetMySubscriptions = exports.GetLastTradesResponse = exports.GetLastTradesRequest = exports.GetTradingStatusResponse = exports.GetTradingStatusesResponse = exports.GetTradingStatusesRequest = exports.GetTradingStatusRequest = exports.GetOrderBookResponse = exports.GetOrderBookRequest = void 0;
|
|
9
|
+
exports.MarketDataStreamServiceDefinition = exports.MarketDataServiceDefinition = exports.MarketValue = exports.MarketValueStatistic = exports.MarketValueInstrument = exports.GetMarketValuesResponse = exports.GetMarketValuesRequest = exports.GetTechAnalysisResponse_TechAnalysisItem = exports.GetTechAnalysisResponse = exports.GetTechAnalysisRequest_Deviation = exports.GetTechAnalysisRequest_Smoothing = exports.GetTechAnalysisRequest = exports.InstrumentClosePriceResponse = exports.GetClosePricesResponse = exports.InstrumentClosePriceRequest = exports.GetClosePricesRequest = exports.GetMySubscriptions = exports.GetLastTradesResponse = exports.GetLastTradesRequest = exports.GetTradingStatusResponse = exports.GetTradingStatusesResponse = exports.GetTradingStatusesRequest = exports.GetTradingStatusRequest = exports.GetOrderBookResponse = exports.GetOrderBookRequest = void 0;
|
|
10
10
|
exports.subscriptionActionFromJSON = subscriptionActionFromJSON;
|
|
11
11
|
exports.subscriptionActionToJSON = subscriptionActionToJSON;
|
|
12
12
|
exports.subscriptionIntervalFromJSON = subscriptionIntervalFromJSON;
|
|
@@ -5476,13 +5476,16 @@ exports.GetCandlesRequest = {
|
|
|
5476
5476
|
},
|
|
5477
5477
|
};
|
|
5478
5478
|
function createBaseGetCandlesResponse() {
|
|
5479
|
-
return { candles: [] };
|
|
5479
|
+
return { candles: [], priceCurrency: "" };
|
|
5480
5480
|
}
|
|
5481
5481
|
exports.GetCandlesResponse = {
|
|
5482
5482
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5483
5483
|
for (const v of message.candles) {
|
|
5484
5484
|
exports.HistoricCandle.encode(v, writer.uint32(10).fork()).join();
|
|
5485
5485
|
}
|
|
5486
|
+
if (message.priceCurrency !== "") {
|
|
5487
|
+
writer.uint32(18).string(message.priceCurrency);
|
|
5488
|
+
}
|
|
5486
5489
|
return writer;
|
|
5487
5490
|
},
|
|
5488
5491
|
decode(input, length) {
|
|
@@ -5505,6 +5508,13 @@ exports.GetCandlesResponse = {
|
|
|
5505
5508
|
message.candles.push(exports.HistoricCandle.decode(reader, reader.uint32()));
|
|
5506
5509
|
continue;
|
|
5507
5510
|
}
|
|
5511
|
+
case 2: {
|
|
5512
|
+
if (tag !== 18) {
|
|
5513
|
+
break;
|
|
5514
|
+
}
|
|
5515
|
+
message.priceCurrency = reader.string();
|
|
5516
|
+
continue;
|
|
5517
|
+
}
|
|
5508
5518
|
}
|
|
5509
5519
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5510
5520
|
break;
|
|
@@ -5522,6 +5532,11 @@ exports.GetCandlesResponse = {
|
|
|
5522
5532
|
candles: globalThis.Array.isArray(object?.candles)
|
|
5523
5533
|
? object.candles.map((e) => exports.HistoricCandle.fromJSON(e))
|
|
5524
5534
|
: [],
|
|
5535
|
+
priceCurrency: isSet(object.priceCurrency)
|
|
5536
|
+
? globalThis.String(object.priceCurrency)
|
|
5537
|
+
: isSet(object.price_currency)
|
|
5538
|
+
? globalThis.String(object.price_currency)
|
|
5539
|
+
: "",
|
|
5525
5540
|
};
|
|
5526
5541
|
},
|
|
5527
5542
|
toJSON(message) {
|
|
@@ -5529,6 +5544,9 @@ exports.GetCandlesResponse = {
|
|
|
5529
5544
|
if (message.candles?.length) {
|
|
5530
5545
|
obj.candles = message.candles.map((e) => exports.HistoricCandle.toJSON(e));
|
|
5531
5546
|
}
|
|
5547
|
+
if (message.priceCurrency !== "") {
|
|
5548
|
+
obj.priceCurrency = message.priceCurrency;
|
|
5549
|
+
}
|
|
5532
5550
|
return obj;
|
|
5533
5551
|
},
|
|
5534
5552
|
create(base) {
|
|
@@ -5537,6 +5555,7 @@ exports.GetCandlesResponse = {
|
|
|
5537
5555
|
fromPartial(object) {
|
|
5538
5556
|
const message = createBaseGetCandlesResponse();
|
|
5539
5557
|
message.candles = object.candles?.map((e) => exports.HistoricCandle.fromPartial(e)) || [];
|
|
5558
|
+
message.priceCurrency = object.priceCurrency ?? "";
|
|
5540
5559
|
return message;
|
|
5541
5560
|
},
|
|
5542
5561
|
};
|
|
@@ -6377,6 +6396,7 @@ function createBaseGetOrderBookResponse() {
|
|
|
6377
6396
|
lastPriceTs: undefined,
|
|
6378
6397
|
closePriceTs: undefined,
|
|
6379
6398
|
orderbookTs: undefined,
|
|
6399
|
+
priceCurrency: "",
|
|
6380
6400
|
};
|
|
6381
6401
|
}
|
|
6382
6402
|
exports.GetOrderBookResponse = {
|
|
@@ -6423,6 +6443,9 @@ exports.GetOrderBookResponse = {
|
|
|
6423
6443
|
if (message.orderbookTs !== undefined) {
|
|
6424
6444
|
timestamp_1.Timestamp.encode(toTimestamp(message.orderbookTs), writer.uint32(186).fork()).join();
|
|
6425
6445
|
}
|
|
6446
|
+
if (message.priceCurrency !== "") {
|
|
6447
|
+
writer.uint32(194).string(message.priceCurrency);
|
|
6448
|
+
}
|
|
6426
6449
|
return writer;
|
|
6427
6450
|
},
|
|
6428
6451
|
decode(input, length) {
|
|
@@ -6536,6 +6559,13 @@ exports.GetOrderBookResponse = {
|
|
|
6536
6559
|
message.orderbookTs = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
6537
6560
|
continue;
|
|
6538
6561
|
}
|
|
6562
|
+
case 24: {
|
|
6563
|
+
if (tag !== 194) {
|
|
6564
|
+
break;
|
|
6565
|
+
}
|
|
6566
|
+
message.priceCurrency = reader.string();
|
|
6567
|
+
continue;
|
|
6568
|
+
}
|
|
6539
6569
|
}
|
|
6540
6570
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6541
6571
|
break;
|
|
@@ -6600,6 +6630,11 @@ exports.GetOrderBookResponse = {
|
|
|
6600
6630
|
: isSet(object.orderbook_ts)
|
|
6601
6631
|
? fromJsonTimestamp(object.orderbook_ts)
|
|
6602
6632
|
: undefined,
|
|
6633
|
+
priceCurrency: isSet(object.priceCurrency)
|
|
6634
|
+
? globalThis.String(object.priceCurrency)
|
|
6635
|
+
: isSet(object.price_currency)
|
|
6636
|
+
? globalThis.String(object.price_currency)
|
|
6637
|
+
: "",
|
|
6603
6638
|
};
|
|
6604
6639
|
},
|
|
6605
6640
|
toJSON(message) {
|
|
@@ -6646,6 +6681,9 @@ exports.GetOrderBookResponse = {
|
|
|
6646
6681
|
if (message.orderbookTs !== undefined) {
|
|
6647
6682
|
obj.orderbookTs = message.orderbookTs.toISOString();
|
|
6648
6683
|
}
|
|
6684
|
+
if (message.priceCurrency !== "") {
|
|
6685
|
+
obj.priceCurrency = message.priceCurrency;
|
|
6686
|
+
}
|
|
6649
6687
|
return obj;
|
|
6650
6688
|
},
|
|
6651
6689
|
create(base) {
|
|
@@ -6675,6 +6713,7 @@ exports.GetOrderBookResponse = {
|
|
|
6675
6713
|
message.lastPriceTs = object.lastPriceTs ?? undefined;
|
|
6676
6714
|
message.closePriceTs = object.closePriceTs ?? undefined;
|
|
6677
6715
|
message.orderbookTs = object.orderbookTs ?? undefined;
|
|
6716
|
+
message.priceCurrency = object.priceCurrency ?? "";
|
|
6678
6717
|
return message;
|
|
6679
6718
|
},
|
|
6680
6719
|
};
|
|
@@ -7267,13 +7306,16 @@ exports.GetLastTradesRequest = {
|
|
|
7267
7306
|
},
|
|
7268
7307
|
};
|
|
7269
7308
|
function createBaseGetLastTradesResponse() {
|
|
7270
|
-
return { trades: [] };
|
|
7309
|
+
return { trades: [], priceCurrency: "" };
|
|
7271
7310
|
}
|
|
7272
7311
|
exports.GetLastTradesResponse = {
|
|
7273
7312
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7274
7313
|
for (const v of message.trades) {
|
|
7275
7314
|
exports.Trade.encode(v, writer.uint32(10).fork()).join();
|
|
7276
7315
|
}
|
|
7316
|
+
if (message.priceCurrency !== "") {
|
|
7317
|
+
writer.uint32(18).string(message.priceCurrency);
|
|
7318
|
+
}
|
|
7277
7319
|
return writer;
|
|
7278
7320
|
},
|
|
7279
7321
|
decode(input, length) {
|
|
@@ -7296,6 +7338,13 @@ exports.GetLastTradesResponse = {
|
|
|
7296
7338
|
message.trades.push(exports.Trade.decode(reader, reader.uint32()));
|
|
7297
7339
|
continue;
|
|
7298
7340
|
}
|
|
7341
|
+
case 2: {
|
|
7342
|
+
if (tag !== 18) {
|
|
7343
|
+
break;
|
|
7344
|
+
}
|
|
7345
|
+
message.priceCurrency = reader.string();
|
|
7346
|
+
continue;
|
|
7347
|
+
}
|
|
7299
7348
|
}
|
|
7300
7349
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7301
7350
|
break;
|
|
@@ -7309,13 +7358,23 @@ exports.GetLastTradesResponse = {
|
|
|
7309
7358
|
}
|
|
7310
7359
|
},
|
|
7311
7360
|
fromJSON(object) {
|
|
7312
|
-
return {
|
|
7361
|
+
return {
|
|
7362
|
+
trades: globalThis.Array.isArray(object?.trades) ? object.trades.map((e) => exports.Trade.fromJSON(e)) : [],
|
|
7363
|
+
priceCurrency: isSet(object.priceCurrency)
|
|
7364
|
+
? globalThis.String(object.priceCurrency)
|
|
7365
|
+
: isSet(object.price_currency)
|
|
7366
|
+
? globalThis.String(object.price_currency)
|
|
7367
|
+
: "",
|
|
7368
|
+
};
|
|
7313
7369
|
},
|
|
7314
7370
|
toJSON(message) {
|
|
7315
7371
|
const obj = {};
|
|
7316
7372
|
if (message.trades?.length) {
|
|
7317
7373
|
obj.trades = message.trades.map((e) => exports.Trade.toJSON(e));
|
|
7318
7374
|
}
|
|
7375
|
+
if (message.priceCurrency !== "") {
|
|
7376
|
+
obj.priceCurrency = message.priceCurrency;
|
|
7377
|
+
}
|
|
7319
7378
|
return obj;
|
|
7320
7379
|
},
|
|
7321
7380
|
create(base) {
|
|
@@ -7324,6 +7383,7 @@ exports.GetLastTradesResponse = {
|
|
|
7324
7383
|
fromPartial(object) {
|
|
7325
7384
|
const message = createBaseGetLastTradesResponse();
|
|
7326
7385
|
message.trades = object.trades?.map((e) => exports.Trade.fromPartial(e)) || [];
|
|
7386
|
+
message.priceCurrency = object.priceCurrency ?? "";
|
|
7327
7387
|
return message;
|
|
7328
7388
|
},
|
|
7329
7389
|
};
|
|
@@ -7792,7 +7852,7 @@ exports.InstrumentClosePriceResponse = {
|
|
|
7792
7852
|
function createBaseGetTechAnalysisRequest() {
|
|
7793
7853
|
return {
|
|
7794
7854
|
indicatorType: 0,
|
|
7795
|
-
instrumentUid:
|
|
7855
|
+
instrumentUid: undefined,
|
|
7796
7856
|
from: undefined,
|
|
7797
7857
|
to: undefined,
|
|
7798
7858
|
interval: 0,
|
|
@@ -7800,6 +7860,7 @@ function createBaseGetTechAnalysisRequest() {
|
|
|
7800
7860
|
length: 0,
|
|
7801
7861
|
deviation: undefined,
|
|
7802
7862
|
smoothing: undefined,
|
|
7863
|
+
instrumentId: undefined,
|
|
7803
7864
|
};
|
|
7804
7865
|
}
|
|
7805
7866
|
exports.GetTechAnalysisRequest = {
|
|
@@ -7807,7 +7868,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7807
7868
|
if (message.indicatorType !== 0) {
|
|
7808
7869
|
writer.uint32(8).int32(message.indicatorType);
|
|
7809
7870
|
}
|
|
7810
|
-
if (message.instrumentUid !==
|
|
7871
|
+
if (message.instrumentUid !== undefined) {
|
|
7811
7872
|
writer.uint32(18).string(message.instrumentUid);
|
|
7812
7873
|
}
|
|
7813
7874
|
if (message.from !== undefined) {
|
|
@@ -7831,6 +7892,9 @@ exports.GetTechAnalysisRequest = {
|
|
|
7831
7892
|
if (message.smoothing !== undefined) {
|
|
7832
7893
|
exports.GetTechAnalysisRequest_Smoothing.encode(message.smoothing, writer.uint32(74).fork()).join();
|
|
7833
7894
|
}
|
|
7895
|
+
if (message.instrumentId !== undefined) {
|
|
7896
|
+
writer.uint32(82).string(message.instrumentId);
|
|
7897
|
+
}
|
|
7834
7898
|
return writer;
|
|
7835
7899
|
},
|
|
7836
7900
|
decode(input, length) {
|
|
@@ -7909,6 +7973,13 @@ exports.GetTechAnalysisRequest = {
|
|
|
7909
7973
|
message.smoothing = exports.GetTechAnalysisRequest_Smoothing.decode(reader, reader.uint32());
|
|
7910
7974
|
continue;
|
|
7911
7975
|
}
|
|
7976
|
+
case 10: {
|
|
7977
|
+
if (tag !== 82) {
|
|
7978
|
+
break;
|
|
7979
|
+
}
|
|
7980
|
+
message.instrumentId = reader.string();
|
|
7981
|
+
continue;
|
|
7982
|
+
}
|
|
7912
7983
|
}
|
|
7913
7984
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7914
7985
|
break;
|
|
@@ -7932,7 +8003,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7932
8003
|
? globalThis.String(object.instrumentUid)
|
|
7933
8004
|
: isSet(object.instrument_uid)
|
|
7934
8005
|
? globalThis.String(object.instrument_uid)
|
|
7935
|
-
:
|
|
8006
|
+
: undefined,
|
|
7936
8007
|
from: isSet(object.from) ? fromJsonTimestamp(object.from) : undefined,
|
|
7937
8008
|
to: isSet(object.to) ? fromJsonTimestamp(object.to) : undefined,
|
|
7938
8009
|
interval: isSet(object.interval) ? getTechAnalysisRequest_IndicatorIntervalFromJSON(object.interval) : 0,
|
|
@@ -7944,6 +8015,11 @@ exports.GetTechAnalysisRequest = {
|
|
|
7944
8015
|
length: isSet(object.length) ? globalThis.Number(object.length) : 0,
|
|
7945
8016
|
deviation: isSet(object.deviation) ? exports.GetTechAnalysisRequest_Deviation.fromJSON(object.deviation) : undefined,
|
|
7946
8017
|
smoothing: isSet(object.smoothing) ? exports.GetTechAnalysisRequest_Smoothing.fromJSON(object.smoothing) : undefined,
|
|
8018
|
+
instrumentId: isSet(object.instrumentId)
|
|
8019
|
+
? globalThis.String(object.instrumentId)
|
|
8020
|
+
: isSet(object.instrument_id)
|
|
8021
|
+
? globalThis.String(object.instrument_id)
|
|
8022
|
+
: undefined,
|
|
7947
8023
|
};
|
|
7948
8024
|
},
|
|
7949
8025
|
toJSON(message) {
|
|
@@ -7951,7 +8027,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7951
8027
|
if (message.indicatorType !== 0) {
|
|
7952
8028
|
obj.indicatorType = getTechAnalysisRequest_IndicatorTypeToJSON(message.indicatorType);
|
|
7953
8029
|
}
|
|
7954
|
-
if (message.instrumentUid !==
|
|
8030
|
+
if (message.instrumentUid !== undefined) {
|
|
7955
8031
|
obj.instrumentUid = message.instrumentUid;
|
|
7956
8032
|
}
|
|
7957
8033
|
if (message.from !== undefined) {
|
|
@@ -7975,6 +8051,9 @@ exports.GetTechAnalysisRequest = {
|
|
|
7975
8051
|
if (message.smoothing !== undefined) {
|
|
7976
8052
|
obj.smoothing = exports.GetTechAnalysisRequest_Smoothing.toJSON(message.smoothing);
|
|
7977
8053
|
}
|
|
8054
|
+
if (message.instrumentId !== undefined) {
|
|
8055
|
+
obj.instrumentId = message.instrumentId;
|
|
8056
|
+
}
|
|
7978
8057
|
return obj;
|
|
7979
8058
|
},
|
|
7980
8059
|
create(base) {
|
|
@@ -7983,7 +8062,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7983
8062
|
fromPartial(object) {
|
|
7984
8063
|
const message = createBaseGetTechAnalysisRequest();
|
|
7985
8064
|
message.indicatorType = object.indicatorType ?? 0;
|
|
7986
|
-
message.instrumentUid = object.instrumentUid ??
|
|
8065
|
+
message.instrumentUid = object.instrumentUid ?? undefined;
|
|
7987
8066
|
message.from = object.from ?? undefined;
|
|
7988
8067
|
message.to = object.to ?? undefined;
|
|
7989
8068
|
message.interval = object.interval ?? 0;
|
|
@@ -7995,6 +8074,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7995
8074
|
message.smoothing = (object.smoothing !== undefined && object.smoothing !== null)
|
|
7996
8075
|
? exports.GetTechAnalysisRequest_Smoothing.fromPartial(object.smoothing)
|
|
7997
8076
|
: undefined;
|
|
8077
|
+
message.instrumentId = object.instrumentId ?? undefined;
|
|
7998
8078
|
return message;
|
|
7999
8079
|
},
|
|
8000
8080
|
};
|
|
@@ -8562,7 +8642,7 @@ exports.GetMarketValuesResponse = {
|
|
|
8562
8642
|
},
|
|
8563
8643
|
};
|
|
8564
8644
|
function createBaseMarketValueInstrument() {
|
|
8565
|
-
return { instrumentUid: "", values: [], ticker: "", classCode: "" };
|
|
8645
|
+
return { instrumentUid: "", values: [], ticker: "", classCode: "", statistic: undefined, priceCurrency: "" };
|
|
8566
8646
|
}
|
|
8567
8647
|
exports.MarketValueInstrument = {
|
|
8568
8648
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -8578,6 +8658,12 @@ exports.MarketValueInstrument = {
|
|
|
8578
8658
|
if (message.classCode !== "") {
|
|
8579
8659
|
writer.uint32(34).string(message.classCode);
|
|
8580
8660
|
}
|
|
8661
|
+
if (message.statistic !== undefined) {
|
|
8662
|
+
exports.MarketValueStatistic.encode(message.statistic, writer.uint32(42).fork()).join();
|
|
8663
|
+
}
|
|
8664
|
+
if (message.priceCurrency !== "") {
|
|
8665
|
+
writer.uint32(50).string(message.priceCurrency);
|
|
8666
|
+
}
|
|
8581
8667
|
return writer;
|
|
8582
8668
|
},
|
|
8583
8669
|
decode(input, length) {
|
|
@@ -8621,6 +8707,20 @@ exports.MarketValueInstrument = {
|
|
|
8621
8707
|
message.classCode = reader.string();
|
|
8622
8708
|
continue;
|
|
8623
8709
|
}
|
|
8710
|
+
case 5: {
|
|
8711
|
+
if (tag !== 42) {
|
|
8712
|
+
break;
|
|
8713
|
+
}
|
|
8714
|
+
message.statistic = exports.MarketValueStatistic.decode(reader, reader.uint32());
|
|
8715
|
+
continue;
|
|
8716
|
+
}
|
|
8717
|
+
case 6: {
|
|
8718
|
+
if (tag !== 50) {
|
|
8719
|
+
break;
|
|
8720
|
+
}
|
|
8721
|
+
message.priceCurrency = reader.string();
|
|
8722
|
+
continue;
|
|
8723
|
+
}
|
|
8624
8724
|
}
|
|
8625
8725
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8626
8726
|
break;
|
|
@@ -8647,6 +8747,12 @@ exports.MarketValueInstrument = {
|
|
|
8647
8747
|
: isSet(object.class_code)
|
|
8648
8748
|
? globalThis.String(object.class_code)
|
|
8649
8749
|
: "",
|
|
8750
|
+
statistic: isSet(object.statistic) ? exports.MarketValueStatistic.fromJSON(object.statistic) : undefined,
|
|
8751
|
+
priceCurrency: isSet(object.priceCurrency)
|
|
8752
|
+
? globalThis.String(object.priceCurrency)
|
|
8753
|
+
: isSet(object.price_currency)
|
|
8754
|
+
? globalThis.String(object.price_currency)
|
|
8755
|
+
: "",
|
|
8650
8756
|
};
|
|
8651
8757
|
},
|
|
8652
8758
|
toJSON(message) {
|
|
@@ -8663,6 +8769,12 @@ exports.MarketValueInstrument = {
|
|
|
8663
8769
|
if (message.classCode !== "") {
|
|
8664
8770
|
obj.classCode = message.classCode;
|
|
8665
8771
|
}
|
|
8772
|
+
if (message.statistic !== undefined) {
|
|
8773
|
+
obj.statistic = exports.MarketValueStatistic.toJSON(message.statistic);
|
|
8774
|
+
}
|
|
8775
|
+
if (message.priceCurrency !== "") {
|
|
8776
|
+
obj.priceCurrency = message.priceCurrency;
|
|
8777
|
+
}
|
|
8666
8778
|
return obj;
|
|
8667
8779
|
},
|
|
8668
8780
|
create(base) {
|
|
@@ -8674,6 +8786,111 @@ exports.MarketValueInstrument = {
|
|
|
8674
8786
|
message.values = object.values?.map((e) => exports.MarketValue.fromPartial(e)) || [];
|
|
8675
8787
|
message.ticker = object.ticker ?? "";
|
|
8676
8788
|
message.classCode = object.classCode ?? "";
|
|
8789
|
+
message.statistic = (object.statistic !== undefined && object.statistic !== null)
|
|
8790
|
+
? exports.MarketValueStatistic.fromPartial(object.statistic)
|
|
8791
|
+
: undefined;
|
|
8792
|
+
message.priceCurrency = object.priceCurrency ?? "";
|
|
8793
|
+
return message;
|
|
8794
|
+
},
|
|
8795
|
+
};
|
|
8796
|
+
function createBaseMarketValueStatistic() {
|
|
8797
|
+
return { interestedCount: undefined, tradedCount: undefined, time: undefined };
|
|
8798
|
+
}
|
|
8799
|
+
exports.MarketValueStatistic = {
|
|
8800
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8801
|
+
if (message.interestedCount !== undefined) {
|
|
8802
|
+
writer.uint32(8).int32(message.interestedCount);
|
|
8803
|
+
}
|
|
8804
|
+
if (message.tradedCount !== undefined) {
|
|
8805
|
+
writer.uint32(16).int32(message.tradedCount);
|
|
8806
|
+
}
|
|
8807
|
+
if (message.time !== undefined) {
|
|
8808
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.time), writer.uint32(26).fork()).join();
|
|
8809
|
+
}
|
|
8810
|
+
return writer;
|
|
8811
|
+
},
|
|
8812
|
+
decode(input, length) {
|
|
8813
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8814
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
8815
|
+
if (previousRecursionDepth >= 100) {
|
|
8816
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
8817
|
+
}
|
|
8818
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8819
|
+
try {
|
|
8820
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8821
|
+
const message = createBaseMarketValueStatistic();
|
|
8822
|
+
while (reader.pos < end) {
|
|
8823
|
+
const tag = reader.uint32();
|
|
8824
|
+
switch (tag >>> 3) {
|
|
8825
|
+
case 1: {
|
|
8826
|
+
if (tag !== 8) {
|
|
8827
|
+
break;
|
|
8828
|
+
}
|
|
8829
|
+
message.interestedCount = reader.int32();
|
|
8830
|
+
continue;
|
|
8831
|
+
}
|
|
8832
|
+
case 2: {
|
|
8833
|
+
if (tag !== 16) {
|
|
8834
|
+
break;
|
|
8835
|
+
}
|
|
8836
|
+
message.tradedCount = reader.int32();
|
|
8837
|
+
continue;
|
|
8838
|
+
}
|
|
8839
|
+
case 3: {
|
|
8840
|
+
if (tag !== 26) {
|
|
8841
|
+
break;
|
|
8842
|
+
}
|
|
8843
|
+
message.time = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
8844
|
+
continue;
|
|
8845
|
+
}
|
|
8846
|
+
}
|
|
8847
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8848
|
+
break;
|
|
8849
|
+
}
|
|
8850
|
+
reader.skip(tag & 7);
|
|
8851
|
+
}
|
|
8852
|
+
return message;
|
|
8853
|
+
}
|
|
8854
|
+
finally {
|
|
8855
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
8856
|
+
}
|
|
8857
|
+
},
|
|
8858
|
+
fromJSON(object) {
|
|
8859
|
+
return {
|
|
8860
|
+
interestedCount: isSet(object.interestedCount)
|
|
8861
|
+
? globalThis.Number(object.interestedCount)
|
|
8862
|
+
: isSet(object.interested_count)
|
|
8863
|
+
? globalThis.Number(object.interested_count)
|
|
8864
|
+
: undefined,
|
|
8865
|
+
tradedCount: isSet(object.tradedCount)
|
|
8866
|
+
? globalThis.Number(object.tradedCount)
|
|
8867
|
+
: isSet(object.traded_count)
|
|
8868
|
+
? globalThis.Number(object.traded_count)
|
|
8869
|
+
: undefined,
|
|
8870
|
+
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
8871
|
+
};
|
|
8872
|
+
},
|
|
8873
|
+
toJSON(message) {
|
|
8874
|
+
const obj = {};
|
|
8875
|
+
if (message.interestedCount !== undefined) {
|
|
8876
|
+
obj.interestedCount = Math.round(message.interestedCount);
|
|
8877
|
+
}
|
|
8878
|
+
if (message.tradedCount !== undefined) {
|
|
8879
|
+
obj.tradedCount = Math.round(message.tradedCount);
|
|
8880
|
+
}
|
|
8881
|
+
if (message.time !== undefined) {
|
|
8882
|
+
obj.time = message.time.toISOString();
|
|
8883
|
+
}
|
|
8884
|
+
return obj;
|
|
8885
|
+
},
|
|
8886
|
+
create(base) {
|
|
8887
|
+
return exports.MarketValueStatistic.fromPartial(base ?? {});
|
|
8888
|
+
},
|
|
8889
|
+
fromPartial(object) {
|
|
8890
|
+
const message = createBaseMarketValueStatistic();
|
|
8891
|
+
message.interestedCount = object.interestedCount ?? undefined;
|
|
8892
|
+
message.tradedCount = object.tradedCount ?? undefined;
|
|
8893
|
+
message.time = object.time ?? undefined;
|
|
8677
8894
|
return message;
|
|
8678
8895
|
},
|
|
8679
8896
|
};
|
|
@@ -318,6 +318,10 @@ export interface PortfolioResponse {
|
|
|
318
318
|
dailyYieldRelative: Quotation | undefined;
|
|
319
319
|
/** Общая стоимость смарт-активов в портфеле в рублях. */
|
|
320
320
|
totalAmountDfa: MoneyValue | undefined;
|
|
321
|
+
/** Общая вариационная маржа. */
|
|
322
|
+
totalVarMargin: MoneyValue | undefined;
|
|
323
|
+
/** Общая вариационная маржа от расчетной цены или от цены закрытия позиции. */
|
|
324
|
+
totalVarMarginSettled: MoneyValue | undefined;
|
|
321
325
|
}
|
|
322
326
|
/** Запрос позиций портфеля по счету. */
|
|
323
327
|
export interface PositionsRequest {
|
|
@@ -1536,6 +1536,8 @@ function createBasePortfolioResponse() {
|
|
|
1536
1536
|
dailyYield: undefined,
|
|
1537
1537
|
dailyYieldRelative: undefined,
|
|
1538
1538
|
totalAmountDfa: undefined,
|
|
1539
|
+
totalVarMargin: undefined,
|
|
1540
|
+
totalVarMarginSettled: undefined,
|
|
1539
1541
|
};
|
|
1540
1542
|
}
|
|
1541
1543
|
exports.PortfolioResponse = {
|
|
@@ -1585,6 +1587,12 @@ exports.PortfolioResponse = {
|
|
|
1585
1587
|
if (message.totalAmountDfa !== undefined) {
|
|
1586
1588
|
common_1.MoneyValue.encode(message.totalAmountDfa, writer.uint32(138).fork()).join();
|
|
1587
1589
|
}
|
|
1590
|
+
if (message.totalVarMargin !== undefined) {
|
|
1591
|
+
common_1.MoneyValue.encode(message.totalVarMargin, writer.uint32(146).fork()).join();
|
|
1592
|
+
}
|
|
1593
|
+
if (message.totalVarMarginSettled !== undefined) {
|
|
1594
|
+
common_1.MoneyValue.encode(message.totalVarMarginSettled, writer.uint32(154).fork()).join();
|
|
1595
|
+
}
|
|
1588
1596
|
return writer;
|
|
1589
1597
|
},
|
|
1590
1598
|
decode(input, length) {
|
|
@@ -1705,6 +1713,20 @@ exports.PortfolioResponse = {
|
|
|
1705
1713
|
message.totalAmountDfa = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
1706
1714
|
continue;
|
|
1707
1715
|
}
|
|
1716
|
+
case 18: {
|
|
1717
|
+
if (tag !== 146) {
|
|
1718
|
+
break;
|
|
1719
|
+
}
|
|
1720
|
+
message.totalVarMargin = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
1721
|
+
continue;
|
|
1722
|
+
}
|
|
1723
|
+
case 19: {
|
|
1724
|
+
if (tag !== 154) {
|
|
1725
|
+
break;
|
|
1726
|
+
}
|
|
1727
|
+
message.totalVarMarginSettled = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
1728
|
+
continue;
|
|
1729
|
+
}
|
|
1708
1730
|
}
|
|
1709
1731
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1710
1732
|
break;
|
|
@@ -1792,6 +1814,16 @@ exports.PortfolioResponse = {
|
|
|
1792
1814
|
: isSet(object.total_amount_dfa)
|
|
1793
1815
|
? common_1.MoneyValue.fromJSON(object.total_amount_dfa)
|
|
1794
1816
|
: undefined,
|
|
1817
|
+
totalVarMargin: isSet(object.totalVarMargin)
|
|
1818
|
+
? common_1.MoneyValue.fromJSON(object.totalVarMargin)
|
|
1819
|
+
: isSet(object.total_var_margin)
|
|
1820
|
+
? common_1.MoneyValue.fromJSON(object.total_var_margin)
|
|
1821
|
+
: undefined,
|
|
1822
|
+
totalVarMarginSettled: isSet(object.totalVarMarginSettled)
|
|
1823
|
+
? common_1.MoneyValue.fromJSON(object.totalVarMarginSettled)
|
|
1824
|
+
: isSet(object.total_var_margin_settled)
|
|
1825
|
+
? common_1.MoneyValue.fromJSON(object.total_var_margin_settled)
|
|
1826
|
+
: undefined,
|
|
1795
1827
|
};
|
|
1796
1828
|
},
|
|
1797
1829
|
toJSON(message) {
|
|
@@ -1841,6 +1873,12 @@ exports.PortfolioResponse = {
|
|
|
1841
1873
|
if (message.totalAmountDfa !== undefined) {
|
|
1842
1874
|
obj.totalAmountDfa = common_1.MoneyValue.toJSON(message.totalAmountDfa);
|
|
1843
1875
|
}
|
|
1876
|
+
if (message.totalVarMargin !== undefined) {
|
|
1877
|
+
obj.totalVarMargin = common_1.MoneyValue.toJSON(message.totalVarMargin);
|
|
1878
|
+
}
|
|
1879
|
+
if (message.totalVarMarginSettled !== undefined) {
|
|
1880
|
+
obj.totalVarMarginSettled = common_1.MoneyValue.toJSON(message.totalVarMarginSettled);
|
|
1881
|
+
}
|
|
1844
1882
|
return obj;
|
|
1845
1883
|
},
|
|
1846
1884
|
create(base) {
|
|
@@ -1888,6 +1926,13 @@ exports.PortfolioResponse = {
|
|
|
1888
1926
|
message.totalAmountDfa = (object.totalAmountDfa !== undefined && object.totalAmountDfa !== null)
|
|
1889
1927
|
? common_1.MoneyValue.fromPartial(object.totalAmountDfa)
|
|
1890
1928
|
: undefined;
|
|
1929
|
+
message.totalVarMargin = (object.totalVarMargin !== undefined && object.totalVarMargin !== null)
|
|
1930
|
+
? common_1.MoneyValue.fromPartial(object.totalVarMargin)
|
|
1931
|
+
: undefined;
|
|
1932
|
+
message.totalVarMarginSettled =
|
|
1933
|
+
(object.totalVarMarginSettled !== undefined && object.totalVarMarginSettled !== null)
|
|
1934
|
+
? common_1.MoneyValue.fromPartial(object.totalVarMarginSettled)
|
|
1935
|
+
: undefined;
|
|
1891
1936
|
return message;
|
|
1892
1937
|
},
|
|
1893
1938
|
};
|
|
@@ -20,6 +20,14 @@ export declare enum AccountType {
|
|
|
20
20
|
ACCOUNT_TYPE_SAVING = 6,
|
|
21
21
|
/** ACCOUNT_TYPE_DFA - Смарт-счет. */
|
|
22
22
|
ACCOUNT_TYPE_DFA = 7,
|
|
23
|
+
/** ACCOUNT_TYPE_SHARED_SAVING - Совместный накопительный счет. */
|
|
24
|
+
ACCOUNT_TYPE_SHARED_SAVING = 8,
|
|
25
|
+
/** ACCOUNT_TYPE_DEPOSIT - Вклад. */
|
|
26
|
+
ACCOUNT_TYPE_DEPOSIT = 9,
|
|
27
|
+
/** ACCOUNT_TYPE_OMS - ОМС. */
|
|
28
|
+
ACCOUNT_TYPE_OMS = 10,
|
|
29
|
+
/** ACCOUNT_TYPE_OFP_DEPOSIT - ОФП вклад. */
|
|
30
|
+
ACCOUNT_TYPE_OFP_DEPOSIT = 11,
|
|
23
31
|
UNRECOGNIZED = -1
|
|
24
32
|
}
|
|
25
33
|
export declare function accountTypeFromJSON(object: any): AccountType;
|
package/dist/generated/users.js
CHANGED
|
@@ -38,6 +38,14 @@ var AccountType;
|
|
|
38
38
|
AccountType[AccountType["ACCOUNT_TYPE_SAVING"] = 6] = "ACCOUNT_TYPE_SAVING";
|
|
39
39
|
/** ACCOUNT_TYPE_DFA - Смарт-счет. */
|
|
40
40
|
AccountType[AccountType["ACCOUNT_TYPE_DFA"] = 7] = "ACCOUNT_TYPE_DFA";
|
|
41
|
+
/** ACCOUNT_TYPE_SHARED_SAVING - Совместный накопительный счет. */
|
|
42
|
+
AccountType[AccountType["ACCOUNT_TYPE_SHARED_SAVING"] = 8] = "ACCOUNT_TYPE_SHARED_SAVING";
|
|
43
|
+
/** ACCOUNT_TYPE_DEPOSIT - Вклад. */
|
|
44
|
+
AccountType[AccountType["ACCOUNT_TYPE_DEPOSIT"] = 9] = "ACCOUNT_TYPE_DEPOSIT";
|
|
45
|
+
/** ACCOUNT_TYPE_OMS - ОМС. */
|
|
46
|
+
AccountType[AccountType["ACCOUNT_TYPE_OMS"] = 10] = "ACCOUNT_TYPE_OMS";
|
|
47
|
+
/** ACCOUNT_TYPE_OFP_DEPOSIT - ОФП вклад. */
|
|
48
|
+
AccountType[AccountType["ACCOUNT_TYPE_OFP_DEPOSIT"] = 11] = "ACCOUNT_TYPE_OFP_DEPOSIT";
|
|
41
49
|
AccountType[AccountType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
42
50
|
})(AccountType || (exports.AccountType = AccountType = {}));
|
|
43
51
|
function accountTypeFromJSON(object) {
|
|
@@ -66,6 +74,18 @@ function accountTypeFromJSON(object) {
|
|
|
66
74
|
case 7:
|
|
67
75
|
case "ACCOUNT_TYPE_DFA":
|
|
68
76
|
return AccountType.ACCOUNT_TYPE_DFA;
|
|
77
|
+
case 8:
|
|
78
|
+
case "ACCOUNT_TYPE_SHARED_SAVING":
|
|
79
|
+
return AccountType.ACCOUNT_TYPE_SHARED_SAVING;
|
|
80
|
+
case 9:
|
|
81
|
+
case "ACCOUNT_TYPE_DEPOSIT":
|
|
82
|
+
return AccountType.ACCOUNT_TYPE_DEPOSIT;
|
|
83
|
+
case 10:
|
|
84
|
+
case "ACCOUNT_TYPE_OMS":
|
|
85
|
+
return AccountType.ACCOUNT_TYPE_OMS;
|
|
86
|
+
case 11:
|
|
87
|
+
case "ACCOUNT_TYPE_OFP_DEPOSIT":
|
|
88
|
+
return AccountType.ACCOUNT_TYPE_OFP_DEPOSIT;
|
|
69
89
|
case -1:
|
|
70
90
|
case "UNRECOGNIZED":
|
|
71
91
|
default:
|
|
@@ -90,6 +110,14 @@ function accountTypeToJSON(object) {
|
|
|
90
110
|
return "ACCOUNT_TYPE_SAVING";
|
|
91
111
|
case AccountType.ACCOUNT_TYPE_DFA:
|
|
92
112
|
return "ACCOUNT_TYPE_DFA";
|
|
113
|
+
case AccountType.ACCOUNT_TYPE_SHARED_SAVING:
|
|
114
|
+
return "ACCOUNT_TYPE_SHARED_SAVING";
|
|
115
|
+
case AccountType.ACCOUNT_TYPE_DEPOSIT:
|
|
116
|
+
return "ACCOUNT_TYPE_DEPOSIT";
|
|
117
|
+
case AccountType.ACCOUNT_TYPE_OMS:
|
|
118
|
+
return "ACCOUNT_TYPE_OMS";
|
|
119
|
+
case AccountType.ACCOUNT_TYPE_OFP_DEPOSIT:
|
|
120
|
+
return "ACCOUNT_TYPE_OFP_DEPOSIT";
|
|
93
121
|
case AccountType.UNRECOGNIZED:
|
|
94
122
|
default:
|
|
95
123
|
return "UNRECOGNIZED";
|