Skip to content

Commit

Permalink
Release v1.10 (#4)
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 Mar 12, 2024
1 parent 7a0d7d0 commit 0a5b61c
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 2 deletions.
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.9.0",
"version": "1.10.0",
"description": "Tinkoff Invest OpenAPI Client",
"types": "./build/index.d.ts",
"engines": {
Expand Down
2 changes: 2 additions & 0 deletions src/generated/marketdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export interface ProtoGrpcType {
GetMySubscriptions: MessageTypeDefinition
GetOrderBookRequest: MessageTypeDefinition
GetOrderBookResponse: MessageTypeDefinition
GetTechAnalysisRequest: MessageTypeDefinition
GetTechAnalysisResponse: MessageTypeDefinition
GetTradingStatusRequest: MessageTypeDefinition
GetTradingStatusResponse: MessageTypeDefinition
GetTradingStatusesRequest: MessageTypeDefinition
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// Original file: investAPI/src/docs/contracts/marketdata.proto

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';

export interface _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_Deviation {
'deviationMultiplier'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null);
}

export interface _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_Deviation__Output {
'deviationMultiplier': (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null);
}

// Original file: investAPI/src/docs/contracts/marketdata.proto

export enum _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_IndicatorInterval {
INDICATOR_INTERVAL_UNSPECIFIED = 0,
INDICATOR_INTERVAL_ONE_MINUTE = 1,
INDICATOR_INTERVAL_FIVE_MINUTES = 2,
INDICATOR_INTERVAL_FIFTEEN_MINUTES = 3,
INDICATOR_INTERVAL_ONE_HOUR = 4,
INDICATOR_INTERVAL_ONE_DAY = 5,
INDICATOR_INTERVAL_2_MIN = 6,
INDICATOR_INTERVAL_3_MIN = 7,
INDICATOR_INTERVAL_10_MIN = 8,
INDICATOR_INTERVAL_30_MIN = 9,
INDICATOR_INTERVAL_2_HOUR = 10,
INDICATOR_INTERVAL_4_HOUR = 11,
INDICATOR_INTERVAL_WEEK = 12,
INDICATOR_INTERVAL_MONTH = 13,
}

// Original file: investAPI/src/docs/contracts/marketdata.proto

export enum _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_IndicatorType {
INDICATOR_TYPE_UNSPECIFIED = 0,
INDICATOR_TYPE_BB = 1,
INDICATOR_TYPE_EMA = 2,
INDICATOR_TYPE_RSI = 3,
INDICATOR_TYPE_MACD = 4,
INDICATOR_TYPE_SMA = 5,
}

export interface _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_Smoothing {
'fastLength'?: (number);
'slowLength'?: (number);
'signalSmoothing'?: (number);
}

export interface _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_Smoothing__Output {
'fastLength': (number);
'slowLength': (number);
'signalSmoothing': (number);
}

// Original file: investAPI/src/docs/contracts/marketdata.proto

export enum _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_TypeOfPrice {
TYPE_OF_PRICE_UNSPECIFIED = 0,
TYPE_OF_PRICE_CLOSE = 1,
TYPE_OF_PRICE_OPEN = 2,
TYPE_OF_PRICE_HIGH = 3,
TYPE_OF_PRICE_LOW = 4,
TYPE_OF_PRICE_AVG = 5,
}

export interface GetTechAnalysisRequest {
'indicatorType'?: (_tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_IndicatorType | keyof typeof _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_IndicatorType);
'instrumentUid'?: (string);
'from'?: (_google_protobuf_Timestamp | null);
'to'?: (_google_protobuf_Timestamp | null);
'interval'?: (_tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_IndicatorInterval | keyof typeof _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_IndicatorInterval);
'typeOfPrice'?: (_tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_TypeOfPrice | keyof typeof _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_TypeOfPrice);
'length'?: (number);
'deviation'?: (_tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_Deviation | null);
'smoothing'?: (_tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_Smoothing | null);
}

export interface GetTechAnalysisRequest__Output {
'indicatorType': (keyof typeof _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_IndicatorType);
'instrumentUid': (string);
'from': (_google_protobuf_Timestamp__Output | null);
'to': (_google_protobuf_Timestamp__Output | null);
'interval': (keyof typeof _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_IndicatorInterval);
'typeOfPrice': (keyof typeof _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_TypeOfPrice);
'length': (number);
'deviation': (_tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_Deviation__Output | null);
'smoothing': (_tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest_Smoothing__Output | null);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Original file: investAPI/src/docs/contracts/marketdata.proto

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';

export interface _tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse_TechAnalysisItem {
'timestamp'?: (_google_protobuf_Timestamp | null);
'middleBand'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null);
'upperBand'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null);
'lowerBand'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null);
'signal'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null);
'macd'?: (_tinkoff_public_invest_api_contract_v1_Quotation | null);
'_middleBand'?: "middleBand";
'_upperBand'?: "upperBand";
'_lowerBand'?: "lowerBand";
'_signal'?: "signal";
'_macd'?: "macd";
}

