Skip to content

Commit

Permalink
release/1.9 (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: s.radyukov <[email protected]>
  • Loading branch information
sradykoff and s.radyukov authored Feb 19, 2024
1 parent 45c3c61 commit 7a0d7d0
Show file tree
Hide file tree
Showing 30 changed files with 121 additions and 2 deletions.
2 changes: 1 addition & 1 deletion investAPI
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 1 addition & 0 deletions src/generated/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface ProtoGrpcType {
api: {
contract: {
v1: {
BrandData: MessageTypeDefinition
InstrumentType: EnumTypeDefinition
MoneyValue: MessageTypeDefinition
Page: MessageTypeDefinition
Expand Down
2 changes: 2 additions & 0 deletions src/generated/instruments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface ProtoGrpcType {
BondResponse: MessageTypeDefinition
BondsResponse: MessageTypeDefinition
Brand: MessageTypeDefinition
BrandData: MessageTypeDefinition
CountryResponse: MessageTypeDefinition
Coupon: MessageTypeDefinition
CouponType: EnumTypeDefinition
Expand Down Expand Up @@ -145,6 +146,7 @@ export interface ProtoGrpcType {
SharesResponse: MessageTypeDefinition
StructuredProductType: EnumTypeDefinition
TradingDay: MessageTypeDefinition
TradingInterval: MessageTypeDefinition
TradingSchedule: MessageTypeDefinition
TradingSchedulesRequest: MessageTypeDefinition
TradingSchedulesResponse: MessageTypeDefinition
Expand Down
2 changes: 2 additions & 0 deletions src/generated/marketdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface ProtoGrpcType {
api: {
contract: {
v1: {
BrandData: MessageTypeDefinition
Candle: MessageTypeDefinition
CandleInstrument: MessageTypeDefinition
CandleInterval: EnumTypeDefinition
Expand Down Expand Up @@ -81,6 +82,7 @@ export interface ProtoGrpcType {
OrderBook: MessageTypeDefinition
OrderBookInstrument: MessageTypeDefinition
OrderBookSubscription: MessageTypeDefinition
OrderBookType: EnumTypeDefinition
Page: MessageTypeDefinition
PageResponse: MessageTypeDefinition
Ping: MessageTypeDefinition
Expand Down
1 change: 1 addition & 0 deletions src/generated/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface ProtoGrpcType {
contract: {
v1: {
AccountSubscriptionStatus: MessageTypeDefinition
BrandData: MessageTypeDefinition
BrokerReport: MessageTypeDefinition
BrokerReportRequest: MessageTypeDefinition
BrokerReportResponse: MessageTypeDefinition
Expand Down
1 change: 1 addition & 0 deletions src/generated/orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface ProtoGrpcType {
api: {
contract: {
v1: {
BrandData: MessageTypeDefinition
CancelOrderRequest: MessageTypeDefinition
CancelOrderResponse: MessageTypeDefinition
GetMaxLotsRequest: MessageTypeDefinition
Expand Down
1 change: 1 addition & 0 deletions src/generated/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export interface ProtoGrpcType {
AccountStatus: EnumTypeDefinition
AccountSubscriptionStatus: MessageTypeDefinition
AccountType: EnumTypeDefinition
BrandData: MessageTypeDefinition
BrokerReport: MessageTypeDefinition
BrokerReportRequest: MessageTypeDefinition
BrokerReportResponse: MessageTypeDefinition
Expand Down
1 change: 1 addition & 0 deletions src/generated/stoporders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface ProtoGrpcType {
api: {
contract: {
v1: {
BrandData: MessageTypeDefinition
CancelStopOrderRequest: MessageTypeDefinition
CancelStopOrderResponse: MessageTypeDefinition
ExchangeOrderType: EnumTypeDefinition
Expand Down
5 changes: 5 additions & 0 deletions src/generated/tinkoff/public/invest/api/contract/v1/Bond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand All @@ -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 {
Expand Down Expand Up @@ -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);
Expand All @@ -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);
}
14 changes: 14 additions & 0 deletions src/generated/tinkoff/public/invest/api/contract/v1/BrandData.ts
Original file line number Diff line number Diff line change
@@ -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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
5 changes: 5 additions & 0 deletions src/generated/tinkoff/public/invest/api/contract/v1/Etf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -38,13 +39,15 @@ 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);
'blockedTcaFlag'?: (boolean);
'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 {
Expand Down Expand Up @@ -80,11 +83,13 @@ 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);
'blockedTcaFlag': (boolean);
'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);
}
3 changes: 3 additions & 0 deletions src/generated/tinkoff/public/invest/api/contract/v1/Future.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -34,13 +35,15 @@ 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);
'blockedTcaFlag'?: (boolean);
'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 {
Expand Down Expand Up @@ -71,11 +74,13 @@ 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);
'blockedTcaFlag': (boolean);
'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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
3 changes: 3 additions & 0 deletions src/generated/tinkoff/public/invest/api/contract/v1/Option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 {
Expand All @@ -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);
}
Loading

0 comments on commit 7a0d7d0

Please sign in to comment.