@woodger/t-invest-node-sdk 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/{THIRD_PARTY_NOTICES.md → LICENSE-APACHE-2.0} +1 -106
- package/NOTICE +98 -0
- package/dist/application/services/unary-limiter.d.ts +10 -1
- package/dist/application/services/unary-limiter.js +35 -11
- package/dist/bootstrap/args/sdk-options.d.ts +1 -2
- package/dist/bootstrap/cli/help-catalog.d.ts +733 -0
- package/dist/bootstrap/cli/help-catalog.js +1649 -0
- package/dist/bootstrap/cli/help.d.ts +2 -730
- package/dist/bootstrap/cli/help.js +5 -1647
- package/dist/bootstrap/cli/registry.d.ts +6 -6
- package/dist/bootstrap/commands/accounts/cli.d.ts +2 -3
- package/dist/bootstrap/commands/accounts/cli.js +5 -10
- package/dist/bootstrap/commands/accrued-interests/cli.d.ts +2 -3
- package/dist/bootstrap/commands/accrued-interests/cli.js +5 -10
- package/dist/bootstrap/commands/asset/cli.d.ts +2 -3
- package/dist/bootstrap/commands/asset/cli.js +5 -10
- package/dist/bootstrap/commands/assets/cli.d.ts +2 -3
- package/dist/bootstrap/commands/assets/cli.js +5 -10
- package/dist/bootstrap/commands/bond/cli.d.ts +2 -3
- package/dist/bootstrap/commands/bond/cli.js +5 -10
- package/dist/bootstrap/commands/bond-coupons/cli.d.ts +2 -3
- package/dist/bootstrap/commands/bond-coupons/cli.js +5 -10
- package/dist/bootstrap/commands/bonds/cli.d.ts +2 -3
- package/dist/bootstrap/commands/bonds/cli.js +5 -10
- package/dist/bootstrap/commands/brand/cli.d.ts +2 -3
- package/dist/bootstrap/commands/brand/cli.js +5 -10
- package/dist/bootstrap/commands/brands/cli.d.ts +2 -3
- package/dist/bootstrap/commands/brands/cli.js +5 -10
- package/dist/bootstrap/commands/broker-report/cli.d.ts +2 -3
- package/dist/bootstrap/commands/broker-report/cli.js +5 -10
- package/dist/bootstrap/commands/cancel-order/cli.d.ts +3 -39
- package/dist/bootstrap/commands/cancel-order/cli.js +8 -19
- package/dist/bootstrap/commands/cancel-order/request.mapper.d.ts +7 -0
- package/dist/bootstrap/commands/cancel-order/request.mapper.js +9 -0
- package/dist/bootstrap/commands/cancel-stop-order/cli.d.ts +3 -4
- package/dist/bootstrap/commands/cancel-stop-order/cli.js +6 -11
- package/dist/bootstrap/commands/candles/cli.d.ts +3 -4
- package/dist/bootstrap/commands/candles/cli.js +6 -11
- package/dist/bootstrap/commands/close-prices/cli.d.ts +3 -4
- package/dist/bootstrap/commands/close-prices/cli.js +6 -11
- package/dist/bootstrap/commands/countries/cli.d.ts +2 -3
- package/dist/bootstrap/commands/countries/cli.js +5 -10
- package/dist/bootstrap/commands/currencies/cli.d.ts +2 -3
- package/dist/bootstrap/commands/currencies/cli.js +5 -10
- package/dist/bootstrap/commands/currency/cli.d.ts +2 -3
- package/dist/bootstrap/commands/currency/cli.js +5 -10
- package/dist/bootstrap/commands/dividends/cli.d.ts +2 -3
- package/dist/bootstrap/commands/dividends/cli.js +5 -10
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.d.ts +2 -3
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.js +5 -10
- package/dist/bootstrap/commands/edit-favorites/cli.d.ts +2 -3
- package/dist/bootstrap/commands/edit-favorites/cli.js +5 -10
- package/dist/bootstrap/commands/etf/cli.d.ts +2 -3
- package/dist/bootstrap/commands/etf/cli.js +5 -10
- package/dist/bootstrap/commands/etfs/cli.d.ts +2 -3
- package/dist/bootstrap/commands/etfs/cli.js +5 -10
- package/dist/bootstrap/commands/favorites/cli.d.ts +2 -3
- package/dist/bootstrap/commands/favorites/cli.js +5 -10
- package/dist/bootstrap/commands/find-instrument/cli.d.ts +2 -3
- package/dist/bootstrap/commands/find-instrument/cli.js +5 -10
- package/dist/bootstrap/commands/future/cli.d.ts +2 -3
- package/dist/bootstrap/commands/future/cli.js +5 -10
- package/dist/bootstrap/commands/futures/cli.d.ts +2 -3
- package/dist/bootstrap/commands/futures/cli.js +5 -10
- package/dist/bootstrap/commands/futures-margin/cli.d.ts +2 -3
- package/dist/bootstrap/commands/futures-margin/cli.js +5 -10
- package/dist/bootstrap/commands/instrument/cli.d.ts +2 -3
- package/dist/bootstrap/commands/instrument/cli.js +5 -10
- package/dist/bootstrap/commands/last-prices/cli.d.ts +3 -4
- package/dist/bootstrap/commands/last-prices/cli.js +6 -11
- package/dist/bootstrap/commands/last-trades/cli.d.ts +3 -4
- package/dist/bootstrap/commands/last-trades/cli.js +6 -11
- package/dist/bootstrap/commands/margin-attributes/cli.d.ts +2 -3
- package/dist/bootstrap/commands/margin-attributes/cli.js +5 -10
- package/dist/bootstrap/commands/operations/cli.d.ts +5 -53
- package/dist/bootstrap/commands/operations/cli.js +9 -36
- package/dist/bootstrap/commands/operations/request.mapper.d.ts +23 -0
- package/dist/bootstrap/commands/operations/request.mapper.js +33 -0
- package/dist/bootstrap/commands/operations-by-cursor/cli.d.ts +5 -69
- package/dist/bootstrap/commands/operations-by-cursor/cli.js +9 -74
- package/dist/bootstrap/commands/operations-by-cursor/request.mapper.d.ts +28 -0
- package/dist/bootstrap/commands/operations-by-cursor/request.mapper.js +70 -0
- package/dist/bootstrap/commands/option/cli.d.ts +2 -3
- package/dist/bootstrap/commands/option/cli.js +5 -10
- package/dist/bootstrap/commands/options-by/cli.d.ts +2 -3
- package/dist/bootstrap/commands/options-by/cli.js +5 -10
- package/dist/bootstrap/commands/order-book/cli.d.ts +3 -4
- package/dist/bootstrap/commands/order-book/cli.js +6 -11
- package/dist/bootstrap/commands/order-state/cli.d.ts +3 -36
- package/dist/bootstrap/commands/order-state/cli.js +8 -21
- package/dist/bootstrap/commands/order-state/request.mapper.d.ts +13 -0
- package/dist/bootstrap/commands/order-state/request.mapper.js +17 -0
- package/dist/bootstrap/commands/orders/cli.d.ts +3 -32
- package/dist/bootstrap/commands/orders/cli.js +8 -18
- package/dist/bootstrap/commands/orders/request.mapper.d.ts +6 -0
- package/dist/bootstrap/commands/orders/request.mapper.js +8 -0
- package/dist/bootstrap/commands/portfolio/cli.d.ts +6 -40
- package/dist/bootstrap/commands/portfolio/cli.js +9 -26
- package/dist/bootstrap/commands/portfolio/request.mapper.d.ts +18 -0
- package/dist/bootstrap/commands/portfolio/request.mapper.js +21 -0
- package/dist/bootstrap/commands/positions/cli.d.ts +3 -32
- package/dist/bootstrap/commands/positions/cli.js +8 -18
- package/dist/bootstrap/commands/positions/request.mapper.d.ts +6 -0
- package/dist/bootstrap/commands/positions/request.mapper.js +8 -0
- package/dist/bootstrap/commands/post-order/cli.d.ts +8 -68
- package/dist/bootstrap/commands/post-order/cli.js +9 -39
- package/dist/bootstrap/commands/post-order/request.mapper.d.ts +27 -0
- package/dist/bootstrap/commands/post-order/request.mapper.js +35 -0
- package/dist/bootstrap/commands/post-stop-order/cli.d.ts +3 -4
- package/dist/bootstrap/commands/post-stop-order/cli.js +6 -11
- package/dist/bootstrap/commands/replace-order/cli.d.ts +5 -61
- package/dist/bootstrap/commands/replace-order/cli.js +9 -30
- package/dist/bootstrap/commands/replace-order/request.mapper.d.ts +22 -0
- package/dist/bootstrap/commands/replace-order/request.mapper.js +26 -0
- package/dist/bootstrap/commands/sandbox-accounts/cli.d.ts +2 -3
- package/dist/bootstrap/commands/sandbox-accounts/cli.js +5 -10
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.js +8 -13
- package/dist/bootstrap/commands/sandbox-close-account/cli.d.ts +2 -3
- package/dist/bootstrap/commands/sandbox-close-account/cli.js +5 -10
- package/dist/bootstrap/commands/sandbox-open-account/cli.d.ts +2 -3
- package/dist/bootstrap/commands/sandbox-open-account/cli.js +5 -10
- package/dist/bootstrap/commands/sandbox-operations/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-operations/cli.js +8 -13
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.js +8 -13
- package/dist/bootstrap/commands/sandbox-order-state/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-order-state/cli.js +8 -13
- package/dist/bootstrap/commands/sandbox-orders/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-orders/cli.js +8 -13
- package/dist/bootstrap/commands/sandbox-pay-in/cli.d.ts +2 -3
- package/dist/bootstrap/commands/sandbox-pay-in/cli.js +5 -10
- package/dist/bootstrap/commands/sandbox-portfolio/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-portfolio/cli.js +8 -13
- package/dist/bootstrap/commands/sandbox-positions/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-positions/cli.js +8 -13
- package/dist/bootstrap/commands/sandbox-post-order/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-post-order/cli.js +8 -13
- package/dist/bootstrap/commands/sandbox-replace-order/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-replace-order/cli.js +8 -13
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.d.ts +3 -4
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.js +8 -13
- package/dist/bootstrap/commands/sdk-command-lifecycle.d.ts +15 -0
- package/dist/bootstrap/commands/sdk-command-lifecycle.js +21 -0
- package/dist/bootstrap/commands/share/cli.d.ts +2 -3
- package/dist/bootstrap/commands/share/cli.js +5 -10
- package/dist/bootstrap/commands/shares/cli.d.ts +2 -3
- package/dist/bootstrap/commands/shares/cli.js +5 -10
- package/dist/bootstrap/commands/stop-orders/cli.d.ts +3 -4
- package/dist/bootstrap/commands/stop-orders/cli.js +6 -11
- package/dist/bootstrap/commands/stream-run/cli.d.ts +2 -24
- package/dist/bootstrap/commands/stream-run/cli.js +7 -142
- package/dist/bootstrap/commands/stream-run/config.d.ts +7 -15
- package/dist/bootstrap/commands/stream-run/config.js +1 -101
- package/dist/bootstrap/commands/stream-run/request.mapper.d.ts +14 -0
- package/dist/bootstrap/commands/stream-run/request.mapper.js +111 -0
- package/dist/bootstrap/commands/stream-run/stream-session.d.ts +37 -0
- package/dist/bootstrap/commands/stream-run/stream-session.js +152 -0
- package/dist/bootstrap/commands/trading-schedules/cli.d.ts +2 -3
- package/dist/bootstrap/commands/trading-schedules/cli.js +5 -10
- package/dist/bootstrap/commands/trading-status/cli.d.ts +3 -4
- package/dist/bootstrap/commands/trading-status/cli.js +6 -11
- package/dist/bootstrap/commands/trading-statuses/cli.d.ts +3 -4
- package/dist/bootstrap/commands/trading-statuses/cli.js +6 -11
- package/dist/bootstrap/commands/user-info/cli.d.ts +2 -3
- package/dist/bootstrap/commands/user-info/cli.js +5 -10
- package/dist/bootstrap/commands/user-tariff/cli.d.ts +2 -3
- package/dist/bootstrap/commands/user-tariff/cli.js +5 -10
- package/dist/bootstrap/commands/withdraw-limits/cli.d.ts +3 -32
- package/dist/bootstrap/commands/withdraw-limits/cli.js +8 -18
- package/dist/bootstrap/commands/withdraw-limits/request.mapper.d.ts +6 -0
- package/dist/bootstrap/commands/withdraw-limits/request.mapper.js +8 -0
- package/dist/bootstrap/index.js +2 -2
- package/dist/bootstrap/proto/compile-proto.d.ts +1 -1
- package/dist/bootstrap/proto/compile-proto.js +28 -35
- package/dist/bootstrap/t-invest-node-sdk.d.ts +9 -9
- package/dist/bootstrap/t-invest-node-sdk.js +33 -18
- package/dist/bootstrap/unary-limit-config.js +4 -4
- package/dist/generated/common.js +2 -2
- package/dist/generated/google/api/field_behavior.js +2 -2
- package/dist/generated/google/protobuf/descriptor.js +2 -2
- package/dist/generated/google/protobuf/timestamp.js +2 -2
- package/dist/generated/instruments.js +2 -2
- package/dist/generated/marketdata.js +2 -2
- package/dist/generated/operations.js +2 -2
- package/dist/generated/orders.js +2 -2
- package/dist/generated/sandbox.js +2 -2
- package/dist/generated/signals.js +2 -2
- package/dist/generated/stoporders.js +2 -2
- package/dist/generated/users.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/infrastructure/interceptor/warning-interceptor.d.ts +1 -1
- package/dist/infrastructure/interceptor/warning-interceptor.js +2 -2
- package/dist/infrastructure/transport/grpc/sdk-call-error.d.ts +12 -0
- package/dist/infrastructure/transport/grpc/sdk-call-error.js +180 -0
- package/dist/infrastructure/transport/grpc/sdk-client.d.ts +1 -1
- package/dist/infrastructure/transport/grpc/sdk-client.js +2 -2
- package/dist/infrastructure/transport/grpc/sdk-middleware.d.ts +1 -1
- package/dist/infrastructure/transport/grpc/sdk-middleware.js +8 -174
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.d.ts +3 -1
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.js +19 -18
- package/docs/architecture.md +45 -42
- package/docs/bundled-ca.md +12 -12
- package/docs/clean-architecture/adapters.md +15 -15
- package/docs/clean-architecture/api-commands.md +63 -52
- package/docs/clean-architecture/application.md +13 -13
- package/docs/clean-architecture/cli-output-boundaries.md +23 -23
- package/docs/clean-architecture/dto.md +9 -9
- package/docs/clean-architecture/index.md +13 -12
- package/docs/cli-stream-configuration.md +9 -9
- package/docs/cli-stream-reference.md +11 -11
- package/docs/guides/custom-unary-limiter.md +44 -30
- package/docs/guides/errors-and-lifecycle.md +10 -10
- package/docs/guides/getting-started.md +9 -9
- package/docs/guides/index.md +3 -3
- package/docs/guides/streams-and-cancellation.md +6 -6
- package/docs/guides/testing-with-service-definitions.md +4 -4
- package/docs/guides/unary-calls.md +8 -8
- package/docs/index.md +14 -10
- package/docs/limits-policy.md +10 -10
- package/docs/roadmap.md +14 -14
- package/docs/tls-policy.md +7 -7
- package/package.json +6 -5
- package/readme.md +37 -85
- package/dist/infrastructure/interceptor/index.d.ts +0 -1
- package/dist/infrastructure/interceptor/index.js +0 -17
- /package/dist/infrastructure/transport/grpc/{unary-limits.d.ts → unary-method-path.d.ts} +0 -0
- /package/dist/infrastructure/transport/grpc/{unary-limits.js → unary-method-path.js} +0 -0
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Декларативный каталог CLI-справки.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы только статические контракты команд, usage и examples.
|
|
5
|
+
* Здесь не должно быть разбора аргументов, rendering или SDK runtime wiring.
|
|
6
|
+
*/
|
|
7
|
+
export interface CommandHelp {
|
|
8
|
+
description: string;
|
|
9
|
+
sdkCall?: string;
|
|
10
|
+
grpcMethod?: string;
|
|
11
|
+
usage: readonly string[];
|
|
12
|
+
required?: readonly string[];
|
|
13
|
+
optional?: readonly string[];
|
|
14
|
+
environment?: readonly string[];
|
|
15
|
+
examples: readonly string[];
|
|
16
|
+
notes?: readonly string[];
|
|
17
|
+
}
|
|
18
|
+
export declare const commandHelp: {
|
|
19
|
+
readonly 'account list': {
|
|
20
|
+
readonly description: 'Print user accounts';
|
|
21
|
+
readonly sdkCall: 'sdk.users.getAccounts';
|
|
22
|
+
readonly grpcMethod: 'UsersService/GetAccounts';
|
|
23
|
+
readonly usage: readonly ["t-invest-node-sdk account list [options]"];
|
|
24
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
25
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
26
|
+
readonly examples: readonly ["t-invest-node-sdk account list --format=json"];
|
|
27
|
+
};
|
|
28
|
+
readonly 'account info': {
|
|
29
|
+
readonly description: 'Print user info';
|
|
30
|
+
readonly sdkCall: 'sdk.users.getInfo';
|
|
31
|
+
readonly grpcMethod: 'UsersService/GetInfo';
|
|
32
|
+
readonly usage: readonly ["t-invest-node-sdk account info [options]"];
|
|
33
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
34
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
35
|
+
readonly examples: readonly ["t-invest-node-sdk account info", "t-invest-node-sdk account info --format=json"];
|
|
36
|
+
};
|
|
37
|
+
readonly 'account margin': {
|
|
38
|
+
readonly description: 'Print account margin attributes';
|
|
39
|
+
readonly sdkCall: 'sdk.users.getMarginAttributes';
|
|
40
|
+
readonly grpcMethod: 'UsersService/GetMarginAttributes';
|
|
41
|
+
readonly usage: readonly ["t-invest-node-sdk account margin --account-id=ID [options]"];
|
|
42
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list"];
|
|
43
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
44
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
45
|
+
readonly examples: readonly ["t-invest-node-sdk account margin --account-id=2000000000", "t-invest-node-sdk account margin --account-id=2000000000 --format=json"];
|
|
46
|
+
};
|
|
47
|
+
readonly 'account tariff': {
|
|
48
|
+
readonly description: 'Print user API limits';
|
|
49
|
+
readonly sdkCall: 'sdk.users.getUserTariff';
|
|
50
|
+
readonly grpcMethod: 'UsersService/GetUserTariff';
|
|
51
|
+
readonly usage: readonly ["t-invest-node-sdk account tariff [options]"];
|
|
52
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
53
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
54
|
+
readonly examples: readonly ["t-invest-node-sdk account tariff", "t-invest-node-sdk account tariff --format=json"];
|
|
55
|
+
};
|
|
56
|
+
readonly 'market candles': {
|
|
57
|
+
readonly description: 'Print historical candles';
|
|
58
|
+
readonly sdkCall: 'sdk.marketData.getCandles';
|
|
59
|
+
readonly grpcMethod: 'MarketDataService/GetCandles';
|
|
60
|
+
readonly usage: readonly ["t-invest-node-sdk market candles --instrument-id=ID --from=ISO --to=ISO --interval=INTERVAL [options]"];
|
|
61
|
+
readonly required: readonly ["--instrument-id=ID FIGI or instrument UID", "--from=ISO Start timestamp, inclusive", "--to=ISO End timestamp, inclusive", "--interval=INTERVAL 1min|2min|3min|5min|10min|15min|30min|hour|2hour|4hour|day|week|month"];
|
|
62
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|csv Output format (default: json)"];
|
|
63
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
64
|
+
readonly examples: readonly ["t-invest-node-sdk market candles --instrument-id=BBG00QPYJ5H0 --from=2026-06-19T00:00:00Z --to=2026-06-19T01:00:00Z --interval=1min --format=csv"];
|
|
65
|
+
readonly notes: readonly ["Use --format=csv when candle rows are consumed by spreadsheets or batch tools.", "The CLI accepts interval aliases, but provider history depth and request window limits still apply.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
66
|
+
};
|
|
67
|
+
readonly 'market close-prices': {
|
|
68
|
+
readonly description: 'Print close prices';
|
|
69
|
+
readonly sdkCall: 'sdk.marketData.getClosePrices';
|
|
70
|
+
readonly grpcMethod: 'MarketDataService/GetClosePrices';
|
|
71
|
+
readonly usage: readonly ["t-invest-node-sdk market close-prices --instrument-id=ID[,ID] [options]"];
|
|
72
|
+
readonly required: readonly ["--instrument-id=ID[,ID] FIGI or instrument UID list"];
|
|
73
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
74
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
75
|
+
readonly examples: readonly ["t-invest-node-sdk market close-prices --instrument-id=BBG00QPYJ5H0", "t-invest-node-sdk market close-prices --instrument-id=BBG00QPYJ5H0,instrument-uid --format=json"];
|
|
76
|
+
};
|
|
77
|
+
readonly 'instrument search': {
|
|
78
|
+
readonly description: 'Search instruments';
|
|
79
|
+
readonly sdkCall: 'sdk.instruments.findInstrument';
|
|
80
|
+
readonly grpcMethod: 'InstrumentsService/FindInstrument';
|
|
81
|
+
readonly usage: readonly ["t-invest-node-sdk instrument search --query=TEXT [options]"];
|
|
82
|
+
readonly required: readonly ["--query=TEXT Search query"];
|
|
83
|
+
readonly optional: readonly ["--instrument-kind=KIND unspecified|bond|share|currency|etf|futures|sp|option|clearing-certificate", "--api-trade-available Only instrument available for API trading", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
84
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
85
|
+
readonly examples: readonly ["t-invest-node-sdk instrument search --query=TCSG", "t-invest-node-sdk instrument search --query=TCSG --instrument-kind=share --api-trade-available --format=json"];
|
|
86
|
+
};
|
|
87
|
+
readonly 'instrument show': {
|
|
88
|
+
readonly description: 'Print instrument details';
|
|
89
|
+
readonly sdkCall: 'sdk.instruments.getInstrumentBy';
|
|
90
|
+
readonly grpcMethod: 'InstrumentsService/GetInstrumentBy';
|
|
91
|
+
readonly usage: readonly ["t-invest-node-sdk instrument show --id=ID --id-type=TYPE [options]"];
|
|
92
|
+
readonly required: readonly ["--id=ID FIGI, ticker, instrument UID or position UID", "--id-type=TYPE figi|ticker|uid|position-uid"];
|
|
93
|
+
readonly optional: readonly ["--class-code=CODE Required when --id-type=ticker", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
94
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
95
|
+
readonly examples: readonly ["t-invest-node-sdk instrument show --id=BBG00QPYJ5H0 --id-type=figi", "t-invest-node-sdk instrument show --id=TCSG --id-type=ticker --class-code=TQBR --format=json"];
|
|
96
|
+
};
|
|
97
|
+
readonly 'instrument dividends': {
|
|
98
|
+
readonly description: 'Print instrument dividends';
|
|
99
|
+
readonly sdkCall: 'sdk.instruments.getDividends';
|
|
100
|
+
readonly grpcMethod: 'InstrumentsService/GetDividends';
|
|
101
|
+
readonly usage: readonly ["t-invest-node-sdk instrument dividends --instrument-id=ID --from=ISO --to=ISO [options]"];
|
|
102
|
+
readonly required: readonly ["--instrument-id=ID Share instrument identifier", "--from=ISO Start timestamp, inclusive", "--to=ISO End timestamp, inclusive"];
|
|
103
|
+
readonly optional: readonly ["--figi=FIGI Deprecated alias for --instrument-id", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
104
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
105
|
+
readonly examples: readonly ["t-invest-node-sdk instrument dividends --instrument-id=SHARE-FIGI --from=2026-01-01T00:00:00Z --to=2026-12-31T00:00:00Z", "t-invest-node-sdk instrument dividends --instrument-id=SHARE-FIGI --from=2026-01-01T00:00:00Z --to=2026-12-31T00:00:00Z --format=json"];
|
|
106
|
+
readonly notes: readonly ["Deprecated --figi is still accepted and prints a warning to stderr.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
107
|
+
};
|
|
108
|
+
readonly 'instrument schedules': {
|
|
109
|
+
readonly description: 'Print trading schedules';
|
|
110
|
+
readonly sdkCall: 'sdk.instruments.tradingSchedules';
|
|
111
|
+
readonly grpcMethod: 'InstrumentsService/TradingSchedules';
|
|
112
|
+
readonly usage: readonly ["t-invest-node-sdk instrument schedules --from=ISO --to=ISO [options]"];
|
|
113
|
+
readonly required: readonly ["--from=ISO Start timestamp, inclusive", "--to=ISO End timestamp, inclusive"];
|
|
114
|
+
readonly optional: readonly ["--exchange=EXCHANGE Optional exchange or settlement calendar code", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
115
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
116
|
+
readonly examples: readonly ["t-invest-node-sdk instrument schedules --from=2026-01-01T00:00:00Z --to=2026-01-31T00:00:00Z", "t-invest-node-sdk instrument schedules --exchange=MOEX --from=2026-01-01T00:00:00Z --to=2026-01-31T00:00:00Z --format=json"];
|
|
117
|
+
readonly notes: readonly ["The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
118
|
+
};
|
|
119
|
+
readonly 'instrument favorite list': {
|
|
120
|
+
readonly description: 'Print favorite instruments';
|
|
121
|
+
readonly sdkCall: 'sdk.instruments.getFavorites';
|
|
122
|
+
readonly grpcMethod: 'InstrumentsService/GetFavorites';
|
|
123
|
+
readonly usage: readonly ["t-invest-node-sdk instrument favorite list [options]"];
|
|
124
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
125
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
126
|
+
readonly examples: readonly ["t-invest-node-sdk instrument favorite list", "t-invest-node-sdk instrument favorite list --format=json"];
|
|
127
|
+
};
|
|
128
|
+
readonly 'instrument favorite edit': {
|
|
129
|
+
readonly description: 'Add or remove favorite instruments';
|
|
130
|
+
readonly sdkCall: 'sdk.instruments.editFavorites';
|
|
131
|
+
readonly grpcMethod: 'InstrumentsService/EditFavorites';
|
|
132
|
+
readonly usage: readonly ["t-invest-node-sdk instrument favorite edit --instrument-id=ID[,ID] --action=add|del --confirm [options]"];
|
|
133
|
+
readonly required: readonly ["--instrument-id=ID[,ID] Comma-separated instrument identifiers", "--action=ACTION add|del", "--confirm Required by default CLI side-effect policy"];
|
|
134
|
+
readonly optional: readonly ["--figi=FIGI[,FIGI] Deprecated alias for --instrument-id", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
135
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
136
|
+
readonly examples: readonly ["t-invest-node-sdk instrument favorite edit --instrument-id=BBG00QPYJ5H0 --action=add --confirm", "t-invest-node-sdk instrument favorite edit --instrument-id=BBG00QPYJ5H0,BBG004730N88 --action=del --confirm --format=json"];
|
|
137
|
+
readonly notes: readonly ["Deprecated --figi is still accepted and prints a warning to stderr.", "This command changes account favorites and refuses to run without --confirm by default CLI policy."];
|
|
138
|
+
};
|
|
139
|
+
readonly 'instrument share list': {
|
|
140
|
+
readonly description: 'Print shares';
|
|
141
|
+
readonly sdkCall: 'sdk.instruments.shares';
|
|
142
|
+
readonly grpcMethod: 'InstrumentsService/Shares';
|
|
143
|
+
readonly usage: readonly ["t-invest-node-sdk instrument share list [options]"];
|
|
144
|
+
readonly optional: readonly ["--instrument-status=STATUS unspecified|base|all (default: base)", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
145
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
146
|
+
readonly examples: readonly ["t-invest-node-sdk instrument share list", "t-invest-node-sdk instrument share list --instrument-status=all --format=json"];
|
|
147
|
+
readonly notes: readonly ["Table output keeps risk rates, issue details and candle dates out of columns; use --format=json for the full report."];
|
|
148
|
+
};
|
|
149
|
+
readonly 'instrument share show': {
|
|
150
|
+
readonly description: 'Print share details';
|
|
151
|
+
readonly sdkCall: 'sdk.instruments.shareBy';
|
|
152
|
+
readonly grpcMethod: 'InstrumentsService/ShareBy';
|
|
153
|
+
readonly usage: readonly ["t-invest-node-sdk instrument share show --id=ID --id-type=TYPE [options]"];
|
|
154
|
+
readonly required: readonly ["--id=ID FIGI, ticker, instrument UID or position UID", "--id-type=TYPE figi|ticker|uid|position-uid"];
|
|
155
|
+
readonly optional: readonly ["--class-code=CODE Required when --id-type=ticker", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
156
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
157
|
+
readonly examples: readonly ["t-invest-node-sdk instrument share show --id=BBG004730N88 --id-type=figi", "t-invest-node-sdk instrument share show --id=SBER --id-type=ticker --class-code=TQBR --format=json"];
|
|
158
|
+
readonly notes: readonly ["Table output keeps risk rates, issue details and candle dates out of columns; use --format=json for the full report."];
|
|
159
|
+
};
|
|
160
|
+
readonly 'instrument bond list': {
|
|
161
|
+
readonly description: 'Print bonds';
|
|
162
|
+
readonly sdkCall: 'sdk.instruments.bonds';
|
|
163
|
+
readonly grpcMethod: 'InstrumentsService/Bonds';
|
|
164
|
+
readonly usage: readonly ["t-invest-node-sdk instrument bond list [options]"];
|
|
165
|
+
readonly optional: readonly ["--instrument-status=STATUS unspecified|base|all (default: base)", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
166
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
167
|
+
readonly examples: readonly ["t-invest-node-sdk instrument bond list", "t-invest-node-sdk instrument bond list --instrument-status=all --format=json"];
|
|
168
|
+
readonly notes: readonly ["Table output keeps risk rates, issue details and placement values out of columns; use --format=json for the full report."];
|
|
169
|
+
};
|
|
170
|
+
readonly 'instrument bond show': {
|
|
171
|
+
readonly description: 'Print bond details';
|
|
172
|
+
readonly sdkCall: 'sdk.instruments.bondBy';
|
|
173
|
+
readonly grpcMethod: 'InstrumentsService/BondBy';
|
|
174
|
+
readonly usage: readonly ["t-invest-node-sdk instrument bond show --id=ID --id-type=TYPE [options]"];
|
|
175
|
+
readonly required: readonly ["--id=ID FIGI, ticker, instrument UID or position UID", "--id-type=TYPE figi|ticker|uid|position-uid"];
|
|
176
|
+
readonly optional: readonly ["--class-code=CODE Required when --id-type=ticker", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
177
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
178
|
+
readonly examples: readonly ["t-invest-node-sdk instrument bond show --id=BBG00B9XRY4J --id-type=figi", "t-invest-node-sdk instrument bond show --id=SU26238RMFS4 --id-type=ticker --class-code=TQOB --format=json"];
|
|
179
|
+
readonly notes: readonly ["Table output keeps risk rates, issue details and placement values out of columns; use --format=json for the full report."];
|
|
180
|
+
};
|
|
181
|
+
readonly 'instrument bond coupons': {
|
|
182
|
+
readonly description: 'Print bond coupons';
|
|
183
|
+
readonly sdkCall: 'sdk.instruments.getBondCoupons';
|
|
184
|
+
readonly grpcMethod: 'InstrumentsService/GetBondCoupons';
|
|
185
|
+
readonly usage: readonly ["t-invest-node-sdk instrument bond coupons --instrument-id=ID --from=ISO --to=ISO [options]"];
|
|
186
|
+
readonly required: readonly ["--instrument-id=ID Bond instrument identifier", "--from=ISO Start timestamp, inclusive", "--to=ISO End timestamp, inclusive"];
|
|
187
|
+
readonly optional: readonly ["--figi=FIGI Deprecated alias for --instrument-id", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
188
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
189
|
+
readonly examples: readonly ["t-invest-node-sdk instrument bond coupons --instrument-id=BOND-FIGI --from=2026-01-01T00:00:00Z --to=2026-12-31T00:00:00Z", "t-invest-node-sdk instrument bond coupons --instrument-id=BOND-FIGI --from=2026-01-01T00:00:00Z --to=2026-12-31T00:00:00Z --format=json"];
|
|
190
|
+
readonly notes: readonly ["Deprecated --figi is still accepted and prints a warning to stderr.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
191
|
+
};
|
|
192
|
+
readonly 'instrument bond accrued': {
|
|
193
|
+
readonly description: 'Print bond accrued interests';
|
|
194
|
+
readonly sdkCall: 'sdk.instruments.getAccruedInterests';
|
|
195
|
+
readonly grpcMethod: 'InstrumentsService/GetAccruedInterests';
|
|
196
|
+
readonly usage: readonly ["t-invest-node-sdk instrument bond accrued --instrument-id=ID --from=ISO --to=ISO [options]"];
|
|
197
|
+
readonly required: readonly ["--instrument-id=ID Bond instrument identifier", "--from=ISO Start timestamp, inclusive", "--to=ISO End timestamp, inclusive"];
|
|
198
|
+
readonly optional: readonly ["--figi=FIGI Deprecated alias for --instrument-id", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
199
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
200
|
+
readonly examples: readonly ["t-invest-node-sdk instrument bond accrued --instrument-id=BOND-FIGI --from=2026-01-01T00:00:00Z --to=2026-01-31T00:00:00Z", "t-invest-node-sdk instrument bond accrued --instrument-id=BOND-FIGI --from=2026-01-01T00:00:00Z --to=2026-01-31T00:00:00Z --format=json"];
|
|
201
|
+
readonly notes: readonly ["Deprecated --figi is still accepted and prints a warning to stderr.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
202
|
+
};
|
|
203
|
+
readonly 'instrument etf list': {
|
|
204
|
+
readonly description: 'Print ETFs';
|
|
205
|
+
readonly sdkCall: 'sdk.instruments.etfs';
|
|
206
|
+
readonly grpcMethod: 'InstrumentsService/Etfs';
|
|
207
|
+
readonly usage: readonly ["t-invest-node-sdk instrument etf list [options]"];
|
|
208
|
+
readonly optional: readonly ["--instrument-status=STATUS unspecified|base|all (default: base)", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
209
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
210
|
+
readonly examples: readonly ["t-invest-node-sdk instrument etf list", "t-invest-node-sdk instrument etf list --instrument-status=all --format=json"];
|
|
211
|
+
readonly notes: readonly ["Table output keeps risk rates, fund metadata and candle dates out of columns; use --format=json for the full report."];
|
|
212
|
+
};
|
|
213
|
+
readonly 'instrument etf show': {
|
|
214
|
+
readonly description: 'Print ETF details';
|
|
215
|
+
readonly sdkCall: 'sdk.instruments.etfBy';
|
|
216
|
+
readonly grpcMethod: 'InstrumentsService/EtfBy';
|
|
217
|
+
readonly usage: readonly ["t-invest-node-sdk instrument etf show --id=ID --id-type=TYPE [options]"];
|
|
218
|
+
readonly required: readonly ["--id=ID FIGI, ticker, instrument UID or position UID", "--id-type=TYPE figi|ticker|uid|position-uid"];
|
|
219
|
+
readonly optional: readonly ["--class-code=CODE Required when --id-type=ticker", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
220
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
221
|
+
readonly examples: readonly ["t-invest-node-sdk instrument etf show --id=BBG333333333 --id-type=figi", "t-invest-node-sdk instrument etf show --id=TMOS --id-type=ticker --class-code=TQTF --format=json"];
|
|
222
|
+
readonly notes: readonly ["Table output keeps risk rates, fund metadata and candle dates out of columns; use --format=json for the full report."];
|
|
223
|
+
};
|
|
224
|
+
readonly 'instrument currency list': {
|
|
225
|
+
readonly description: 'Print currencies';
|
|
226
|
+
readonly sdkCall: 'sdk.instruments.currencies';
|
|
227
|
+
readonly grpcMethod: 'InstrumentsService/Currencies';
|
|
228
|
+
readonly usage: readonly ["t-invest-node-sdk instrument currency list [options]"];
|
|
229
|
+
readonly optional: readonly ["--instrument-status=STATUS unspecified|base|all (default: base)", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
230
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
231
|
+
readonly examples: readonly ["t-invest-node-sdk instrument currency list", "t-invest-node-sdk instrument currency list --instrument-status=all --format=json"];
|
|
232
|
+
readonly notes: readonly ["Table output keeps risk rates and candle dates out of columns; use --format=json for the full report."];
|
|
233
|
+
};
|
|
234
|
+
readonly 'instrument currency show': {
|
|
235
|
+
readonly description: 'Print currency details';
|
|
236
|
+
readonly sdkCall: 'sdk.instruments.currencyBy';
|
|
237
|
+
readonly grpcMethod: 'InstrumentsService/CurrencyBy';
|
|
238
|
+
readonly usage: readonly ["t-invest-node-sdk instrument currency show --id=ID --id-type=TYPE [options]"];
|
|
239
|
+
readonly required: readonly ["--id=ID FIGI, ticker, instrument UID or position UID", "--id-type=TYPE figi|ticker|uid|position-uid"];
|
|
240
|
+
readonly optional: readonly ["--class-code=CODE Required when --id-type=ticker", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
241
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
242
|
+
readonly examples: readonly ["t-invest-node-sdk instrument currency show --id=BBG0013HGFT4 --id-type=figi", "t-invest-node-sdk instrument currency show --id=USD000UTSTOM --id-type=ticker --class-code=CETS --format=json"];
|
|
243
|
+
readonly notes: readonly ["Table output keeps risk rates and candle dates out of columns; use --format=json for the full report."];
|
|
244
|
+
};
|
|
245
|
+
readonly 'instrument future list': {
|
|
246
|
+
readonly description: 'Print futures contracts';
|
|
247
|
+
readonly sdkCall: 'sdk.instruments.futures';
|
|
248
|
+
readonly grpcMethod: 'InstrumentsService/Futures';
|
|
249
|
+
readonly usage: readonly ["t-invest-node-sdk instrument future list [options]"];
|
|
250
|
+
readonly optional: readonly ["--instrument-status=STATUS unspecified|base|all (default: base)", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
251
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
252
|
+
readonly examples: readonly ["t-invest-node-sdk instrument future list", "t-invest-node-sdk instrument future list --instrument-status=all --format=json"];
|
|
253
|
+
readonly notes: readonly ["Table output keeps margin rates, underlying asset details and candle dates out of columns; use --format=json for the full report."];
|
|
254
|
+
};
|
|
255
|
+
readonly 'instrument future show': {
|
|
256
|
+
readonly description: 'Print futures contract details';
|
|
257
|
+
readonly sdkCall: 'sdk.instruments.futureBy';
|
|
258
|
+
readonly grpcMethod: 'InstrumentsService/FutureBy';
|
|
259
|
+
readonly usage: readonly ["t-invest-node-sdk instrument future show --id=ID --id-type=TYPE [options]"];
|
|
260
|
+
readonly required: readonly ["--id=ID FIGI, ticker, instrument UID or position UID", "--id-type=TYPE figi|ticker|uid|position-uid"];
|
|
261
|
+
readonly optional: readonly ["--class-code=CODE Required when --id-type=ticker", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
262
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
263
|
+
readonly examples: readonly ["t-invest-node-sdk instrument future show --id=FUTFIGI --id-type=figi", "t-invest-node-sdk instrument future show --id=SiM6 --id-type=ticker --class-code=SPBFUT --format=json"];
|
|
264
|
+
readonly notes: readonly ["Table output keeps margin rates, underlying asset details and candle dates out of columns; use --format=json for the full report."];
|
|
265
|
+
};
|
|
266
|
+
readonly 'instrument future margin': {
|
|
267
|
+
readonly description: 'Print futures margin details';
|
|
268
|
+
readonly sdkCall: 'sdk.instruments.getFuturesMargin';
|
|
269
|
+
readonly grpcMethod: 'InstrumentsService/GetFuturesMargin';
|
|
270
|
+
readonly usage: readonly ["t-invest-node-sdk instrument future margin --instrument-id=ID [options]"];
|
|
271
|
+
readonly required: readonly ["--instrument-id=ID Futures instrument identifier"];
|
|
272
|
+
readonly optional: readonly ["--figi=FIGI Deprecated alias for --instrument-id", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
273
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
274
|
+
readonly examples: readonly ["t-invest-node-sdk instrument future margin --instrument-id=FUTFIGI", "t-invest-node-sdk instrument future margin --instrument-id=FUTFIGI --format=json"];
|
|
275
|
+
readonly notes: readonly ["Deprecated --figi is still accepted and prints a warning to stderr."];
|
|
276
|
+
};
|
|
277
|
+
readonly 'instrument option list': {
|
|
278
|
+
readonly description: 'Print option contracts by underlying asset';
|
|
279
|
+
readonly sdkCall: 'sdk.instruments.optionsBy';
|
|
280
|
+
readonly grpcMethod: 'InstrumentsService/OptionsBy';
|
|
281
|
+
readonly usage: readonly ["t-invest-node-sdk instrument option list --basic-asset-uid=UID [options]"];
|
|
282
|
+
readonly required: readonly ["--basic-asset-uid=UID Underlying asset UID"];
|
|
283
|
+
readonly optional: readonly ["--basic-asset-position-uid=UID Underlying asset position UID", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
284
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
285
|
+
readonly examples: readonly ["t-invest-node-sdk instrument option list --basic-asset-uid=asset-uid", "t-invest-node-sdk instrument option list --basic-asset-uid=asset-uid --basic-asset-position-uid=position-uid --format=json"];
|
|
286
|
+
readonly notes: readonly ["`sdk.instruments.options` is deprecated in the generated contract, so the CLI exposes `option list` instead.", "Table output keeps risk rates, underlying asset details and candle dates out of columns; use --format=json for the full report."];
|
|
287
|
+
};
|
|
288
|
+
readonly 'instrument option show': {
|
|
289
|
+
readonly description: 'Print option contract details';
|
|
290
|
+
readonly sdkCall: 'sdk.instruments.optionBy';
|
|
291
|
+
readonly grpcMethod: 'InstrumentsService/OptionBy';
|
|
292
|
+
readonly usage: readonly ["t-invest-node-sdk instrument option show --id=ID --id-type=TYPE [options]"];
|
|
293
|
+
readonly required: readonly ["--id=ID FIGI, ticker, instrument UID or position UID", "--id-type=TYPE figi|ticker|uid|position-uid"];
|
|
294
|
+
readonly optional: readonly ["--class-code=CODE Required when --id-type=ticker", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
295
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
296
|
+
readonly examples: readonly ["t-invest-node-sdk instrument option show --id=OPTIONUID --id-type=uid", "t-invest-node-sdk instrument option show --id=OPTIONTICKER --id-type=ticker --class-code=SPBOPT --format=json"];
|
|
297
|
+
readonly notes: readonly ["Table output keeps risk rates, underlying asset details and candle dates out of columns; use --format=json for the full report."];
|
|
298
|
+
};
|
|
299
|
+
readonly 'instrument asset list': {
|
|
300
|
+
readonly description: 'Print assets';
|
|
301
|
+
readonly sdkCall: 'sdk.instruments.getAssets';
|
|
302
|
+
readonly grpcMethod: 'InstrumentsService/GetAssets';
|
|
303
|
+
readonly usage: readonly ["t-invest-node-sdk instrument asset list [options]"];
|
|
304
|
+
readonly optional: readonly ["--instrument-type=TYPE unspecified|bond|share|currency|etf|futures|sp|option|clearing-certificate (default: unspecified)", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
305
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
306
|
+
readonly examples: readonly ["t-invest-node-sdk instrument asset list", "t-invest-node-sdk instrument asset list --instrument-type=share --format=json"];
|
|
307
|
+
readonly notes: readonly ["The gRPC method does not include futures and options assets in this list."];
|
|
308
|
+
};
|
|
309
|
+
readonly 'instrument asset show': {
|
|
310
|
+
readonly description: 'Print asset details';
|
|
311
|
+
readonly sdkCall: 'sdk.instruments.getAssetBy';
|
|
312
|
+
readonly grpcMethod: 'InstrumentsService/GetAssetBy';
|
|
313
|
+
readonly usage: readonly ["t-invest-node-sdk instrument asset show --id=UID [options]"];
|
|
314
|
+
readonly required: readonly ["--id=UID Asset UID"];
|
|
315
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
316
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
317
|
+
readonly examples: readonly ["t-invest-node-sdk instrument asset show --id=asset-uid", "t-invest-node-sdk instrument asset show --id=asset-uid --format=json"];
|
|
318
|
+
readonly notes: readonly ["Table output is a compact asset overview; use --format=json for brand, security and instrument details."];
|
|
319
|
+
};
|
|
320
|
+
readonly 'instrument brand list': {
|
|
321
|
+
readonly description: 'Print brands dictionary';
|
|
322
|
+
readonly sdkCall: 'sdk.instruments.getBrands';
|
|
323
|
+
readonly grpcMethod: 'InstrumentsService/GetBrands';
|
|
324
|
+
readonly usage: readonly ["t-invest-node-sdk instrument brand list [options]"];
|
|
325
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
326
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
327
|
+
readonly examples: readonly ["t-invest-node-sdk instrument brand list", "t-invest-node-sdk instrument brand list --format=json"];
|
|
328
|
+
readonly notes: readonly ["Table output keeps long description/info fields out of columns; use --format=json for the full report."];
|
|
329
|
+
};
|
|
330
|
+
readonly 'instrument brand show': {
|
|
331
|
+
readonly description: 'Print brand details';
|
|
332
|
+
readonly sdkCall: 'sdk.instruments.getBrandBy';
|
|
333
|
+
readonly grpcMethod: 'InstrumentsService/GetBrandBy';
|
|
334
|
+
readonly usage: readonly ["t-invest-node-sdk instrument brand show --id=ID [options]"];
|
|
335
|
+
readonly required: readonly ["--id=ID Brand UID"];
|
|
336
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
337
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
338
|
+
readonly examples: readonly ["t-invest-node-sdk instrument brand show --id=brand-uid", "t-invest-node-sdk instrument brand show --id=brand-uid --format=json"];
|
|
339
|
+
};
|
|
340
|
+
readonly 'instrument country list': {
|
|
341
|
+
readonly description: 'Print countries dictionary';
|
|
342
|
+
readonly sdkCall: 'sdk.instruments.getCountries';
|
|
343
|
+
readonly grpcMethod: 'InstrumentsService/GetCountries';
|
|
344
|
+
readonly usage: readonly ["t-invest-node-sdk instrument country list [options]"];
|
|
345
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
346
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
347
|
+
readonly examples: readonly ["t-invest-node-sdk instrument country list", "t-invest-node-sdk instrument country list --format=json"];
|
|
348
|
+
};
|
|
349
|
+
readonly 'market last-prices': {
|
|
350
|
+
readonly description: 'Print latest market prices';
|
|
351
|
+
readonly sdkCall: 'sdk.marketData.getLastPrices';
|
|
352
|
+
readonly grpcMethod: 'MarketDataService/GetLastPrices';
|
|
353
|
+
readonly usage: readonly ["t-invest-node-sdk market last-prices --instrument-id=ID[,ID] [options]"];
|
|
354
|
+
readonly required: readonly ["--instrument-id=ID[,ID] FIGI or instrument UID list"];
|
|
355
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
356
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
357
|
+
readonly examples: readonly ["t-invest-node-sdk market last-prices --instrument-id=BBG00QPYJ5H0 --format=json"];
|
|
358
|
+
};
|
|
359
|
+
readonly 'market trades': {
|
|
360
|
+
readonly description: 'Print recent trades';
|
|
361
|
+
readonly sdkCall: 'sdk.marketData.getLastTrades';
|
|
362
|
+
readonly grpcMethod: 'MarketDataService/GetLastTrades';
|
|
363
|
+
readonly usage: readonly ["t-invest-node-sdk market trades --instrument-id=ID --from=ISO --to=ISO [options]"];
|
|
364
|
+
readonly required: readonly ["--instrument-id=ID FIGI or instrument UID", "--from=ISO Start timestamp, inclusive", "--to=ISO End timestamp, inclusive"];
|
|
365
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
366
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
367
|
+
readonly examples: readonly ["t-invest-node-sdk market trades --instrument-id=BBG00QPYJ5H0 --from=2026-06-19T10:00:00Z --to=2026-06-19T11:00:00Z", "t-invest-node-sdk market trades --instrument-id=BBG00QPYJ5H0 --from=2026-06-19T10:00:00Z --to=2026-06-19T11:00:00Z --format=json"];
|
|
368
|
+
readonly notes: readonly ["The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
369
|
+
};
|
|
370
|
+
readonly 'market order-book': {
|
|
371
|
+
readonly description: 'Print instrument order book';
|
|
372
|
+
readonly sdkCall: 'sdk.marketData.getOrderBook';
|
|
373
|
+
readonly grpcMethod: 'MarketDataService/GetOrderBook';
|
|
374
|
+
readonly usage: readonly ["t-invest-node-sdk market order-book --instrument-id=ID --depth=DEPTH [options]"];
|
|
375
|
+
readonly required: readonly ["--instrument-id=ID FIGI or instrument UID", "--depth=DEPTH Order book depth as positive integer"];
|
|
376
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
377
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
378
|
+
readonly examples: readonly ["t-invest-node-sdk market order-book --instrument-id=BBG00QPYJ5H0 --depth=10", "t-invest-node-sdk market order-book --instrument-id=instrument-uid --depth=20 --format=json"];
|
|
379
|
+
};
|
|
380
|
+
readonly 'market status': {
|
|
381
|
+
readonly description: 'Print instrument trading status';
|
|
382
|
+
readonly sdkCall: 'sdk.marketData.getTradingStatus';
|
|
383
|
+
readonly grpcMethod: 'MarketDataService/GetTradingStatus';
|
|
384
|
+
readonly usage: readonly ["t-invest-node-sdk market status --instrument-id=ID [options]"];
|
|
385
|
+
readonly required: readonly ["--instrument-id=ID FIGI or instrument UID"];
|
|
386
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
387
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
388
|
+
readonly examples: readonly ["t-invest-node-sdk market status --instrument-id=BBG00QPYJ5H0", "t-invest-node-sdk market status --instrument-id=instrument-uid --format=json"];
|
|
389
|
+
};
|
|
390
|
+
readonly 'market statuses': {
|
|
391
|
+
readonly description: 'Print instrument trading statuses';
|
|
392
|
+
readonly sdkCall: 'sdk.marketData.getTradingStatuses';
|
|
393
|
+
readonly grpcMethod: 'MarketDataService/GetTradingStatuses';
|
|
394
|
+
readonly usage: readonly ["t-invest-node-sdk market statuses --instrument-id=ID[,ID] [options]"];
|
|
395
|
+
readonly required: readonly ["--instrument-id=ID[,ID] FIGI or instrument UID list"];
|
|
396
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
397
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
398
|
+
readonly examples: readonly ["t-invest-node-sdk market statuses --instrument-id=BBG00QPYJ5H0,instrument-uid", "t-invest-node-sdk market statuses --instrument-id=BBG00QPYJ5H0 --format=json"];
|
|
399
|
+
};
|
|
400
|
+
readonly 'order list': {
|
|
401
|
+
readonly description: 'Print active account orders';
|
|
402
|
+
readonly sdkCall: 'sdk.orders.getOrders';
|
|
403
|
+
readonly grpcMethod: 'OrdersService/GetOrders';
|
|
404
|
+
readonly usage: readonly ["t-invest-node-sdk order list --account-id=ID [options]"];
|
|
405
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list"];
|
|
406
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
407
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
408
|
+
readonly examples: readonly ["t-invest-node-sdk order list --account-id=2000000000 --format=json"];
|
|
409
|
+
};
|
|
410
|
+
readonly 'order show': {
|
|
411
|
+
readonly description: 'Print order state';
|
|
412
|
+
readonly sdkCall: 'sdk.orders.getOrderState';
|
|
413
|
+
readonly grpcMethod: 'OrdersService/GetOrderState';
|
|
414
|
+
readonly usage: readonly ["t-invest-node-sdk order show --account-id=ID --order-id=ID [options]"];
|
|
415
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list", "--order-id=ID Exchange order identifier"];
|
|
416
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
417
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
418
|
+
readonly examples: readonly ["t-invest-node-sdk order show --account-id=2000000000 --order-id=12345", "t-invest-node-sdk order show --account-id=2000000000 --order-id=12345 --format=json"];
|
|
419
|
+
};
|
|
420
|
+
readonly 'order place': {
|
|
421
|
+
readonly description: 'Post an order';
|
|
422
|
+
readonly sdkCall: 'sdk.orders.postOrder';
|
|
423
|
+
readonly grpcMethod: 'OrdersService/PostOrder';
|
|
424
|
+
readonly usage: readonly ["t-invest-node-sdk order place --account-id=ID --instrument-id=ID --quantity=N --direction=buy|sell --order-type=TYPE --order-id=KEY --confirm [options]"];
|
|
425
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list", "--instrument-id=ID FIGI or instrument UID", "--quantity=N Positive integer lots count", "--direction=DIR buy|sell", "--order-type=TYPE limit|market|bestprice", "--order-id=KEY Idempotency key, max provider length is 36 chars", "--confirm Required by default CLI side-effect policy"];
|
|
426
|
+
readonly optional: readonly ["--price=DECIMAL Price per instrument, up to 9 fractional digits; omitted for market orders", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
427
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
428
|
+
readonly examples: readonly ["t-invest-node-sdk order place --account-id=2000000000 --instrument-id=BBG00QPYJ5H0 --quantity=1 --price=100.25 --direction=buy --order-type=limit --order-id=00000000-0000-0000-0000-000000000001 --confirm", "t-invest-node-sdk order place --account-id=2000000000 --instrument-id=BBG00QPYJ5H0 --quantity=1 --direction=sell --order-type=market --order-id=00000000-0000-0000-0000-000000000002 --confirm --format=json"];
|
|
429
|
+
readonly notes: readonly ["This command places an order and refuses to run without --confirm by default CLI policy.", "--confirm is an SDK CLI safety guard; it is not a gRPC request field.", "Use a stable --order-id value for retries so provider idempotency can identify the same order request.", "The CLI does not infer pricing rules; provider validation decides whether --price is valid for the selected order type.", "Deprecated generated figi request field is not serialized; use --instrument-id."];
|
|
430
|
+
};
|
|
431
|
+
readonly 'order cancel': {
|
|
432
|
+
readonly description: 'Cancel an order';
|
|
433
|
+
readonly sdkCall: 'sdk.orders.cancelOrder';
|
|
434
|
+
readonly grpcMethod: 'OrdersService/CancelOrder';
|
|
435
|
+
readonly usage: readonly ["t-invest-node-sdk order cancel --account-id=ID --order-id=ID --confirm [options]"];
|
|
436
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list", "--order-id=ID Exchange order identifier", "--confirm Required by default CLI side-effect policy"];
|
|
437
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
438
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
439
|
+
readonly examples: readonly ["t-invest-node-sdk order cancel --account-id=2000000000 --order-id=12345 --confirm", "t-invest-node-sdk order cancel --account-id=2000000000 --order-id=12345 --confirm --format=json"];
|
|
440
|
+
readonly notes: readonly ["This command cancels an order and refuses to run without --confirm by default CLI policy."];
|
|
441
|
+
};
|
|
442
|
+
readonly 'order replace': {
|
|
443
|
+
readonly description: 'Replace an order';
|
|
444
|
+
readonly sdkCall: 'sdk.orders.replaceOrder';
|
|
445
|
+
readonly grpcMethod: 'OrdersService/ReplaceOrder';
|
|
446
|
+
readonly usage: readonly ["t-invest-node-sdk order replace --account-id=ID --order-id=ID --idempotency-key=KEY --quantity=N --price=DECIMAL --price-type=TYPE --confirm [options]"];
|
|
447
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list", "--order-id=ID Exchange order identifier", "--idempotency-key=KEY New idempotency key, max provider length is 36 chars", "--quantity=N Positive integer lots count", "--price=DECIMAL Price per instrument, up to 9 fractional digits", "--price-type=TYPE point|currency", "--confirm Required by default CLI side-effect policy"];
|
|
448
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
449
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
450
|
+
readonly examples: readonly ["t-invest-node-sdk order replace --account-id=2000000000 --order-id=12345 --idempotency-key=00000000-0000-0000-0000-000000000003 --quantity=2 --price=101.5 --price-type=currency --confirm", "t-invest-node-sdk order replace --account-id=2000000000 --order-id=12345 --idempotency-key=00000000-0000-0000-0000-000000000004 --quantity=2 --price=101.5 --price-type=currency --confirm --format=json"];
|
|
451
|
+
readonly notes: readonly ["This command changes an existing order and refuses to run without --confirm by default CLI policy.", "--idempotency-key identifies the replacement request, not the original order.", "The command does not fetch the existing order first; pass the full replacement values explicitly.", "The CLI does not generate idempotency keys automatically."];
|
|
452
|
+
};
|
|
453
|
+
readonly 'operation list': {
|
|
454
|
+
readonly description: 'Print account operations';
|
|
455
|
+
readonly sdkCall: 'sdk.operations.getOperations';
|
|
456
|
+
readonly grpcMethod: 'OperationsService/GetOperations';
|
|
457
|
+
readonly usage: readonly ["t-invest-node-sdk operation list --account-id=ID --from=ISO --to=ISO [options]"];
|
|
458
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list", "--from=ISO Start timestamp, inclusive", "--to=ISO End timestamp, inclusive"];
|
|
459
|
+
readonly optional: readonly ["--state=STATE unspecified|executed|canceled|progress (default: unspecified)", "--instrument-id=ID Optional instrument identifier filter", "--figi=FIGI Deprecated alias for --instrument-id", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
460
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
461
|
+
readonly examples: readonly ["t-invest-node-sdk operation list --account-id=2000000000 --from=2026-06-01T00:00:00Z --to=2026-06-19T00:00:00Z", "t-invest-node-sdk operation list --account-id=2000000000 --from=2026-06-01T00:00:00Z --to=2026-06-19T00:00:00Z --instrument-id=BBG00QPYJ5H0 --state=executed --format=json"];
|
|
462
|
+
readonly notes: readonly ["Deprecated --figi is still accepted and prints a warning to stderr.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
463
|
+
};
|
|
464
|
+
readonly 'operation page': {
|
|
465
|
+
readonly description: 'Print one cursor page of account operations';
|
|
466
|
+
readonly sdkCall: 'sdk.operations.getOperationsByCursor';
|
|
467
|
+
readonly grpcMethod: 'OperationsService/GetOperationsByCursor';
|
|
468
|
+
readonly usage: readonly ["t-invest-node-sdk operation page --account-id=ID [options]"];
|
|
469
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list"];
|
|
470
|
+
readonly optional: readonly ["--instrument-id=ID Optional FIGI or instrument UID filter", "--from=ISO Optional start timestamp, inclusive", "--to=ISO Optional end timestamp, inclusive", "--cursor=CURSOR Cursor returned as nextCursor by the previous page", "--limit=N Page size from 1 to 1000; provider default is used when omitted", "--operation-type=TYPE Generated OperationType name; comma-separated list is allowed", "--state=STATE unspecified|executed|canceled|progress (default: unspecified)", "--without-commissions Exclude commissions", "--without-trades Exclude trades", "--without-overnights Exclude overnight operations", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
471
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
472
|
+
readonly examples: readonly ["t-invest-node-sdk operation page --account-id=2000000000 --limit=100", "t-invest-node-sdk operation page --account-id=2000000000 --cursor=NEXT --format=json"];
|
|
473
|
+
readonly notes: readonly ["The command returns one page; pass nextCursor as --cursor to request the next page.", "Cursor pagination is explicit: the CLI does not loop through pages automatically.", "Use --limit to control page size when replaying a cursor flow in scripts.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
474
|
+
};
|
|
475
|
+
readonly 'operation broker-report': {
|
|
476
|
+
readonly description: 'Generate or print a broker report page';
|
|
477
|
+
readonly sdkCall: 'sdk.operations.getBrokerReport';
|
|
478
|
+
readonly grpcMethod: 'OperationsService/GetBrokerReport';
|
|
479
|
+
readonly usage: readonly ["t-invest-node-sdk operation broker-report --account-id=ID --from=ISO --to=ISO [options]", "t-invest-node-sdk operation broker-report --task-id=ID [options]"];
|
|
480
|
+
readonly required: readonly ["Generate mode: --account-id=ID --from=ISO --to=ISO", "Page mode: --task-id=ID"];
|
|
481
|
+
readonly optional: readonly ["--page=N Report page number, only with --task-id (default: 0)", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
482
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
483
|
+
readonly examples: readonly ["t-invest-node-sdk operation broker-report --account-id=2000000000 --from=2026-06-01T00:00:00Z --to=2026-06-19T00:00:00Z", "t-invest-node-sdk operation broker-report --task-id=TASK --page=1 --format=json"];
|
|
484
|
+
readonly notes: readonly ["The command maps the generated oneof contract to two CLI modes: generate by period or get a page by task id.", "Generate mode starts a report task; page mode reads an existing report task page.", "Use --task-id returned by generate mode for later page requests.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
485
|
+
};
|
|
486
|
+
readonly 'operation foreign-dividends-report': {
|
|
487
|
+
readonly description: 'Generate or print a foreign issuer dividends report page';
|
|
488
|
+
readonly sdkCall: 'sdk.operations.getDividendsForeignIssuer';
|
|
489
|
+
readonly grpcMethod: 'OperationsService/GetDividendsForeignIssuer';
|
|
490
|
+
readonly usage: readonly ["t-invest-node-sdk operation foreign-dividends-report --account-id=ID --from=ISO --to=ISO [options]", "t-invest-node-sdk operation foreign-dividends-report --task-id=ID [options]"];
|
|
491
|
+
readonly required: readonly ["Generate mode: --account-id=ID --from=ISO --to=ISO", "Page mode: --task-id=ID"];
|
|
492
|
+
readonly optional: readonly ["--page=N Report page number, only with --task-id (default: 0)", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
493
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
494
|
+
readonly examples: readonly ["t-invest-node-sdk operation foreign-dividends-report --account-id=2000000000 --from=2026-01-01T00:00:00Z --to=2026-12-31T00:00:00Z", "t-invest-node-sdk operation foreign-dividends-report --task-id=TASK --page=1 --format=json"];
|
|
495
|
+
readonly notes: readonly ["The command maps the generated oneof contract to two CLI modes: generate by period or get a page by task id.", "Generate mode starts a report task; page mode reads an existing report task page.", "Use --task-id returned by generate mode for later page requests.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
496
|
+
};
|
|
497
|
+
readonly 'operation portfolio': {
|
|
498
|
+
readonly description: 'Print account portfolio';
|
|
499
|
+
readonly sdkCall: 'sdk.operations.getPortfolio';
|
|
500
|
+
readonly grpcMethod: 'OperationsService/GetPortfolio';
|
|
501
|
+
readonly usage: readonly ["t-invest-node-sdk operation portfolio --account-id=ID [options]"];
|
|
502
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list"];
|
|
503
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--currency=rub|usd|eur Portfolio valuation currency (default: rub)", "--format=json|table Output format (default: table)"];
|
|
504
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
505
|
+
readonly examples: readonly ["t-invest-node-sdk operation portfolio --account-id=2000000000 --format=json"];
|
|
506
|
+
};
|
|
507
|
+
readonly 'operation positions': {
|
|
508
|
+
readonly description: 'Print account positions';
|
|
509
|
+
readonly sdkCall: 'sdk.operations.getPositions';
|
|
510
|
+
readonly grpcMethod: 'OperationsService/GetPositions';
|
|
511
|
+
readonly usage: readonly ["t-invest-node-sdk operation positions --account-id=ID [options]"];
|
|
512
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list"];
|
|
513
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
514
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
515
|
+
readonly examples: readonly ["t-invest-node-sdk operation positions --account-id=2000000000 --format=json"];
|
|
516
|
+
};
|
|
517
|
+
readonly 'operation withdraw-limits': {
|
|
518
|
+
readonly description: 'Print account withdraw limits';
|
|
519
|
+
readonly sdkCall: 'sdk.operations.getWithdrawLimits';
|
|
520
|
+
readonly grpcMethod: 'OperationsService/GetWithdrawLimits';
|
|
521
|
+
readonly usage: readonly ["t-invest-node-sdk operation withdraw-limits --account-id=ID [options]"];
|
|
522
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list"];
|
|
523
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
524
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
525
|
+
readonly examples: readonly ["t-invest-node-sdk operation withdraw-limits --account-id=2000000000", "t-invest-node-sdk operation withdraw-limits --account-id=2000000000 --format=json"];
|
|
526
|
+
};
|
|
527
|
+
readonly 'stop-order list': {
|
|
528
|
+
readonly description: 'Print active stop orders';
|
|
529
|
+
readonly sdkCall: 'sdk.stopOrders.getStopOrders';
|
|
530
|
+
readonly grpcMethod: 'StopOrdersService/GetStopOrders';
|
|
531
|
+
readonly usage: readonly ["t-invest-node-sdk stop-order list --account-id=ID [options]"];
|
|
532
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list"];
|
|
533
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
534
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
535
|
+
readonly examples: readonly ["t-invest-node-sdk stop-order list --account-id=2000000000", "t-invest-node-sdk stop-order list --account-id=2000000000 --format=json"];
|
|
536
|
+
};
|
|
537
|
+
readonly 'stop-order place': {
|
|
538
|
+
readonly description: 'Post a stop order';
|
|
539
|
+
readonly sdkCall: 'sdk.stopOrders.postStopOrder';
|
|
540
|
+
readonly grpcMethod: 'StopOrdersService/PostStopOrder';
|
|
541
|
+
readonly usage: readonly ["t-invest-node-sdk stop-order place --account-id=ID --instrument-id=ID --quantity=N --stop-price=DECIMAL --direction=buy|sell --expiration-type=TYPE --stop-order-type=TYPE --confirm [options]"];
|
|
542
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list", "--instrument-id=ID FIGI or instrument UID", "--quantity=N Positive integer lots count", "--stop-price=DECIMAL Stop price, up to 9 fractional digits", "--direction=DIR buy|sell", "--expiration-type=TYPE good-till-cancel|good-till-date", "--stop-order-type=TYPE take-profit|stop-loss|stop-limit", "--confirm Required by default CLI side-effect policy"];
|
|
543
|
+
readonly optional: readonly ["--price=DECIMAL Order price, up to 9 fractional digits", "--expire-date=ISO Required when --expiration-type=good-till-date", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
544
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
545
|
+
readonly examples: readonly ["t-invest-node-sdk stop-order place --account-id=2000000000 --instrument-id=BBG00QPYJ5H0 --quantity=1 --stop-price=95.5 --direction=sell --expiration-type=good-till-cancel --stop-order-type=stop-loss --confirm", "t-invest-node-sdk stop-order place --account-id=2000000000 --instrument-id=BBG00QPYJ5H0 --quantity=1 --price=95 --stop-price=95.5 --direction=sell --expiration-type=good-till-date --expire-date=2026-06-20T10:00:00Z --stop-order-type=stop-limit --confirm --format=json"];
|
|
546
|
+
readonly notes: readonly ["This command places a stop order and refuses to run without --confirm by default CLI policy.", "Deprecated generated figi request field is not serialized; use --instrument-id."];
|
|
547
|
+
};
|
|
548
|
+
readonly 'stop-order cancel': {
|
|
549
|
+
readonly description: 'Cancel a stop order';
|
|
550
|
+
readonly sdkCall: 'sdk.stopOrders.cancelStopOrder';
|
|
551
|
+
readonly grpcMethod: 'StopOrdersService/CancelStopOrder';
|
|
552
|
+
readonly usage: readonly ["t-invest-node-sdk stop-order cancel --account-id=ID --stop-order-id=ID --confirm [options]"];
|
|
553
|
+
readonly required: readonly ["--account-id=ID Account identifier from account list", "--stop-order-id=ID Stop order identifier", "--confirm Required by default CLI side-effect policy"];
|
|
554
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
555
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
556
|
+
readonly examples: readonly ["t-invest-node-sdk stop-order cancel --account-id=2000000000 --stop-order-id=stop-order-id --confirm", "t-invest-node-sdk stop-order cancel --account-id=2000000000 --stop-order-id=stop-order-id --confirm --format=json"];
|
|
557
|
+
readonly notes: readonly ["This command cancels a stop order and refuses to run without --confirm by default CLI policy."];
|
|
558
|
+
};
|
|
559
|
+
readonly 'sandbox account list': {
|
|
560
|
+
readonly description: 'Print sandbox accounts';
|
|
561
|
+
readonly sdkCall: 'sdk.sandbox.getSandboxAccounts';
|
|
562
|
+
readonly grpcMethod: 'SandboxService/GetSandboxAccounts';
|
|
563
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox account list [options]"];
|
|
564
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
565
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
566
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox account list", "t-invest-node-sdk sandbox account list --format=json"];
|
|
567
|
+
};
|
|
568
|
+
readonly 'sandbox account open': {
|
|
569
|
+
readonly description: 'Open a sandbox account';
|
|
570
|
+
readonly sdkCall: 'sdk.sandbox.openSandboxAccount';
|
|
571
|
+
readonly grpcMethod: 'SandboxService/OpenSandboxAccount';
|
|
572
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox account open --confirm [options]"];
|
|
573
|
+
readonly required: readonly ["--confirm Required by default CLI side-effect policy"];
|
|
574
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
575
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
576
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox account open --confirm", "t-invest-node-sdk sandbox account open --confirm --format=json"];
|
|
577
|
+
readonly notes: readonly ["This command opens a sandbox account and refuses to run without --confirm by default CLI policy."];
|
|
578
|
+
};
|
|
579
|
+
readonly 'sandbox account close': {
|
|
580
|
+
readonly description: 'Close a sandbox account';
|
|
581
|
+
readonly sdkCall: 'sdk.sandbox.closeSandboxAccount';
|
|
582
|
+
readonly grpcMethod: 'SandboxService/CloseSandboxAccount';
|
|
583
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox account close --account-id=ID --confirm [options]"];
|
|
584
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list", "--confirm Required by default CLI side-effect policy"];
|
|
585
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
586
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
587
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox account close --account-id=2000000000 --confirm", "t-invest-node-sdk sandbox account close --account-id=2000000000 --confirm --format=json"];
|
|
588
|
+
readonly notes: readonly ["This command closes a sandbox account and refuses to run without --confirm by default CLI policy."];
|
|
589
|
+
};
|
|
590
|
+
readonly 'sandbox order list': {
|
|
591
|
+
readonly description: 'Print active sandbox orders';
|
|
592
|
+
readonly sdkCall: 'sdk.sandbox.getSandboxOrders';
|
|
593
|
+
readonly grpcMethod: 'SandboxService/GetSandboxOrders';
|
|
594
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox order list --account-id=ID [options]"];
|
|
595
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list"];
|
|
596
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
597
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
598
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox order list --account-id=2000000000", "t-invest-node-sdk sandbox order list --account-id=2000000000 --format=json"];
|
|
599
|
+
};
|
|
600
|
+
readonly 'sandbox order show': {
|
|
601
|
+
readonly description: 'Print sandbox order state';
|
|
602
|
+
readonly sdkCall: 'sdk.sandbox.getSandboxOrderState';
|
|
603
|
+
readonly grpcMethod: 'SandboxService/GetSandboxOrderState';
|
|
604
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox order show --account-id=ID --order-id=ID [options]"];
|
|
605
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list", "--order-id=ID Exchange order identifier"];
|
|
606
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
607
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
608
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox order show --account-id=2000000000 --order-id=12345", "t-invest-node-sdk sandbox order show --account-id=2000000000 --order-id=12345 --format=json"];
|
|
609
|
+
};
|
|
610
|
+
readonly 'sandbox order place': {
|
|
611
|
+
readonly description: 'Post a sandbox order';
|
|
612
|
+
readonly sdkCall: 'sdk.sandbox.postSandboxOrder';
|
|
613
|
+
readonly grpcMethod: 'SandboxService/PostSandboxOrder';
|
|
614
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox order place --account-id=ID --instrument-id=ID --quantity=N --direction=buy|sell --order-type=TYPE --order-id=KEY --confirm [options]"];
|
|
615
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list", "--instrument-id=ID FIGI or instrument UID", "--quantity=N Positive integer lots count", "--direction=DIR buy|sell", "--order-type=TYPE limit|market|bestprice", "--order-id=KEY Idempotency key, max provider length is 36 chars", "--confirm Required by default CLI side-effect policy"];
|
|
616
|
+
readonly optional: readonly ["--price=DECIMAL Price per instrument, up to 9 fractional digits; omitted for market orders", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
617
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
618
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox order place --account-id=2000000000 --instrument-id=BBG00QPYJ5H0 --quantity=1 --price=100.25 --direction=buy --order-type=limit --order-id=00000000-0000-0000-0000-000000000001 --confirm", "t-invest-node-sdk sandbox order place --account-id=2000000000 --instrument-id=BBG00QPYJ5H0 --quantity=1 --direction=sell --order-type=market --order-id=00000000-0000-0000-0000-000000000002 --confirm --format=json"];
|
|
619
|
+
readonly notes: readonly ["This command places a sandbox order and refuses to run without --confirm by default CLI policy.", "Deprecated generated figi request field is not serialized; use --instrument-id."];
|
|
620
|
+
};
|
|
621
|
+
readonly 'sandbox order replace': {
|
|
622
|
+
readonly description: 'Replace a sandbox order';
|
|
623
|
+
readonly sdkCall: 'sdk.sandbox.replaceSandboxOrder';
|
|
624
|
+
readonly grpcMethod: 'SandboxService/ReplaceSandboxOrder';
|
|
625
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox order replace --account-id=ID --order-id=ID --idempotency-key=KEY --quantity=N --price=DECIMAL --price-type=TYPE --confirm [options]"];
|
|
626
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list", "--order-id=ID Exchange order identifier", "--idempotency-key=KEY New idempotency key, max provider length is 36 chars", "--quantity=N Positive integer lots count", "--price=DECIMAL Price per instrument, up to 9 fractional digits", "--price-type=TYPE point|currency", "--confirm Required by default CLI side-effect policy"];
|
|
627
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
628
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
629
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox order replace --account-id=2000000000 --order-id=12345 --idempotency-key=00000000-0000-0000-0000-000000000003 --quantity=2 --price=101.5 --price-type=currency --confirm", "t-invest-node-sdk sandbox order replace --account-id=2000000000 --order-id=12345 --idempotency-key=00000000-0000-0000-0000-000000000004 --quantity=2 --price=101.5 --price-type=currency --confirm --format=json"];
|
|
630
|
+
readonly notes: readonly ["This command changes an existing sandbox order and refuses to run without --confirm by default CLI policy.", "The CLI does not generate idempotency keys automatically."];
|
|
631
|
+
};
|
|
632
|
+
readonly 'sandbox order cancel': {
|
|
633
|
+
readonly description: 'Cancel a sandbox order';
|
|
634
|
+
readonly sdkCall: 'sdk.sandbox.cancelSandboxOrder';
|
|
635
|
+
readonly grpcMethod: 'SandboxService/CancelSandboxOrder';
|
|
636
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox order cancel --account-id=ID --order-id=ID --confirm [options]"];
|
|
637
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list", "--order-id=ID Exchange order identifier", "--confirm Required by default CLI side-effect policy"];
|
|
638
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
639
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
640
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox order cancel --account-id=2000000000 --order-id=12345 --confirm", "t-invest-node-sdk sandbox order cancel --account-id=2000000000 --order-id=12345 --confirm --format=json"];
|
|
641
|
+
readonly notes: readonly ["This command cancels a sandbox order and refuses to run without --confirm by default CLI policy."];
|
|
642
|
+
};
|
|
643
|
+
readonly 'sandbox portfolio': {
|
|
644
|
+
readonly description: 'Print sandbox portfolio';
|
|
645
|
+
readonly sdkCall: 'sdk.sandbox.getSandboxPortfolio';
|
|
646
|
+
readonly grpcMethod: 'SandboxService/GetSandboxPortfolio';
|
|
647
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox portfolio --account-id=ID [options]"];
|
|
648
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list"];
|
|
649
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--currency=rub|usd|eur Portfolio valuation currency (default: rub)", "--format=json|table Output format (default: table)"];
|
|
650
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
651
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox portfolio --account-id=2000000000", "t-invest-node-sdk sandbox portfolio --account-id=2000000000 --currency=usd --format=json"];
|
|
652
|
+
};
|
|
653
|
+
readonly 'sandbox position list': {
|
|
654
|
+
readonly description: 'Print sandbox positions';
|
|
655
|
+
readonly sdkCall: 'sdk.sandbox.getSandboxPositions';
|
|
656
|
+
readonly grpcMethod: 'SandboxService/GetSandboxPositions';
|
|
657
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox position list --account-id=ID [options]"];
|
|
658
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list"];
|
|
659
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
660
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
661
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox position list --account-id=2000000000", "t-invest-node-sdk sandbox position list --account-id=2000000000 --format=json"];
|
|
662
|
+
};
|
|
663
|
+
readonly 'sandbox withdraw-limits': {
|
|
664
|
+
readonly description: 'Print sandbox withdraw limits';
|
|
665
|
+
readonly sdkCall: 'sdk.sandbox.getSandboxWithdrawLimits';
|
|
666
|
+
readonly grpcMethod: 'SandboxService/GetSandboxWithdrawLimits';
|
|
667
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox withdraw-limits --account-id=ID [options]"];
|
|
668
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list"];
|
|
669
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
670
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
671
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox withdraw-limits --account-id=2000000000", "t-invest-node-sdk sandbox withdraw-limits --account-id=2000000000 --format=json"];
|
|
672
|
+
};
|
|
673
|
+
readonly 'sandbox operation list': {
|
|
674
|
+
readonly description: 'Print sandbox operations';
|
|
675
|
+
readonly sdkCall: 'sdk.sandbox.getSandboxOperations';
|
|
676
|
+
readonly grpcMethod: 'SandboxService/GetSandboxOperations';
|
|
677
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox operation list --account-id=ID --from=ISO --to=ISO [options]"];
|
|
678
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list", "--from=ISO Start timestamp, inclusive", "--to=ISO End timestamp, inclusive"];
|
|
679
|
+
readonly optional: readonly ["--state=STATE unspecified|executed|canceled|progress (default: unspecified)", "--instrument-id=ID Optional instrument identifier filter", "--figi=FIGI Deprecated alias for --instrument-id", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
680
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
681
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox operation list --account-id=2000000000 --from=2026-06-01T00:00:00Z --to=2026-06-19T00:00:00Z", "t-invest-node-sdk sandbox operation list --account-id=2000000000 --from=2026-06-01T00:00:00Z --to=2026-06-19T00:00:00Z --instrument-id=BBG00QPYJ5H0 --state=executed --format=json"];
|
|
682
|
+
readonly notes: readonly ["Deprecated --figi is still accepted and prints a warning to stderr.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
683
|
+
};
|
|
684
|
+
readonly 'sandbox operation page': {
|
|
685
|
+
readonly description: 'Print one cursor page of sandbox operations';
|
|
686
|
+
readonly sdkCall: 'sdk.sandbox.getSandboxOperationsByCursor';
|
|
687
|
+
readonly grpcMethod: 'SandboxService/GetSandboxOperationsByCursor';
|
|
688
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox operation page --account-id=ID [options]"];
|
|
689
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list"];
|
|
690
|
+
readonly optional: readonly ["--instrument-id=ID Optional FIGI or instrument UID filter", "--from=ISO Optional start timestamp, inclusive", "--to=ISO Optional end timestamp, inclusive", "--cursor=CURSOR Cursor returned as nextCursor by the previous page", "--limit=N Page size from 1 to 1000; provider default is used when omitted", "--operation-type=TYPE Generated OperationType name; comma-separated list is allowed", "--state=STATE unspecified|executed|canceled|progress (default: unspecified)", "--without-commissions Exclude commissions", "--without-trades Exclude trades", "--without-overnights Exclude overnight operations", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
691
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
692
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox operation page --account-id=2000000000 --limit=100", "t-invest-node-sdk sandbox operation page --account-id=2000000000 --cursor=NEXT --format=json"];
|
|
693
|
+
readonly notes: readonly ["The command returns one page; pass nextCursor as --cursor to request the next page.", "The command validates only CLI syntax and date ordering; API range limits remain provider-side."];
|
|
694
|
+
};
|
|
695
|
+
readonly 'sandbox pay-in': {
|
|
696
|
+
readonly description: 'Pay in to a sandbox account';
|
|
697
|
+
readonly sdkCall: 'sdk.sandbox.sandboxPayIn';
|
|
698
|
+
readonly grpcMethod: 'SandboxService/SandboxPayIn';
|
|
699
|
+
readonly usage: readonly ["t-invest-node-sdk sandbox pay-in --account-id=ID --amount=DECIMAL --currency=rub|usd --confirm [options]"];
|
|
700
|
+
readonly required: readonly ["--account-id=ID Sandbox account identifier from sandbox account list", "--amount=DECIMAL Positive decimal amount, up to 9 fractional digits", "--confirm Required by default CLI side-effect policy"];
|
|
701
|
+
readonly optional: readonly ["--currency=rub|usd Pay-in currency (default: rub)", "--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--format=json|table Output format (default: table)"];
|
|
702
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
703
|
+
readonly examples: readonly ["t-invest-node-sdk sandbox pay-in --account-id=2000000000 --amount=1000 --currency=rub --confirm", "t-invest-node-sdk sandbox pay-in --account-id=2000000000 --amount=1000 --currency=rub --confirm --format=json"];
|
|
704
|
+
readonly notes: readonly ["This command changes sandbox account balance and refuses to run without --confirm by default CLI policy.", "Unknown currency values are rejected by CLI parsing; --currency=usd is accepted by the parser but fails as unsupported."];
|
|
705
|
+
};
|
|
706
|
+
readonly 'stream run': {
|
|
707
|
+
readonly description: 'Run a configured stream and print JSONL events';
|
|
708
|
+
readonly usage: readonly ["t-invest-node-sdk stream run --config=PATH [options]"];
|
|
709
|
+
readonly required: readonly ["--config=PATH Path to stream JSON config"];
|
|
710
|
+
readonly optional: readonly ["--token=TOKEN OAuth token, overrides T_INVEST_TOKEN", "--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT", "--app-name=NAME Optional x-app-name metadata value", "--insecure Disable TLS for local or test endpoints", "--max-events=N Stop after N printed events", "--duration-ms=N Stop after N milliseconds from stream start", "--idle-timeout-ms=N Stop after N milliseconds without provider events", "--include-pings Print ping events", "--raw Print generated response shape without envelope", "--format=jsonl Output format (default: jsonl)"];
|
|
711
|
+
readonly environment: readonly ["T_INVEST_TOKEN", "T_INVEST_ENDPOINT"];
|
|
712
|
+
readonly examples: readonly ["t-invest-node-sdk stream run --config=portfolio-stream.json --max-events=10", "t-invest-node-sdk stream run --config=marketdata-stream.json --include-pings"];
|
|
713
|
+
readonly notes: readonly ["Supports server-side streams and static initial requests for marketdata.marketDataStream.", "Output is JSONL so each provider event can be processed as an independent line.", "Use --max-events, --duration-ms or --idle-timeout-ms to make long-running streams finite in scripts.", "--raw prints generated response objects; the default output wraps events in a stable CLI envelope.", "Dynamic bidirectional request sources are not implemented."];
|
|
714
|
+
};
|
|
715
|
+
readonly 'dev compile-proto': {
|
|
716
|
+
readonly description: 'Generate TypeScript contracts from local proto files';
|
|
717
|
+
readonly usage: readonly ["t-invest-node-sdk dev compile-proto"];
|
|
718
|
+
readonly examples: readonly ["t-invest-node-sdk dev compile-proto"];
|
|
719
|
+
readonly notes: readonly ["The command uses proto files already present in the repository; it does not download upstream proto sources.", "Runs the pinned protoc compiler and ts-proto plugin from local npm dependencies.", "Run npm run build before this command when bootstrap TypeScript sources changed.", "Generated files are part of the SDK runtime contract; do not edit them manually."];
|
|
720
|
+
};
|
|
721
|
+
readonly help: {
|
|
722
|
+
readonly description: 'Show top-level or command-specific help';
|
|
723
|
+
readonly usage: readonly ["t-invest-node-sdk help", "t-invest-node-sdk help <domain> [<command>]", "t-invest-node-sdk <domain> <command> --help"];
|
|
724
|
+
readonly examples: readonly ["t-invest-node-sdk help", "t-invest-node-sdk help operation portfolio", "t-invest-node-sdk help version"];
|
|
725
|
+
readonly notes: readonly ["Unknown command help falls back to the top-level help page."];
|
|
726
|
+
};
|
|
727
|
+
readonly version: {
|
|
728
|
+
readonly description: 'Show package version';
|
|
729
|
+
readonly usage: readonly ["t-invest-node-sdk version", "t-invest-node-sdk --version"];
|
|
730
|
+
readonly examples: readonly ["t-invest-node-sdk version"];
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
export type CommandHelpName = keyof typeof commandHelp;
|