Skip to content

Commit

Permalink
Release/1.22 (#8)
Browse files Browse the repository at this point in the history
* Release v1.22

* Release v1.22 contracts

* 1.22.1 tsconfig es6

---------

Co-authored-by: s.radyukov <[email protected]>
  • Loading branch information
sradykoff and s.radyukov authored May 28, 2024
1 parent 9b3f209 commit 66dac2c
Show file tree
Hide file tree
Showing 30 changed files with 159 additions and 10 deletions.
2 changes: 1 addition & 1 deletion investAPI
Submodule investAPI updated 87 files
+2 −1 README.md
+12 −14 src/docs/accredited_investor.md
+153 −146 src/docs/algorithmic_trading.md
+8 −7 src/docs/api_protocols.md
+51 −55 src/docs/cases.md
+39 −28 src/docs/contracts/common.proto
+430 −415 src/docs/contracts/instruments.proto
+12 −1 src/docs/contracts/marketdata.proto
+2 −1 src/docs/contracts/operations.proto
+87 −1 src/docs/contracts/orders.proto
+18 −15 src/docs/contracts/sandbox.proto
+1 −0 src/docs/contracts/stoporders.proto
+16 −15 src/docs/contracts/users.proto
+11 −11 src/docs/deadlines.md
+14 −18 src/docs/eol_v1.md
+133 −133 src/docs/errors.md
+225 −225 src/docs/errors/api_errors.json
+44 −45 src/docs/example.md
+30 −42 src/docs/faq.md
+44 −47 src/docs/faq_corp_action.md
+3 −11 src/docs/faq_csharp.md
+37 −29 src/docs/faq_custom_types.md
+7 −8 src/docs/faq_golang.md
+56 −38 src/docs/faq_identification.md
+170 −180 src/docs/faq_instruments.md
+36 −27 src/docs/faq_java.md
+0 −6 src/docs/faq_marketdata.md
+5 −11 src/docs/faq_python.md
+35 −43 src/docs/faq_sandbox.md
+54 −57 src/docs/faq_trading_status.md
+17 −17 src/docs/faq_users.md
+9 −1 src/docs/get_history.md
+55 −58 src/docs/glossary.md
+109 −89 src/docs/grpc.md
+163 −178 src/docs/head-instruments.md
+1 −0 src/docs/head-marketdata.md
+143 −123 src/docs/head-sandbox.md
+27 −30 src/docs/head-users.md
+62 −0 src/docs/held_instruments.md
+14 −14 src/docs/http_errors.md
+ src/docs/img/icon-chrom.png
+33 −39 src/docs/index.md
+439 −414 src/docs/instruments.md
+59 −45 src/docs/limits.md
+22 −25 src/docs/load_history.md
+17 −1 src/docs/marketdata.md
+29 −21 src/docs/markets.md
+42 −40 src/docs/more-instrument.md
+147 −3 src/docs/orders.md
+52 −49 src/docs/orders_details.md
+67 −0 src/docs/orders_state_stream.md
+22 −27 src/docs/points.md
+13 −12 src/docs/robot_contest.md
+23 −15 src/docs/sandbox.md
+11 −4 src/docs/sla.md
+22 −18 src/docs/speedup.md
+1 −0 src/docs/stoporders.md
+8 −12 src/docs/stream.md
+16 −0 src/docs/swagger-ui/index.css
+79 −0 src/docs/swagger-ui/oauth2-redirect.html
+624 −120 src/docs/swagger-ui/openapi.yaml
+1 −1 src/docs/swagger-ui/swagger-ui-bundle.js
+1 −1 src/docs/swagger-ui/swagger-ui-bundle.js.map
+3 −0 src/docs/swagger-ui/swagger-ui-es-bundle-core.js
+1 −0 src/docs/swagger-ui/swagger-ui-es-bundle-core.js.map
+3 −0 src/docs/swagger-ui/swagger-ui-es-bundle.js
+1 −0 src/docs/swagger-ui/swagger-ui-es-bundle.js.map
+1 −1 src/docs/swagger-ui/swagger-ui-standalone-preset.js
+1 −1 src/docs/swagger-ui/swagger-ui-standalone-preset.js.map
+1 −2 src/docs/swagger-ui/swagger-ui.css
+1 −1 src/docs/swagger-ui/swagger-ui.css.map
+2 −0 src/docs/swagger-ui/swagger-ui.js
+1 −0 src/docs/swagger-ui/swagger-ui.js.map
+27 −29 src/docs/swagger.md
+45 −45 src/docs/table_order_currency.md
+79 −67 src/docs/tech_indicators.md
+59 −0 src/docs/tinkoff_fund.md
+49 −44 src/docs/token.md
+17 −15 src/docs/url_difference.md
+14 −14 src/docs/users.md
+77 −0 src/docs/weekend.md
+7 −49 src/docs/weekend_trading.md
+79 −61 src/docs/ws/README.md
+441 −30 src/docs/ws/asyncapi.yaml
+7 −7 src/docs/ws/errors.md
+441 −30 src/docs/ws/websock/draft-asyncapi.yaml
+51 −45 src/mkdocs.yml
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.19.0",
"version": "1.22.1",
"description": "Tinkoff Invest OpenAPI Client",
"types": "./build/index.d.ts",
"engines": {
Expand Down
2 changes: 2 additions & 0 deletions src/generated/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface ProtoGrpcType {
contract: {
v1: {
BrandData: MessageTypeDefinition
ErrorDetail: MessageTypeDefinition
InstrumentType: EnumTypeDefinition
MoneyValue: MessageTypeDefinition
Page: MessageTypeDefinition
Expand All @@ -27,6 +28,7 @@ export interface ProtoGrpcType {
PriceType: EnumTypeDefinition
Quotation: MessageTypeDefinition
ResponseMetadata: MessageTypeDefinition
ResultSubscriptionStatus: EnumTypeDefinition
SecurityTradingStatus: EnumTypeDefinition
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/generated/instruments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export interface ProtoGrpcType {
AssetsResponse: MessageTypeDefinition
Bond: MessageTypeDefinition
BondResponse: MessageTypeDefinition
BondType: EnumTypeDefinition
BondsResponse: MessageTypeDefinition
Brand: MessageTypeDefinition
BrandData: MessageTypeDefinition
Expand All @@ -74,6 +75,7 @@ export interface ProtoGrpcType {
EditFavoritesRequest: MessageTypeDefinition
EditFavoritesRequestInstrument: MessageTypeDefinition
EditFavoritesResponse: MessageTypeDefinition
ErrorDetail: MessageTypeDefinition
Etf: MessageTypeDefinition
EtfResponse: MessageTypeDefinition
EtfsResponse: MessageTypeDefinition
Expand Down Expand Up @@ -113,6 +115,7 @@ export interface ProtoGrpcType {
IndicativesRequest: MessageTypeDefinition
IndicativesResponse: MessageTypeDefinition
Instrument: MessageTypeDefinition
InstrumentExchangeType: EnumTypeDefinition
InstrumentIdType: EnumTypeDefinition
InstrumentLink: MessageTypeDefinition
InstrumentRequest: MessageTypeDefinition
Expand All @@ -138,6 +141,7 @@ export interface ProtoGrpcType {
RealExchange: EnumTypeDefinition
Recommendation: EnumTypeDefinition
ResponseMetadata: MessageTypeDefinition
ResultSubscriptionStatus: EnumTypeDefinition
RiskLevel: EnumTypeDefinition
SecurityTradingStatus: EnumTypeDefinition
Share: MessageTypeDefinition
Expand Down
3 changes: 3 additions & 0 deletions src/generated/marketdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface ProtoGrpcType {
CandleInterval: EnumTypeDefinition
CandleSource: EnumTypeDefinition
CandleSubscription: MessageTypeDefinition
ErrorDetail: MessageTypeDefinition
GetCandlesRequest: MessageTypeDefinition
GetCandlesResponse: MessageTypeDefinition
GetClosePricesRequest: MessageTypeDefinition
Expand Down Expand Up @@ -92,6 +93,7 @@ export interface ProtoGrpcType {
PriceType: EnumTypeDefinition
Quotation: MessageTypeDefinition
ResponseMetadata: MessageTypeDefinition
ResultSubscriptionStatus: EnumTypeDefinition
SecurityTradingStatus: EnumTypeDefinition
SubscribeCandlesRequest: MessageTypeDefinition
SubscribeCandlesResponse: MessageTypeDefinition
Expand All @@ -109,6 +111,7 @@ export interface ProtoGrpcType {
Trade: MessageTypeDefinition
TradeDirection: EnumTypeDefinition
TradeInstrument: MessageTypeDefinition
TradeSourceType: EnumTypeDefinition
TradeSubscription: MessageTypeDefinition
TradingStatus: MessageTypeDefinition
}
Expand Down
2 changes: 2 additions & 0 deletions src/generated/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface ProtoGrpcType {
BrokerReportRequest: MessageTypeDefinition
BrokerReportResponse: MessageTypeDefinition
DividendsForeignIssuerReport: MessageTypeDefinition
ErrorDetail: MessageTypeDefinition
GenerateBrokerReportRequest: MessageTypeDefinition
GenerateBrokerReportResponse: MessageTypeDefinition
GenerateDividendsForeignIssuerReportRequest: MessageTypeDefinition
Expand Down Expand Up @@ -99,6 +100,7 @@ export interface ProtoGrpcType {
PriceType: EnumTypeDefinition
Quotation: MessageTypeDefinition
ResponseMetadata: MessageTypeDefinition
ResultSubscriptionStatus: EnumTypeDefinition
SecurityTradingStatus: EnumTypeDefinition
VirtualPortfolioPosition: MessageTypeDefinition
WithdrawLimitsRequest: MessageTypeDefinition
Expand Down
4 changes: 4 additions & 0 deletions src/generated/orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface ProtoGrpcType {
BrandData: MessageTypeDefinition
CancelOrderRequest: MessageTypeDefinition
CancelOrderResponse: MessageTypeDefinition
ErrorDetail: MessageTypeDefinition
GetMaxLotsRequest: MessageTypeDefinition
GetMaxLotsResponse: MessageTypeDefinition
GetOrderPriceRequest: MessageTypeDefinition
Expand All @@ -59,6 +60,8 @@ export interface ProtoGrpcType {
OrderExecutionReportStatus: EnumTypeDefinition
OrderStage: MessageTypeDefinition
OrderState: MessageTypeDefinition
OrderStateStreamRequest: MessageTypeDefinition
OrderStateStreamResponse: MessageTypeDefinition
OrderTrade: MessageTypeDefinition
OrderTrades: MessageTypeDefinition
OrderType: EnumTypeDefinition
Expand All @@ -73,6 +76,7 @@ export interface ProtoGrpcType {
Quotation: MessageTypeDefinition
ReplaceOrderRequest: MessageTypeDefinition
ResponseMetadata: MessageTypeDefinition
ResultSubscriptionStatus: EnumTypeDefinition
SecurityTradingStatus: EnumTypeDefinition
TimeInForceType: EnumTypeDefinition
TradesStreamRequest: MessageTypeDefinition
Expand Down
4 changes: 4 additions & 0 deletions src/generated/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export interface ProtoGrpcType {
CloseSandboxAccountRequest: MessageTypeDefinition
CloseSandboxAccountResponse: MessageTypeDefinition
DividendsForeignIssuerReport: MessageTypeDefinition
ErrorDetail: MessageTypeDefinition
GenerateBrokerReportRequest: MessageTypeDefinition
GenerateBrokerReportResponse: MessageTypeDefinition
GenerateDividendsForeignIssuerReportRequest: MessageTypeDefinition
Expand Down Expand Up @@ -107,6 +108,8 @@ export interface ProtoGrpcType {
OrderExecutionReportStatus: EnumTypeDefinition
OrderStage: MessageTypeDefinition
OrderState: MessageTypeDefinition
OrderStateStreamRequest: MessageTypeDefinition
OrderStateStreamResponse: MessageTypeDefinition
OrderTrade: MessageTypeDefinition
OrderTrades: MessageTypeDefinition
OrderType: EnumTypeDefinition
Expand Down Expand Up @@ -140,6 +143,7 @@ export interface ProtoGrpcType {
Quotation: MessageTypeDefinition
ReplaceOrderRequest: MessageTypeDefinition
ResponseMetadata: MessageTypeDefinition
ResultSubscriptionStatus: EnumTypeDefinition
SandboxPayInRequest: MessageTypeDefinition
SandboxPayInResponse: MessageTypeDefinition
SandboxService: SubtypeConstructor<typeof grpc.Client, _tinkoff_public_invest_api_contract_v1_SandboxServiceClient> & { service: _tinkoff_public_invest_api_contract_v1_SandboxServiceDefinition }
Expand Down
2 changes: 2 additions & 0 deletions src/generated/stoporders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export interface ProtoGrpcType {
BrandData: MessageTypeDefinition
CancelStopOrderRequest: MessageTypeDefinition
CancelStopOrderResponse: MessageTypeDefinition
ErrorDetail: MessageTypeDefinition
ExchangeOrderType: EnumTypeDefinition
GetStopOrdersRequest: MessageTypeDefinition
GetStopOrdersResponse: MessageTypeDefinition
Expand All @@ -58,6 +59,7 @@ export interface ProtoGrpcType {
PriceType: EnumTypeDefinition
Quotation: MessageTypeDefinition
ResponseMetadata: MessageTypeDefinition
ResultSubscriptionStatus: EnumTypeDefinition
SecurityTradingStatus: EnumTypeDefinition
StopOrder: MessageTypeDefinition
StopOrderDirection: EnumTypeDefinition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export enum AccountType {
ACCOUNT_TYPE_TINKOFF = 1,
ACCOUNT_TYPE_TINKOFF_IIS = 2,
ACCOUNT_TYPE_INVEST_BOX = 3,
ACCOUNT_TYPE_INVEST_FUND = 4,
}
3 changes: 3 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 @@ -7,6 +7,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 { 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 { BondType as _tinkoff_public_invest_api_contract_v1_BondType } from '../../../../../../tinkoff/public/invest/api/contract/v1/BondType';
import type { Long } from '@grpc/proto-loader';

export interface Bond {
Expand Down Expand Up @@ -62,6 +63,7 @@ export interface Bond {
'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);
'bondType'?: (_tinkoff_public_invest_api_contract_v1_BondType | keyof typeof _tinkoff_public_invest_api_contract_v1_BondType);
}

export interface Bond__Output {
Expand Down Expand Up @@ -117,4 +119,5 @@ export interface Bond__Output {
'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);
'bondType': (keyof typeof _tinkoff_public_invest_api_contract_v1_BondType);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Original file: investAPI/src/docs/contracts/instruments.proto

export enum BondType {
BOND_TYPE_UNSPECIFIED = 0,
BOND_TYPE_REPLACED = 1,
}
12 changes: 12 additions & 0 deletions src/generated/tinkoff/public/invest/api/contract/v1/ErrorDetail.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Original file: investAPI/src/docs/contracts/common.proto


export interface ErrorDetail {
'code'?: (string);
'message'?: (string);
}

export interface ErrorDetail__Output {
'code': (string);
'message': (string);
}
3 changes: 3 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 { InstrumentExchangeType as _tinkoff_public_invest_api_contract_v1_InstrumentExchangeType } from '../../../../../../tinkoff/public/invest/api/contract/v1/InstrumentExchangeType';
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 {
Expand Down Expand Up @@ -40,6 +41,7 @@ export interface Etf {
'realExchange'?: (_tinkoff_public_invest_api_contract_v1_RealExchange | keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange);
'positionUid'?: (string);
'assetUid'?: (string);
'instrumentExchange'?: (_tinkoff_public_invest_api_contract_v1_InstrumentExchangeType | keyof typeof _tinkoff_public_invest_api_contract_v1_InstrumentExchangeType);
'forIisFlag'?: (boolean);
'forQualInvestorFlag'?: (boolean);
'weekendFlag'?: (boolean);
Expand Down Expand Up @@ -84,6 +86,7 @@ export interface Etf__Output {
'realExchange': (keyof typeof _tinkoff_public_invest_api_contract_v1_RealExchange);
'positionUid': (string);
'assetUid': (string);
'instrumentExchange': (keyof typeof _tinkoff_public_invest_api_contract_v1_InstrumentExchangeType);
'forIisFlag': (boolean);
'forQualInvestorFlag': (boolean);
'weekendFlag': (boolean);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Original file: investAPI/src/docs/contracts/instruments.proto

export enum InstrumentExchangeType {
INSTRUMENT_EXCHANGE_UNSPECIFIED = 0,
INSTRUMENT_EXCHANGE_DEALER = 1,
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
// Original file: investAPI/src/docs/contracts/instruments.proto

import type { InstrumentStatus as _tinkoff_public_invest_api_contract_v1_InstrumentStatus } from '../../../../../../tinkoff/public/invest/api/contract/v1/InstrumentStatus';
import type { InstrumentExchangeType as _tinkoff_public_invest_api_contract_v1_InstrumentExchangeType } from '../../../../../../tinkoff/public/invest/api/contract/v1/InstrumentExchangeType';

export interface InstrumentsRequest {
'instrumentStatus'?: (_tinkoff_public_invest_api_contract_v1_InstrumentStatus | keyof typeof _tinkoff_public_invest_api_contract_v1_InstrumentStatus);
'instrumentExchange'?: (_tinkoff_public_invest_api_contract_v1_InstrumentExchangeType | keyof typeof _tinkoff_public_invest_api_contract_v1_InstrumentExchangeType);
'_instrumentStatus'?: "instrumentStatus";
'_instrumentExchange'?: "instrumentExchange";
}

export interface InstrumentsRequest__Output {
'instrumentStatus'?: (keyof typeof _tinkoff_public_invest_api_contract_v1_InstrumentStatus);
'instrumentExchange'?: (keyof typeof _tinkoff_public_invest_api_contract_v1_InstrumentExchangeType);
'_instrumentStatus': "instrumentStatus";
'_instrumentExchange': "instrumentExchange";
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ export enum OperationType {
OPERATION_TYPE_OVER_COM = 62,
OPERATION_TYPE_OVER_INCOME = 63,
OPERATION_TYPE_OPTION_EXPIRATION = 64,
OPERATION_TYPE_FUTURE_EXPIRATION = 65,
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@

export interface OrderStateStreamRequest {
'accounts'?: (string)[];
'pingDelayMillis'?: (number);
'_pingDelayMillis'?: "pingDelayMillis";
}

export interface OrderStateStreamRequest__Output {
'accounts': (string)[];
'pingDelayMillis'?: (number);
'_pingDelayMillis': "pingDelayMillis";
}
Loading

0 comments on commit 66dac2c

Please sign in to comment.