@woodger/t-invest-node-sdk 0.5.2 → 0.5.3
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 +19 -0
- package/{THIRD_PARTY_NOTICES.md → LICENSE-APACHE-2.0} +1 -106
- package/NOTICE +98 -0
- package/dist/application/services/unary-limiter.js +9 -9
- 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 +1 -1
- package/dist/generated/google/api/field_behavior.js +1 -1
- package/dist/generated/google/protobuf/descriptor.js +1 -1
- package/dist/generated/google/protobuf/timestamp.js +1 -1
- package/dist/generated/instruments.js +1 -1
- package/dist/generated/marketdata.js +1 -1
- package/dist/generated/operations.js +1 -1
- package/dist/generated/orders.js +1 -1
- package/dist/generated/sandbox.js +1 -1
- package/dist/generated/signals.js +1 -1
- package/dist/generated/stoporders.js +1 -1
- package/dist/generated/users.js +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 +44 -41
- 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 +30 -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 +9 -9
- package/docs/limits-policy.md +10 -10
- package/docs/roadmap.md +12 -12
- package/docs/tls-policy.md +7 -7
- package/package.json +2 -1
- package/readme.md +42 -41
- 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,1649 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Декларативный каталог CLI-справки.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы только статические контракты команд, usage и examples.
|
|
6
|
+
* Здесь не должно быть разбора аргументов, rendering или SDK runtime wiring.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.commandHelp = void 0;
|
|
10
|
+
const sdkConnectionOptions = [
|
|
11
|
+
'--token=TOKEN OAuth token, overrides T_INVEST_TOKEN',
|
|
12
|
+
'--endpoint=HOST:PORT gRPC endpoint, overrides T_INVEST_ENDPOINT',
|
|
13
|
+
'--app-name=NAME Optional x-app-name metadata value',
|
|
14
|
+
'--insecure Disable TLS for local or test endpoints'
|
|
15
|
+
];
|
|
16
|
+
const sdkEnvironment = [
|
|
17
|
+
'T_INVEST_TOKEN',
|
|
18
|
+
'T_INVEST_ENDPOINT'
|
|
19
|
+
];
|
|
20
|
+
const tableFormatOption = '--format=json|table Output format (default: table)';
|
|
21
|
+
const csvFormatOption = '--format=json|csv Output format (default: json)';
|
|
22
|
+
const jsonlFormatOption = '--format=jsonl Output format (default: jsonl)';
|
|
23
|
+
exports.commandHelp = {
|
|
24
|
+
'account list': {
|
|
25
|
+
description: 'Print user accounts',
|
|
26
|
+
sdkCall: 'sdk.users.getAccounts',
|
|
27
|
+
grpcMethod: 'UsersService/GetAccounts',
|
|
28
|
+
usage: [
|
|
29
|
+
't-invest-node-sdk account list [options]'
|
|
30
|
+
],
|
|
31
|
+
optional: [
|
|
32
|
+
...sdkConnectionOptions,
|
|
33
|
+
tableFormatOption
|
|
34
|
+
],
|
|
35
|
+
environment: sdkEnvironment,
|
|
36
|
+
examples: [
|
|
37
|
+
't-invest-node-sdk account list --format=json'
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
'account info': {
|
|
41
|
+
description: 'Print user info',
|
|
42
|
+
sdkCall: 'sdk.users.getInfo',
|
|
43
|
+
grpcMethod: 'UsersService/GetInfo',
|
|
44
|
+
usage: [
|
|
45
|
+
't-invest-node-sdk account info [options]'
|
|
46
|
+
],
|
|
47
|
+
optional: [
|
|
48
|
+
...sdkConnectionOptions,
|
|
49
|
+
tableFormatOption
|
|
50
|
+
],
|
|
51
|
+
environment: sdkEnvironment,
|
|
52
|
+
examples: [
|
|
53
|
+
't-invest-node-sdk account info',
|
|
54
|
+
't-invest-node-sdk account info --format=json'
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
'account margin': {
|
|
58
|
+
description: 'Print account margin attributes',
|
|
59
|
+
sdkCall: 'sdk.users.getMarginAttributes',
|
|
60
|
+
grpcMethod: 'UsersService/GetMarginAttributes',
|
|
61
|
+
usage: [
|
|
62
|
+
't-invest-node-sdk account margin --account-id=ID [options]'
|
|
63
|
+
],
|
|
64
|
+
required: [
|
|
65
|
+
'--account-id=ID Account identifier from account list'
|
|
66
|
+
],
|
|
67
|
+
optional: [
|
|
68
|
+
...sdkConnectionOptions,
|
|
69
|
+
tableFormatOption
|
|
70
|
+
],
|
|
71
|
+
environment: sdkEnvironment,
|
|
72
|
+
examples: [
|
|
73
|
+
't-invest-node-sdk account margin --account-id=2000000000',
|
|
74
|
+
't-invest-node-sdk account margin --account-id=2000000000 --format=json'
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
'account tariff': {
|
|
78
|
+
description: 'Print user API limits',
|
|
79
|
+
sdkCall: 'sdk.users.getUserTariff',
|
|
80
|
+
grpcMethod: 'UsersService/GetUserTariff',
|
|
81
|
+
usage: [
|
|
82
|
+
't-invest-node-sdk account tariff [options]'
|
|
83
|
+
],
|
|
84
|
+
optional: [
|
|
85
|
+
...sdkConnectionOptions,
|
|
86
|
+
tableFormatOption
|
|
87
|
+
],
|
|
88
|
+
environment: sdkEnvironment,
|
|
89
|
+
examples: [
|
|
90
|
+
't-invest-node-sdk account tariff',
|
|
91
|
+
't-invest-node-sdk account tariff --format=json'
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
'market candles': {
|
|
95
|
+
description: 'Print historical candles',
|
|
96
|
+
sdkCall: 'sdk.marketData.getCandles',
|
|
97
|
+
grpcMethod: 'MarketDataService/GetCandles',
|
|
98
|
+
usage: [
|
|
99
|
+
't-invest-node-sdk market candles --instrument-id=ID --from=ISO --to=ISO --interval=INTERVAL [options]'
|
|
100
|
+
],
|
|
101
|
+
required: [
|
|
102
|
+
'--instrument-id=ID FIGI or instrument UID',
|
|
103
|
+
'--from=ISO Start timestamp, inclusive',
|
|
104
|
+
'--to=ISO End timestamp, inclusive',
|
|
105
|
+
'--interval=INTERVAL 1min|2min|3min|5min|10min|15min|30min|hour|2hour|4hour|day|week|month'
|
|
106
|
+
],
|
|
107
|
+
optional: [
|
|
108
|
+
...sdkConnectionOptions,
|
|
109
|
+
csvFormatOption
|
|
110
|
+
],
|
|
111
|
+
environment: sdkEnvironment,
|
|
112
|
+
examples: [
|
|
113
|
+
'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'
|
|
114
|
+
],
|
|
115
|
+
notes: [
|
|
116
|
+
'Use --format=csv when candle rows are consumed by spreadsheets or batch tools.',
|
|
117
|
+
'The CLI accepts interval aliases, but provider history depth and request window limits still apply.',
|
|
118
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
'market close-prices': {
|
|
122
|
+
description: 'Print close prices',
|
|
123
|
+
sdkCall: 'sdk.marketData.getClosePrices',
|
|
124
|
+
grpcMethod: 'MarketDataService/GetClosePrices',
|
|
125
|
+
usage: [
|
|
126
|
+
't-invest-node-sdk market close-prices --instrument-id=ID[,ID] [options]'
|
|
127
|
+
],
|
|
128
|
+
required: [
|
|
129
|
+
'--instrument-id=ID[,ID] FIGI or instrument UID list'
|
|
130
|
+
],
|
|
131
|
+
optional: [
|
|
132
|
+
...sdkConnectionOptions,
|
|
133
|
+
tableFormatOption
|
|
134
|
+
],
|
|
135
|
+
environment: sdkEnvironment,
|
|
136
|
+
examples: [
|
|
137
|
+
't-invest-node-sdk market close-prices --instrument-id=BBG00QPYJ5H0',
|
|
138
|
+
't-invest-node-sdk market close-prices --instrument-id=BBG00QPYJ5H0,instrument-uid --format=json'
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
'instrument search': {
|
|
142
|
+
description: 'Search instruments',
|
|
143
|
+
sdkCall: 'sdk.instruments.findInstrument',
|
|
144
|
+
grpcMethod: 'InstrumentsService/FindInstrument',
|
|
145
|
+
usage: [
|
|
146
|
+
't-invest-node-sdk instrument search --query=TEXT [options]'
|
|
147
|
+
],
|
|
148
|
+
required: [
|
|
149
|
+
'--query=TEXT Search query'
|
|
150
|
+
],
|
|
151
|
+
optional: [
|
|
152
|
+
'--instrument-kind=KIND unspecified|bond|share|currency|etf|futures|sp|option|clearing-certificate',
|
|
153
|
+
'--api-trade-available Only instrument available for API trading',
|
|
154
|
+
...sdkConnectionOptions,
|
|
155
|
+
tableFormatOption
|
|
156
|
+
],
|
|
157
|
+
environment: sdkEnvironment,
|
|
158
|
+
examples: [
|
|
159
|
+
't-invest-node-sdk instrument search --query=TCSG',
|
|
160
|
+
't-invest-node-sdk instrument search --query=TCSG --instrument-kind=share --api-trade-available --format=json'
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
'instrument show': {
|
|
164
|
+
description: 'Print instrument details',
|
|
165
|
+
sdkCall: 'sdk.instruments.getInstrumentBy',
|
|
166
|
+
grpcMethod: 'InstrumentsService/GetInstrumentBy',
|
|
167
|
+
usage: [
|
|
168
|
+
't-invest-node-sdk instrument show --id=ID --id-type=TYPE [options]'
|
|
169
|
+
],
|
|
170
|
+
required: [
|
|
171
|
+
'--id=ID FIGI, ticker, instrument UID or position UID',
|
|
172
|
+
'--id-type=TYPE figi|ticker|uid|position-uid'
|
|
173
|
+
],
|
|
174
|
+
optional: [
|
|
175
|
+
'--class-code=CODE Required when --id-type=ticker',
|
|
176
|
+
...sdkConnectionOptions,
|
|
177
|
+
tableFormatOption
|
|
178
|
+
],
|
|
179
|
+
environment: sdkEnvironment,
|
|
180
|
+
examples: [
|
|
181
|
+
't-invest-node-sdk instrument show --id=BBG00QPYJ5H0 --id-type=figi',
|
|
182
|
+
't-invest-node-sdk instrument show --id=TCSG --id-type=ticker --class-code=TQBR --format=json'
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
'instrument dividends': {
|
|
186
|
+
description: 'Print instrument dividends',
|
|
187
|
+
sdkCall: 'sdk.instruments.getDividends',
|
|
188
|
+
grpcMethod: 'InstrumentsService/GetDividends',
|
|
189
|
+
usage: [
|
|
190
|
+
't-invest-node-sdk instrument dividends --instrument-id=ID --from=ISO --to=ISO [options]'
|
|
191
|
+
],
|
|
192
|
+
required: [
|
|
193
|
+
'--instrument-id=ID Share instrument identifier',
|
|
194
|
+
'--from=ISO Start timestamp, inclusive',
|
|
195
|
+
'--to=ISO End timestamp, inclusive'
|
|
196
|
+
],
|
|
197
|
+
optional: [
|
|
198
|
+
'--figi=FIGI Deprecated alias for --instrument-id',
|
|
199
|
+
...sdkConnectionOptions,
|
|
200
|
+
tableFormatOption
|
|
201
|
+
],
|
|
202
|
+
environment: sdkEnvironment,
|
|
203
|
+
examples: [
|
|
204
|
+
't-invest-node-sdk instrument dividends --instrument-id=SHARE-FIGI --from=2026-01-01T00:00:00Z --to=2026-12-31T00:00:00Z',
|
|
205
|
+
't-invest-node-sdk instrument dividends --instrument-id=SHARE-FIGI --from=2026-01-01T00:00:00Z --to=2026-12-31T00:00:00Z --format=json'
|
|
206
|
+
],
|
|
207
|
+
notes: [
|
|
208
|
+
"Deprecated --figi is still accepted and prints a warning to stderr.",
|
|
209
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
'instrument schedules': {
|
|
213
|
+
description: 'Print trading schedules',
|
|
214
|
+
sdkCall: 'sdk.instruments.tradingSchedules',
|
|
215
|
+
grpcMethod: 'InstrumentsService/TradingSchedules',
|
|
216
|
+
usage: [
|
|
217
|
+
't-invest-node-sdk instrument schedules --from=ISO --to=ISO [options]'
|
|
218
|
+
],
|
|
219
|
+
required: [
|
|
220
|
+
'--from=ISO Start timestamp, inclusive',
|
|
221
|
+
'--to=ISO End timestamp, inclusive'
|
|
222
|
+
],
|
|
223
|
+
optional: [
|
|
224
|
+
'--exchange=EXCHANGE Optional exchange or settlement calendar code',
|
|
225
|
+
...sdkConnectionOptions,
|
|
226
|
+
tableFormatOption
|
|
227
|
+
],
|
|
228
|
+
environment: sdkEnvironment,
|
|
229
|
+
examples: [
|
|
230
|
+
't-invest-node-sdk instrument schedules --from=2026-01-01T00:00:00Z --to=2026-01-31T00:00:00Z',
|
|
231
|
+
't-invest-node-sdk instrument schedules --exchange=MOEX --from=2026-01-01T00:00:00Z --to=2026-01-31T00:00:00Z --format=json'
|
|
232
|
+
],
|
|
233
|
+
notes: [
|
|
234
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
'instrument favorite list': {
|
|
238
|
+
description: 'Print favorite instruments',
|
|
239
|
+
sdkCall: 'sdk.instruments.getFavorites',
|
|
240
|
+
grpcMethod: 'InstrumentsService/GetFavorites',
|
|
241
|
+
usage: [
|
|
242
|
+
't-invest-node-sdk instrument favorite list [options]'
|
|
243
|
+
],
|
|
244
|
+
optional: [
|
|
245
|
+
...sdkConnectionOptions,
|
|
246
|
+
tableFormatOption
|
|
247
|
+
],
|
|
248
|
+
environment: sdkEnvironment,
|
|
249
|
+
examples: [
|
|
250
|
+
't-invest-node-sdk instrument favorite list',
|
|
251
|
+
't-invest-node-sdk instrument favorite list --format=json'
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
'instrument favorite edit': {
|
|
255
|
+
description: 'Add or remove favorite instruments',
|
|
256
|
+
sdkCall: 'sdk.instruments.editFavorites',
|
|
257
|
+
grpcMethod: 'InstrumentsService/EditFavorites',
|
|
258
|
+
usage: [
|
|
259
|
+
't-invest-node-sdk instrument favorite edit --instrument-id=ID[,ID] --action=add|del --confirm [options]'
|
|
260
|
+
],
|
|
261
|
+
required: [
|
|
262
|
+
'--instrument-id=ID[,ID] Comma-separated instrument identifiers',
|
|
263
|
+
'--action=ACTION add|del',
|
|
264
|
+
'--confirm Required by default CLI side-effect policy'
|
|
265
|
+
],
|
|
266
|
+
optional: [
|
|
267
|
+
'--figi=FIGI[,FIGI] Deprecated alias for --instrument-id',
|
|
268
|
+
...sdkConnectionOptions,
|
|
269
|
+
tableFormatOption
|
|
270
|
+
],
|
|
271
|
+
environment: sdkEnvironment,
|
|
272
|
+
examples: [
|
|
273
|
+
't-invest-node-sdk instrument favorite edit --instrument-id=BBG00QPYJ5H0 --action=add --confirm',
|
|
274
|
+
't-invest-node-sdk instrument favorite edit --instrument-id=BBG00QPYJ5H0,BBG004730N88 --action=del --confirm --format=json'
|
|
275
|
+
],
|
|
276
|
+
notes: [
|
|
277
|
+
'Deprecated --figi is still accepted and prints a warning to stderr.',
|
|
278
|
+
'This command changes account favorites and refuses to run without --confirm by default CLI policy.'
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
'instrument share list': {
|
|
282
|
+
description: 'Print shares',
|
|
283
|
+
sdkCall: 'sdk.instruments.shares',
|
|
284
|
+
grpcMethod: 'InstrumentsService/Shares',
|
|
285
|
+
usage: [
|
|
286
|
+
't-invest-node-sdk instrument share list [options]'
|
|
287
|
+
],
|
|
288
|
+
optional: [
|
|
289
|
+
'--instrument-status=STATUS unspecified|base|all (default: base)',
|
|
290
|
+
...sdkConnectionOptions,
|
|
291
|
+
tableFormatOption
|
|
292
|
+
],
|
|
293
|
+
environment: sdkEnvironment,
|
|
294
|
+
examples: [
|
|
295
|
+
't-invest-node-sdk instrument share list',
|
|
296
|
+
't-invest-node-sdk instrument share list --instrument-status=all --format=json'
|
|
297
|
+
],
|
|
298
|
+
notes: [
|
|
299
|
+
'Table output keeps risk rates, issue details and candle dates out of columns; use --format=json for the full report.'
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
'instrument share show': {
|
|
303
|
+
description: 'Print share details',
|
|
304
|
+
sdkCall: 'sdk.instruments.shareBy',
|
|
305
|
+
grpcMethod: 'InstrumentsService/ShareBy',
|
|
306
|
+
usage: [
|
|
307
|
+
't-invest-node-sdk instrument share show --id=ID --id-type=TYPE [options]'
|
|
308
|
+
],
|
|
309
|
+
required: [
|
|
310
|
+
'--id=ID FIGI, ticker, instrument UID or position UID',
|
|
311
|
+
'--id-type=TYPE figi|ticker|uid|position-uid'
|
|
312
|
+
],
|
|
313
|
+
optional: [
|
|
314
|
+
'--class-code=CODE Required when --id-type=ticker',
|
|
315
|
+
...sdkConnectionOptions,
|
|
316
|
+
tableFormatOption
|
|
317
|
+
],
|
|
318
|
+
environment: sdkEnvironment,
|
|
319
|
+
examples: [
|
|
320
|
+
't-invest-node-sdk instrument share show --id=BBG004730N88 --id-type=figi',
|
|
321
|
+
't-invest-node-sdk instrument share show --id=SBER --id-type=ticker --class-code=TQBR --format=json'
|
|
322
|
+
],
|
|
323
|
+
notes: [
|
|
324
|
+
'Table output keeps risk rates, issue details and candle dates out of columns; use --format=json for the full report.'
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
'instrument bond list': {
|
|
328
|
+
description: 'Print bonds',
|
|
329
|
+
sdkCall: 'sdk.instruments.bonds',
|
|
330
|
+
grpcMethod: 'InstrumentsService/Bonds',
|
|
331
|
+
usage: [
|
|
332
|
+
't-invest-node-sdk instrument bond list [options]'
|
|
333
|
+
],
|
|
334
|
+
optional: [
|
|
335
|
+
'--instrument-status=STATUS unspecified|base|all (default: base)',
|
|
336
|
+
...sdkConnectionOptions,
|
|
337
|
+
tableFormatOption
|
|
338
|
+
],
|
|
339
|
+
environment: sdkEnvironment,
|
|
340
|
+
examples: [
|
|
341
|
+
't-invest-node-sdk instrument bond list',
|
|
342
|
+
't-invest-node-sdk instrument bond list --instrument-status=all --format=json'
|
|
343
|
+
],
|
|
344
|
+
notes: [
|
|
345
|
+
'Table output keeps risk rates, issue details and placement values out of columns; use --format=json for the full report.'
|
|
346
|
+
]
|
|
347
|
+
},
|
|
348
|
+
'instrument bond show': {
|
|
349
|
+
description: 'Print bond details',
|
|
350
|
+
sdkCall: 'sdk.instruments.bondBy',
|
|
351
|
+
grpcMethod: 'InstrumentsService/BondBy',
|
|
352
|
+
usage: [
|
|
353
|
+
't-invest-node-sdk instrument bond show --id=ID --id-type=TYPE [options]'
|
|
354
|
+
],
|
|
355
|
+
required: [
|
|
356
|
+
'--id=ID FIGI, ticker, instrument UID or position UID',
|
|
357
|
+
'--id-type=TYPE figi|ticker|uid|position-uid'
|
|
358
|
+
],
|
|
359
|
+
optional: [
|
|
360
|
+
'--class-code=CODE Required when --id-type=ticker',
|
|
361
|
+
...sdkConnectionOptions,
|
|
362
|
+
tableFormatOption
|
|
363
|
+
],
|
|
364
|
+
environment: sdkEnvironment,
|
|
365
|
+
examples: [
|
|
366
|
+
't-invest-node-sdk instrument bond show --id=BBG00B9XRY4J --id-type=figi',
|
|
367
|
+
't-invest-node-sdk instrument bond show --id=SU26238RMFS4 --id-type=ticker --class-code=TQOB --format=json'
|
|
368
|
+
],
|
|
369
|
+
notes: [
|
|
370
|
+
'Table output keeps risk rates, issue details and placement values out of columns; use --format=json for the full report.'
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
'instrument bond coupons': {
|
|
374
|
+
description: 'Print bond coupons',
|
|
375
|
+
sdkCall: 'sdk.instruments.getBondCoupons',
|
|
376
|
+
grpcMethod: 'InstrumentsService/GetBondCoupons',
|
|
377
|
+
usage: [
|
|
378
|
+
't-invest-node-sdk instrument bond coupons --instrument-id=ID --from=ISO --to=ISO [options]'
|
|
379
|
+
],
|
|
380
|
+
required: [
|
|
381
|
+
'--instrument-id=ID Bond instrument identifier',
|
|
382
|
+
'--from=ISO Start timestamp, inclusive',
|
|
383
|
+
'--to=ISO End timestamp, inclusive'
|
|
384
|
+
],
|
|
385
|
+
optional: [
|
|
386
|
+
'--figi=FIGI Deprecated alias for --instrument-id',
|
|
387
|
+
...sdkConnectionOptions,
|
|
388
|
+
tableFormatOption
|
|
389
|
+
],
|
|
390
|
+
environment: sdkEnvironment,
|
|
391
|
+
examples: [
|
|
392
|
+
't-invest-node-sdk instrument bond coupons --instrument-id=BOND-FIGI --from=2026-01-01T00:00:00Z --to=2026-12-31T00:00:00Z',
|
|
393
|
+
'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'
|
|
394
|
+
],
|
|
395
|
+
notes: [
|
|
396
|
+
"Deprecated --figi is still accepted and prints a warning to stderr.",
|
|
397
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
398
|
+
]
|
|
399
|
+
},
|
|
400
|
+
'instrument bond accrued': {
|
|
401
|
+
description: 'Print bond accrued interests',
|
|
402
|
+
sdkCall: 'sdk.instruments.getAccruedInterests',
|
|
403
|
+
grpcMethod: 'InstrumentsService/GetAccruedInterests',
|
|
404
|
+
usage: [
|
|
405
|
+
't-invest-node-sdk instrument bond accrued --instrument-id=ID --from=ISO --to=ISO [options]'
|
|
406
|
+
],
|
|
407
|
+
required: [
|
|
408
|
+
'--instrument-id=ID Bond instrument identifier',
|
|
409
|
+
'--from=ISO Start timestamp, inclusive',
|
|
410
|
+
'--to=ISO End timestamp, inclusive'
|
|
411
|
+
],
|
|
412
|
+
optional: [
|
|
413
|
+
'--figi=FIGI Deprecated alias for --instrument-id',
|
|
414
|
+
...sdkConnectionOptions,
|
|
415
|
+
tableFormatOption
|
|
416
|
+
],
|
|
417
|
+
environment: sdkEnvironment,
|
|
418
|
+
examples: [
|
|
419
|
+
't-invest-node-sdk instrument bond accrued --instrument-id=BOND-FIGI --from=2026-01-01T00:00:00Z --to=2026-01-31T00:00:00Z',
|
|
420
|
+
'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'
|
|
421
|
+
],
|
|
422
|
+
notes: [
|
|
423
|
+
"Deprecated --figi is still accepted and prints a warning to stderr.",
|
|
424
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
'instrument etf list': {
|
|
428
|
+
description: 'Print ETFs',
|
|
429
|
+
sdkCall: 'sdk.instruments.etfs',
|
|
430
|
+
grpcMethod: 'InstrumentsService/Etfs',
|
|
431
|
+
usage: [
|
|
432
|
+
't-invest-node-sdk instrument etf list [options]'
|
|
433
|
+
],
|
|
434
|
+
optional: [
|
|
435
|
+
'--instrument-status=STATUS unspecified|base|all (default: base)',
|
|
436
|
+
...sdkConnectionOptions,
|
|
437
|
+
tableFormatOption
|
|
438
|
+
],
|
|
439
|
+
environment: sdkEnvironment,
|
|
440
|
+
examples: [
|
|
441
|
+
't-invest-node-sdk instrument etf list',
|
|
442
|
+
't-invest-node-sdk instrument etf list --instrument-status=all --format=json'
|
|
443
|
+
],
|
|
444
|
+
notes: [
|
|
445
|
+
'Table output keeps risk rates, fund metadata and candle dates out of columns; use --format=json for the full report.'
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
'instrument etf show': {
|
|
449
|
+
description: 'Print ETF details',
|
|
450
|
+
sdkCall: 'sdk.instruments.etfBy',
|
|
451
|
+
grpcMethod: 'InstrumentsService/EtfBy',
|
|
452
|
+
usage: [
|
|
453
|
+
't-invest-node-sdk instrument etf show --id=ID --id-type=TYPE [options]'
|
|
454
|
+
],
|
|
455
|
+
required: [
|
|
456
|
+
'--id=ID FIGI, ticker, instrument UID or position UID',
|
|
457
|
+
'--id-type=TYPE figi|ticker|uid|position-uid'
|
|
458
|
+
],
|
|
459
|
+
optional: [
|
|
460
|
+
'--class-code=CODE Required when --id-type=ticker',
|
|
461
|
+
...sdkConnectionOptions,
|
|
462
|
+
tableFormatOption
|
|
463
|
+
],
|
|
464
|
+
environment: sdkEnvironment,
|
|
465
|
+
examples: [
|
|
466
|
+
't-invest-node-sdk instrument etf show --id=BBG333333333 --id-type=figi',
|
|
467
|
+
't-invest-node-sdk instrument etf show --id=TMOS --id-type=ticker --class-code=TQTF --format=json'
|
|
468
|
+
],
|
|
469
|
+
notes: [
|
|
470
|
+
'Table output keeps risk rates, fund metadata and candle dates out of columns; use --format=json for the full report.'
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
'instrument currency list': {
|
|
474
|
+
description: 'Print currencies',
|
|
475
|
+
sdkCall: 'sdk.instruments.currencies',
|
|
476
|
+
grpcMethod: 'InstrumentsService/Currencies',
|
|
477
|
+
usage: [
|
|
478
|
+
't-invest-node-sdk instrument currency list [options]'
|
|
479
|
+
],
|
|
480
|
+
optional: [
|
|
481
|
+
'--instrument-status=STATUS unspecified|base|all (default: base)',
|
|
482
|
+
...sdkConnectionOptions,
|
|
483
|
+
tableFormatOption
|
|
484
|
+
],
|
|
485
|
+
environment: sdkEnvironment,
|
|
486
|
+
examples: [
|
|
487
|
+
't-invest-node-sdk instrument currency list',
|
|
488
|
+
't-invest-node-sdk instrument currency list --instrument-status=all --format=json'
|
|
489
|
+
],
|
|
490
|
+
notes: [
|
|
491
|
+
'Table output keeps risk rates and candle dates out of columns; use --format=json for the full report.'
|
|
492
|
+
]
|
|
493
|
+
},
|
|
494
|
+
'instrument currency show': {
|
|
495
|
+
description: 'Print currency details',
|
|
496
|
+
sdkCall: 'sdk.instruments.currencyBy',
|
|
497
|
+
grpcMethod: 'InstrumentsService/CurrencyBy',
|
|
498
|
+
usage: [
|
|
499
|
+
't-invest-node-sdk instrument currency show --id=ID --id-type=TYPE [options]'
|
|
500
|
+
],
|
|
501
|
+
required: [
|
|
502
|
+
'--id=ID FIGI, ticker, instrument UID or position UID',
|
|
503
|
+
'--id-type=TYPE figi|ticker|uid|position-uid'
|
|
504
|
+
],
|
|
505
|
+
optional: [
|
|
506
|
+
'--class-code=CODE Required when --id-type=ticker',
|
|
507
|
+
...sdkConnectionOptions,
|
|
508
|
+
tableFormatOption
|
|
509
|
+
],
|
|
510
|
+
environment: sdkEnvironment,
|
|
511
|
+
examples: [
|
|
512
|
+
't-invest-node-sdk instrument currency show --id=BBG0013HGFT4 --id-type=figi',
|
|
513
|
+
't-invest-node-sdk instrument currency show --id=USD000UTSTOM --id-type=ticker --class-code=CETS --format=json'
|
|
514
|
+
],
|
|
515
|
+
notes: [
|
|
516
|
+
'Table output keeps risk rates and candle dates out of columns; use --format=json for the full report.'
|
|
517
|
+
]
|
|
518
|
+
},
|
|
519
|
+
'instrument future list': {
|
|
520
|
+
description: 'Print futures contracts',
|
|
521
|
+
sdkCall: 'sdk.instruments.futures',
|
|
522
|
+
grpcMethod: 'InstrumentsService/Futures',
|
|
523
|
+
usage: [
|
|
524
|
+
't-invest-node-sdk instrument future list [options]'
|
|
525
|
+
],
|
|
526
|
+
optional: [
|
|
527
|
+
'--instrument-status=STATUS unspecified|base|all (default: base)',
|
|
528
|
+
...sdkConnectionOptions,
|
|
529
|
+
tableFormatOption
|
|
530
|
+
],
|
|
531
|
+
environment: sdkEnvironment,
|
|
532
|
+
examples: [
|
|
533
|
+
't-invest-node-sdk instrument future list',
|
|
534
|
+
't-invest-node-sdk instrument future list --instrument-status=all --format=json'
|
|
535
|
+
],
|
|
536
|
+
notes: [
|
|
537
|
+
'Table output keeps margin rates, underlying asset details and candle dates out of columns; use --format=json for the full report.'
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
'instrument future show': {
|
|
541
|
+
description: 'Print futures contract details',
|
|
542
|
+
sdkCall: 'sdk.instruments.futureBy',
|
|
543
|
+
grpcMethod: 'InstrumentsService/FutureBy',
|
|
544
|
+
usage: [
|
|
545
|
+
't-invest-node-sdk instrument future show --id=ID --id-type=TYPE [options]'
|
|
546
|
+
],
|
|
547
|
+
required: [
|
|
548
|
+
'--id=ID FIGI, ticker, instrument UID or position UID',
|
|
549
|
+
'--id-type=TYPE figi|ticker|uid|position-uid'
|
|
550
|
+
],
|
|
551
|
+
optional: [
|
|
552
|
+
'--class-code=CODE Required when --id-type=ticker',
|
|
553
|
+
...sdkConnectionOptions,
|
|
554
|
+
tableFormatOption
|
|
555
|
+
],
|
|
556
|
+
environment: sdkEnvironment,
|
|
557
|
+
examples: [
|
|
558
|
+
't-invest-node-sdk instrument future show --id=FUTFIGI --id-type=figi',
|
|
559
|
+
't-invest-node-sdk instrument future show --id=SiM6 --id-type=ticker --class-code=SPBFUT --format=json'
|
|
560
|
+
],
|
|
561
|
+
notes: [
|
|
562
|
+
'Table output keeps margin rates, underlying asset details and candle dates out of columns; use --format=json for the full report.'
|
|
563
|
+
]
|
|
564
|
+
},
|
|
565
|
+
'instrument future margin': {
|
|
566
|
+
description: 'Print futures margin details',
|
|
567
|
+
sdkCall: 'sdk.instruments.getFuturesMargin',
|
|
568
|
+
grpcMethod: 'InstrumentsService/GetFuturesMargin',
|
|
569
|
+
usage: [
|
|
570
|
+
't-invest-node-sdk instrument future margin --instrument-id=ID [options]'
|
|
571
|
+
],
|
|
572
|
+
required: [
|
|
573
|
+
'--instrument-id=ID Futures instrument identifier'
|
|
574
|
+
],
|
|
575
|
+
optional: [
|
|
576
|
+
'--figi=FIGI Deprecated alias for --instrument-id',
|
|
577
|
+
...sdkConnectionOptions,
|
|
578
|
+
tableFormatOption
|
|
579
|
+
],
|
|
580
|
+
environment: sdkEnvironment,
|
|
581
|
+
examples: [
|
|
582
|
+
't-invest-node-sdk instrument future margin --instrument-id=FUTFIGI',
|
|
583
|
+
't-invest-node-sdk instrument future margin --instrument-id=FUTFIGI --format=json'
|
|
584
|
+
],
|
|
585
|
+
notes: [
|
|
586
|
+
'Deprecated --figi is still accepted and prints a warning to stderr.'
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
'instrument option list': {
|
|
590
|
+
description: 'Print option contracts by underlying asset',
|
|
591
|
+
sdkCall: 'sdk.instruments.optionsBy',
|
|
592
|
+
grpcMethod: 'InstrumentsService/OptionsBy',
|
|
593
|
+
usage: [
|
|
594
|
+
't-invest-node-sdk instrument option list --basic-asset-uid=UID [options]'
|
|
595
|
+
],
|
|
596
|
+
required: [
|
|
597
|
+
'--basic-asset-uid=UID Underlying asset UID'
|
|
598
|
+
],
|
|
599
|
+
optional: [
|
|
600
|
+
'--basic-asset-position-uid=UID Underlying asset position UID',
|
|
601
|
+
...sdkConnectionOptions,
|
|
602
|
+
tableFormatOption
|
|
603
|
+
],
|
|
604
|
+
environment: sdkEnvironment,
|
|
605
|
+
examples: [
|
|
606
|
+
't-invest-node-sdk instrument option list --basic-asset-uid=asset-uid',
|
|
607
|
+
't-invest-node-sdk instrument option list --basic-asset-uid=asset-uid --basic-asset-position-uid=position-uid --format=json'
|
|
608
|
+
],
|
|
609
|
+
notes: [
|
|
610
|
+
'`sdk.instruments.options` is deprecated in the generated contract, so the CLI exposes `option list` instead.',
|
|
611
|
+
'Table output keeps risk rates, underlying asset details and candle dates out of columns; use --format=json for the full report.'
|
|
612
|
+
]
|
|
613
|
+
},
|
|
614
|
+
'instrument option show': {
|
|
615
|
+
description: 'Print option contract details',
|
|
616
|
+
sdkCall: 'sdk.instruments.optionBy',
|
|
617
|
+
grpcMethod: 'InstrumentsService/OptionBy',
|
|
618
|
+
usage: [
|
|
619
|
+
't-invest-node-sdk instrument option show --id=ID --id-type=TYPE [options]'
|
|
620
|
+
],
|
|
621
|
+
required: [
|
|
622
|
+
'--id=ID FIGI, ticker, instrument UID or position UID',
|
|
623
|
+
'--id-type=TYPE figi|ticker|uid|position-uid'
|
|
624
|
+
],
|
|
625
|
+
optional: [
|
|
626
|
+
'--class-code=CODE Required when --id-type=ticker',
|
|
627
|
+
...sdkConnectionOptions,
|
|
628
|
+
tableFormatOption
|
|
629
|
+
],
|
|
630
|
+
environment: sdkEnvironment,
|
|
631
|
+
examples: [
|
|
632
|
+
't-invest-node-sdk instrument option show --id=OPTIONUID --id-type=uid',
|
|
633
|
+
't-invest-node-sdk instrument option show --id=OPTIONTICKER --id-type=ticker --class-code=SPBOPT --format=json'
|
|
634
|
+
],
|
|
635
|
+
notes: [
|
|
636
|
+
'Table output keeps risk rates, underlying asset details and candle dates out of columns; use --format=json for the full report.'
|
|
637
|
+
]
|
|
638
|
+
},
|
|
639
|
+
'instrument asset list': {
|
|
640
|
+
description: 'Print assets',
|
|
641
|
+
sdkCall: 'sdk.instruments.getAssets',
|
|
642
|
+
grpcMethod: 'InstrumentsService/GetAssets',
|
|
643
|
+
usage: [
|
|
644
|
+
't-invest-node-sdk instrument asset list [options]'
|
|
645
|
+
],
|
|
646
|
+
optional: [
|
|
647
|
+
'--instrument-type=TYPE unspecified|bond|share|currency|etf|futures|sp|option|clearing-certificate (default: unspecified)',
|
|
648
|
+
...sdkConnectionOptions,
|
|
649
|
+
tableFormatOption
|
|
650
|
+
],
|
|
651
|
+
environment: sdkEnvironment,
|
|
652
|
+
examples: [
|
|
653
|
+
't-invest-node-sdk instrument asset list',
|
|
654
|
+
't-invest-node-sdk instrument asset list --instrument-type=share --format=json'
|
|
655
|
+
],
|
|
656
|
+
notes: [
|
|
657
|
+
'The gRPC method does not include futures and options assets in this list.'
|
|
658
|
+
]
|
|
659
|
+
},
|
|
660
|
+
'instrument asset show': {
|
|
661
|
+
description: 'Print asset details',
|
|
662
|
+
sdkCall: 'sdk.instruments.getAssetBy',
|
|
663
|
+
grpcMethod: 'InstrumentsService/GetAssetBy',
|
|
664
|
+
usage: [
|
|
665
|
+
't-invest-node-sdk instrument asset show --id=UID [options]'
|
|
666
|
+
],
|
|
667
|
+
required: [
|
|
668
|
+
'--id=UID Asset UID'
|
|
669
|
+
],
|
|
670
|
+
optional: [
|
|
671
|
+
...sdkConnectionOptions,
|
|
672
|
+
tableFormatOption
|
|
673
|
+
],
|
|
674
|
+
environment: sdkEnvironment,
|
|
675
|
+
examples: [
|
|
676
|
+
't-invest-node-sdk instrument asset show --id=asset-uid',
|
|
677
|
+
't-invest-node-sdk instrument asset show --id=asset-uid --format=json'
|
|
678
|
+
],
|
|
679
|
+
notes: [
|
|
680
|
+
'Table output is a compact asset overview; use --format=json for brand, security and instrument details.'
|
|
681
|
+
]
|
|
682
|
+
},
|
|
683
|
+
'instrument brand list': {
|
|
684
|
+
description: 'Print brands dictionary',
|
|
685
|
+
sdkCall: 'sdk.instruments.getBrands',
|
|
686
|
+
grpcMethod: 'InstrumentsService/GetBrands',
|
|
687
|
+
usage: [
|
|
688
|
+
't-invest-node-sdk instrument brand list [options]'
|
|
689
|
+
],
|
|
690
|
+
optional: [
|
|
691
|
+
...sdkConnectionOptions,
|
|
692
|
+
tableFormatOption
|
|
693
|
+
],
|
|
694
|
+
environment: sdkEnvironment,
|
|
695
|
+
examples: [
|
|
696
|
+
't-invest-node-sdk instrument brand list',
|
|
697
|
+
't-invest-node-sdk instrument brand list --format=json'
|
|
698
|
+
],
|
|
699
|
+
notes: [
|
|
700
|
+
'Table output keeps long description/info fields out of columns; use --format=json for the full report.'
|
|
701
|
+
]
|
|
702
|
+
},
|
|
703
|
+
'instrument brand show': {
|
|
704
|
+
description: 'Print brand details',
|
|
705
|
+
sdkCall: 'sdk.instruments.getBrandBy',
|
|
706
|
+
grpcMethod: 'InstrumentsService/GetBrandBy',
|
|
707
|
+
usage: [
|
|
708
|
+
't-invest-node-sdk instrument brand show --id=ID [options]'
|
|
709
|
+
],
|
|
710
|
+
required: [
|
|
711
|
+
'--id=ID Brand UID'
|
|
712
|
+
],
|
|
713
|
+
optional: [
|
|
714
|
+
...sdkConnectionOptions,
|
|
715
|
+
tableFormatOption
|
|
716
|
+
],
|
|
717
|
+
environment: sdkEnvironment,
|
|
718
|
+
examples: [
|
|
719
|
+
't-invest-node-sdk instrument brand show --id=brand-uid',
|
|
720
|
+
't-invest-node-sdk instrument brand show --id=brand-uid --format=json'
|
|
721
|
+
]
|
|
722
|
+
},
|
|
723
|
+
'instrument country list': {
|
|
724
|
+
description: 'Print countries dictionary',
|
|
725
|
+
sdkCall: 'sdk.instruments.getCountries',
|
|
726
|
+
grpcMethod: 'InstrumentsService/GetCountries',
|
|
727
|
+
usage: [
|
|
728
|
+
't-invest-node-sdk instrument country list [options]'
|
|
729
|
+
],
|
|
730
|
+
optional: [
|
|
731
|
+
...sdkConnectionOptions,
|
|
732
|
+
tableFormatOption
|
|
733
|
+
],
|
|
734
|
+
environment: sdkEnvironment,
|
|
735
|
+
examples: [
|
|
736
|
+
't-invest-node-sdk instrument country list',
|
|
737
|
+
't-invest-node-sdk instrument country list --format=json'
|
|
738
|
+
]
|
|
739
|
+
},
|
|
740
|
+
'market last-prices': {
|
|
741
|
+
description: 'Print latest market prices',
|
|
742
|
+
sdkCall: 'sdk.marketData.getLastPrices',
|
|
743
|
+
grpcMethod: 'MarketDataService/GetLastPrices',
|
|
744
|
+
usage: [
|
|
745
|
+
't-invest-node-sdk market last-prices --instrument-id=ID[,ID] [options]'
|
|
746
|
+
],
|
|
747
|
+
required: [
|
|
748
|
+
'--instrument-id=ID[,ID] FIGI or instrument UID list'
|
|
749
|
+
],
|
|
750
|
+
optional: [
|
|
751
|
+
...sdkConnectionOptions,
|
|
752
|
+
tableFormatOption
|
|
753
|
+
],
|
|
754
|
+
environment: sdkEnvironment,
|
|
755
|
+
examples: [
|
|
756
|
+
't-invest-node-sdk market last-prices --instrument-id=BBG00QPYJ5H0 --format=json'
|
|
757
|
+
]
|
|
758
|
+
},
|
|
759
|
+
'market trades': {
|
|
760
|
+
description: 'Print recent trades',
|
|
761
|
+
sdkCall: 'sdk.marketData.getLastTrades',
|
|
762
|
+
grpcMethod: 'MarketDataService/GetLastTrades',
|
|
763
|
+
usage: [
|
|
764
|
+
't-invest-node-sdk market trades --instrument-id=ID --from=ISO --to=ISO [options]'
|
|
765
|
+
],
|
|
766
|
+
required: [
|
|
767
|
+
'--instrument-id=ID FIGI or instrument UID',
|
|
768
|
+
'--from=ISO Start timestamp, inclusive',
|
|
769
|
+
'--to=ISO End timestamp, inclusive'
|
|
770
|
+
],
|
|
771
|
+
optional: [
|
|
772
|
+
...sdkConnectionOptions,
|
|
773
|
+
tableFormatOption
|
|
774
|
+
],
|
|
775
|
+
environment: sdkEnvironment,
|
|
776
|
+
examples: [
|
|
777
|
+
't-invest-node-sdk market trades --instrument-id=BBG00QPYJ5H0 --from=2026-06-19T10:00:00Z --to=2026-06-19T11:00:00Z',
|
|
778
|
+
't-invest-node-sdk market trades --instrument-id=BBG00QPYJ5H0 --from=2026-06-19T10:00:00Z --to=2026-06-19T11:00:00Z --format=json'
|
|
779
|
+
],
|
|
780
|
+
notes: [
|
|
781
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
782
|
+
]
|
|
783
|
+
},
|
|
784
|
+
'market order-book': {
|
|
785
|
+
description: 'Print instrument order book',
|
|
786
|
+
sdkCall: 'sdk.marketData.getOrderBook',
|
|
787
|
+
grpcMethod: 'MarketDataService/GetOrderBook',
|
|
788
|
+
usage: [
|
|
789
|
+
't-invest-node-sdk market order-book --instrument-id=ID --depth=DEPTH [options]'
|
|
790
|
+
],
|
|
791
|
+
required: [
|
|
792
|
+
'--instrument-id=ID FIGI or instrument UID',
|
|
793
|
+
'--depth=DEPTH Order book depth as positive integer'
|
|
794
|
+
],
|
|
795
|
+
optional: [
|
|
796
|
+
...sdkConnectionOptions,
|
|
797
|
+
tableFormatOption
|
|
798
|
+
],
|
|
799
|
+
environment: sdkEnvironment,
|
|
800
|
+
examples: [
|
|
801
|
+
't-invest-node-sdk market order-book --instrument-id=BBG00QPYJ5H0 --depth=10',
|
|
802
|
+
't-invest-node-sdk market order-book --instrument-id=instrument-uid --depth=20 --format=json'
|
|
803
|
+
]
|
|
804
|
+
},
|
|
805
|
+
'market status': {
|
|
806
|
+
description: 'Print instrument trading status',
|
|
807
|
+
sdkCall: 'sdk.marketData.getTradingStatus',
|
|
808
|
+
grpcMethod: 'MarketDataService/GetTradingStatus',
|
|
809
|
+
usage: [
|
|
810
|
+
't-invest-node-sdk market status --instrument-id=ID [options]'
|
|
811
|
+
],
|
|
812
|
+
required: [
|
|
813
|
+
'--instrument-id=ID FIGI or instrument UID'
|
|
814
|
+
],
|
|
815
|
+
optional: [
|
|
816
|
+
...sdkConnectionOptions,
|
|
817
|
+
tableFormatOption
|
|
818
|
+
],
|
|
819
|
+
environment: sdkEnvironment,
|
|
820
|
+
examples: [
|
|
821
|
+
't-invest-node-sdk market status --instrument-id=BBG00QPYJ5H0',
|
|
822
|
+
't-invest-node-sdk market status --instrument-id=instrument-uid --format=json'
|
|
823
|
+
]
|
|
824
|
+
},
|
|
825
|
+
'market statuses': {
|
|
826
|
+
description: 'Print instrument trading statuses',
|
|
827
|
+
sdkCall: 'sdk.marketData.getTradingStatuses',
|
|
828
|
+
grpcMethod: 'MarketDataService/GetTradingStatuses',
|
|
829
|
+
usage: [
|
|
830
|
+
't-invest-node-sdk market statuses --instrument-id=ID[,ID] [options]'
|
|
831
|
+
],
|
|
832
|
+
required: [
|
|
833
|
+
'--instrument-id=ID[,ID] FIGI or instrument UID list'
|
|
834
|
+
],
|
|
835
|
+
optional: [
|
|
836
|
+
...sdkConnectionOptions,
|
|
837
|
+
tableFormatOption
|
|
838
|
+
],
|
|
839
|
+
environment: sdkEnvironment,
|
|
840
|
+
examples: [
|
|
841
|
+
't-invest-node-sdk market statuses --instrument-id=BBG00QPYJ5H0,instrument-uid',
|
|
842
|
+
't-invest-node-sdk market statuses --instrument-id=BBG00QPYJ5H0 --format=json'
|
|
843
|
+
]
|
|
844
|
+
},
|
|
845
|
+
'order list': {
|
|
846
|
+
description: 'Print active account orders',
|
|
847
|
+
sdkCall: 'sdk.orders.getOrders',
|
|
848
|
+
grpcMethod: 'OrdersService/GetOrders',
|
|
849
|
+
usage: [
|
|
850
|
+
't-invest-node-sdk order list --account-id=ID [options]'
|
|
851
|
+
],
|
|
852
|
+
required: [
|
|
853
|
+
'--account-id=ID Account identifier from account list'
|
|
854
|
+
],
|
|
855
|
+
optional: [
|
|
856
|
+
...sdkConnectionOptions,
|
|
857
|
+
tableFormatOption
|
|
858
|
+
],
|
|
859
|
+
environment: sdkEnvironment,
|
|
860
|
+
examples: [
|
|
861
|
+
't-invest-node-sdk order list --account-id=2000000000 --format=json'
|
|
862
|
+
]
|
|
863
|
+
},
|
|
864
|
+
'order show': {
|
|
865
|
+
description: 'Print order state',
|
|
866
|
+
sdkCall: 'sdk.orders.getOrderState',
|
|
867
|
+
grpcMethod: 'OrdersService/GetOrderState',
|
|
868
|
+
usage: [
|
|
869
|
+
't-invest-node-sdk order show --account-id=ID --order-id=ID [options]'
|
|
870
|
+
],
|
|
871
|
+
required: [
|
|
872
|
+
'--account-id=ID Account identifier from account list',
|
|
873
|
+
'--order-id=ID Exchange order identifier'
|
|
874
|
+
],
|
|
875
|
+
optional: [
|
|
876
|
+
...sdkConnectionOptions,
|
|
877
|
+
tableFormatOption
|
|
878
|
+
],
|
|
879
|
+
environment: sdkEnvironment,
|
|
880
|
+
examples: [
|
|
881
|
+
't-invest-node-sdk order show --account-id=2000000000 --order-id=12345',
|
|
882
|
+
't-invest-node-sdk order show --account-id=2000000000 --order-id=12345 --format=json'
|
|
883
|
+
]
|
|
884
|
+
},
|
|
885
|
+
'order place': {
|
|
886
|
+
description: 'Post an order',
|
|
887
|
+
sdkCall: 'sdk.orders.postOrder',
|
|
888
|
+
grpcMethod: 'OrdersService/PostOrder',
|
|
889
|
+
usage: [
|
|
890
|
+
'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]'
|
|
891
|
+
],
|
|
892
|
+
required: [
|
|
893
|
+
'--account-id=ID Account identifier from account list',
|
|
894
|
+
'--instrument-id=ID FIGI or instrument UID',
|
|
895
|
+
'--quantity=N Positive integer lots count',
|
|
896
|
+
'--direction=DIR buy|sell',
|
|
897
|
+
'--order-type=TYPE limit|market|bestprice',
|
|
898
|
+
'--order-id=KEY Idempotency key, max provider length is 36 chars',
|
|
899
|
+
'--confirm Required by default CLI side-effect policy'
|
|
900
|
+
],
|
|
901
|
+
optional: [
|
|
902
|
+
'--price=DECIMAL Price per instrument, up to 9 fractional digits; omitted for market orders',
|
|
903
|
+
...sdkConnectionOptions,
|
|
904
|
+
tableFormatOption
|
|
905
|
+
],
|
|
906
|
+
environment: sdkEnvironment,
|
|
907
|
+
examples: [
|
|
908
|
+
'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',
|
|
909
|
+
'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'
|
|
910
|
+
],
|
|
911
|
+
notes: [
|
|
912
|
+
'This command places an order and refuses to run without --confirm by default CLI policy.',
|
|
913
|
+
'--confirm is an SDK CLI safety guard; it is not a gRPC request field.',
|
|
914
|
+
'Use a stable --order-id value for retries so provider idempotency can identify the same order request.',
|
|
915
|
+
'The CLI does not infer pricing rules; provider validation decides whether --price is valid for the selected order type.',
|
|
916
|
+
'Deprecated generated figi request field is not serialized; use --instrument-id.'
|
|
917
|
+
]
|
|
918
|
+
},
|
|
919
|
+
'order cancel': {
|
|
920
|
+
description: 'Cancel an order',
|
|
921
|
+
sdkCall: 'sdk.orders.cancelOrder',
|
|
922
|
+
grpcMethod: 'OrdersService/CancelOrder',
|
|
923
|
+
usage: [
|
|
924
|
+
't-invest-node-sdk order cancel --account-id=ID --order-id=ID --confirm [options]'
|
|
925
|
+
],
|
|
926
|
+
required: [
|
|
927
|
+
'--account-id=ID Account identifier from account list',
|
|
928
|
+
'--order-id=ID Exchange order identifier',
|
|
929
|
+
'--confirm Required by default CLI side-effect policy'
|
|
930
|
+
],
|
|
931
|
+
optional: [
|
|
932
|
+
...sdkConnectionOptions,
|
|
933
|
+
tableFormatOption
|
|
934
|
+
],
|
|
935
|
+
environment: sdkEnvironment,
|
|
936
|
+
examples: [
|
|
937
|
+
't-invest-node-sdk order cancel --account-id=2000000000 --order-id=12345 --confirm',
|
|
938
|
+
't-invest-node-sdk order cancel --account-id=2000000000 --order-id=12345 --confirm --format=json'
|
|
939
|
+
],
|
|
940
|
+
notes: [
|
|
941
|
+
'This command cancels an order and refuses to run without --confirm by default CLI policy.'
|
|
942
|
+
]
|
|
943
|
+
},
|
|
944
|
+
'order replace': {
|
|
945
|
+
description: 'Replace an order',
|
|
946
|
+
sdkCall: 'sdk.orders.replaceOrder',
|
|
947
|
+
grpcMethod: 'OrdersService/ReplaceOrder',
|
|
948
|
+
usage: [
|
|
949
|
+
't-invest-node-sdk order replace --account-id=ID --order-id=ID --idempotency-key=KEY --quantity=N --price=DECIMAL --price-type=TYPE --confirm [options]'
|
|
950
|
+
],
|
|
951
|
+
required: [
|
|
952
|
+
'--account-id=ID Account identifier from account list',
|
|
953
|
+
'--order-id=ID Exchange order identifier',
|
|
954
|
+
'--idempotency-key=KEY New idempotency key, max provider length is 36 chars',
|
|
955
|
+
'--quantity=N Positive integer lots count',
|
|
956
|
+
'--price=DECIMAL Price per instrument, up to 9 fractional digits',
|
|
957
|
+
'--price-type=TYPE point|currency',
|
|
958
|
+
'--confirm Required by default CLI side-effect policy'
|
|
959
|
+
],
|
|
960
|
+
optional: [
|
|
961
|
+
...sdkConnectionOptions,
|
|
962
|
+
tableFormatOption
|
|
963
|
+
],
|
|
964
|
+
environment: sdkEnvironment,
|
|
965
|
+
examples: [
|
|
966
|
+
'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',
|
|
967
|
+
'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'
|
|
968
|
+
],
|
|
969
|
+
notes: [
|
|
970
|
+
'This command changes an existing order and refuses to run without --confirm by default CLI policy.',
|
|
971
|
+
'--idempotency-key identifies the replacement request, not the original order.',
|
|
972
|
+
'The command does not fetch the existing order first; pass the full replacement values explicitly.',
|
|
973
|
+
'The CLI does not generate idempotency keys automatically.'
|
|
974
|
+
]
|
|
975
|
+
},
|
|
976
|
+
'operation list': {
|
|
977
|
+
description: 'Print account operations',
|
|
978
|
+
sdkCall: 'sdk.operations.getOperations',
|
|
979
|
+
grpcMethod: 'OperationsService/GetOperations',
|
|
980
|
+
usage: [
|
|
981
|
+
't-invest-node-sdk operation list --account-id=ID --from=ISO --to=ISO [options]'
|
|
982
|
+
],
|
|
983
|
+
required: [
|
|
984
|
+
'--account-id=ID Account identifier from account list',
|
|
985
|
+
'--from=ISO Start timestamp, inclusive',
|
|
986
|
+
'--to=ISO End timestamp, inclusive'
|
|
987
|
+
],
|
|
988
|
+
optional: [
|
|
989
|
+
'--state=STATE unspecified|executed|canceled|progress (default: unspecified)',
|
|
990
|
+
'--instrument-id=ID Optional instrument identifier filter',
|
|
991
|
+
'--figi=FIGI Deprecated alias for --instrument-id',
|
|
992
|
+
...sdkConnectionOptions,
|
|
993
|
+
tableFormatOption
|
|
994
|
+
],
|
|
995
|
+
environment: sdkEnvironment,
|
|
996
|
+
examples: [
|
|
997
|
+
't-invest-node-sdk operation list --account-id=2000000000 --from=2026-06-01T00:00:00Z --to=2026-06-19T00:00:00Z',
|
|
998
|
+
'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'
|
|
999
|
+
],
|
|
1000
|
+
notes: [
|
|
1001
|
+
'Deprecated --figi is still accepted and prints a warning to stderr.',
|
|
1002
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
1003
|
+
]
|
|
1004
|
+
},
|
|
1005
|
+
'operation page': {
|
|
1006
|
+
description: 'Print one cursor page of account operations',
|
|
1007
|
+
sdkCall: 'sdk.operations.getOperationsByCursor',
|
|
1008
|
+
grpcMethod: 'OperationsService/GetOperationsByCursor',
|
|
1009
|
+
usage: [
|
|
1010
|
+
't-invest-node-sdk operation page --account-id=ID [options]'
|
|
1011
|
+
],
|
|
1012
|
+
required: [
|
|
1013
|
+
'--account-id=ID Account identifier from account list'
|
|
1014
|
+
],
|
|
1015
|
+
optional: [
|
|
1016
|
+
'--instrument-id=ID Optional FIGI or instrument UID filter',
|
|
1017
|
+
'--from=ISO Optional start timestamp, inclusive',
|
|
1018
|
+
'--to=ISO Optional end timestamp, inclusive',
|
|
1019
|
+
'--cursor=CURSOR Cursor returned as nextCursor by the previous page',
|
|
1020
|
+
'--limit=N Page size from 1 to 1000; provider default is used when omitted',
|
|
1021
|
+
'--operation-type=TYPE Generated OperationType name; comma-separated list is allowed',
|
|
1022
|
+
'--state=STATE unspecified|executed|canceled|progress (default: unspecified)',
|
|
1023
|
+
'--without-commissions Exclude commissions',
|
|
1024
|
+
'--without-trades Exclude trades',
|
|
1025
|
+
'--without-overnights Exclude overnight operations',
|
|
1026
|
+
...sdkConnectionOptions,
|
|
1027
|
+
tableFormatOption
|
|
1028
|
+
],
|
|
1029
|
+
environment: sdkEnvironment,
|
|
1030
|
+
examples: [
|
|
1031
|
+
't-invest-node-sdk operation page --account-id=2000000000 --limit=100',
|
|
1032
|
+
't-invest-node-sdk operation page --account-id=2000000000 --cursor=NEXT --format=json'
|
|
1033
|
+
],
|
|
1034
|
+
notes: [
|
|
1035
|
+
'The command returns one page; pass nextCursor as --cursor to request the next page.',
|
|
1036
|
+
'Cursor pagination is explicit: the CLI does not loop through pages automatically.',
|
|
1037
|
+
'Use --limit to control page size when replaying a cursor flow in scripts.',
|
|
1038
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
1039
|
+
]
|
|
1040
|
+
},
|
|
1041
|
+
'operation broker-report': {
|
|
1042
|
+
description: 'Generate or print a broker report page',
|
|
1043
|
+
sdkCall: 'sdk.operations.getBrokerReport',
|
|
1044
|
+
grpcMethod: 'OperationsService/GetBrokerReport',
|
|
1045
|
+
usage: [
|
|
1046
|
+
't-invest-node-sdk operation broker-report --account-id=ID --from=ISO --to=ISO [options]',
|
|
1047
|
+
't-invest-node-sdk operation broker-report --task-id=ID [options]'
|
|
1048
|
+
],
|
|
1049
|
+
required: [
|
|
1050
|
+
'Generate mode: --account-id=ID --from=ISO --to=ISO',
|
|
1051
|
+
'Page mode: --task-id=ID'
|
|
1052
|
+
],
|
|
1053
|
+
optional: [
|
|
1054
|
+
'--page=N Report page number, only with --task-id (default: 0)',
|
|
1055
|
+
...sdkConnectionOptions,
|
|
1056
|
+
tableFormatOption
|
|
1057
|
+
],
|
|
1058
|
+
environment: sdkEnvironment,
|
|
1059
|
+
examples: [
|
|
1060
|
+
't-invest-node-sdk operation broker-report --account-id=2000000000 --from=2026-06-01T00:00:00Z --to=2026-06-19T00:00:00Z',
|
|
1061
|
+
't-invest-node-sdk operation broker-report --task-id=TASK --page=1 --format=json'
|
|
1062
|
+
],
|
|
1063
|
+
notes: [
|
|
1064
|
+
'The command maps the generated oneof contract to two CLI modes: generate by period or get a page by task id.',
|
|
1065
|
+
'Generate mode starts a report task; page mode reads an existing report task page.',
|
|
1066
|
+
'Use --task-id returned by generate mode for later page requests.',
|
|
1067
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
1070
|
+
'operation foreign-dividends-report': {
|
|
1071
|
+
description: 'Generate or print a foreign issuer dividends report page',
|
|
1072
|
+
sdkCall: 'sdk.operations.getDividendsForeignIssuer',
|
|
1073
|
+
grpcMethod: 'OperationsService/GetDividendsForeignIssuer',
|
|
1074
|
+
usage: [
|
|
1075
|
+
't-invest-node-sdk operation foreign-dividends-report --account-id=ID --from=ISO --to=ISO [options]',
|
|
1076
|
+
't-invest-node-sdk operation foreign-dividends-report --task-id=ID [options]'
|
|
1077
|
+
],
|
|
1078
|
+
required: [
|
|
1079
|
+
'Generate mode: --account-id=ID --from=ISO --to=ISO',
|
|
1080
|
+
'Page mode: --task-id=ID'
|
|
1081
|
+
],
|
|
1082
|
+
optional: [
|
|
1083
|
+
'--page=N Report page number, only with --task-id (default: 0)',
|
|
1084
|
+
...sdkConnectionOptions,
|
|
1085
|
+
tableFormatOption
|
|
1086
|
+
],
|
|
1087
|
+
environment: sdkEnvironment,
|
|
1088
|
+
examples: [
|
|
1089
|
+
't-invest-node-sdk operation foreign-dividends-report --account-id=2000000000 --from=2026-01-01T00:00:00Z --to=2026-12-31T00:00:00Z',
|
|
1090
|
+
't-invest-node-sdk operation foreign-dividends-report --task-id=TASK --page=1 --format=json'
|
|
1091
|
+
],
|
|
1092
|
+
notes: [
|
|
1093
|
+
'The command maps the generated oneof contract to two CLI modes: generate by period or get a page by task id.',
|
|
1094
|
+
'Generate mode starts a report task; page mode reads an existing report task page.',
|
|
1095
|
+
'Use --task-id returned by generate mode for later page requests.',
|
|
1096
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
1097
|
+
]
|
|
1098
|
+
},
|
|
1099
|
+
'operation portfolio': {
|
|
1100
|
+
description: 'Print account portfolio',
|
|
1101
|
+
sdkCall: 'sdk.operations.getPortfolio',
|
|
1102
|
+
grpcMethod: 'OperationsService/GetPortfolio',
|
|
1103
|
+
usage: [
|
|
1104
|
+
't-invest-node-sdk operation portfolio --account-id=ID [options]'
|
|
1105
|
+
],
|
|
1106
|
+
required: [
|
|
1107
|
+
'--account-id=ID Account identifier from account list'
|
|
1108
|
+
],
|
|
1109
|
+
optional: [
|
|
1110
|
+
...sdkConnectionOptions,
|
|
1111
|
+
'--currency=rub|usd|eur Portfolio valuation currency (default: rub)',
|
|
1112
|
+
tableFormatOption
|
|
1113
|
+
],
|
|
1114
|
+
environment: sdkEnvironment,
|
|
1115
|
+
examples: [
|
|
1116
|
+
't-invest-node-sdk operation portfolio --account-id=2000000000 --format=json'
|
|
1117
|
+
]
|
|
1118
|
+
},
|
|
1119
|
+
'operation positions': {
|
|
1120
|
+
description: 'Print account positions',
|
|
1121
|
+
sdkCall: 'sdk.operations.getPositions',
|
|
1122
|
+
grpcMethod: 'OperationsService/GetPositions',
|
|
1123
|
+
usage: [
|
|
1124
|
+
't-invest-node-sdk operation positions --account-id=ID [options]'
|
|
1125
|
+
],
|
|
1126
|
+
required: [
|
|
1127
|
+
'--account-id=ID Account identifier from account list'
|
|
1128
|
+
],
|
|
1129
|
+
optional: [
|
|
1130
|
+
...sdkConnectionOptions,
|
|
1131
|
+
tableFormatOption
|
|
1132
|
+
],
|
|
1133
|
+
environment: sdkEnvironment,
|
|
1134
|
+
examples: [
|
|
1135
|
+
't-invest-node-sdk operation positions --account-id=2000000000 --format=json'
|
|
1136
|
+
]
|
|
1137
|
+
},
|
|
1138
|
+
'operation withdraw-limits': {
|
|
1139
|
+
description: 'Print account withdraw limits',
|
|
1140
|
+
sdkCall: 'sdk.operations.getWithdrawLimits',
|
|
1141
|
+
grpcMethod: 'OperationsService/GetWithdrawLimits',
|
|
1142
|
+
usage: [
|
|
1143
|
+
't-invest-node-sdk operation withdraw-limits --account-id=ID [options]'
|
|
1144
|
+
],
|
|
1145
|
+
required: [
|
|
1146
|
+
'--account-id=ID Account identifier from account list'
|
|
1147
|
+
],
|
|
1148
|
+
optional: [
|
|
1149
|
+
...sdkConnectionOptions,
|
|
1150
|
+
tableFormatOption
|
|
1151
|
+
],
|
|
1152
|
+
environment: sdkEnvironment,
|
|
1153
|
+
examples: [
|
|
1154
|
+
't-invest-node-sdk operation withdraw-limits --account-id=2000000000',
|
|
1155
|
+
't-invest-node-sdk operation withdraw-limits --account-id=2000000000 --format=json'
|
|
1156
|
+
]
|
|
1157
|
+
},
|
|
1158
|
+
'stop-order list': {
|
|
1159
|
+
description: 'Print active stop orders',
|
|
1160
|
+
sdkCall: 'sdk.stopOrders.getStopOrders',
|
|
1161
|
+
grpcMethod: 'StopOrdersService/GetStopOrders',
|
|
1162
|
+
usage: [
|
|
1163
|
+
't-invest-node-sdk stop-order list --account-id=ID [options]'
|
|
1164
|
+
],
|
|
1165
|
+
required: [
|
|
1166
|
+
'--account-id=ID Account identifier from account list'
|
|
1167
|
+
],
|
|
1168
|
+
optional: [
|
|
1169
|
+
...sdkConnectionOptions,
|
|
1170
|
+
tableFormatOption
|
|
1171
|
+
],
|
|
1172
|
+
environment: sdkEnvironment,
|
|
1173
|
+
examples: [
|
|
1174
|
+
't-invest-node-sdk stop-order list --account-id=2000000000',
|
|
1175
|
+
't-invest-node-sdk stop-order list --account-id=2000000000 --format=json'
|
|
1176
|
+
]
|
|
1177
|
+
},
|
|
1178
|
+
'stop-order place': {
|
|
1179
|
+
description: 'Post a stop order',
|
|
1180
|
+
sdkCall: 'sdk.stopOrders.postStopOrder',
|
|
1181
|
+
grpcMethod: 'StopOrdersService/PostStopOrder',
|
|
1182
|
+
usage: [
|
|
1183
|
+
'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]'
|
|
1184
|
+
],
|
|
1185
|
+
required: [
|
|
1186
|
+
'--account-id=ID Account identifier from account list',
|
|
1187
|
+
'--instrument-id=ID FIGI or instrument UID',
|
|
1188
|
+
'--quantity=N Positive integer lots count',
|
|
1189
|
+
'--stop-price=DECIMAL Stop price, up to 9 fractional digits',
|
|
1190
|
+
'--direction=DIR buy|sell',
|
|
1191
|
+
'--expiration-type=TYPE good-till-cancel|good-till-date',
|
|
1192
|
+
'--stop-order-type=TYPE take-profit|stop-loss|stop-limit',
|
|
1193
|
+
'--confirm Required by default CLI side-effect policy'
|
|
1194
|
+
],
|
|
1195
|
+
optional: [
|
|
1196
|
+
'--price=DECIMAL Order price, up to 9 fractional digits',
|
|
1197
|
+
'--expire-date=ISO Required when --expiration-type=good-till-date',
|
|
1198
|
+
...sdkConnectionOptions,
|
|
1199
|
+
tableFormatOption
|
|
1200
|
+
],
|
|
1201
|
+
environment: sdkEnvironment,
|
|
1202
|
+
examples: [
|
|
1203
|
+
'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',
|
|
1204
|
+
'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'
|
|
1205
|
+
],
|
|
1206
|
+
notes: [
|
|
1207
|
+
'This command places a stop order and refuses to run without --confirm by default CLI policy.',
|
|
1208
|
+
'Deprecated generated figi request field is not serialized; use --instrument-id.'
|
|
1209
|
+
]
|
|
1210
|
+
},
|
|
1211
|
+
'stop-order cancel': {
|
|
1212
|
+
description: 'Cancel a stop order',
|
|
1213
|
+
sdkCall: 'sdk.stopOrders.cancelStopOrder',
|
|
1214
|
+
grpcMethod: 'StopOrdersService/CancelStopOrder',
|
|
1215
|
+
usage: [
|
|
1216
|
+
't-invest-node-sdk stop-order cancel --account-id=ID --stop-order-id=ID --confirm [options]'
|
|
1217
|
+
],
|
|
1218
|
+
required: [
|
|
1219
|
+
'--account-id=ID Account identifier from account list',
|
|
1220
|
+
'--stop-order-id=ID Stop order identifier',
|
|
1221
|
+
'--confirm Required by default CLI side-effect policy'
|
|
1222
|
+
],
|
|
1223
|
+
optional: [
|
|
1224
|
+
...sdkConnectionOptions,
|
|
1225
|
+
tableFormatOption
|
|
1226
|
+
],
|
|
1227
|
+
environment: sdkEnvironment,
|
|
1228
|
+
examples: [
|
|
1229
|
+
't-invest-node-sdk stop-order cancel --account-id=2000000000 --stop-order-id=stop-order-id --confirm',
|
|
1230
|
+
't-invest-node-sdk stop-order cancel --account-id=2000000000 --stop-order-id=stop-order-id --confirm --format=json'
|
|
1231
|
+
],
|
|
1232
|
+
notes: [
|
|
1233
|
+
'This command cancels a stop order and refuses to run without --confirm by default CLI policy.'
|
|
1234
|
+
]
|
|
1235
|
+
},
|
|
1236
|
+
'sandbox account list': {
|
|
1237
|
+
description: 'Print sandbox accounts',
|
|
1238
|
+
sdkCall: 'sdk.sandbox.getSandboxAccounts',
|
|
1239
|
+
grpcMethod: 'SandboxService/GetSandboxAccounts',
|
|
1240
|
+
usage: [
|
|
1241
|
+
't-invest-node-sdk sandbox account list [options]'
|
|
1242
|
+
],
|
|
1243
|
+
optional: [
|
|
1244
|
+
...sdkConnectionOptions,
|
|
1245
|
+
tableFormatOption
|
|
1246
|
+
],
|
|
1247
|
+
environment: sdkEnvironment,
|
|
1248
|
+
examples: [
|
|
1249
|
+
't-invest-node-sdk sandbox account list',
|
|
1250
|
+
't-invest-node-sdk sandbox account list --format=json'
|
|
1251
|
+
]
|
|
1252
|
+
},
|
|
1253
|
+
'sandbox account open': {
|
|
1254
|
+
description: 'Open a sandbox account',
|
|
1255
|
+
sdkCall: 'sdk.sandbox.openSandboxAccount',
|
|
1256
|
+
grpcMethod: 'SandboxService/OpenSandboxAccount',
|
|
1257
|
+
usage: [
|
|
1258
|
+
't-invest-node-sdk sandbox account open --confirm [options]'
|
|
1259
|
+
],
|
|
1260
|
+
required: [
|
|
1261
|
+
'--confirm Required by default CLI side-effect policy'
|
|
1262
|
+
],
|
|
1263
|
+
optional: [
|
|
1264
|
+
...sdkConnectionOptions,
|
|
1265
|
+
tableFormatOption
|
|
1266
|
+
],
|
|
1267
|
+
environment: sdkEnvironment,
|
|
1268
|
+
examples: [
|
|
1269
|
+
't-invest-node-sdk sandbox account open --confirm',
|
|
1270
|
+
't-invest-node-sdk sandbox account open --confirm --format=json'
|
|
1271
|
+
],
|
|
1272
|
+
notes: [
|
|
1273
|
+
'This command opens a sandbox account and refuses to run without --confirm by default CLI policy.'
|
|
1274
|
+
]
|
|
1275
|
+
},
|
|
1276
|
+
'sandbox account close': {
|
|
1277
|
+
description: 'Close a sandbox account',
|
|
1278
|
+
sdkCall: 'sdk.sandbox.closeSandboxAccount',
|
|
1279
|
+
grpcMethod: 'SandboxService/CloseSandboxAccount',
|
|
1280
|
+
usage: [
|
|
1281
|
+
't-invest-node-sdk sandbox account close --account-id=ID --confirm [options]'
|
|
1282
|
+
],
|
|
1283
|
+
required: [
|
|
1284
|
+
'--account-id=ID Sandbox account identifier from sandbox account list',
|
|
1285
|
+
'--confirm Required by default CLI side-effect policy'
|
|
1286
|
+
],
|
|
1287
|
+
optional: [
|
|
1288
|
+
...sdkConnectionOptions,
|
|
1289
|
+
tableFormatOption
|
|
1290
|
+
],
|
|
1291
|
+
environment: sdkEnvironment,
|
|
1292
|
+
examples: [
|
|
1293
|
+
't-invest-node-sdk sandbox account close --account-id=2000000000 --confirm',
|
|
1294
|
+
't-invest-node-sdk sandbox account close --account-id=2000000000 --confirm --format=json'
|
|
1295
|
+
],
|
|
1296
|
+
notes: [
|
|
1297
|
+
'This command closes a sandbox account and refuses to run without --confirm by default CLI policy.'
|
|
1298
|
+
]
|
|
1299
|
+
},
|
|
1300
|
+
'sandbox order list': {
|
|
1301
|
+
description: 'Print active sandbox orders',
|
|
1302
|
+
sdkCall: 'sdk.sandbox.getSandboxOrders',
|
|
1303
|
+
grpcMethod: 'SandboxService/GetSandboxOrders',
|
|
1304
|
+
usage: [
|
|
1305
|
+
't-invest-node-sdk sandbox order list --account-id=ID [options]'
|
|
1306
|
+
],
|
|
1307
|
+
required: [
|
|
1308
|
+
'--account-id=ID Sandbox account identifier from sandbox account list'
|
|
1309
|
+
],
|
|
1310
|
+
optional: [
|
|
1311
|
+
...sdkConnectionOptions,
|
|
1312
|
+
tableFormatOption
|
|
1313
|
+
],
|
|
1314
|
+
environment: sdkEnvironment,
|
|
1315
|
+
examples: [
|
|
1316
|
+
't-invest-node-sdk sandbox order list --account-id=2000000000',
|
|
1317
|
+
't-invest-node-sdk sandbox order list --account-id=2000000000 --format=json'
|
|
1318
|
+
]
|
|
1319
|
+
},
|
|
1320
|
+
'sandbox order show': {
|
|
1321
|
+
description: 'Print sandbox order state',
|
|
1322
|
+
sdkCall: 'sdk.sandbox.getSandboxOrderState',
|
|
1323
|
+
grpcMethod: 'SandboxService/GetSandboxOrderState',
|
|
1324
|
+
usage: [
|
|
1325
|
+
't-invest-node-sdk sandbox order show --account-id=ID --order-id=ID [options]'
|
|
1326
|
+
],
|
|
1327
|
+
required: [
|
|
1328
|
+
'--account-id=ID Sandbox account identifier from sandbox account list',
|
|
1329
|
+
'--order-id=ID Exchange order identifier'
|
|
1330
|
+
],
|
|
1331
|
+
optional: [
|
|
1332
|
+
...sdkConnectionOptions,
|
|
1333
|
+
tableFormatOption
|
|
1334
|
+
],
|
|
1335
|
+
environment: sdkEnvironment,
|
|
1336
|
+
examples: [
|
|
1337
|
+
't-invest-node-sdk sandbox order show --account-id=2000000000 --order-id=12345',
|
|
1338
|
+
't-invest-node-sdk sandbox order show --account-id=2000000000 --order-id=12345 --format=json'
|
|
1339
|
+
]
|
|
1340
|
+
},
|
|
1341
|
+
'sandbox order place': {
|
|
1342
|
+
description: 'Post a sandbox order',
|
|
1343
|
+
sdkCall: 'sdk.sandbox.postSandboxOrder',
|
|
1344
|
+
grpcMethod: 'SandboxService/PostSandboxOrder',
|
|
1345
|
+
usage: [
|
|
1346
|
+
'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]'
|
|
1347
|
+
],
|
|
1348
|
+
required: [
|
|
1349
|
+
'--account-id=ID Sandbox account identifier from sandbox account list',
|
|
1350
|
+
'--instrument-id=ID FIGI or instrument UID',
|
|
1351
|
+
'--quantity=N Positive integer lots count',
|
|
1352
|
+
'--direction=DIR buy|sell',
|
|
1353
|
+
'--order-type=TYPE limit|market|bestprice',
|
|
1354
|
+
'--order-id=KEY Idempotency key, max provider length is 36 chars',
|
|
1355
|
+
'--confirm Required by default CLI side-effect policy'
|
|
1356
|
+
],
|
|
1357
|
+
optional: [
|
|
1358
|
+
'--price=DECIMAL Price per instrument, up to 9 fractional digits; omitted for market orders',
|
|
1359
|
+
...sdkConnectionOptions,
|
|
1360
|
+
tableFormatOption
|
|
1361
|
+
],
|
|
1362
|
+
environment: sdkEnvironment,
|
|
1363
|
+
examples: [
|
|
1364
|
+
'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',
|
|
1365
|
+
'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'
|
|
1366
|
+
],
|
|
1367
|
+
notes: [
|
|
1368
|
+
'This command places a sandbox order and refuses to run without --confirm by default CLI policy.',
|
|
1369
|
+
'Deprecated generated figi request field is not serialized; use --instrument-id.'
|
|
1370
|
+
]
|
|
1371
|
+
},
|
|
1372
|
+
'sandbox order replace': {
|
|
1373
|
+
description: 'Replace a sandbox order',
|
|
1374
|
+
sdkCall: 'sdk.sandbox.replaceSandboxOrder',
|
|
1375
|
+
grpcMethod: 'SandboxService/ReplaceSandboxOrder',
|
|
1376
|
+
usage: [
|
|
1377
|
+
'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]'
|
|
1378
|
+
],
|
|
1379
|
+
required: [
|
|
1380
|
+
'--account-id=ID Sandbox account identifier from sandbox account list',
|
|
1381
|
+
'--order-id=ID Exchange order identifier',
|
|
1382
|
+
'--idempotency-key=KEY New idempotency key, max provider length is 36 chars',
|
|
1383
|
+
'--quantity=N Positive integer lots count',
|
|
1384
|
+
'--price=DECIMAL Price per instrument, up to 9 fractional digits',
|
|
1385
|
+
'--price-type=TYPE point|currency',
|
|
1386
|
+
'--confirm Required by default CLI side-effect policy'
|
|
1387
|
+
],
|
|
1388
|
+
optional: [
|
|
1389
|
+
...sdkConnectionOptions,
|
|
1390
|
+
tableFormatOption
|
|
1391
|
+
],
|
|
1392
|
+
environment: sdkEnvironment,
|
|
1393
|
+
examples: [
|
|
1394
|
+
'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',
|
|
1395
|
+
'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'
|
|
1396
|
+
],
|
|
1397
|
+
notes: [
|
|
1398
|
+
'This command changes an existing sandbox order and refuses to run without --confirm by default CLI policy.',
|
|
1399
|
+
'The CLI does not generate idempotency keys automatically.'
|
|
1400
|
+
]
|
|
1401
|
+
},
|
|
1402
|
+
'sandbox order cancel': {
|
|
1403
|
+
description: 'Cancel a sandbox order',
|
|
1404
|
+
sdkCall: 'sdk.sandbox.cancelSandboxOrder',
|
|
1405
|
+
grpcMethod: 'SandboxService/CancelSandboxOrder',
|
|
1406
|
+
usage: [
|
|
1407
|
+
't-invest-node-sdk sandbox order cancel --account-id=ID --order-id=ID --confirm [options]'
|
|
1408
|
+
],
|
|
1409
|
+
required: [
|
|
1410
|
+
'--account-id=ID Sandbox account identifier from sandbox account list',
|
|
1411
|
+
'--order-id=ID Exchange order identifier',
|
|
1412
|
+
'--confirm Required by default CLI side-effect policy'
|
|
1413
|
+
],
|
|
1414
|
+
optional: [
|
|
1415
|
+
...sdkConnectionOptions,
|
|
1416
|
+
tableFormatOption
|
|
1417
|
+
],
|
|
1418
|
+
environment: sdkEnvironment,
|
|
1419
|
+
examples: [
|
|
1420
|
+
't-invest-node-sdk sandbox order cancel --account-id=2000000000 --order-id=12345 --confirm',
|
|
1421
|
+
't-invest-node-sdk sandbox order cancel --account-id=2000000000 --order-id=12345 --confirm --format=json'
|
|
1422
|
+
],
|
|
1423
|
+
notes: [
|
|
1424
|
+
'This command cancels a sandbox order and refuses to run without --confirm by default CLI policy.'
|
|
1425
|
+
]
|
|
1426
|
+
},
|
|
1427
|
+
'sandbox portfolio': {
|
|
1428
|
+
description: 'Print sandbox portfolio',
|
|
1429
|
+
sdkCall: 'sdk.sandbox.getSandboxPortfolio',
|
|
1430
|
+
grpcMethod: 'SandboxService/GetSandboxPortfolio',
|
|
1431
|
+
usage: [
|
|
1432
|
+
't-invest-node-sdk sandbox portfolio --account-id=ID [options]'
|
|
1433
|
+
],
|
|
1434
|
+
required: [
|
|
1435
|
+
'--account-id=ID Sandbox account identifier from sandbox account list'
|
|
1436
|
+
],
|
|
1437
|
+
optional: [
|
|
1438
|
+
...sdkConnectionOptions,
|
|
1439
|
+
'--currency=rub|usd|eur Portfolio valuation currency (default: rub)',
|
|
1440
|
+
tableFormatOption
|
|
1441
|
+
],
|
|
1442
|
+
environment: sdkEnvironment,
|
|
1443
|
+
examples: [
|
|
1444
|
+
't-invest-node-sdk sandbox portfolio --account-id=2000000000',
|
|
1445
|
+
't-invest-node-sdk sandbox portfolio --account-id=2000000000 --currency=usd --format=json'
|
|
1446
|
+
]
|
|
1447
|
+
},
|
|
1448
|
+
'sandbox position list': {
|
|
1449
|
+
description: 'Print sandbox positions',
|
|
1450
|
+
sdkCall: 'sdk.sandbox.getSandboxPositions',
|
|
1451
|
+
grpcMethod: 'SandboxService/GetSandboxPositions',
|
|
1452
|
+
usage: [
|
|
1453
|
+
't-invest-node-sdk sandbox position list --account-id=ID [options]'
|
|
1454
|
+
],
|
|
1455
|
+
required: [
|
|
1456
|
+
'--account-id=ID Sandbox account identifier from sandbox account list'
|
|
1457
|
+
],
|
|
1458
|
+
optional: [
|
|
1459
|
+
...sdkConnectionOptions,
|
|
1460
|
+
tableFormatOption
|
|
1461
|
+
],
|
|
1462
|
+
environment: sdkEnvironment,
|
|
1463
|
+
examples: [
|
|
1464
|
+
't-invest-node-sdk sandbox position list --account-id=2000000000',
|
|
1465
|
+
't-invest-node-sdk sandbox position list --account-id=2000000000 --format=json'
|
|
1466
|
+
]
|
|
1467
|
+
},
|
|
1468
|
+
'sandbox withdraw-limits': {
|
|
1469
|
+
description: 'Print sandbox withdraw limits',
|
|
1470
|
+
sdkCall: 'sdk.sandbox.getSandboxWithdrawLimits',
|
|
1471
|
+
grpcMethod: 'SandboxService/GetSandboxWithdrawLimits',
|
|
1472
|
+
usage: [
|
|
1473
|
+
't-invest-node-sdk sandbox withdraw-limits --account-id=ID [options]'
|
|
1474
|
+
],
|
|
1475
|
+
required: [
|
|
1476
|
+
'--account-id=ID Sandbox account identifier from sandbox account list'
|
|
1477
|
+
],
|
|
1478
|
+
optional: [
|
|
1479
|
+
...sdkConnectionOptions,
|
|
1480
|
+
tableFormatOption
|
|
1481
|
+
],
|
|
1482
|
+
environment: sdkEnvironment,
|
|
1483
|
+
examples: [
|
|
1484
|
+
't-invest-node-sdk sandbox withdraw-limits --account-id=2000000000',
|
|
1485
|
+
't-invest-node-sdk sandbox withdraw-limits --account-id=2000000000 --format=json'
|
|
1486
|
+
]
|
|
1487
|
+
},
|
|
1488
|
+
'sandbox operation list': {
|
|
1489
|
+
description: 'Print sandbox operations',
|
|
1490
|
+
sdkCall: 'sdk.sandbox.getSandboxOperations',
|
|
1491
|
+
grpcMethod: 'SandboxService/GetSandboxOperations',
|
|
1492
|
+
usage: [
|
|
1493
|
+
't-invest-node-sdk sandbox operation list --account-id=ID --from=ISO --to=ISO [options]'
|
|
1494
|
+
],
|
|
1495
|
+
required: [
|
|
1496
|
+
'--account-id=ID Sandbox account identifier from sandbox account list',
|
|
1497
|
+
'--from=ISO Start timestamp, inclusive',
|
|
1498
|
+
'--to=ISO End timestamp, inclusive'
|
|
1499
|
+
],
|
|
1500
|
+
optional: [
|
|
1501
|
+
'--state=STATE unspecified|executed|canceled|progress (default: unspecified)',
|
|
1502
|
+
'--instrument-id=ID Optional instrument identifier filter',
|
|
1503
|
+
'--figi=FIGI Deprecated alias for --instrument-id',
|
|
1504
|
+
...sdkConnectionOptions,
|
|
1505
|
+
tableFormatOption
|
|
1506
|
+
],
|
|
1507
|
+
environment: sdkEnvironment,
|
|
1508
|
+
examples: [
|
|
1509
|
+
't-invest-node-sdk sandbox operation list --account-id=2000000000 --from=2026-06-01T00:00:00Z --to=2026-06-19T00:00:00Z',
|
|
1510
|
+
'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'
|
|
1511
|
+
],
|
|
1512
|
+
notes: [
|
|
1513
|
+
'Deprecated --figi is still accepted and prints a warning to stderr.',
|
|
1514
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
1515
|
+
]
|
|
1516
|
+
},
|
|
1517
|
+
'sandbox operation page': {
|
|
1518
|
+
description: 'Print one cursor page of sandbox operations',
|
|
1519
|
+
sdkCall: 'sdk.sandbox.getSandboxOperationsByCursor',
|
|
1520
|
+
grpcMethod: 'SandboxService/GetSandboxOperationsByCursor',
|
|
1521
|
+
usage: [
|
|
1522
|
+
't-invest-node-sdk sandbox operation page --account-id=ID [options]'
|
|
1523
|
+
],
|
|
1524
|
+
required: [
|
|
1525
|
+
'--account-id=ID Sandbox account identifier from sandbox account list'
|
|
1526
|
+
],
|
|
1527
|
+
optional: [
|
|
1528
|
+
'--instrument-id=ID Optional FIGI or instrument UID filter',
|
|
1529
|
+
'--from=ISO Optional start timestamp, inclusive',
|
|
1530
|
+
'--to=ISO Optional end timestamp, inclusive',
|
|
1531
|
+
'--cursor=CURSOR Cursor returned as nextCursor by the previous page',
|
|
1532
|
+
'--limit=N Page size from 1 to 1000; provider default is used when omitted',
|
|
1533
|
+
'--operation-type=TYPE Generated OperationType name; comma-separated list is allowed',
|
|
1534
|
+
'--state=STATE unspecified|executed|canceled|progress (default: unspecified)',
|
|
1535
|
+
'--without-commissions Exclude commissions',
|
|
1536
|
+
'--without-trades Exclude trades',
|
|
1537
|
+
'--without-overnights Exclude overnight operations',
|
|
1538
|
+
...sdkConnectionOptions,
|
|
1539
|
+
tableFormatOption
|
|
1540
|
+
],
|
|
1541
|
+
environment: sdkEnvironment,
|
|
1542
|
+
examples: [
|
|
1543
|
+
't-invest-node-sdk sandbox operation page --account-id=2000000000 --limit=100',
|
|
1544
|
+
't-invest-node-sdk sandbox operation page --account-id=2000000000 --cursor=NEXT --format=json'
|
|
1545
|
+
],
|
|
1546
|
+
notes: [
|
|
1547
|
+
'The command returns one page; pass nextCursor as --cursor to request the next page.',
|
|
1548
|
+
"The command validates only CLI syntax and date ordering; API range limits remain provider-side."
|
|
1549
|
+
]
|
|
1550
|
+
},
|
|
1551
|
+
'sandbox pay-in': {
|
|
1552
|
+
description: 'Pay in to a sandbox account',
|
|
1553
|
+
sdkCall: 'sdk.sandbox.sandboxPayIn',
|
|
1554
|
+
grpcMethod: 'SandboxService/SandboxPayIn',
|
|
1555
|
+
usage: [
|
|
1556
|
+
't-invest-node-sdk sandbox pay-in --account-id=ID --amount=DECIMAL --currency=rub|usd --confirm [options]'
|
|
1557
|
+
],
|
|
1558
|
+
required: [
|
|
1559
|
+
'--account-id=ID Sandbox account identifier from sandbox account list',
|
|
1560
|
+
'--amount=DECIMAL Positive decimal amount, up to 9 fractional digits',
|
|
1561
|
+
'--confirm Required by default CLI side-effect policy'
|
|
1562
|
+
],
|
|
1563
|
+
optional: [
|
|
1564
|
+
'--currency=rub|usd Pay-in currency (default: rub)',
|
|
1565
|
+
...sdkConnectionOptions,
|
|
1566
|
+
tableFormatOption
|
|
1567
|
+
],
|
|
1568
|
+
environment: sdkEnvironment,
|
|
1569
|
+
examples: [
|
|
1570
|
+
't-invest-node-sdk sandbox pay-in --account-id=2000000000 --amount=1000 --currency=rub --confirm',
|
|
1571
|
+
't-invest-node-sdk sandbox pay-in --account-id=2000000000 --amount=1000 --currency=rub --confirm --format=json'
|
|
1572
|
+
],
|
|
1573
|
+
notes: [
|
|
1574
|
+
'This command changes sandbox account balance and refuses to run without --confirm by default CLI policy.',
|
|
1575
|
+
'Unknown currency values are rejected by CLI parsing; --currency=usd is accepted by the parser but fails as unsupported.'
|
|
1576
|
+
]
|
|
1577
|
+
},
|
|
1578
|
+
'stream run': {
|
|
1579
|
+
description: 'Run a configured stream and print JSONL events',
|
|
1580
|
+
usage: [
|
|
1581
|
+
't-invest-node-sdk stream run --config=PATH [options]'
|
|
1582
|
+
],
|
|
1583
|
+
required: [
|
|
1584
|
+
'--config=PATH Path to stream JSON config'
|
|
1585
|
+
],
|
|
1586
|
+
optional: [
|
|
1587
|
+
...sdkConnectionOptions,
|
|
1588
|
+
'--max-events=N Stop after N printed events',
|
|
1589
|
+
'--duration-ms=N Stop after N milliseconds from stream start',
|
|
1590
|
+
'--idle-timeout-ms=N Stop after N milliseconds without provider events',
|
|
1591
|
+
'--include-pings Print ping events',
|
|
1592
|
+
'--raw Print generated response shape without envelope',
|
|
1593
|
+
jsonlFormatOption
|
|
1594
|
+
],
|
|
1595
|
+
environment: sdkEnvironment,
|
|
1596
|
+
examples: [
|
|
1597
|
+
't-invest-node-sdk stream run --config=portfolio-stream.json --max-events=10',
|
|
1598
|
+
't-invest-node-sdk stream run --config=marketdata-stream.json --include-pings'
|
|
1599
|
+
],
|
|
1600
|
+
notes: [
|
|
1601
|
+
'Supports server-side streams and static initial requests for marketdata.marketDataStream.',
|
|
1602
|
+
'Output is JSONL so each provider event can be processed as an independent line.',
|
|
1603
|
+
'Use --max-events, --duration-ms or --idle-timeout-ms to make long-running streams finite in scripts.',
|
|
1604
|
+
'--raw prints generated response objects; the default output wraps events in a stable CLI envelope.',
|
|
1605
|
+
'Dynamic bidirectional request sources are not implemented.'
|
|
1606
|
+
]
|
|
1607
|
+
},
|
|
1608
|
+
'dev compile-proto': {
|
|
1609
|
+
description: 'Generate TypeScript contracts from local proto files',
|
|
1610
|
+
usage: [
|
|
1611
|
+
't-invest-node-sdk dev compile-proto'
|
|
1612
|
+
],
|
|
1613
|
+
examples: [
|
|
1614
|
+
't-invest-node-sdk dev compile-proto'
|
|
1615
|
+
],
|
|
1616
|
+
notes: [
|
|
1617
|
+
'The command uses proto files already present in the repository; it does not download upstream proto sources.',
|
|
1618
|
+
'Runs the pinned protoc compiler and ts-proto plugin from local npm dependencies.',
|
|
1619
|
+
'Run npm run build before this command when bootstrap TypeScript sources changed.',
|
|
1620
|
+
'Generated files are part of the SDK runtime contract; do not edit them manually.'
|
|
1621
|
+
]
|
|
1622
|
+
},
|
|
1623
|
+
help: {
|
|
1624
|
+
description: 'Show top-level or command-specific help',
|
|
1625
|
+
usage: [
|
|
1626
|
+
't-invest-node-sdk help',
|
|
1627
|
+
't-invest-node-sdk help <domain> [<command>]',
|
|
1628
|
+
't-invest-node-sdk <domain> <command> --help'
|
|
1629
|
+
],
|
|
1630
|
+
examples: [
|
|
1631
|
+
't-invest-node-sdk help',
|
|
1632
|
+
't-invest-node-sdk help operation portfolio',
|
|
1633
|
+
't-invest-node-sdk help version'
|
|
1634
|
+
],
|
|
1635
|
+
notes: [
|
|
1636
|
+
'Unknown command help falls back to the top-level help page.'
|
|
1637
|
+
]
|
|
1638
|
+
},
|
|
1639
|
+
version: {
|
|
1640
|
+
description: 'Show package version',
|
|
1641
|
+
usage: [
|
|
1642
|
+
't-invest-node-sdk version',
|
|
1643
|
+
't-invest-node-sdk --version'
|
|
1644
|
+
],
|
|
1645
|
+
examples: [
|
|
1646
|
+
't-invest-node-sdk version'
|
|
1647
|
+
]
|
|
1648
|
+
}
|
|
1649
|
+
};
|