@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
|
@@ -5,19 +5,18 @@
|
|
|
5
5
|
* Здесь допустимы:
|
|
6
6
|
* - объявление command path и option schema;
|
|
7
7
|
* - преобразование CLI options в generated request;
|
|
8
|
-
* -
|
|
8
|
+
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
9
9
|
*
|
|
10
10
|
* Здесь не должно быть ручного table/json rendering или application report contracts.
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.userInfoCommand = void 0;
|
|
14
14
|
exports.createUserInfoCommand = createUserInfoCommand;
|
|
15
15
|
const contract_1 = require("../../cli/contract");
|
|
16
|
-
const
|
|
16
|
+
const sdk_command_lifecycle_1 = require("../sdk-command-lifecycle");
|
|
17
17
|
const command_options_1 = require("../../args/command-options");
|
|
18
18
|
const t_invest_node_sdk_1 = require("../../t-invest-node-sdk");
|
|
19
19
|
const reporter_1 = require("./reporter");
|
|
20
|
-
Object.defineProperty(exports, "formatUserInfo", { enumerable: true, get: function () { return reporter_1.formatUserInfo; } });
|
|
21
20
|
const userInfoCommandPath = ['account', 'info'];
|
|
22
21
|
const defaultUserInfoSdkFactory = (options) => new t_invest_node_sdk_1.TInvestNodeSDK(options);
|
|
23
22
|
const userInfoOptionsSchema = (0, command_options_1.withSdkOptions)({
|
|
@@ -39,12 +38,8 @@ function createUserInfoCommand(createSdk = defaultUserInfoSdkFactory) {
|
|
|
39
38
|
exports.userInfoCommand = createUserInfoCommand();
|
|
40
39
|
async function runUserInfoCommand(options, createSdk) {
|
|
41
40
|
const { format } = options;
|
|
42
|
-
|
|
43
|
-
try {
|
|
41
|
+
return (0, sdk_command_lifecycle_1.runSdkCommand)(options, createSdk, async (sdk) => {
|
|
44
42
|
const response = await sdk.users.getInfo({});
|
|
45
43
|
return (0, reporter_1.formatUserInfo)(response, format);
|
|
46
|
-
}
|
|
47
|
-
finally {
|
|
48
|
-
sdk.close();
|
|
49
|
-
}
|
|
44
|
+
});
|
|
50
45
|
}
|
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
* Здесь допустимы:
|
|
5
5
|
* - объявление command path и option schema;
|
|
6
6
|
* - преобразование CLI options в generated request;
|
|
7
|
-
* -
|
|
7
|
+
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
8
8
|
*
|
|
9
9
|
* Здесь не должно быть ручного table/json rendering или application report contracts.
|
|
10
10
|
*/
|
|
11
11
|
import type { TInvestOptions } from '../../../application/dto/t-invest-options';
|
|
12
12
|
import type { GetUserTariffResponse } from '../../../generated/users';
|
|
13
|
-
import { formatUserTariff } from './reporter';
|
|
14
13
|
type UserTariffSdk = {
|
|
15
14
|
users: {
|
|
16
15
|
getUserTariff(request: Record<string, never>): Promise<GetUserTariffResponse>;
|
|
@@ -60,4 +59,4 @@ export declare const userTariffCommand: Omit<import("icore").CommandDefinition<{
|
|
|
60
59
|
}, undefined, string, readonly ["account", "tariff"], undefined, void, readonly []>, "metadata"> & {
|
|
61
60
|
metadata?: undefined;
|
|
62
61
|
};
|
|
63
|
-
export {
|
|
62
|
+
export {};
|
|
@@ -5,19 +5,18 @@
|
|
|
5
5
|
* Здесь допустимы:
|
|
6
6
|
* - объявление command path и option schema;
|
|
7
7
|
* - преобразование CLI options в generated request;
|
|
8
|
-
* -
|
|
8
|
+
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
9
9
|
*
|
|
10
10
|
* Здесь не должно быть ручного table/json rendering или application report contracts.
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.userTariffCommand = void 0;
|
|
14
14
|
exports.createUserTariffCommand = createUserTariffCommand;
|
|
15
15
|
const contract_1 = require("../../cli/contract");
|
|
16
|
-
const
|
|
16
|
+
const sdk_command_lifecycle_1 = require("../sdk-command-lifecycle");
|
|
17
17
|
const command_options_1 = require("../../args/command-options");
|
|
18
18
|
const t_invest_node_sdk_1 = require("../../t-invest-node-sdk");
|
|
19
19
|
const reporter_1 = require("./reporter");
|
|
20
|
-
Object.defineProperty(exports, "formatUserTariff", { enumerable: true, get: function () { return reporter_1.formatUserTariff; } });
|
|
21
20
|
const userTariffCommandPath = ['account', 'tariff'];
|
|
22
21
|
const defaultUserTariffSdkFactory = (options) => new t_invest_node_sdk_1.TInvestNodeSDK(options);
|
|
23
22
|
const userTariffOptionsSchema = (0, command_options_1.withSdkOptions)({
|
|
@@ -39,12 +38,8 @@ function createUserTariffCommand(createSdk = defaultUserTariffSdkFactory) {
|
|
|
39
38
|
exports.userTariffCommand = createUserTariffCommand();
|
|
40
39
|
async function runUserTariffCommand(options, createSdk) {
|
|
41
40
|
const { format } = options;
|
|
42
|
-
|
|
43
|
-
try {
|
|
41
|
+
return (0, sdk_command_lifecycle_1.runSdkCommand)(options, createSdk, async (sdk) => {
|
|
44
42
|
const response = await sdk.users.getUserTariff({});
|
|
45
43
|
return (0, reporter_1.formatUserTariff)(response, format);
|
|
46
|
-
}
|
|
47
|
-
finally {
|
|
48
|
-
sdk.close();
|
|
49
|
-
}
|
|
44
|
+
});
|
|
50
45
|
}
|
|
@@ -3,16 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Здесь допустимы:
|
|
5
5
|
* - объявление command path и option schema;
|
|
6
|
-
* -
|
|
7
|
-
* -
|
|
6
|
+
* - делегирование request mapping в command-owned mapper;
|
|
7
|
+
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
8
8
|
*
|
|
9
9
|
* Здесь не должно быть ручного table/json rendering или application report contracts.
|
|
10
10
|
*/
|
|
11
11
|
import type { TInvestOptions } from '../../../application/dto/t-invest-options';
|
|
12
12
|
import type { WithdrawLimitsRequest, WithdrawLimitsResponse } from '../../../generated/operations';
|
|
13
|
-
import type { InferOptions } from 'icore';
|
|
14
|
-
import type { CommandRequestOptions } from '../../args/command-options';
|
|
15
|
-
import { formatWithdrawLimits } from './reporter';
|
|
16
13
|
type WithdrawLimitsSdk = {
|
|
17
14
|
operations: {
|
|
18
15
|
getWithdrawLimits(request: WithdrawLimitsRequest): Promise<WithdrawLimitsResponse>;
|
|
@@ -20,31 +17,6 @@ type WithdrawLimitsSdk = {
|
|
|
20
17
|
close(): void;
|
|
21
18
|
};
|
|
22
19
|
type WithdrawLimitsSdkFactory = (options: TInvestOptions) => WithdrawLimitsSdk;
|
|
23
|
-
declare const withdrawLimitsOptionsSchema: {
|
|
24
|
-
readonly token: {
|
|
25
|
-
readonly type: 'string';
|
|
26
|
-
};
|
|
27
|
-
readonly endpoint: {
|
|
28
|
-
readonly type: 'string';
|
|
29
|
-
};
|
|
30
|
-
readonly 'app-name': {
|
|
31
|
-
readonly type: 'string';
|
|
32
|
-
};
|
|
33
|
-
readonly insecure: {
|
|
34
|
-
readonly type: 'boolean';
|
|
35
|
-
};
|
|
36
|
-
readonly 'account-id': {
|
|
37
|
-
readonly type: 'string';
|
|
38
|
-
readonly required: true;
|
|
39
|
-
};
|
|
40
|
-
readonly format: {
|
|
41
|
-
readonly type: 'string';
|
|
42
|
-
readonly choices: readonly ["json", "table"];
|
|
43
|
-
readonly default: 'table';
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
type WithdrawLimitsOptions = InferOptions<typeof withdrawLimitsOptionsSchema>;
|
|
47
|
-
type WithdrawLimitsRequestOptions = CommandRequestOptions<WithdrawLimitsOptions, 'account-id'>;
|
|
48
20
|
export declare function createWithdrawLimitsCommand(createSdk?: WithdrawLimitsSdkFactory): Omit<import("icore").CommandDefinition<{
|
|
49
21
|
readonly token: {
|
|
50
22
|
readonly type: 'string';
|
|
@@ -95,5 +67,4 @@ export declare const withdrawLimitsCommand: Omit<import("icore").CommandDefiniti
|
|
|
95
67
|
}, undefined, string, readonly ["operation", "withdraw-limits"], undefined, void, readonly []>, "metadata"> & {
|
|
96
68
|
metadata?: undefined;
|
|
97
69
|
};
|
|
98
|
-
export {
|
|
99
|
-
export declare function createWithdrawLimitsRequest(options: WithdrawLimitsRequestOptions): WithdrawLimitsRequest;
|
|
70
|
+
export {};
|
|
@@ -4,21 +4,20 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Здесь допустимы:
|
|
6
6
|
* - объявление command path и option schema;
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
7
|
+
* - делегирование request mapping в command-owned mapper;
|
|
8
|
+
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
9
9
|
*
|
|
10
10
|
* Здесь не должно быть ручного table/json rendering или application report contracts.
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.withdrawLimitsCommand = void 0;
|
|
14
14
|
exports.createWithdrawLimitsCommand = createWithdrawLimitsCommand;
|
|
15
|
-
exports.createWithdrawLimitsRequest = createWithdrawLimitsRequest;
|
|
16
15
|
const contract_1 = require("../../cli/contract");
|
|
17
|
-
const
|
|
16
|
+
const sdk_command_lifecycle_1 = require("../sdk-command-lifecycle");
|
|
18
17
|
const command_options_1 = require("../../args/command-options");
|
|
19
18
|
const t_invest_node_sdk_1 = require("../../t-invest-node-sdk");
|
|
20
19
|
const reporter_1 = require("./reporter");
|
|
21
|
-
|
|
20
|
+
const request_mapper_1 = require("./request.mapper");
|
|
22
21
|
const withdrawLimitsCommandPath = ['operation', 'withdraw-limits'];
|
|
23
22
|
const defaultWithdrawLimitsSdkFactory = (options) => new t_invest_node_sdk_1.TInvestNodeSDK(options);
|
|
24
23
|
const withdrawLimitsRequestOptionsSchema = {
|
|
@@ -46,19 +45,10 @@ function createWithdrawLimitsCommand(createSdk = defaultWithdrawLimitsSdkFactory
|
|
|
46
45
|
}
|
|
47
46
|
exports.withdrawLimitsCommand = createWithdrawLimitsCommand();
|
|
48
47
|
async function runWithdrawLimitsCommand(options, createSdk) {
|
|
49
|
-
const request = createWithdrawLimitsRequest(options);
|
|
48
|
+
const request = (0, request_mapper_1.createWithdrawLimitsRequest)(options);
|
|
50
49
|
const { format } = options;
|
|
51
|
-
|
|
52
|
-
try {
|
|
50
|
+
return (0, sdk_command_lifecycle_1.runSdkCommand)(options, createSdk, async (sdk) => {
|
|
53
51
|
const response = await sdk.operations.getWithdrawLimits(request);
|
|
54
52
|
return (0, reporter_1.formatWithdrawLimits)(response, format);
|
|
55
|
-
}
|
|
56
|
-
finally {
|
|
57
|
-
sdk.close();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function createWithdrawLimitsRequest(options) {
|
|
61
|
-
return {
|
|
62
|
-
accountId: options['account-id']
|
|
63
|
-
};
|
|
53
|
+
});
|
|
64
54
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WithdrawLimitsRequest } from '../../../generated/operations';
|
|
2
|
+
interface WithdrawLimitsRequestOptions {
|
|
3
|
+
readonly 'account-id': string;
|
|
4
|
+
}
|
|
5
|
+
export declare function createWithdrawLimitsRequest(options: WithdrawLimitsRequestOptions): WithdrawLimitsRequest;
|
|
6
|
+
export {};
|
package/dist/bootstrap/index.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
const runner_1 = require("./cli/runner");
|
|
9
|
-
const
|
|
10
|
-
(0,
|
|
9
|
+
const warning_interceptor_1 = require("../infrastructure/interceptor/warning-interceptor");
|
|
10
|
+
(0, warning_interceptor_1.installWarningInterceptor)({
|
|
11
11
|
rules: [
|
|
12
12
|
{ messageIncludes: 'client.query() when the client is already executing' }
|
|
13
13
|
]
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Здесь допустимы:
|
|
5
5
|
* - чтение локальных generation paths из proto upstream manifest;
|
|
6
6
|
* - поиск vendored proto-файлов в contracts directory;
|
|
7
|
-
* - вызов
|
|
7
|
+
* - вызов закреплённого локального `protoc` с текущими ts-proto options;
|
|
8
8
|
* - проверка обязательных tool/runtime prerequisites перед генерацией;
|
|
9
9
|
*
|
|
10
10
|
* Здесь не должно быть post-processing generated sources или SDK runtime wiring.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Здесь допустимы:
|
|
6
6
|
* - чтение локальных generation paths из proto upstream manifest;
|
|
7
7
|
* - поиск vendored proto-файлов в contracts directory;
|
|
8
|
-
* - вызов
|
|
8
|
+
* - вызов закреплённого локального `protoc` с текущими ts-proto options;
|
|
9
9
|
* - проверка обязательных tool/runtime prerequisites перед генерацией;
|
|
10
10
|
*
|
|
11
11
|
* Здесь не должно быть post-processing generated sources или SDK runtime wiring.
|
|
@@ -19,8 +19,11 @@ exports.loadProtoGenerationPaths = loadProtoGenerationPaths;
|
|
|
19
19
|
const node_path_1 = __importDefault(require("node:path"));
|
|
20
20
|
const node_child_process_1 = require("node:child_process");
|
|
21
21
|
const pwd_fs_1 = require("pwd-fs");
|
|
22
|
-
const
|
|
23
|
-
const
|
|
22
|
+
const compilerLauncherPath = node_path_1.default.join(pwd_fs_1.pfs.pwd, 'node_modules', 'protoc', 'protoc.cjs');
|
|
23
|
+
const pluginExecutable = process.platform === 'win32'
|
|
24
|
+
? 'protoc-gen-ts_proto.cmd'
|
|
25
|
+
: 'protoc-gen-ts_proto';
|
|
26
|
+
const pluginPath = node_path_1.default.join(pwd_fs_1.pfs.pwd, 'node_modules', '.bin', pluginExecutable);
|
|
24
27
|
function compileProtoContracts() {
|
|
25
28
|
const paths = loadProtoGenerationPaths();
|
|
26
29
|
assertProtoCompilerReady(paths.contractsDir);
|
|
@@ -72,37 +75,33 @@ function assertProtoCompilerReady(contractsDir) {
|
|
|
72
75
|
if (!pwd_fs_1.pfs.test(contractsDir, { sync: true })) {
|
|
73
76
|
throw new Error(`Missing contracts directory at ${contractsDir}`);
|
|
74
77
|
}
|
|
78
|
+
if (!pwd_fs_1.pfs.test(compilerLauncherPath, { sync: true })) {
|
|
79
|
+
throw new Error(`Missing local protoc compiler at ${compilerLauncherPath}`);
|
|
80
|
+
}
|
|
75
81
|
if (!pwd_fs_1.pfs.test(pluginPath, { sync: true })) {
|
|
76
82
|
throw new Error(`Missing ts-proto plugin at ${pluginPath}`);
|
|
77
83
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
catch (error) {
|
|
85
|
-
handleMissingProtoCompiler(error);
|
|
86
|
-
}
|
|
84
|
+
// npm-пакет предоставляет Node.js launcher над локальным native binary;
|
|
85
|
+
// process.execPath позволяет не искать compiler через shell или системный PATH.
|
|
86
|
+
(0, node_child_process_1.execFileSync)(process.execPath, [compilerLauncherPath, '--version'], {
|
|
87
|
+
cwd: pwd_fs_1.pfs.pwd,
|
|
88
|
+
stdio: ['ignore', 'ignore', 'inherit'],
|
|
89
|
+
});
|
|
87
90
|
}
|
|
88
91
|
function runProtoCompiler(protoFiles, paths) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
catch (error) {
|
|
104
|
-
handleMissingProtoCompiler(error);
|
|
105
|
-
}
|
|
92
|
+
(0, node_child_process_1.execFileSync)(process.execPath, [
|
|
93
|
+
compilerLauncherPath,
|
|
94
|
+
`--plugin=protoc-gen-ts_proto=${pluginPath}`,
|
|
95
|
+
`--proto_path=${paths.contractsDir}`,
|
|
96
|
+
`--ts_proto_out=${paths.generatedDir}`,
|
|
97
|
+
'--ts_proto_opt=outputServices=nice-grpc,outputServices=generic-definitions,useExactTypes=false',
|
|
98
|
+
'--ts_proto_opt=env=node',
|
|
99
|
+
'--ts_proto_opt=esModuleInterop=true',
|
|
100
|
+
...protoFiles,
|
|
101
|
+
], {
|
|
102
|
+
cwd: pwd_fs_1.pfs.pwd,
|
|
103
|
+
stdio: 'inherit',
|
|
104
|
+
});
|
|
106
105
|
}
|
|
107
106
|
function requireManifestPath(local, name, manifestPath) {
|
|
108
107
|
const value = local[name];
|
|
@@ -114,9 +113,3 @@ function requireManifestPath(local, name, manifestPath) {
|
|
|
114
113
|
function isRecord(value) {
|
|
115
114
|
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
116
115
|
}
|
|
117
|
-
function handleMissingProtoCompiler(error) {
|
|
118
|
-
if (error instanceof Error && 'code' in error && error.code === 'ENOENT') {
|
|
119
|
-
throw new Error('System protoc compiler is not installed or is not available in PATH', { cause: error });
|
|
120
|
-
}
|
|
121
|
-
throw error;
|
|
122
|
-
}
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
import type { TInvestOptions } from '../application/dto/t-invest-options';
|
|
12
12
|
import type { InstrumentsService, MarketDataService, MarketDataStreamService, OperationsService, OperationsStreamService, OrdersService, OrdersStreamService, SandboxService, SignalService, StopOrdersService, UsersService } from '../application/dto/t-invest-services';
|
|
13
13
|
export declare class TInvestNodeSDK {
|
|
14
|
-
private options;
|
|
15
|
-
private
|
|
16
|
-
private channel;
|
|
17
|
-
private metadata;
|
|
18
|
-
private unaryLimitResolver;
|
|
14
|
+
private readonly options;
|
|
15
|
+
private readonly clientsByServiceDefinition;
|
|
16
|
+
private readonly channel;
|
|
17
|
+
private readonly metadata;
|
|
18
|
+
private readonly unaryLimitResolver;
|
|
19
19
|
private readonly maxReceiveMessageLength;
|
|
20
20
|
private closed;
|
|
21
|
-
private lifecycleController;
|
|
21
|
+
private readonly lifecycleController;
|
|
22
22
|
constructor(options: TInvestOptions);
|
|
23
23
|
get instruments(): InstrumentsService;
|
|
24
|
-
get
|
|
24
|
+
get marketData(): MarketDataService;
|
|
25
25
|
get marketdataStream(): MarketDataStreamService;
|
|
26
26
|
get operations(): OperationsService;
|
|
27
27
|
get operationsStream(): OperationsStreamService;
|
|
@@ -29,14 +29,14 @@ export declare class TInvestNodeSDK {
|
|
|
29
29
|
get ordersStream(): OrdersStreamService;
|
|
30
30
|
get sandbox(): SandboxService;
|
|
31
31
|
get signals(): SignalService;
|
|
32
|
-
get
|
|
32
|
+
get stopOrders(): StopOrdersService;
|
|
33
33
|
get users(): UsersService;
|
|
34
34
|
/**
|
|
35
35
|
* Идемпотентно закрывает shared channel и запрещает новые SDK-вызовы.
|
|
36
36
|
* Уже переданные transport-у операции нужно завершать их собственным AbortSignal.
|
|
37
37
|
*/
|
|
38
38
|
close(): void;
|
|
39
|
-
private
|
|
39
|
+
private getOrCreateServiceClient;
|
|
40
40
|
private assertOpen;
|
|
41
41
|
private createClosedError;
|
|
42
42
|
}
|
|
@@ -25,7 +25,7 @@ const grpc_1 = require("../infrastructure/transport/grpc");
|
|
|
25
25
|
const sdk_config_1 = require("./sdk-config");
|
|
26
26
|
class TInvestNodeSDK {
|
|
27
27
|
options;
|
|
28
|
-
|
|
28
|
+
clientsByServiceDefinition = new Map();
|
|
29
29
|
channel;
|
|
30
30
|
metadata;
|
|
31
31
|
unaryLimitResolver;
|
|
@@ -41,37 +41,37 @@ class TInvestNodeSDK {
|
|
|
41
41
|
this.metadata = (0, grpc_1.createSdkMetadata)(this.options);
|
|
42
42
|
}
|
|
43
43
|
get instruments() {
|
|
44
|
-
return this.
|
|
44
|
+
return this.getOrCreateServiceClient(instruments_1.InstrumentsServiceDefinition);
|
|
45
45
|
}
|
|
46
|
-
get
|
|
47
|
-
return this.
|
|
46
|
+
get marketData() {
|
|
47
|
+
return this.getOrCreateServiceClient(marketdata_1.MarketDataServiceDefinition);
|
|
48
48
|
}
|
|
49
49
|
get marketdataStream() {
|
|
50
|
-
return this.
|
|
50
|
+
return this.getOrCreateServiceClient(marketdata_1.MarketDataStreamServiceDefinition);
|
|
51
51
|
}
|
|
52
52
|
get operations() {
|
|
53
|
-
return this.
|
|
53
|
+
return this.getOrCreateServiceClient(operations_1.OperationsServiceDefinition);
|
|
54
54
|
}
|
|
55
55
|
get operationsStream() {
|
|
56
|
-
return this.
|
|
56
|
+
return this.getOrCreateServiceClient(operations_1.OperationsStreamServiceDefinition);
|
|
57
57
|
}
|
|
58
58
|
get orders() {
|
|
59
|
-
return this.
|
|
59
|
+
return this.getOrCreateServiceClient(orders_1.OrdersServiceDefinition);
|
|
60
60
|
}
|
|
61
61
|
get ordersStream() {
|
|
62
|
-
return this.
|
|
62
|
+
return this.getOrCreateServiceClient(orders_1.OrdersStreamServiceDefinition);
|
|
63
63
|
}
|
|
64
64
|
get sandbox() {
|
|
65
|
-
return this.
|
|
65
|
+
return this.getOrCreateServiceClient(sandbox_1.SandboxServiceDefinition);
|
|
66
66
|
}
|
|
67
67
|
get signals() {
|
|
68
|
-
return this.
|
|
68
|
+
return this.getOrCreateServiceClient(signals_1.SignalServiceDefinition);
|
|
69
69
|
}
|
|
70
|
-
get
|
|
71
|
-
return this.
|
|
70
|
+
get stopOrders() {
|
|
71
|
+
return this.getOrCreateServiceClient(stoporders_1.StopOrdersServiceDefinition);
|
|
72
72
|
}
|
|
73
73
|
get users() {
|
|
74
|
-
return this.
|
|
74
|
+
return this.getOrCreateServiceClient(users_1.UsersServiceDefinition);
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Идемпотентно закрывает shared channel и запрещает новые SDK-вызовы.
|
|
@@ -85,11 +85,11 @@ class TInvestNodeSDK {
|
|
|
85
85
|
this.lifecycleController.abort(this.createClosedError());
|
|
86
86
|
this.channel.close();
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
getOrCreateServiceClient(serviceDefinition) {
|
|
89
89
|
this.assertOpen();
|
|
90
|
-
let client = this.
|
|
90
|
+
let client = this.clientsByServiceDefinition.get(serviceDefinition);
|
|
91
91
|
if (!client) {
|
|
92
|
-
client = (0, grpc_1.createSdkClient)(
|
|
92
|
+
client = (0, grpc_1.createSdkClient)(serviceDefinition, this.channel, this.metadata, this.options.unaryLimiter, this.unaryLimitResolver, {
|
|
93
93
|
useSsl: this.options.useSsl,
|
|
94
94
|
maxReceiveMessageLength: this.maxReceiveMessageLength,
|
|
95
95
|
signal: this.lifecycleController.signal,
|
|
@@ -97,7 +97,7 @@ class TInvestNodeSDK {
|
|
|
97
97
|
this.assertOpen();
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
this.
|
|
100
|
+
this.clientsByServiceDefinition.set(serviceDefinition, client);
|
|
101
101
|
}
|
|
102
102
|
return client;
|
|
103
103
|
}
|
|
@@ -113,3 +113,18 @@ class TInvestNodeSDK {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
exports.TInvestNodeSDK = TInvestNodeSDK;
|
|
116
|
+
function throwDeprecatedServiceGetter() {
|
|
117
|
+
throw new sdk_error_1.SdkError(sdk_error_1.SdkErrorCode.InvalidArgument, 'Прежние sdk.marketdata и sdk.stoporders не используйте: они устарели. Используйте вместо них sdk.marketData и sdk.stopOrders.', {
|
|
118
|
+
source: 'sdk'
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
Object.defineProperties(TInvestNodeSDK.prototype, {
|
|
122
|
+
marketdata: {
|
|
123
|
+
configurable: true,
|
|
124
|
+
get: throwDeprecatedServiceGetter
|
|
125
|
+
},
|
|
126
|
+
stoporders: {
|
|
127
|
+
configurable: true,
|
|
128
|
+
get: throwDeprecatedServiceGetter
|
|
129
|
+
}
|
|
130
|
+
});
|
|
@@ -18,7 +18,7 @@ exports.compileUnaryLimits = compileUnaryLimits;
|
|
|
18
18
|
exports.assertUnaryLimitConfig = assertUnaryLimitConfig;
|
|
19
19
|
exports.cloneUnaryLimits = cloneUnaryLimits;
|
|
20
20
|
exports.sameUnaryLimit = sameUnaryLimit;
|
|
21
|
-
const
|
|
21
|
+
const unary_method_path_1 = require("../infrastructure/transport/grpc/unary-method-path");
|
|
22
22
|
/**
|
|
23
23
|
* Service defaults сохраняются как короткие keys, а method limits получают
|
|
24
24
|
* полные gRPC paths. Package defaults не подмешиваются, quota groups не
|
|
@@ -32,7 +32,7 @@ function defineUnaryLimits(definition) {
|
|
|
32
32
|
}
|
|
33
33
|
for (const [method, limit] of Object.entries(serviceLimits.methods ?? {})) {
|
|
34
34
|
if (limit !== undefined) {
|
|
35
|
-
limits[(0,
|
|
35
|
+
limits[(0, unary_method_path_1.unaryMethodPath)(service, method)] = cloneUnaryLimit(limit);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -55,7 +55,7 @@ function compileUnaryLimits(definition) {
|
|
|
55
55
|
}
|
|
56
56
|
assertUnaryLimit(limit, `${service}/${method}`);
|
|
57
57
|
assignedMethods.add(method);
|
|
58
|
-
limits[(0,
|
|
58
|
+
limits[(0, unary_method_path_1.unaryMethodPath)(service, method)] = cloneUnaryLimit(limit);
|
|
59
59
|
}
|
|
60
60
|
for (const [groupName, group] of Object.entries(serviceLimits.groups ?? {})) {
|
|
61
61
|
const bucket = `${service}:${groupName}`;
|
|
@@ -65,7 +65,7 @@ function compileUnaryLimits(definition) {
|
|
|
65
65
|
throw new Error(`Unary limit method ${service}/${method} is declared more than once`);
|
|
66
66
|
}
|
|
67
67
|
assignedMethods.add(method);
|
|
68
|
-
const path = (0,
|
|
68
|
+
const path = (0, unary_method_path_1.unaryMethodPath)(service, method);
|
|
69
69
|
limits[path] = cloneUnaryLimit(group.limit);
|
|
70
70
|
buckets[path] = bucket;
|
|
71
71
|
}
|
package/dist/generated/common.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: common.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ErrorDetail = exports.BrandData = exports.ResponseMetadata = exports.PageResponse = exports.Page = exports.Ping = exports.PingDelaySettings = exports.PingRequest = exports.Quotation = exports.MoneyValue = exports.RealExchange = exports.ResultSubscriptionStatus = exports.PriceType = exports.SecurityTradingStatus = exports.InstrumentStatus = exports.InstrumentType = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: google/api/field_behavior.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.FieldBehavior = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: google/protobuf/descriptor.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.FeatureSetDefaults = exports.FeatureSet_VisibilityFeature = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_FeatureSupport = exports.FieldOptions_EditionDefault = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.GeneratedCodeInfo_Annotation_Semantic = exports.FeatureSet_VisibilityFeature_DefaultSymbolVisibility = exports.FeatureSet_EnforceNamingStyle = exports.FeatureSet_JsonFormat = exports.FeatureSet_MessageEncoding = exports.FeatureSet_Utf8Validation = exports.FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_EnumType = exports.FeatureSet_FieldPresence = exports.MethodOptions_IdempotencyLevel = exports.FieldOptions_OptionTargetType = exports.FieldOptions_OptionRetention = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FileOptions_OptimizeMode = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.ExtensionRangeOptions_VerificationState = exports.SymbolVisibility = exports.Edition = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: google/protobuf/timestamp.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Timestamp = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: instruments.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.StructuredNotesResponse = exports.StructuredNoteResponse = exports.SharesResponse = exports.ShareResponse = exports.Option = exports.OptionsResponse = exports.OptionResponse = exports.FuturesResponse = exports.FutureResponse = exports.EtfsResponse = exports.EtfResponse = exports.CurrenciesResponse = exports.CurrencyResponse = exports.Coupon = exports.GetBondEventsResponse_BondEvent = exports.GetBondEventsResponse = exports.GetBondEventsRequest = exports.GetBondCouponsResponse = exports.GetBondCouponsRequest = exports.BondsResponse = exports.BondResponse = exports.NewsRequest = exports.FilterOptionsRequest = exports.InstrumentsRequest = exports.InstrumentRequest = exports.TradingDay = exports.TradingSchedule = exports.TradingSchedulesResponse = exports.TradingSchedulesRequest = exports.GetInsiderDealsResponse_TradeDirection = exports.GetAssetReportsResponse_AssetReportPeriodType = exports.StructuredNote_YieldType = exports.StructuredNote_ObservationPrinciple = exports.StructuredNote_LogicPortfolio = exports.GetBondEventsRequest_EventType = exports.InstrumentExchangeType = exports.BondType = exports.RiskLevel = exports.Recommendation = exports.EditFavoritesActionType = exports.StructuredProductType = exports.AssetType = exports.ShareType = exports.InstrumentIdType = exports.OptionSettlementType = exports.OptionStyle = exports.OptionPaymentType = exports.OptionDirection = exports.CouponType = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: marketdata.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.OpenInterest = exports.LastPrice = exports.GetLastPricesResponse = exports.GetLastPricesRequest = exports.HistoricCandle = exports.GetCandlesResponse = exports.GetCandlesRequest = exports.TradingStatus = exports.Trade = exports.Order = exports.OrderBook = exports.Candle = exports.LastPriceSubscription = exports.SubscribeLastPriceResponse = exports.LastPriceInstrument = exports.SubscribeLastPriceRequest = exports.InfoSubscription = exports.SubscribeInfoResponse = exports.InfoInstrument = exports.SubscribeInfoRequest = exports.TradeSubscription = exports.SubscribeTradesResponse = exports.TradeInstrument = exports.SubscribeTradesRequest = exports.OrderBookSubscription = exports.SubscribeOrderBookResponse = exports.OrderBookInstrument = exports.SubscribeOrderBookRequest = exports.CandleSubscription = exports.SubscribeCandlesResponse = exports.CandleInstrument = exports.SubscribeCandlesRequest = exports.MarketDataResponse = exports.MarketDataServerSideStreamRequest = exports.MarketDataRequest = exports.GetTechAnalysisRequest_IndicatorType = exports.GetTechAnalysisRequest_TypeOfPrice = exports.GetTechAnalysisRequest_IndicatorInterval = exports.GetCandlesRequest_CandleSource = exports.LastPriceType = exports.OrderBookType = exports.MarketValueType = exports.CandleSource = exports.CandleInterval = exports.TradeDirection = exports.TradeSourceType = exports.SubscriptionStatus = exports.SubscriptionInterval = exports.SubscriptionAction = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: operations.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.PositionData = exports.PositionsSubscriptionStatus = exports.PositionsSubscriptionResult = exports.PositionsStreamResponse = exports.PositionsStreamRequest = exports.OperationItemTrade = exports.OperationItemTrades = exports.OperationItem = exports.GetOperationsByCursorResponse = exports.GetOperationsByCursorRequest = exports.AccountSubscriptionStatus = exports.PortfolioSubscriptionResult = exports.PortfolioStreamResponse = exports.PortfolioStreamRequest = exports.DividendsForeignIssuerReport = exports.GetDividendsForeignIssuerReportResponse = exports.GenerateDividendsForeignIssuerReportResponse = exports.GetDividendsForeignIssuerReportRequest = exports.GenerateDividendsForeignIssuerReportRequest = exports.GetDividendsForeignIssuerResponse = exports.GetDividendsForeignIssuerRequest = exports.BrokerReport = exports.GetBrokerReportResponse = exports.GetBrokerReportRequest = exports.GenerateBrokerReportResponse = exports.GenerateBrokerReportRequest = exports.BrokerReportResponse = exports.BrokerReportRequest = exports.PositionsOptions = exports.PositionsFutures = exports.PositionsSecurities = exports.VirtualPortfolioPosition = exports.PortfolioPosition = exports.WithdrawLimitsResponse = exports.WithdrawLimitsRequest = exports.PositionsResponse = exports.PositionsRequest = exports.PortfolioResponse = exports.PortfolioRequest = exports.OperationTrade = exports.Operation = exports.OperationsResponse = exports.OperationsRequest = exports.PortfolioRequest_CurrencyRequest = exports.OperationsAccountSubscriptionStatus = exports.PositionsAccountSubscriptionStatus = exports.PortfolioSubscriptionStatus = exports.OperationType = exports.OperationState = exports.protobufPackage = void 0;
|
package/dist/generated/orders.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: orders.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.OrdersServiceDefinition = exports.OrdersStreamServiceDefinition = exports.OrderStateStreamResponse_StopOrderState = exports.OrderStateStreamResponse_OrderState = exports.OrderStateStreamResponse = exports.SubscriptionResponse = exports.OrderStateStreamRequest = exports.GetOrderPriceResponse_ExtraFuture = exports.GetOrderPriceResponse_ExtraBond = exports.GetOrderPriceResponse = exports.GetOrderPriceRequest = exports.GetMaxLotsResponse_SellLimitsView = exports.GetMaxLotsResponse_BuyLimitsView = exports.GetMaxLotsResponse = exports.GetMaxLotsRequest = exports.ReplaceOrderRequest = exports.OrderStage = exports.OrderState = exports.GetOrdersResponse = exports.GetOrdersRequest_GetOrdersRequestFilters = exports.GetOrdersRequest = exports.GetOrderStateRequest = exports.CancelOrderResponse = exports.CancelOrderRequest = exports.PostOrderAsyncResponse = exports.PostOrderAsyncRequest = exports.PostOrderResponse = exports.PostOrderRequest = exports.OrderTrade = exports.OrderTrades = exports.TradesStreamResponse = exports.TradesStreamRequest = exports.OrderStateStreamResponse_StatusCauseInfo = exports.OrderStateStreamResponse_MarkerType = exports.OrderIdType = exports.TimeInForceType = exports.OrderExecutionReportStatus = exports.OrderType = exports.OrderDirection = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: sandbox.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.SandboxServiceDefinition = exports.SandboxPayInResponse = exports.SandboxPayInRequest = exports.CloseSandboxAccountResponse = exports.CloseSandboxAccountRequest = exports.OpenSandboxAccountResponse = exports.OpenSandboxAccountRequest = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.2
|
|
5
|
-
// protoc
|
|
5
|
+
// protoc v7.36.0
|
|
6
6
|
// source: signals.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.SignalServiceDefinition = exports.Signal = exports.GetSignalsResponse = exports.GetSignalsRequest = exports.Strategy = exports.GetStrategiesResponse = exports.GetStrategiesRequest = exports.SignalState = exports.SignalDirection = exports.StrategyType = exports.protobufPackage = void 0;
|