export interface _tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse_TechAnalysisItem__Output {
'timestamp': (_google_protobuf_Timestamp__Output | null);
'middleBand'?: (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null);
'upperBand'?: (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null);
'lowerBand'?: (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null);
'signal'?: (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null);
'macd'?: (_tinkoff_public_invest_api_contract_v1_Quotation__Output | null);
'_middleBand': "middleBand";
'_upperBand': "upperBand";
'_lowerBand': "lowerBand";
'_signal': "signal";
'_macd': "macd";
}

export interface GetTechAnalysisResponse {
'technicalIndicators'?: (_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse_TechAnalysisItem)[];
}

export interface GetTechAnalysisResponse__Output {
'technicalIndicators': (_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse_TechAnalysisItem__Output)[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import type { GetLastTradesRequest as _tinkoff_public_invest_api_contract_v1_Get
import type { GetLastTradesResponse as _tinkoff_public_invest_api_contract_v1_GetLastTradesResponse, GetLastTradesResponse__Output as _tinkoff_public_invest_api_contract_v1_GetLastTradesResponse__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/GetLastTradesResponse';
import type { GetOrderBookRequest as _tinkoff_public_invest_api_contract_v1_GetOrderBookRequest, GetOrderBookRequest__Output as _tinkoff_public_invest_api_contract_v1_GetOrderBookRequest__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/GetOrderBookRequest';
import type { GetOrderBookResponse as _tinkoff_public_invest_api_contract_v1_GetOrderBookResponse, GetOrderBookResponse__Output as _tinkoff_public_invest_api_contract_v1_GetOrderBookResponse__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/GetOrderBookResponse';
import type { GetTechAnalysisRequest as _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, GetTechAnalysisRequest__Output as _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/GetTechAnalysisRequest';
import type { GetTechAnalysisResponse as _tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse, GetTechAnalysisResponse__Output as _tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/GetTechAnalysisResponse';
import type { GetTradingStatusRequest as _tinkoff_public_invest_api_contract_v1_GetTradingStatusRequest, GetTradingStatusRequest__Output as _tinkoff_public_invest_api_contract_v1_GetTradingStatusRequest__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/GetTradingStatusRequest';
import type { GetTradingStatusResponse as _tinkoff_public_invest_api_contract_v1_GetTradingStatusResponse, GetTradingStatusResponse__Output as _tinkoff_public_invest_api_contract_v1_GetTradingStatusResponse__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/GetTradingStatusResponse';
import type { GetTradingStatusesRequest as _tinkoff_public_invest_api_contract_v1_GetTradingStatusesRequest, GetTradingStatusesRequest__Output as _tinkoff_public_invest_api_contract_v1_GetTradingStatusesRequest__Output } from '../../../../../../tinkoff/public/invest/api/contract/v1/GetTradingStatusesRequest';
Expand Down Expand Up @@ -63,6 +65,15 @@ export interface MarketDataServiceClient extends grpc.Client {
getOrderBook(argument: _tinkoff_public_invest_api_contract_v1_GetOrderBookRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetOrderBookResponse__Output>): grpc.ClientUnaryCall;
getOrderBook(argument: _tinkoff_public_invest_api_contract_v1_GetOrderBookRequest, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetOrderBookResponse__Output>): grpc.ClientUnaryCall;

GetTechAnalysis(argument: _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output>): grpc.ClientUnaryCall;
GetTechAnalysis(argument: _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output>): grpc.ClientUnaryCall;
GetTechAnalysis(argument: _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output>): grpc.ClientUnaryCall;
GetTechAnalysis(argument: _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output>): grpc.ClientUnaryCall;
getTechAnalysis(argument: _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output>): grpc.ClientUnaryCall;
getTechAnalysis(argument: _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output>): grpc.ClientUnaryCall;
getTechAnalysis(argument: _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output>): grpc.ClientUnaryCall;
getTechAnalysis(argument: _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output>): grpc.ClientUnaryCall;

GetTradingStatus(argument: _tinkoff_public_invest_api_contract_v1_GetTradingStatusRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTradingStatusResponse__Output>): grpc.ClientUnaryCall;
GetTradingStatus(argument: _tinkoff_public_invest_api_contract_v1_GetTradingStatusRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTradingStatusResponse__Output>): grpc.ClientUnaryCall;
GetTradingStatus(argument: _tinkoff_public_invest_api_contract_v1_GetTradingStatusRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_tinkoff_public_invest_api_contract_v1_GetTradingStatusResponse__Output>): grpc.ClientUnaryCall;
Expand Down Expand Up @@ -94,6 +105,8 @@ export interface MarketDataServiceHandlers extends grpc.UntypedServiceImplementa

GetOrderBook: grpc.handleUnaryCall<_tinkoff_public_invest_api_contract_v1_GetOrderBookRequest__Output, _tinkoff_public_invest_api_contract_v1_GetOrderBookResponse>;

GetTechAnalysis: grpc.handleUnaryCall<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest__Output, _tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse>;

GetTradingStatus: grpc.handleUnaryCall<_tinkoff_public_invest_api_contract_v1_GetTradingStatusRequest__Output, _tinkoff_public_invest_api_contract_v1_GetTradingStatusResponse>;

GetTradingStatuses: grpc.handleUnaryCall<_tinkoff_public_invest_api_contract_v1_GetTradingStatusesRequest__Output, _tinkoff_public_invest_api_contract_v1_GetTradingStatusesResponse>;
Expand All @@ -106,6 +119,7 @@ export interface MarketDataServiceDefinition extends grpc.ServiceDefinition {
GetLastPrices: MethodDefinition<_tinkoff_public_invest_api_contract_v1_GetLastPricesRequest, _tinkoff_public_invest_api_contract_v1_GetLastPricesResponse, _tinkoff_public_invest_api_contract_v1_GetLastPricesRequest__Output, _tinkoff_public_invest_api_contract_v1_GetLastPricesResponse__Output>
GetLastTrades: MethodDefinition<_tinkoff_public_invest_api_contract_v1_GetLastTradesRequest, _tinkoff_public_invest_api_contract_v1_GetLastTradesResponse, _tinkoff_public_invest_api_contract_v1_GetLastTradesRequest__Output, _tinkoff_public_invest_api_contract_v1_GetLastTradesResponse__Output>
GetOrderBook: MethodDefinition<_tinkoff_public_invest_api_contract_v1_GetOrderBookRequest, _tinkoff_public_invest_api_contract_v1_GetOrderBookResponse, _tinkoff_public_invest_api_contract_v1_GetOrderBookRequest__Output, _tinkoff_public_invest_api_contract_v1_GetOrderBookResponse__Output>
GetTechAnalysis: MethodDefinition<_tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest, _tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse, _tinkoff_public_invest_api_contract_v1_GetTechAnalysisRequest__Output, _tinkoff_public_invest_api_contract_v1_GetTechAnalysisResponse__Output>
GetTradingStatus: MethodDefinition<_tinkoff_public_invest_api_contract_v1_GetTradingStatusRequest, _tinkoff_public_invest_api_contract_v1_GetTradingStatusResponse, _tinkoff_public_invest_api_contract_v1_GetTradingStatusRequest__Output, _tinkoff_public_invest_api_contract_v1_GetTradingStatusResponse__Output>
GetTradingStatuses: MethodDefinition<_tinkoff_public_invest_api_contract_v1_GetTradingStatusesRequest, _tinkoff_public_invest_api_contract_v1_GetTradingStatusesResponse, _tinkoff_public_invest_api_contract_v1_GetTradingStatusesRequest__Output, _tinkoff_public_invest_api_contract_v1_GetTradingStatusesResponse__Output>
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
// Original file: investAPI/src/docs/contracts/orders.proto

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';
import type { Long } from '@grpc/proto-loader';

export interface OrderStage {
'price'?: (_tinkoff_public_invest_api_contract_v1_MoneyValue | null);
'quantity'?: (number | string | Long);
'tradeId'?: (string);
'executionTime'?: (_google_protobuf_Timestamp | null);
}

export interface OrderStage__Output {
'price': (_tinkoff_public_invest_api_contract_v1_MoneyValue__Output | null);
'quantity': (string);
'tradeId': (string);
'executionTime': (_google_protobuf_Timestamp__Output | null);
}

0 comments on commit 0a5b61c

Please sign in to comment.