From 7a0d7d0d359055533d6fad7db156e44b3b02e1c3 Mon Sep 17 00:00:00 2001 From: sradykoff <95680443+sradykoff@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:45:05 +0300 Subject: [PATCH] release/1.9 (#3) Co-authored-by: s.radyukov --- investAPI | 2 +- package.json | 2 +- src/generated/common.ts | 1 + src/generated/instruments.ts | 2 ++ src/generated/marketdata.ts | 2 ++ src/generated/operations.ts | 1 + src/generated/orders.ts | 1 + src/generated/sandbox.ts | 1 + src/generated/stoporders.ts | 1 + .../public/invest/api/contract/v1/Bond.ts | 5 ++++ .../invest/api/contract/v1/BrandData.ts | 14 +++++++++++ .../api/contract/v1/CandleSubscription.ts | 4 ++++ .../public/invest/api/contract/v1/Currency.ts | 3 +++ .../public/invest/api/contract/v1/Etf.ts | 5 ++++ .../public/invest/api/contract/v1/Future.ts | 3 +++ .../api/contract/v1/InfoSubscription.ts | 4 ++++ .../invest/api/contract/v1/Instrument.ts | 5 ++++ .../api/contract/v1/LastPriceSubscription.ts | 4 ++++ .../public/invest/api/contract/v1/Option.ts | 3 +++ .../invest/api/contract/v1/OrderBook.ts | 3 +++ .../api/contract/v1/OrderBookInstrument.ts | 3 +++ .../api/contract/v1/OrderBookSubscription.ts | 7 ++++++ .../invest/api/contract/v1/OrderBookType.ts | 7 ++++++ .../api/contract/v1/PostStopOrderRequest.ts | 2 ++ .../api/contract/v1/PostStopOrderResponse.ts | 2 ++ .../public/invest/api/contract/v1/Share.ts | 5 ++++ .../api/contract/v1/TradeSubscription.ts | 4 ++++ .../invest/api/contract/v1/TradingDay.ts | 3 +++ .../invest/api/contract/v1/TradingInterval.ts | 23 +++++++++++++++++++ src/generated/users.ts | 1 + 30 files changed, 121 insertions(+), 2 deletions(-) create mode 100644 src/generated/tinkoff/public/invest/api/contract/v1/BrandData.ts create mode 100644 src/generated/tinkoff/public/invest/api/contract/v1/OrderBookType.ts create mode 100644 src/generated/tinkoff/public/invest/api/contract/v1/TradingInterval.ts diff --git a/investAPI b/investAPI index c871a04..f9c9cba 160000 --- a/investAPI +++ b/investAPI @@ -1 +1 @@ -Subproject commit c871a04c109278d417af56f9d9e33ee25666e3bb +Subproject commit f9c9cbaa30d89bdc8b8614ce56f0af0476b5d086 diff --git a/package.json b/package.json index 95fe731..d8e56c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tinkoff/invest-js", - "version": "1.8.0", + "version": "1.9.0", "description": "Tinkoff Invest OpenAPI Client", "types": "./build/index.d.ts", "engines": { diff --git a/src/generated/common.ts b/src/generated/common.ts index e5366a5..e4afd1d 100644 --- a/src/generated/common.ts +++ b/src/generated/common.ts @@ -18,6 +18,7 @@ export interface ProtoGrpcType { api: { contract: { v1: { + BrandData: MessageTypeDefinition InstrumentType: EnumTypeDefinition MoneyValue: MessageTypeDefinition Page: MessageTypeDefinition diff --git a/src/generated/instruments.ts b/src/generated/instruments.ts index ea4d8b6..950c8fc 100644 --- a/src/generated/instruments.ts +++ b/src/generated/instruments.ts @@ -62,6 +62,7 @@ export interface ProtoGrpcType { BondResponse: MessageTypeDefinition BondsResponse: MessageTypeDefinition Brand: MessageTypeDefinition + BrandData: MessageTypeDefinition CountryResponse: MessageTypeDefinition Coupon: MessageTypeDefinition CouponType: EnumTypeDefinition @@ -145,6 +146,7 @@ export interface ProtoGrpcType { SharesResponse: MessageTypeDefinition StructuredProductType: EnumTypeDefinition TradingDay: MessageTypeDefinition + TradingInterval: MessageTypeDefinition TradingSchedule: MessageTypeDefinition TradingSchedulesRequest: MessageTypeDefinition TradingSchedulesResponse: MessageTypeDefinition diff --git a/src/generated/marketdata.ts b/src/generated/marketdata.ts index d674053..a965174 100644 --- a/src/generated/marketdata.ts +++ b/src/generated/marketdata.ts @@ -43,6 +43,7 @@ export interface ProtoGrpcType { api: { contract: { v1: { + BrandData: MessageTypeDefinition Candle: MessageTypeDefinition CandleInstrument: MessageTypeDefinition CandleInterval: EnumTypeDefinition @@ -81,6 +82,7 @@ export interface ProtoGrpcType { OrderBook: MessageTypeDefinition OrderBookInstrument: MessageTypeDefinition OrderBookSubscription: MessageTypeDefinition + OrderBookType: EnumTypeDefinition Page: MessageTypeDefinition PageResponse: MessageTypeDefinition Ping: MessageTypeDefinition diff --git a/src/generated/operations.ts b/src/generated/operations.ts index 48fdd7f..5c3ae29 100644 --- a/src/generated/operations.ts +++ b/src/generated/operations.ts @@ -44,6 +44,7 @@ export interface ProtoGrpcType { contract: { v1: { AccountSubscriptionStatus: MessageTypeDefinition + BrandData: MessageTypeDefinition BrokerReport: MessageTypeDefinition BrokerReportRequest: MessageTypeDefinition BrokerReportResponse: MessageTypeDefinition diff --git a/src/generated/orders.ts b/src/generated/orders.ts index 0aeaf49..78b0081 100644 --- a/src/generated/orders.ts +++ b/src/generated/orders.ts @@ -43,6 +43,7 @@ export interface ProtoGrpcType { api: { contract: { v1: { + BrandData: MessageTypeDefinition CancelOrderRequest: MessageTypeDefinition CancelOrderResponse: MessageTypeDefinition GetMaxLotsRequest: MessageTypeDefinition diff --git a/src/generated/sandbox.ts b/src/generated/sandbox.ts index b847184..fcbcdef 100644 --- a/src/generated/sandbox.ts +++ b/src/generated/sandbox.ts @@ -52,6 +52,7 @@ export interface ProtoGrpcType { AccountStatus: EnumTypeDefinition AccountSubscriptionStatus: MessageTypeDefinition AccountType: EnumTypeDefinition + BrandData: MessageTypeDefinition BrokerReport: MessageTypeDefinition BrokerReportRequest: MessageTypeDefinition BrokerReportResponse: MessageTypeDefinition diff --git a/src/generated/stoporders.ts b/src/generated/stoporders.ts index ab42fc7..e07b1c4 100644 --- a/src/generated/stoporders.ts +++ b/src/generated/stoporders.ts @@ -42,6 +42,7 @@ export interface ProtoGrpcType { api: { contract: { v1: { + BrandData: MessageTypeDefinition CancelStopOrderRequest: MessageTypeDefinition CancelStopOrderResponse: MessageTypeDefinition ExchangeOrderType: EnumTypeDefinition diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/Bond.ts b/src/generated/tinkoff/public/invest/api/contract/v1/Bond.ts index a3052ef..e4e8a80 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/Bond.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/Bond.ts @@ -6,6 +6,7 @@ import type { MoneyValue as _tinkoff_public_invest_api_contract_v1_MoneyValue, M import type { SecurityTradingStatus as _tinkoff_public_invest_api_contract_v1_SecurityTradingStatus } from '../../../../../../tinkoff/public/invest/api/contract/v1/SecurityTradingStatus'; import type { RealExchange as _tinkoff_public_invest_api_contract_v1_RealExchange } from '../../../../../../tinkoff/public/invest/api/contract/v1/RealExchange'; import type { RiskLevel as _tinkoff_public_invest_api_contract_v1_RiskLevel } from '../../../../../../tinkoff/public/invest/api/contract/v1/RiskLevel'; +import type { BrandData as _tinkoff_public_invest_api_contract_v1_BrandData, BrandData__Output as _tinkoff_public_invest_api_contract_v1_BrandData__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/BrandData'; import type { Long } from '@grpc/proto-loader'; export interface Bond { @@ -50,6 +51,7 @@ export interface Bond { 'uid'?: (string); 'realExchange'?: (_tinkoff_public_invest_api_contract_v1_RealExchange | keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange); 'positionUid'?: (string); + 'assetUid'?: (string); 'forIisFlag'?: (boolean); 'forQualInvestorFlag'?: (boolean); 'weekendFlag'?: (boolean); @@ -59,6 +61,7 @@ export interface Bond { 'first_1minCandleDate'?: (_google_protobuf_Timestamp | null); 'first_1dayCandleDate'?: (_google_protobuf_Timestamp | null); 'riskLevel'?: (_tinkoff_public_invest_api_contract_v1_RiskLevel | keyof typeof _tinkoff_public_invest_api_contract_v1_RiskLevel); + 'brand'?: (_tinkoff_public_invest_api_contract_v1_BrandData | null); } export interface Bond__Output { @@ -103,6 +106,7 @@ export interface Bond__Output { 'uid': (string); 'realExchange': (keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange); 'positionUid': (string); + 'assetUid': (string); 'forIisFlag': (boolean); 'forQualInvestorFlag': (boolean); 'weekendFlag': (boolean); @@ -112,4 +116,5 @@ export interface Bond__Output { 'first_1minCandleDate': (_google_protobuf_Timestamp__Output | null); 'first_1dayCandleDate': (_google_protobuf_Timestamp__Output | null); 'riskLevel': (keyof typeof _tinkoff_public_invest_api_contract_v1_RiskLevel); + 'brand': (_tinkoff_public_invest_api_contract_v1_BrandData__Output | null); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/BrandData.ts b/src/generated/tinkoff/public/invest/api/contract/v1/BrandData.ts new file mode 100644 index 0000000..a4edf10 --- /dev/null +++ b/src/generated/tinkoff/public/invest/api/contract/v1/BrandData.ts @@ -0,0 +1,14 @@ +// Original file: investAPI/src/docs/contracts/common.proto + + +export interface BrandData { + 'logoName'?: (string); + 'logoBaseColor'?: (string); + 'textColor'?: (string); +} + +export interface BrandData__Output { + 'logoName': (string); + 'logoBaseColor': (string); + 'textColor': (string); +} diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/CandleSubscription.ts b/src/generated/tinkoff/public/invest/api/contract/v1/CandleSubscription.ts index 9a63ffa..7ba9c0c 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/CandleSubscription.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/CandleSubscription.ts @@ -9,6 +9,8 @@ export interface CandleSubscription { 'subscriptionStatus'?: (_tinkoff_public_invest_api_contract_v1_SubscriptionStatus | keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid'?: (string); 'waitingClose'?: (boolean); + 'streamId'?: (string); + 'subscriptionId'?: (string); } export interface CandleSubscription__Output { @@ -17,4 +19,6 @@ export interface CandleSubscription__Output { 'subscriptionStatus': (keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid': (string); 'waitingClose': (boolean); + 'streamId': (string); + 'subscriptionId': (string); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/Currency.ts b/src/generated/tinkoff/public/invest/api/contract/v1/Currency.ts index 643466d..4e7b8b6 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/Currency.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/Currency.ts @@ -5,6 +5,7 @@ import type { MoneyValue as _tinkoff_public_invest_api_contract_v1_MoneyValue, M import type { SecurityTradingStatus as _tinkoff_public_invest_api_contract_v1_SecurityTradingStatus } from '../../../../../../tinkoff/public/invest/api/contract/v1/SecurityTradingStatus'; import type { RealExchange as _tinkoff_public_invest_api_contract_v1_RealExchange } from '../../../../../../tinkoff/public/invest/api/contract/v1/RealExchange'; import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../../../google/protobuf/Timestamp'; +import type { BrandData as _tinkoff_public_invest_api_contract_v1_BrandData, BrandData__Output as _tinkoff_public_invest_api_contract_v1_BrandData__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/BrandData'; export interface Currency { 'figi'?: (string); @@ -41,6 +42,7 @@ export interface Currency { 'blockedTcaFlag'?: (boolean); 'first_1minCandleDate'?: (_google_protobuf_Timestamp | null); 'first_1dayCandleDate'?: (_google_protobuf_Timestamp | null); + 'brand'?: (_tinkoff_public_invest_api_contract_v1_BrandData | null); } export interface Currency__Output { @@ -78,4 +80,5 @@ export interface Currency__Output { 'blockedTcaFlag': (boolean); 'first_1minCandleDate': (_google_protobuf_Timestamp__Output | null); 'first_1dayCandleDate': (_google_protobuf_Timestamp__Output | null); + 'brand': (_tinkoff_public_invest_api_contract_v1_BrandData__Output | null); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/Etf.ts b/src/generated/tinkoff/public/invest/api/contract/v1/Etf.ts index 1878f63..62c4cab 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/Etf.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/Etf.ts @@ -4,6 +4,7 @@ import type { Quotation as _tinkoff_public_invest_api_contract_v1_Quotation, Quo import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../../../google/protobuf/Timestamp'; import type { SecurityTradingStatus as _tinkoff_public_invest_api_contract_v1_SecurityTradingStatus } from '../../../../../../tinkoff/public/invest/api/contract/v1/SecurityTradingStatus'; import type { RealExchange as _tinkoff_public_invest_api_contract_v1_RealExchange } from '../../../../../../tinkoff/public/invest/api/contract/v1/RealExchange'; +import type { BrandData as _tinkoff_public_invest_api_contract_v1_BrandData, BrandData__Output as _tinkoff_public_invest_api_contract_v1_BrandData__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/BrandData'; export interface Etf { 'figi'?: (string); @@ -38,6 +39,7 @@ export interface Etf { 'uid'?: (string); 'realExchange'?: (_tinkoff_public_invest_api_contract_v1_RealExchange | keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange); 'positionUid'?: (string); + 'assetUid'?: (string); 'forIisFlag'?: (boolean); 'forQualInvestorFlag'?: (boolean); 'weekendFlag'?: (boolean); @@ -45,6 +47,7 @@ export interface Etf { 'liquidityFlag'?: (boolean); 'first_1minCandleDate'?: (_google_protobuf_Timestamp | null); 'first_1dayCandleDate'?: (_google_protobuf_Timestamp | null); + 'brand'?: (_tinkoff_public_invest_api_contract_v1_BrandData | null); } export interface Etf__Output { @@ -80,6 +83,7 @@ export interface Etf__Output { 'uid': (string); 'realExchange': (keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange); 'positionUid': (string); + 'assetUid': (string); 'forIisFlag': (boolean); 'forQualInvestorFlag': (boolean); 'weekendFlag': (boolean); @@ -87,4 +91,5 @@ export interface Etf__Output { 'liquidityFlag': (boolean); 'first_1minCandleDate': (_google_protobuf_Timestamp__Output | null); 'first_1dayCandleDate': (_google_protobuf_Timestamp__Output | null); + 'brand': (_tinkoff_public_invest_api_contract_v1_BrandData__Output | null); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/Future.ts b/src/generated/tinkoff/public/invest/api/contract/v1/Future.ts index 2578a59..3053038 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/Future.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/Future.ts @@ -5,6 +5,7 @@ import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _goo import type { SecurityTradingStatus as _tinkoff_public_invest_api_contract_v1_SecurityTradingStatus } from '../../../../../../tinkoff/public/invest/api/contract/v1/SecurityTradingStatus'; import type { RealExchange as _tinkoff_public_invest_api_contract_v1_RealExchange } from '../../../../../../tinkoff/public/invest/api/contract/v1/RealExchange'; import type { MoneyValue as _tinkoff_public_invest_api_contract_v1_MoneyValue, MoneyValue__Output as _tinkoff_public_invest_api_contract_v1_MoneyValue__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/MoneyValue'; +import type { BrandData as _tinkoff_public_invest_api_contract_v1_BrandData, BrandData__Output as _tinkoff_public_invest_api_contract_v1_BrandData__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/BrandData'; export interface Future { 'figi'?: (string); @@ -50,6 +51,7 @@ export interface Future { 'initialMarginOnBuy'?: (_tinkoff_public_invest_api_contract_v1_MoneyValue | null); 'initialMarginOnSell'?: (_tinkoff_public_invest_api_contract_v1_MoneyValue | null); 'minPriceIncrementAmount'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null); + 'brand'?: (_tinkoff_public_invest_api_contract_v1_BrandData | null); } export interface Future__Output { @@ -96,4 +98,5 @@ export interface Future__Output { 'initialMarginOnBuy': (_tinkoff_public_invest_api_contract_v1_MoneyValue__Output | null); 'initialMarginOnSell': (_tinkoff_public_invest_api_contract_v1_MoneyValue__Output | null); 'minPriceIncrementAmount': (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null); + 'brand': (_tinkoff_public_invest_api_contract_v1_BrandData__Output | null); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/InfoSubscription.ts b/src/generated/tinkoff/public/invest/api/contract/v1/InfoSubscription.ts index d7ecdcc..e2a2134 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/InfoSubscription.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/InfoSubscription.ts @@ -6,10 +6,14 @@ export interface InfoSubscription { 'figi'?: (string); 'subscriptionStatus'?: (_tinkoff_public_invest_api_contract_v1_SubscriptionStatus | keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid'?: (string); + 'streamId'?: (string); + 'subscriptionId'?: (string); } export interface InfoSubscription__Output { 'figi': (string); 'subscriptionStatus': (keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid': (string); + 'streamId': (string); + 'subscriptionId': (string); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/Instrument.ts b/src/generated/tinkoff/public/invest/api/contract/v1/Instrument.ts index 17e76df..09e25c0 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/Instrument.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/Instrument.ts @@ -5,6 +5,7 @@ import type { SecurityTradingStatus as _tinkoff_public_invest_api_contract_v1_Se import type { RealExchange as _tinkoff_public_invest_api_contract_v1_RealExchange } from '../../../../../../tinkoff/public/invest/api/contract/v1/RealExchange'; import type { InstrumentType as _tinkoff_public_invest_api_contract_v1_InstrumentType } from '../../../../../../tinkoff/public/invest/api/contract/v1/InstrumentType'; import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../../../google/protobuf/Timestamp'; +import type { BrandData as _tinkoff_public_invest_api_contract_v1_BrandData, BrandData__Output as _tinkoff_public_invest_api_contract_v1_BrandData__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/BrandData'; export interface Instrument { 'figi'?: (string); @@ -34,6 +35,7 @@ export interface Instrument { 'uid'?: (string); 'realExchange'?: (_tinkoff_public_invest_api_contract_v1_RealExchange | keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange); 'positionUid'?: (string); + 'assetUid'?: (string); 'forIisFlag'?: (boolean); 'forQualInvestorFlag'?: (boolean); 'weekendFlag'?: (boolean); @@ -41,6 +43,7 @@ export interface Instrument { 'instrumentKind'?: (_tinkoff_public_invest_api_contract_v1_InstrumentType | keyof typeof _tinkoff_public_invest_api_contract_v1_InstrumentType); 'first_1minCandleDate'?: (_google_protobuf_Timestamp | null); 'first_1dayCandleDate'?: (_google_protobuf_Timestamp | null); + 'brand'?: (_tinkoff_public_invest_api_contract_v1_BrandData | null); } export interface Instrument__Output { @@ -71,6 +74,7 @@ export interface Instrument__Output { 'uid': (string); 'realExchange': (keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange); 'positionUid': (string); + 'assetUid': (string); 'forIisFlag': (boolean); 'forQualInvestorFlag': (boolean); 'weekendFlag': (boolean); @@ -78,4 +82,5 @@ export interface Instrument__Output { 'instrumentKind': (keyof typeof _tinkoff_public_invest_api_contract_v1_InstrumentType); 'first_1minCandleDate': (_google_protobuf_Timestamp__Output | null); 'first_1dayCandleDate': (_google_protobuf_Timestamp__Output | null); + 'brand': (_tinkoff_public_invest_api_contract_v1_BrandData__Output | null); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/LastPriceSubscription.ts b/src/generated/tinkoff/public/invest/api/contract/v1/LastPriceSubscription.ts index 2d93042..8976d34 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/LastPriceSubscription.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/LastPriceSubscription.ts @@ -6,10 +6,14 @@ export interface LastPriceSubscription { 'figi'?: (string); 'subscriptionStatus'?: (_tinkoff_public_invest_api_contract_v1_SubscriptionStatus | keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid'?: (string); + 'streamId'?: (string); + 'subscriptionId'?: (string); } export interface LastPriceSubscription__Output { 'figi': (string); 'subscriptionStatus': (keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid': (string); + 'streamId': (string); + 'subscriptionId': (string); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/Option.ts b/src/generated/tinkoff/public/invest/api/contract/v1/Option.ts index 0424065..e311fce 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/Option.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/Option.ts @@ -6,6 +6,7 @@ import type { OptionDirection as _tinkoff_public_invest_api_contract_v1_OptionDi import type { OptionPaymentType as _tinkoff_public_invest_api_contract_v1_OptionPaymentType } from '../../../../../../tinkoff/public/invest/api/contract/v1/OptionPaymentType'; import type { OptionStyle as _tinkoff_public_invest_api_contract_v1_OptionStyle } from '../../../../../../tinkoff/public/invest/api/contract/v1/OptionStyle'; import type { OptionSettlementType as _tinkoff_public_invest_api_contract_v1_OptionSettlementType } from '../../../../../../tinkoff/public/invest/api/contract/v1/OptionSettlementType'; +import type { BrandData as _tinkoff_public_invest_api_contract_v1_BrandData, BrandData__Output as _tinkoff_public_invest_api_contract_v1_BrandData__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/BrandData'; import type { Quotation as _tinkoff_public_invest_api_contract_v1_Quotation, Quotation__Output as _tinkoff_public_invest_api_contract_v1_Quotation__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/Quotation'; import type { MoneyValue as _tinkoff_public_invest_api_contract_v1_MoneyValue, MoneyValue__Output as _tinkoff_public_invest_api_contract_v1_MoneyValue__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/MoneyValue'; import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../../../google/protobuf/Timestamp'; @@ -31,6 +32,7 @@ export interface Option { 'countryOfRisk'?: (string); 'countryOfRiskName'?: (string); 'sector'?: (string); + 'brand'?: (_tinkoff_public_invest_api_contract_v1_BrandData | null); 'lot'?: (number); 'basicAssetSize'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null); 'klong'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null); @@ -78,6 +80,7 @@ export interface Option__Output { 'countryOfRisk': (string); 'countryOfRiskName': (string); 'sector': (string); + 'brand': (_tinkoff_public_invest_api_contract_v1_BrandData__Output | null); 'lot': (number); 'basicAssetSize': (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null); 'klong': (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null); diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/OrderBook.ts b/src/generated/tinkoff/public/invest/api/contract/v1/OrderBook.ts index d36ab79..82ad21c 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/OrderBook.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/OrderBook.ts @@ -3,6 +3,7 @@ import type { Order as _tinkoff_public_invest_api_contract_v1_Order, Order__Output as _tinkoff_public_invest_api_contract_v1_Order__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/Order'; import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../../../google/protobuf/Timestamp'; import type { Quotation as _tinkoff_public_invest_api_contract_v1_Quotation, Quotation__Output as _tinkoff_public_invest_api_contract_v1_Quotation__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/Quotation'; +import type { OrderBookType as _tinkoff_public_invest_api_contract_v1_OrderBookType } from '../../../../../../tinkoff/public/invest/api/contract/v1/OrderBookType'; export interface OrderBook { 'figi'?: (string); @@ -14,6 +15,7 @@ export interface OrderBook { 'limitUp'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null); 'limitDown'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null); 'instrumentUid'?: (string); + 'orderBookType'?: (_tinkoff_public_invest_api_contract_v1_OrderBookType | keyof typeof _tinkoff_public_invest_api_contract_v1_OrderBookType); } export interface OrderBook__Output { @@ -26,4 +28,5 @@ export interface OrderBook__Output { 'limitUp': (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null); 'limitDown': (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null); 'instrumentUid': (string); + 'orderBookType': (keyof typeof _tinkoff_public_invest_api_contract_v1_OrderBookType); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookInstrument.ts b/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookInstrument.ts index 7c74b2f..fb808aa 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookInstrument.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookInstrument.ts @@ -1,14 +1,17 @@ // Original file: investAPI/src/docs/contracts/marketdata.proto +import type { OrderBookType as _tinkoff_public_invest_api_contract_v1_OrderBookType } from '../../../../../../tinkoff/public/invest/api/contract/v1/OrderBookType'; export interface OrderBookInstrument { 'figi'?: (string); 'depth'?: (number); 'instrumentId'?: (string); + 'orderBookType'?: (_tinkoff_public_invest_api_contract_v1_OrderBookType | keyof typeof _tinkoff_public_invest_api_contract_v1_OrderBookType); } export interface OrderBookInstrument__Output { 'figi': (string); 'depth': (number); 'instrumentId': (string); + 'orderBookType': (keyof typeof _tinkoff_public_invest_api_contract_v1_OrderBookType); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookSubscription.ts b/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookSubscription.ts index 3e518c6..58ac266 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookSubscription.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookSubscription.ts @@ -1,12 +1,16 @@ // Original file: investAPI/src/docs/contracts/marketdata.proto import type { SubscriptionStatus as _tinkoff_public_invest_api_contract_v1_SubscriptionStatus } from '../../../../../../tinkoff/public/invest/api/contract/v1/SubscriptionStatus'; +import type { OrderBookType as _tinkoff_public_invest_api_contract_v1_OrderBookType } from '../../../../../../tinkoff/public/invest/api/contract/v1/OrderBookType'; export interface OrderBookSubscription { 'figi'?: (string); 'depth'?: (number); 'subscriptionStatus'?: (_tinkoff_public_invest_api_contract_v1_SubscriptionStatus | keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid'?: (string); + 'streamId'?: (string); + 'subscriptionId'?: (string); + 'orderBookType'?: (_tinkoff_public_invest_api_contract_v1_OrderBookType | keyof typeof _tinkoff_public_invest_api_contract_v1_OrderBookType); } export interface OrderBookSubscription__Output { @@ -14,4 +18,7 @@ export interface OrderBookSubscription__Output { 'depth': (number); 'subscriptionStatus': (keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid': (string); + 'streamId': (string); + 'subscriptionId': (string); + 'orderBookType': (keyof typeof _tinkoff_public_invest_api_contract_v1_OrderBookType); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookType.ts b/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookType.ts new file mode 100644 index 0000000..477241d --- /dev/null +++ b/src/generated/tinkoff/public/invest/api/contract/v1/OrderBookType.ts @@ -0,0 +1,7 @@ +// Original file: investAPI/src/docs/contracts/marketdata.proto + +export enum OrderBookType { + ORDERBOOK_TYPE_UNSPECIFIED = 0, + ORDERBOOK_TYPE_EXCHANGE = 1, + ORDERBOOK_TYPE_DEALER = 2, +} diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/PostStopOrderRequest.ts b/src/generated/tinkoff/public/invest/api/contract/v1/PostStopOrderRequest.ts index 7414fbb..9c6657e 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/PostStopOrderRequest.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/PostStopOrderRequest.ts @@ -40,6 +40,7 @@ export interface PostStopOrderRequest { 'takeProfitType'?: (_tinkoff_public_invest_api_contract_v1_TakeProfitType | keyof typeof _tinkoff_public_invest_api_contract_v1_TakeProfitType); 'trailingData'?: (_tinkoff_public_invest_api_contract_v1_PostStopOrderRequest_TrailingData | null); 'priceType'?: (_tinkoff_public_invest_api_contract_v1_PriceType | keyof typeof _tinkoff_public_invest_api_contract_v1_PriceType); + 'orderId'?: (string); '_figi'?: "figi"; '_price'?: "price"; '_stopPrice'?: "stopPrice"; @@ -61,6 +62,7 @@ export interface PostStopOrderRequest__Output { 'takeProfitType': (keyof typeof _tinkoff_public_invest_api_contract_v1_TakeProfitType); 'trailingData': (_tinkoff_public_invest_api_contract_v1_PostStopOrderRequest_TrailingData__Output | null); 'priceType': (keyof typeof _tinkoff_public_invest_api_contract_v1_PriceType); + 'orderId': (string); '_figi': "figi"; '_price': "price"; '_stopPrice': "stopPrice"; diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/PostStopOrderResponse.ts b/src/generated/tinkoff/public/invest/api/contract/v1/PostStopOrderResponse.ts index 47d88e2..13da22b 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/PostStopOrderResponse.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/PostStopOrderResponse.ts @@ -4,10 +4,12 @@ import type { ResponseMetadata as _tinkoff_public_invest_api_contract_v1_Respons export interface PostStopOrderResponse { 'stopOrderId'?: (string); + 'orderRequestId'?: (string); 'responseMetadata'?: (_tinkoff_public_invest_api_contract_v1_ResponseMetadata | null); } export interface PostStopOrderResponse__Output { 'stopOrderId': (string); + 'orderRequestId': (string); 'responseMetadata': (_tinkoff_public_invest_api_contract_v1_ResponseMetadata__Output | null); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/Share.ts b/src/generated/tinkoff/public/invest/api/contract/v1/Share.ts index b181ff3..26d773a 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/Share.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/Share.ts @@ -6,6 +6,7 @@ import type { MoneyValue as _tinkoff_public_invest_api_contract_v1_MoneyValue, M import type { SecurityTradingStatus as _tinkoff_public_invest_api_contract_v1_SecurityTradingStatus } from '../../../../../../tinkoff/public/invest/api/contract/v1/SecurityTradingStatus'; import type { ShareType as _tinkoff_public_invest_api_contract_v1_ShareType } from '../../../../../../tinkoff/public/invest/api/contract/v1/ShareType'; import type { RealExchange as _tinkoff_public_invest_api_contract_v1_RealExchange } from '../../../../../../tinkoff/public/invest/api/contract/v1/RealExchange'; +import type { BrandData as _tinkoff_public_invest_api_contract_v1_BrandData, BrandData__Output as _tinkoff_public_invest_api_contract_v1_BrandData__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/BrandData'; import type { Long } from '@grpc/proto-loader'; export interface Share { @@ -42,6 +43,7 @@ export interface Share { 'uid'?: (string); 'realExchange'?: (_tinkoff_public_invest_api_contract_v1_RealExchange | keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange); 'positionUid'?: (string); + 'assetUid'?: (string); 'forIisFlag'?: (boolean); 'forQualInvestorFlag'?: (boolean); 'weekendFlag'?: (boolean); @@ -49,6 +51,7 @@ export interface Share { 'liquidityFlag'?: (boolean); 'first_1minCandleDate'?: (_google_protobuf_Timestamp | null); 'first_1dayCandleDate'?: (_google_protobuf_Timestamp | null); + 'brand'?: (_tinkoff_public_invest_api_contract_v1_BrandData | null); } export interface Share__Output { @@ -85,6 +88,7 @@ export interface Share__Output { 'uid': (string); 'realExchange': (keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange); 'positionUid': (string); + 'assetUid': (string); 'forIisFlag': (boolean); 'forQualInvestorFlag': (boolean); 'weekendFlag': (boolean); @@ -92,4 +96,5 @@ export interface Share__Output { 'liquidityFlag': (boolean); 'first_1minCandleDate': (_google_protobuf_Timestamp__Output | null); 'first_1dayCandleDate': (_google_protobuf_Timestamp__Output | null); + 'brand': (_tinkoff_public_invest_api_contract_v1_BrandData__Output | null); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/TradeSubscription.ts b/src/generated/tinkoff/public/invest/api/contract/v1/TradeSubscription.ts index ee16c04..9fd5505 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/TradeSubscription.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/TradeSubscription.ts @@ -6,10 +6,14 @@ export interface TradeSubscription { 'figi'?: (string); 'subscriptionStatus'?: (_tinkoff_public_invest_api_contract_v1_SubscriptionStatus | keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid'?: (string); + 'streamId'?: (string); + 'subscriptionId'?: (string); } export interface TradeSubscription__Output { 'figi': (string); 'subscriptionStatus': (keyof typeof _tinkoff_public_invest_api_contract_v1_SubscriptionStatus); 'instrumentUid': (string); + 'streamId': (string); + 'subscriptionId': (string); } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/TradingDay.ts b/src/generated/tinkoff/public/invest/api/contract/v1/TradingDay.ts index 2247257..d4c66c0 100644 --- a/src/generated/tinkoff/public/invest/api/contract/v1/TradingDay.ts +++ b/src/generated/tinkoff/public/invest/api/contract/v1/TradingDay.ts @@ -1,6 +1,7 @@ // Original file: investAPI/src/docs/contracts/instruments.proto import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../../../google/protobuf/Timestamp'; +import type { TradingInterval as _tinkoff_public_invest_api_contract_v1_TradingInterval, TradingInterval__Output as _tinkoff_public_invest_api_contract_v1_TradingInterval__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/TradingInterval'; export interface TradingDay { 'date'?: (_google_protobuf_Timestamp | null); @@ -18,6 +19,7 @@ export interface TradingDay { 'premarketEndTime'?: (_google_protobuf_Timestamp | null); 'closingAuctionStartTime'?: (_google_protobuf_Timestamp | null); 'openingAuctionEndTime'?: (_google_protobuf_Timestamp | null); + 'intervals'?: (_tinkoff_public_invest_api_contract_v1_TradingInterval)[]; } export interface TradingDay__Output { @@ -36,4 +38,5 @@ export interface TradingDay__Output { 'premarketEndTime': (_google_protobuf_Timestamp__Output | null); 'closingAuctionStartTime': (_google_protobuf_Timestamp__Output | null); 'openingAuctionEndTime': (_google_protobuf_Timestamp__Output | null); + 'intervals': (_tinkoff_public_invest_api_contract_v1_TradingInterval__Output)[]; } diff --git a/src/generated/tinkoff/public/invest/api/contract/v1/TradingInterval.ts b/src/generated/tinkoff/public/invest/api/contract/v1/TradingInterval.ts new file mode 100644 index 0000000..093a4e6 --- /dev/null +++ b/src/generated/tinkoff/public/invest/api/contract/v1/TradingInterval.ts @@ -0,0 +1,23 @@ +// Original file: investAPI/src/docs/contracts/instruments.proto + +import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../../../../google/protobuf/Timestamp'; + +export interface _tinkoff_public_invest_api_contract_v1_TradingInterval_TimeInterval { + 'startTs'?: (_google_protobuf_Timestamp | null); + 'endTs'?: (_google_protobuf_Timestamp | null); +} + +export interface _tinkoff_public_invest_api_contract_v1_TradingInterval_TimeInterval__Output { + 'startTs': (_google_protobuf_Timestamp__Output | null); + 'endTs': (_google_protobuf_Timestamp__Output | null); +} + +export interface TradingInterval { + 'type'?: (string); + 'interval'?: (_tinkoff_public_invest_api_contract_v1_TradingInterval_TimeInterval | null); +} + +export interface TradingInterval__Output { + 'type': (string); + 'interval': (_tinkoff_public_invest_api_contract_v1_TradingInterval_TimeInterval__Output | null); +} diff --git a/src/generated/users.ts b/src/generated/users.ts index b9a3f8a..56054d6 100644 --- a/src/generated/users.ts +++ b/src/generated/users.ts @@ -46,6 +46,7 @@ export interface ProtoGrpcType { Account: MessageTypeDefinition AccountStatus: EnumTypeDefinition AccountType: EnumTypeDefinition + BrandData: MessageTypeDefinition GetAccountsRequest: MessageTypeDefinition GetAccountsResponse: MessageTypeDefinition GetInfoRequest: MessageTypeDefinition