@woodger/t-invest-node-sdk 0.5.5 → 0.5.7
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 +313 -522
- package/NOTICE +8 -8
- package/dist/application/dto/t-invest-services.d.ts +2 -1
- package/dist/application/dto/t-invest-services.js +2 -1
- package/dist/application/errors/sdk-error.d.ts +9 -0
- package/dist/application/errors/sdk-error.js +12 -2
- package/dist/application/reports/accounts.report.d.ts +7 -2
- package/dist/application/reports/accrued-interests.report.d.ts +8 -2
- package/dist/application/reports/bond-coupons.report.d.ts +3 -1
- package/dist/application/reports/bond.report.d.ts +3 -1
- package/dist/application/reports/brands.report.d.ts +4 -1
- package/dist/application/reports/broker-report.report.d.ts +6 -2
- package/dist/application/reports/candles.report.d.ts +4 -1
- package/dist/application/reports/close-prices.report.d.ts +7 -2
- package/dist/application/reports/currency.report.d.ts +4 -1
- package/dist/application/reports/dividends-foreign-issuer.report.d.ts +4 -1
- package/dist/application/reports/dividends.report.d.ts +4 -1
- package/dist/application/reports/find-instrument.report.d.ts +3 -1
- package/dist/application/reports/future.report.d.ts +3 -1
- package/dist/application/reports/futures-margin.report.d.ts +10 -3
- package/dist/application/reports/instrument.report.d.ts +7 -2
- package/dist/application/reports/last-prices.report.d.ts +7 -2
- package/dist/application/reports/last-trades.report.d.ts +4 -2
- package/dist/application/reports/margin-attributes.report.d.ts +6 -2
- package/dist/application/reports/operations-by-cursor.report.d.ts +7 -2
- package/dist/application/reports/option.report.d.ts +4 -1
- package/dist/application/reports/order-book.report.d.ts +1 -1
- package/dist/application/reports/order-mutation.report.d.ts +6 -2
- package/dist/application/reports/portfolio.report.d.ts +4 -1
- package/dist/application/reports/stop-orders.report.d.ts +3 -1
- package/dist/application/reports/trading-schedules.report.d.ts +12 -4
- package/dist/application/reports/trading-status.report.d.ts +3 -1
- package/dist/application/reports/trading-statuses.report.d.ts +4 -1
- package/dist/application/reports/user-tariff.report.d.ts +2 -0
- package/dist/application/reports/withdraw-limits.report.d.ts +4 -1
- package/dist/application/services/unary-limiter.d.ts +5 -2
- package/dist/application/services/unary-limiter.js +77 -27
- package/dist/bootstrap/args/instrument-id-options.d.ts +4 -2
- package/dist/bootstrap/args/instrument-id-options.js +4 -2
- package/dist/bootstrap/args/instruments-args.js +2 -1
- package/dist/bootstrap/args/sdk-options.d.ts +2 -1
- package/dist/bootstrap/args/sdk-options.js +2 -1
- package/dist/bootstrap/args/side-effect-args.js +3 -1
- package/dist/bootstrap/cli/contract.d.ts +2 -1
- package/dist/bootstrap/cli/contract.js +2 -1
- package/dist/bootstrap/cli/domains.d.ts +2 -1
- package/dist/bootstrap/cli/domains.js +8 -3
- package/dist/bootstrap/cli/error.d.ts +2 -1
- package/dist/bootstrap/cli/error.js +2 -1
- package/dist/bootstrap/cli/help-catalog.d.ts +1 -0
- package/dist/bootstrap/cli/help-catalog.js +5 -0
- package/dist/bootstrap/cli/help.d.ts +2 -1
- package/dist/bootstrap/cli/help.js +4 -3
- package/dist/bootstrap/cli/registry.d.ts +2 -1
- package/dist/bootstrap/cli/registry.js +4 -2
- package/dist/bootstrap/cli/version.d.ts +2 -1
- package/dist/bootstrap/cli/version.js +2 -1
- package/dist/bootstrap/commands/accounts/cli.d.ts +2 -1
- package/dist/bootstrap/commands/accounts/cli.js +2 -1
- package/dist/bootstrap/commands/accounts/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/accounts/reporter.js +2 -1
- package/dist/bootstrap/commands/accrued-interests/cli.d.ts +2 -1
- package/dist/bootstrap/commands/accrued-interests/cli.js +2 -1
- package/dist/bootstrap/commands/accrued-interests/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/accrued-interests/reporter.js +2 -1
- package/dist/bootstrap/commands/asset/cli.d.ts +2 -1
- package/dist/bootstrap/commands/asset/cli.js +2 -1
- package/dist/bootstrap/commands/asset/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/asset/reporter.js +2 -1
- package/dist/bootstrap/commands/assets/cli.d.ts +2 -1
- package/dist/bootstrap/commands/assets/cli.js +2 -1
- package/dist/bootstrap/commands/assets/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/assets/reporter.js +2 -1
- package/dist/bootstrap/commands/bond/cli.d.ts +2 -1
- package/dist/bootstrap/commands/bond/cli.js +2 -1
- package/dist/bootstrap/commands/bond/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/bond/reporter.js +5 -2
- package/dist/bootstrap/commands/bond-coupons/cli.d.ts +2 -1
- package/dist/bootstrap/commands/bond-coupons/cli.js +2 -1
- package/dist/bootstrap/commands/bond-coupons/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/bond-coupons/reporter.js +2 -1
- package/dist/bootstrap/commands/bonds/cli.d.ts +2 -1
- package/dist/bootstrap/commands/bonds/cli.js +2 -1
- package/dist/bootstrap/commands/bonds/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/bonds/reporter.js +2 -1
- package/dist/bootstrap/commands/brand/cli.d.ts +2 -1
- package/dist/bootstrap/commands/brand/cli.js +2 -1
- package/dist/bootstrap/commands/brand/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/brand/reporter.js +2 -1
- package/dist/bootstrap/commands/brands/cli.d.ts +2 -1
- package/dist/bootstrap/commands/brands/cli.js +2 -1
- package/dist/bootstrap/commands/brands/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/brands/reporter.js +2 -1
- package/dist/bootstrap/commands/broker-report/cli.d.ts +2 -1
- package/dist/bootstrap/commands/broker-report/cli.js +2 -1
- package/dist/bootstrap/commands/broker-report/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/broker-report/reporter.js +2 -1
- package/dist/bootstrap/commands/cancel-order/cli.d.ts +2 -1
- package/dist/bootstrap/commands/cancel-order/cli.js +2 -1
- package/dist/bootstrap/commands/cancel-order/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/cancel-order/reporter.js +2 -1
- package/dist/bootstrap/commands/cancel-stop-order/cli.d.ts +2 -1
- package/dist/bootstrap/commands/cancel-stop-order/cli.js +2 -1
- package/dist/bootstrap/commands/cancel-stop-order/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/cancel-stop-order/reporter.js +2 -1
- package/dist/bootstrap/commands/candles/cli.d.ts +2 -1
- package/dist/bootstrap/commands/candles/cli.js +2 -1
- package/dist/bootstrap/commands/candles/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/candles/reporter.js +2 -1
- package/dist/bootstrap/commands/close-prices/cli.d.ts +2 -1
- package/dist/bootstrap/commands/close-prices/cli.js +2 -1
- package/dist/bootstrap/commands/close-prices/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/close-prices/reporter.js +2 -1
- package/dist/bootstrap/commands/compile-proto/cli.d.ts +2 -1
- package/dist/bootstrap/commands/compile-proto/cli.js +2 -1
- package/dist/bootstrap/commands/countries/cli.d.ts +2 -1
- package/dist/bootstrap/commands/countries/cli.js +2 -1
- package/dist/bootstrap/commands/countries/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/countries/reporter.js +2 -1
- package/dist/bootstrap/commands/currencies/cli.d.ts +2 -1
- package/dist/bootstrap/commands/currencies/cli.js +2 -1
- package/dist/bootstrap/commands/currencies/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/currencies/reporter.js +2 -1
- package/dist/bootstrap/commands/currency/cli.d.ts +2 -1
- package/dist/bootstrap/commands/currency/cli.js +2 -1
- package/dist/bootstrap/commands/currency/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/currency/reporter.js +2 -1
- package/dist/bootstrap/commands/dividends/cli.d.ts +2 -1
- package/dist/bootstrap/commands/dividends/cli.js +2 -1
- package/dist/bootstrap/commands/dividends/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/dividends/reporter.js +2 -1
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.d.ts +2 -1
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.js +6 -2
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.js +2 -1
- package/dist/bootstrap/commands/edit-favorites/cli.d.ts +2 -1
- package/dist/bootstrap/commands/edit-favorites/cli.js +2 -1
- package/dist/bootstrap/commands/etf/cli.d.ts +2 -1
- package/dist/bootstrap/commands/etf/cli.js +2 -1
- package/dist/bootstrap/commands/etf/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/etf/reporter.js +5 -2
- package/dist/bootstrap/commands/etfs/cli.d.ts +2 -1
- package/dist/bootstrap/commands/etfs/cli.js +2 -1
- package/dist/bootstrap/commands/etfs/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/etfs/reporter.js +2 -1
- package/dist/bootstrap/commands/favorites/cli.d.ts +2 -1
- package/dist/bootstrap/commands/favorites/cli.js +2 -1
- package/dist/bootstrap/commands/favorites/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/favorites/reporter.js +2 -1
- package/dist/bootstrap/commands/find-instrument/cli.d.ts +2 -1
- package/dist/bootstrap/commands/find-instrument/cli.js +2 -1
- package/dist/bootstrap/commands/find-instrument/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/find-instrument/reporter.js +2 -1
- package/dist/bootstrap/commands/future/cli.d.ts +2 -1
- package/dist/bootstrap/commands/future/cli.js +2 -1
- package/dist/bootstrap/commands/future/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/future/reporter.js +2 -1
- package/dist/bootstrap/commands/futures/cli.d.ts +2 -1
- package/dist/bootstrap/commands/futures/cli.js +2 -1
- package/dist/bootstrap/commands/futures/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/futures/reporter.js +2 -1
- package/dist/bootstrap/commands/futures-margin/cli.d.ts +2 -1
- package/dist/bootstrap/commands/futures-margin/cli.js +2 -1
- package/dist/bootstrap/commands/futures-margin/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/futures-margin/reporter.js +8 -2
- package/dist/bootstrap/commands/instrument/cli.d.ts +2 -1
- package/dist/bootstrap/commands/instrument/cli.js +2 -1
- package/dist/bootstrap/commands/instrument/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/instrument/reporter.js +5 -2
- package/dist/bootstrap/commands/last-prices/cli.d.ts +2 -1
- package/dist/bootstrap/commands/last-prices/cli.js +2 -1
- package/dist/bootstrap/commands/last-prices/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/last-prices/reporter.js +2 -1
- package/dist/bootstrap/commands/last-trades/cli.d.ts +2 -1
- package/dist/bootstrap/commands/last-trades/cli.js +2 -1
- package/dist/bootstrap/commands/last-trades/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/last-trades/reporter.js +2 -1
- package/dist/bootstrap/commands/margin-attributes/cli.d.ts +2 -1
- package/dist/bootstrap/commands/margin-attributes/cli.js +2 -1
- package/dist/bootstrap/commands/margin-attributes/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/margin-attributes/reporter.js +2 -1
- package/dist/bootstrap/commands/operations/cli.d.ts +2 -1
- package/dist/bootstrap/commands/operations/cli.js +8 -2
- package/dist/bootstrap/commands/operations/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/operations/reporter.js +2 -1
- package/dist/bootstrap/commands/operations-by-cursor/cli.d.ts +2 -1
- package/dist/bootstrap/commands/operations-by-cursor/cli.js +8 -2
- package/dist/bootstrap/commands/operations-by-cursor/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/operations-by-cursor/reporter.js +2 -1
- package/dist/bootstrap/commands/operations-by-cursor/request.mapper.d.ts +2 -1
- package/dist/bootstrap/commands/operations-by-cursor/request.mapper.js +2 -1
- package/dist/bootstrap/commands/option/cli.d.ts +2 -1
- package/dist/bootstrap/commands/option/cli.js +2 -1
- package/dist/bootstrap/commands/option/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/option/reporter.js +2 -1
- package/dist/bootstrap/commands/options-by/cli.d.ts +2 -1
- package/dist/bootstrap/commands/options-by/cli.js +2 -1
- package/dist/bootstrap/commands/options-by/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/options-by/reporter.js +2 -1
- package/dist/bootstrap/commands/order-book/cli.d.ts +2 -1
- package/dist/bootstrap/commands/order-book/cli.js +2 -1
- package/dist/bootstrap/commands/order-book/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/order-book/reporter.js +11 -2
- package/dist/bootstrap/commands/order-state/cli.d.ts +2 -1
- package/dist/bootstrap/commands/order-state/cli.js +2 -1
- package/dist/bootstrap/commands/order-state/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/order-state/reporter.js +2 -1
- package/dist/bootstrap/commands/orders/cli.d.ts +2 -1
- package/dist/bootstrap/commands/orders/cli.js +2 -1
- package/dist/bootstrap/commands/orders/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/orders/reporter.js +2 -1
- package/dist/bootstrap/commands/portfolio/cli.d.ts +2 -1
- package/dist/bootstrap/commands/portfolio/cli.js +2 -1
- package/dist/bootstrap/commands/portfolio/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/portfolio/reporter.js +2 -1
- package/dist/bootstrap/commands/portfolio/request.mapper.d.ts +2 -1
- package/dist/bootstrap/commands/portfolio/request.mapper.js +2 -1
- package/dist/bootstrap/commands/positions/cli.d.ts +2 -1
- package/dist/bootstrap/commands/positions/cli.js +2 -1
- package/dist/bootstrap/commands/positions/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/positions/reporter.js +11 -2
- package/dist/bootstrap/commands/post-order/cli.d.ts +2 -1
- package/dist/bootstrap/commands/post-order/cli.js +2 -1
- package/dist/bootstrap/commands/post-order/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/post-order/reporter.js +2 -1
- package/dist/bootstrap/commands/post-stop-order/cli.d.ts +2 -1
- package/dist/bootstrap/commands/post-stop-order/cli.js +4 -2
- package/dist/bootstrap/commands/post-stop-order/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/post-stop-order/reporter.js +2 -1
- package/dist/bootstrap/commands/replace-order/cli.d.ts +2 -1
- package/dist/bootstrap/commands/replace-order/cli.js +2 -1
- package/dist/bootstrap/commands/replace-order/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/replace-order/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-accounts/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-accounts/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-close-account/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-close-account/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-close-account/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-close-account/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-open-account/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-open-account/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-open-account/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-open-account/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-operations/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-operations/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.js +7 -2
- package/dist/bootstrap/commands/sandbox-order-state/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-order-state/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-orders/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-orders/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-pay-in/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-pay-in/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-portfolio/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-portfolio/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-positions/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-positions/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-post-order/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-post-order/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-replace-order/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-replace-order/cli.js +2 -1
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.d.ts +2 -1
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.js +6 -2
- package/dist/bootstrap/commands/share/cli.d.ts +2 -1
- package/dist/bootstrap/commands/share/cli.js +2 -1
- package/dist/bootstrap/commands/share/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/share/reporter.js +5 -2
- package/dist/bootstrap/commands/shares/cli.d.ts +2 -1
- package/dist/bootstrap/commands/shares/cli.js +2 -1
- package/dist/bootstrap/commands/shares/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/shares/reporter.js +2 -1
- package/dist/bootstrap/commands/stop-orders/cli.d.ts +2 -1
- package/dist/bootstrap/commands/stop-orders/cli.js +2 -1
- package/dist/bootstrap/commands/stop-orders/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/stop-orders/reporter.js +2 -1
- package/dist/bootstrap/commands/stream-run/cli.d.ts +2 -1
- package/dist/bootstrap/commands/stream-run/cli.js +3 -4
- package/dist/bootstrap/commands/stream-run/config.js +2 -1
- package/dist/bootstrap/commands/stream-run/request.mapper.js +15 -5
- package/dist/bootstrap/commands/stream-run/stream-session.js +6 -2
- package/dist/bootstrap/commands/trading-schedules/cli.d.ts +2 -1
- package/dist/bootstrap/commands/trading-schedules/cli.js +2 -1
- package/dist/bootstrap/commands/trading-schedules/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/trading-schedules/reporter.js +11 -2
- package/dist/bootstrap/commands/trading-status/cli.d.ts +2 -1
- package/dist/bootstrap/commands/trading-status/cli.js +2 -1
- package/dist/bootstrap/commands/trading-status/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/trading-status/reporter.js +2 -1
- package/dist/bootstrap/commands/trading-statuses/cli.d.ts +2 -1
- package/dist/bootstrap/commands/trading-statuses/cli.js +2 -1
- package/dist/bootstrap/commands/trading-statuses/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/trading-statuses/reporter.js +2 -1
- package/dist/bootstrap/commands/user-info/cli.d.ts +2 -1
- package/dist/bootstrap/commands/user-info/cli.js +2 -1
- package/dist/bootstrap/commands/user-info/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/user-info/reporter.js +2 -1
- package/dist/bootstrap/commands/user-tariff/cli.d.ts +2 -1
- package/dist/bootstrap/commands/user-tariff/cli.js +2 -1
- package/dist/bootstrap/commands/user-tariff/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/user-tariff/reporter.js +17 -2
- package/dist/bootstrap/commands/withdraw-limits/cli.d.ts +2 -1
- package/dist/bootstrap/commands/withdraw-limits/cli.js +2 -1
- package/dist/bootstrap/commands/withdraw-limits/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/withdraw-limits/reporter.js +2 -1
- package/dist/bootstrap/generated-exports.d.ts +2 -2
- package/dist/bootstrap/generated-exports.js +11 -9
- package/dist/bootstrap/proto/compile-proto.d.ts +4 -2
- package/dist/bootstrap/proto/compile-proto.js +9 -6
- package/dist/bootstrap/t-invest-node-sdk.d.ts +21 -1
- package/dist/bootstrap/t-invest-node-sdk.js +40 -16
- package/dist/config.d.ts +5 -2
- package/dist/config.js +5 -2
- 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.d.ts +16 -0
- package/dist/generated/instruments.js +160 -3
- package/dist/generated/marketdata.d.ts +22 -1
- package/dist/generated/marketdata.js +228 -11
- package/dist/generated/operations.d.ts +4 -0
- package/dist/generated/operations.js +46 -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.d.ts +8 -0
- package/dist/generated/users.js +29 -1
- package/dist/infrastructure/interceptor/warning-interceptor.d.ts +2 -1
- package/dist/infrastructure/interceptor/warning-interceptor.js +4 -3
- package/dist/infrastructure/report-values.js +3 -1
- package/dist/infrastructure/transport/grpc/sdk-call-error.js +2 -2
- package/dist/infrastructure/transport/grpc/sdk-middleware.d.ts +2 -1
- package/dist/infrastructure/transport/grpc/sdk-middleware.js +2 -1
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.d.ts +18 -0
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.js +19 -3
- package/docs/architecture.md +78 -92
- package/docs/bundled-ca.md +25 -41
- package/docs/clean-architecture/api-commands.md +98 -91
- package/docs/clean-architecture/application.md +61 -79
- package/docs/clean-architecture/cli-output-boundaries.md +88 -104
- package/docs/clean-architecture/index.md +10 -32
- package/docs/cli-reference.md +30 -22
- package/docs/cli-stream-configuration.md +28 -28
- package/docs/cli-stream-reference.md +38 -70
- package/docs/examples/custom-unary-limiter.md +442 -0
- package/docs/examples/deprecated-fields.md +27 -0
- package/docs/examples/errors-and-lifecycle.md +168 -0
- package/docs/examples/getting-started.md +45 -0
- package/docs/examples/index.md +34 -0
- package/docs/examples/market-data-recovery.md +273 -0
- package/docs/examples/streams-and-cancellation.md +131 -0
- package/docs/examples/testing-with-service-definitions.md +77 -0
- package/docs/examples/unary-calls.md +144 -0
- package/docs/examples/unary-limits.md +90 -0
- package/docs/index.md +24 -45
- package/docs/limits-policy.md +16 -41
- package/docs/roadmap.md +54 -54
- package/docs/tls-policy.md +30 -14
- package/package.json +6 -6
- package/readme.md +51 -113
- package/docs/guides/custom-unary-limiter.md +0 -500
- package/docs/guides/errors-and-lifecycle.md +0 -184
- package/docs/guides/getting-started.md +0 -86
- package/docs/guides/index.md +0 -32
- package/docs/guides/streams-and-cancellation.md +0 -162
- package/docs/guides/testing-with-service-definitions.md +0 -102
- package/docs/guides/unary-calls.md +0 -181
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.13.0
|
|
5
5
|
// protoc v7.36.2
|
|
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;
|
|
9
|
-
exports.MarketDataStreamServiceDefinition = exports.MarketDataServiceDefinition = exports.MarketValue = exports.MarketValueInstrument = exports.GetMarketValuesResponse = exports.GetMarketValuesRequest = exports.GetTechAnalysisResponse_TechAnalysisItem = exports.GetTechAnalysisResponse = exports.GetTechAnalysisRequest_Deviation = exports.GetTechAnalysisRequest_Smoothing = exports.GetTechAnalysisRequest = exports.InstrumentClosePriceResponse = exports.GetClosePricesResponse = exports.InstrumentClosePriceRequest = exports.GetClosePricesRequest = exports.GetMySubscriptions = exports.GetLastTradesResponse = exports.GetLastTradesRequest = exports.GetTradingStatusResponse = exports.GetTradingStatusesResponse = exports.GetTradingStatusesRequest = exports.GetTradingStatusRequest = exports.GetOrderBookResponse = exports.GetOrderBookRequest = void 0;
|
|
9
|
+
exports.MarketDataStreamServiceDefinition = exports.MarketDataServiceDefinition = exports.MarketValue = exports.MarketValueStatistic = exports.MarketValueInstrument = exports.GetMarketValuesResponse = exports.GetMarketValuesRequest = exports.GetTechAnalysisResponse_TechAnalysisItem = exports.GetTechAnalysisResponse = exports.GetTechAnalysisRequest_Deviation = exports.GetTechAnalysisRequest_Smoothing = exports.GetTechAnalysisRequest = exports.InstrumentClosePriceResponse = exports.GetClosePricesResponse = exports.InstrumentClosePriceRequest = exports.GetClosePricesRequest = exports.GetMySubscriptions = exports.GetLastTradesResponse = exports.GetLastTradesRequest = exports.GetTradingStatusResponse = exports.GetTradingStatusesResponse = exports.GetTradingStatusesRequest = exports.GetTradingStatusRequest = exports.GetOrderBookResponse = exports.GetOrderBookRequest = void 0;
|
|
10
10
|
exports.subscriptionActionFromJSON = subscriptionActionFromJSON;
|
|
11
11
|
exports.subscriptionActionToJSON = subscriptionActionToJSON;
|
|
12
12
|
exports.subscriptionIntervalFromJSON = subscriptionIntervalFromJSON;
|
|
@@ -5476,13 +5476,16 @@ exports.GetCandlesRequest = {
|
|
|
5476
5476
|
},
|
|
5477
5477
|
};
|
|
5478
5478
|
function createBaseGetCandlesResponse() {
|
|
5479
|
-
return { candles: [] };
|
|
5479
|
+
return { candles: [], priceCurrency: "" };
|
|
5480
5480
|
}
|
|
5481
5481
|
exports.GetCandlesResponse = {
|
|
5482
5482
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5483
5483
|
for (const v of message.candles) {
|
|
5484
5484
|
exports.HistoricCandle.encode(v, writer.uint32(10).fork()).join();
|
|
5485
5485
|
}
|
|
5486
|
+
if (message.priceCurrency !== "") {
|
|
5487
|
+
writer.uint32(18).string(message.priceCurrency);
|
|
5488
|
+
}
|
|
5486
5489
|
return writer;
|
|
5487
5490
|
},
|
|
5488
5491
|
decode(input, length) {
|
|
@@ -5505,6 +5508,13 @@ exports.GetCandlesResponse = {
|
|
|
5505
5508
|
message.candles.push(exports.HistoricCandle.decode(reader, reader.uint32()));
|
|
5506
5509
|
continue;
|
|
5507
5510
|
}
|
|
5511
|
+
case 2: {
|
|
5512
|
+
if (tag !== 18) {
|
|
5513
|
+
break;
|
|
5514
|
+
}
|
|
5515
|
+
message.priceCurrency = reader.string();
|
|
5516
|
+
continue;
|
|
5517
|
+
}
|
|
5508
5518
|
}
|
|
5509
5519
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5510
5520
|
break;
|
|
@@ -5522,6 +5532,11 @@ exports.GetCandlesResponse = {
|
|
|
5522
5532
|
candles: globalThis.Array.isArray(object?.candles)
|
|
5523
5533
|
? object.candles.map((e) => exports.HistoricCandle.fromJSON(e))
|
|
5524
5534
|
: [],
|
|
5535
|
+
priceCurrency: isSet(object.priceCurrency)
|
|
5536
|
+
? globalThis.String(object.priceCurrency)
|
|
5537
|
+
: isSet(object.price_currency)
|
|
5538
|
+
? globalThis.String(object.price_currency)
|
|
5539
|
+
: "",
|
|
5525
5540
|
};
|
|
5526
5541
|
},
|
|
5527
5542
|
toJSON(message) {
|
|
@@ -5529,6 +5544,9 @@ exports.GetCandlesResponse = {
|
|
|
5529
5544
|
if (message.candles?.length) {
|
|
5530
5545
|
obj.candles = message.candles.map((e) => exports.HistoricCandle.toJSON(e));
|
|
5531
5546
|
}
|
|
5547
|
+
if (message.priceCurrency !== "") {
|
|
5548
|
+
obj.priceCurrency = message.priceCurrency;
|
|
5549
|
+
}
|
|
5532
5550
|
return obj;
|
|
5533
5551
|
},
|
|
5534
5552
|
create(base) {
|
|
@@ -5537,6 +5555,7 @@ exports.GetCandlesResponse = {
|
|
|
5537
5555
|
fromPartial(object) {
|
|
5538
5556
|
const message = createBaseGetCandlesResponse();
|
|
5539
5557
|
message.candles = object.candles?.map((e) => exports.HistoricCandle.fromPartial(e)) || [];
|
|
5558
|
+
message.priceCurrency = object.priceCurrency ?? "";
|
|
5540
5559
|
return message;
|
|
5541
5560
|
},
|
|
5542
5561
|
};
|
|
@@ -6377,6 +6396,7 @@ function createBaseGetOrderBookResponse() {
|
|
|
6377
6396
|
lastPriceTs: undefined,
|
|
6378
6397
|
closePriceTs: undefined,
|
|
6379
6398
|
orderbookTs: undefined,
|
|
6399
|
+
priceCurrency: "",
|
|
6380
6400
|
};
|
|
6381
6401
|
}
|
|
6382
6402
|
exports.GetOrderBookResponse = {
|
|
@@ -6423,6 +6443,9 @@ exports.GetOrderBookResponse = {
|
|
|
6423
6443
|
if (message.orderbookTs !== undefined) {
|
|
6424
6444
|
timestamp_1.Timestamp.encode(toTimestamp(message.orderbookTs), writer.uint32(186).fork()).join();
|
|
6425
6445
|
}
|
|
6446
|
+
if (message.priceCurrency !== "") {
|
|
6447
|
+
writer.uint32(194).string(message.priceCurrency);
|
|
6448
|
+
}
|
|
6426
6449
|
return writer;
|
|
6427
6450
|
},
|
|
6428
6451
|
decode(input, length) {
|
|
@@ -6536,6 +6559,13 @@ exports.GetOrderBookResponse = {
|
|
|
6536
6559
|
message.orderbookTs = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
6537
6560
|
continue;
|
|
6538
6561
|
}
|
|
6562
|
+
case 24: {
|
|
6563
|
+
if (tag !== 194) {
|
|
6564
|
+
break;
|
|
6565
|
+
}
|
|
6566
|
+
message.priceCurrency = reader.string();
|
|
6567
|
+
continue;
|
|
6568
|
+
}
|
|
6539
6569
|
}
|
|
6540
6570
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6541
6571
|
break;
|
|
@@ -6600,6 +6630,11 @@ exports.GetOrderBookResponse = {
|
|
|
6600
6630
|
: isSet(object.orderbook_ts)
|
|
6601
6631
|
? fromJsonTimestamp(object.orderbook_ts)
|
|
6602
6632
|
: undefined,
|
|
6633
|
+
priceCurrency: isSet(object.priceCurrency)
|
|
6634
|
+
? globalThis.String(object.priceCurrency)
|
|
6635
|
+
: isSet(object.price_currency)
|
|
6636
|
+
? globalThis.String(object.price_currency)
|
|
6637
|
+
: "",
|
|
6603
6638
|
};
|
|
6604
6639
|
},
|
|
6605
6640
|
toJSON(message) {
|
|
@@ -6646,6 +6681,9 @@ exports.GetOrderBookResponse = {
|
|
|
6646
6681
|
if (message.orderbookTs !== undefined) {
|
|
6647
6682
|
obj.orderbookTs = message.orderbookTs.toISOString();
|
|
6648
6683
|
}
|
|
6684
|
+
if (message.priceCurrency !== "") {
|
|
6685
|
+
obj.priceCurrency = message.priceCurrency;
|
|
6686
|
+
}
|
|
6649
6687
|
return obj;
|
|
6650
6688
|
},
|
|
6651
6689
|
create(base) {
|
|
@@ -6675,6 +6713,7 @@ exports.GetOrderBookResponse = {
|
|
|
6675
6713
|
message.lastPriceTs = object.lastPriceTs ?? undefined;
|
|
6676
6714
|
message.closePriceTs = object.closePriceTs ?? undefined;
|
|
6677
6715
|
message.orderbookTs = object.orderbookTs ?? undefined;
|
|
6716
|
+
message.priceCurrency = object.priceCurrency ?? "";
|
|
6678
6717
|
return message;
|
|
6679
6718
|
},
|
|
6680
6719
|
};
|
|
@@ -7267,13 +7306,16 @@ exports.GetLastTradesRequest = {
|
|
|
7267
7306
|
},
|
|
7268
7307
|
};
|
|
7269
7308
|
function createBaseGetLastTradesResponse() {
|
|
7270
|
-
return { trades: [] };
|
|
7309
|
+
return { trades: [], priceCurrency: "" };
|
|
7271
7310
|
}
|
|
7272
7311
|
exports.GetLastTradesResponse = {
|
|
7273
7312
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7274
7313
|
for (const v of message.trades) {
|
|
7275
7314
|
exports.Trade.encode(v, writer.uint32(10).fork()).join();
|
|
7276
7315
|
}
|
|
7316
|
+
if (message.priceCurrency !== "") {
|
|
7317
|
+
writer.uint32(18).string(message.priceCurrency);
|
|
7318
|
+
}
|
|
7277
7319
|
return writer;
|
|
7278
7320
|
},
|
|
7279
7321
|
decode(input, length) {
|
|
@@ -7296,6 +7338,13 @@ exports.GetLastTradesResponse = {
|
|
|
7296
7338
|
message.trades.push(exports.Trade.decode(reader, reader.uint32()));
|
|
7297
7339
|
continue;
|
|
7298
7340
|
}
|
|
7341
|
+
case 2: {
|
|
7342
|
+
if (tag !== 18) {
|
|
7343
|
+
break;
|
|
7344
|
+
}
|
|
7345
|
+
message.priceCurrency = reader.string();
|
|
7346
|
+
continue;
|
|
7347
|
+
}
|
|
7299
7348
|
}
|
|
7300
7349
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7301
7350
|
break;
|
|
@@ -7309,13 +7358,23 @@ exports.GetLastTradesResponse = {
|
|
|
7309
7358
|
}
|
|
7310
7359
|
},
|
|
7311
7360
|
fromJSON(object) {
|
|
7312
|
-
return {
|
|
7361
|
+
return {
|
|
7362
|
+
trades: globalThis.Array.isArray(object?.trades) ? object.trades.map((e) => exports.Trade.fromJSON(e)) : [],
|
|
7363
|
+
priceCurrency: isSet(object.priceCurrency)
|
|
7364
|
+
? globalThis.String(object.priceCurrency)
|
|
7365
|
+
: isSet(object.price_currency)
|
|
7366
|
+
? globalThis.String(object.price_currency)
|
|
7367
|
+
: "",
|
|
7368
|
+
};
|
|
7313
7369
|
},
|
|
7314
7370
|
toJSON(message) {
|
|
7315
7371
|
const obj = {};
|
|
7316
7372
|
if (message.trades?.length) {
|
|
7317
7373
|
obj.trades = message.trades.map((e) => exports.Trade.toJSON(e));
|
|
7318
7374
|
}
|
|
7375
|
+
if (message.priceCurrency !== "") {
|
|
7376
|
+
obj.priceCurrency = message.priceCurrency;
|
|
7377
|
+
}
|
|
7319
7378
|
return obj;
|
|
7320
7379
|
},
|
|
7321
7380
|
create(base) {
|
|
@@ -7324,6 +7383,7 @@ exports.GetLastTradesResponse = {
|
|
|
7324
7383
|
fromPartial(object) {
|
|
7325
7384
|
const message = createBaseGetLastTradesResponse();
|
|
7326
7385
|
message.trades = object.trades?.map((e) => exports.Trade.fromPartial(e)) || [];
|
|
7386
|
+
message.priceCurrency = object.priceCurrency ?? "";
|
|
7327
7387
|
return message;
|
|
7328
7388
|
},
|
|
7329
7389
|
};
|
|
@@ -7792,7 +7852,7 @@ exports.InstrumentClosePriceResponse = {
|
|
|
7792
7852
|
function createBaseGetTechAnalysisRequest() {
|
|
7793
7853
|
return {
|
|
7794
7854
|
indicatorType: 0,
|
|
7795
|
-
instrumentUid:
|
|
7855
|
+
instrumentUid: undefined,
|
|
7796
7856
|
from: undefined,
|
|
7797
7857
|
to: undefined,
|
|
7798
7858
|
interval: 0,
|
|
@@ -7800,6 +7860,7 @@ function createBaseGetTechAnalysisRequest() {
|
|
|
7800
7860
|
length: 0,
|
|
7801
7861
|
deviation: undefined,
|
|
7802
7862
|
smoothing: undefined,
|
|
7863
|
+
instrumentId: undefined,
|
|
7803
7864
|
};
|
|
7804
7865
|
}
|
|
7805
7866
|
exports.GetTechAnalysisRequest = {
|
|
@@ -7807,7 +7868,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7807
7868
|
if (message.indicatorType !== 0) {
|
|
7808
7869
|
writer.uint32(8).int32(message.indicatorType);
|
|
7809
7870
|
}
|
|
7810
|
-
if (message.instrumentUid !==
|
|
7871
|
+
if (message.instrumentUid !== undefined) {
|
|
7811
7872
|
writer.uint32(18).string(message.instrumentUid);
|
|
7812
7873
|
}
|
|
7813
7874
|
if (message.from !== undefined) {
|
|
@@ -7831,6 +7892,9 @@ exports.GetTechAnalysisRequest = {
|
|
|
7831
7892
|
if (message.smoothing !== undefined) {
|
|
7832
7893
|
exports.GetTechAnalysisRequest_Smoothing.encode(message.smoothing, writer.uint32(74).fork()).join();
|
|
7833
7894
|
}
|
|
7895
|
+
if (message.instrumentId !== undefined) {
|
|
7896
|
+
writer.uint32(82).string(message.instrumentId);
|
|
7897
|
+
}
|
|
7834
7898
|
return writer;
|
|
7835
7899
|
},
|
|
7836
7900
|
decode(input, length) {
|
|
@@ -7909,6 +7973,13 @@ exports.GetTechAnalysisRequest = {
|
|
|
7909
7973
|
message.smoothing = exports.GetTechAnalysisRequest_Smoothing.decode(reader, reader.uint32());
|
|
7910
7974
|
continue;
|
|
7911
7975
|
}
|
|
7976
|
+
case 10: {
|
|
7977
|
+
if (tag !== 82) {
|
|
7978
|
+
break;
|
|
7979
|
+
}
|
|
7980
|
+
message.instrumentId = reader.string();
|
|
7981
|
+
continue;
|
|
7982
|
+
}
|
|
7912
7983
|
}
|
|
7913
7984
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7914
7985
|
break;
|
|
@@ -7932,7 +8003,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7932
8003
|
? globalThis.String(object.instrumentUid)
|
|
7933
8004
|
: isSet(object.instrument_uid)
|
|
7934
8005
|
? globalThis.String(object.instrument_uid)
|
|
7935
|
-
:
|
|
8006
|
+
: undefined,
|
|
7936
8007
|
from: isSet(object.from) ? fromJsonTimestamp(object.from) : undefined,
|
|
7937
8008
|
to: isSet(object.to) ? fromJsonTimestamp(object.to) : undefined,
|
|
7938
8009
|
interval: isSet(object.interval) ? getTechAnalysisRequest_IndicatorIntervalFromJSON(object.interval) : 0,
|
|
@@ -7944,6 +8015,11 @@ exports.GetTechAnalysisRequest = {
|
|
|
7944
8015
|
length: isSet(object.length) ? globalThis.Number(object.length) : 0,
|
|
7945
8016
|
deviation: isSet(object.deviation) ? exports.GetTechAnalysisRequest_Deviation.fromJSON(object.deviation) : undefined,
|
|
7946
8017
|
smoothing: isSet(object.smoothing) ? exports.GetTechAnalysisRequest_Smoothing.fromJSON(object.smoothing) : undefined,
|
|
8018
|
+
instrumentId: isSet(object.instrumentId)
|
|
8019
|
+
? globalThis.String(object.instrumentId)
|
|
8020
|
+
: isSet(object.instrument_id)
|
|
8021
|
+
? globalThis.String(object.instrument_id)
|
|
8022
|
+
: undefined,
|
|
7947
8023
|
};
|
|
7948
8024
|
},
|
|
7949
8025
|
toJSON(message) {
|
|
@@ -7951,7 +8027,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7951
8027
|
if (message.indicatorType !== 0) {
|
|
7952
8028
|
obj.indicatorType = getTechAnalysisRequest_IndicatorTypeToJSON(message.indicatorType);
|
|
7953
8029
|
}
|
|
7954
|
-
if (message.instrumentUid !==
|
|
8030
|
+
if (message.instrumentUid !== undefined) {
|
|
7955
8031
|
obj.instrumentUid = message.instrumentUid;
|
|
7956
8032
|
}
|
|
7957
8033
|
if (message.from !== undefined) {
|
|
@@ -7975,6 +8051,9 @@ exports.GetTechAnalysisRequest = {
|
|
|
7975
8051
|
if (message.smoothing !== undefined) {
|
|
7976
8052
|
obj.smoothing = exports.GetTechAnalysisRequest_Smoothing.toJSON(message.smoothing);
|
|
7977
8053
|
}
|
|
8054
|
+
if (message.instrumentId !== undefined) {
|
|
8055
|
+
obj.instrumentId = message.instrumentId;
|
|
8056
|
+
}
|
|
7978
8057
|
return obj;
|
|
7979
8058
|
},
|
|
7980
8059
|
create(base) {
|
|
@@ -7983,7 +8062,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7983
8062
|
fromPartial(object) {
|
|
7984
8063
|
const message = createBaseGetTechAnalysisRequest();
|
|
7985
8064
|
message.indicatorType = object.indicatorType ?? 0;
|
|
7986
|
-
message.instrumentUid = object.instrumentUid ??
|
|
8065
|
+
message.instrumentUid = object.instrumentUid ?? undefined;
|
|
7987
8066
|
message.from = object.from ?? undefined;
|
|
7988
8067
|
message.to = object.to ?? undefined;
|
|
7989
8068
|
message.interval = object.interval ?? 0;
|
|
@@ -7995,6 +8074,7 @@ exports.GetTechAnalysisRequest = {
|
|
|
7995
8074
|
message.smoothing = (object.smoothing !== undefined && object.smoothing !== null)
|
|
7996
8075
|
? exports.GetTechAnalysisRequest_Smoothing.fromPartial(object.smoothing)
|
|
7997
8076
|
: undefined;
|
|
8077
|
+
message.instrumentId = object.instrumentId ?? undefined;
|
|
7998
8078
|
return message;
|
|
7999
8079
|
},
|
|
8000
8080
|
};
|
|
@@ -8562,7 +8642,7 @@ exports.GetMarketValuesResponse = {
|
|
|
8562
8642
|
},
|
|
8563
8643
|
};
|
|
8564
8644
|
function createBaseMarketValueInstrument() {
|
|
8565
|
-
return { instrumentUid: "", values: [], ticker: "", classCode: "" };
|
|
8645
|
+
return { instrumentUid: "", values: [], ticker: "", classCode: "", statistic: undefined, priceCurrency: "" };
|
|
8566
8646
|
}
|
|
8567
8647
|
exports.MarketValueInstrument = {
|
|
8568
8648
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -8578,6 +8658,12 @@ exports.MarketValueInstrument = {
|
|
|
8578
8658
|
if (message.classCode !== "") {
|
|
8579
8659
|
writer.uint32(34).string(message.classCode);
|
|
8580
8660
|
}
|
|
8661
|
+
if (message.statistic !== undefined) {
|
|
8662
|
+
exports.MarketValueStatistic.encode(message.statistic, writer.uint32(42).fork()).join();
|
|
8663
|
+
}
|
|
8664
|
+
if (message.priceCurrency !== "") {
|
|
8665
|
+
writer.uint32(50).string(message.priceCurrency);
|
|
8666
|
+
}
|
|
8581
8667
|
return writer;
|
|
8582
8668
|
},
|
|
8583
8669
|
decode(input, length) {
|
|
@@ -8621,6 +8707,20 @@ exports.MarketValueInstrument = {
|
|
|
8621
8707
|
message.classCode = reader.string();
|
|
8622
8708
|
continue;
|
|
8623
8709
|
}
|
|
8710
|
+
case 5: {
|
|
8711
|
+
if (tag !== 42) {
|
|
8712
|
+
break;
|
|
8713
|
+
}
|
|
8714
|
+
message.statistic = exports.MarketValueStatistic.decode(reader, reader.uint32());
|
|
8715
|
+
continue;
|
|
8716
|
+
}
|
|
8717
|
+
case 6: {
|
|
8718
|
+
if (tag !== 50) {
|
|
8719
|
+
break;
|
|
8720
|
+
}
|
|
8721
|
+
message.priceCurrency = reader.string();
|
|
8722
|
+
continue;
|
|
8723
|
+
}
|
|
8624
8724
|
}
|
|
8625
8725
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8626
8726
|
break;
|
|
@@ -8647,6 +8747,12 @@ exports.MarketValueInstrument = {
|
|
|
8647
8747
|
: isSet(object.class_code)
|
|
8648
8748
|
? globalThis.String(object.class_code)
|
|
8649
8749
|
: "",
|
|
8750
|
+
statistic: isSet(object.statistic) ? exports.MarketValueStatistic.fromJSON(object.statistic) : undefined,
|
|
8751
|
+
priceCurrency: isSet(object.priceCurrency)
|
|
8752
|
+
? globalThis.String(object.priceCurrency)
|
|
8753
|
+
: isSet(object.price_currency)
|
|
8754
|
+
? globalThis.String(object.price_currency)
|
|
8755
|
+
: "",
|
|
8650
8756
|
};
|
|
8651
8757
|
},
|
|
8652
8758
|
toJSON(message) {
|
|
@@ -8663,6 +8769,12 @@ exports.MarketValueInstrument = {
|
|
|
8663
8769
|
if (message.classCode !== "") {
|
|
8664
8770
|
obj.classCode = message.classCode;
|
|
8665
8771
|
}
|
|
8772
|
+
if (message.statistic !== undefined) {
|
|
8773
|
+
obj.statistic = exports.MarketValueStatistic.toJSON(message.statistic);
|
|
8774
|
+
}
|
|
8775
|
+
if (message.priceCurrency !== "") {
|
|
8776
|
+
obj.priceCurrency = message.priceCurrency;
|
|
8777
|
+
}
|
|
8666
8778
|
return obj;
|
|
8667
8779
|
},
|
|
8668
8780
|
create(base) {
|
|
@@ -8674,6 +8786,111 @@ exports.MarketValueInstrument = {
|
|
|
8674
8786
|
message.values = object.values?.map((e) => exports.MarketValue.fromPartial(e)) || [];
|
|
8675
8787
|
message.ticker = object.ticker ?? "";
|
|
8676
8788
|
message.classCode = object.classCode ?? "";
|
|
8789
|
+
message.statistic = (object.statistic !== undefined && object.statistic !== null)
|
|
8790
|
+
? exports.MarketValueStatistic.fromPartial(object.statistic)
|
|
8791
|
+
: undefined;
|
|
8792
|
+
message.priceCurrency = object.priceCurrency ?? "";
|
|
8793
|
+
return message;
|
|
8794
|
+
},
|
|
8795
|
+
};
|
|
8796
|
+
function createBaseMarketValueStatistic() {
|
|
8797
|
+
return { interestedCount: undefined, tradedCount: undefined, time: undefined };
|
|
8798
|
+
}
|
|
8799
|
+
exports.MarketValueStatistic = {
|
|
8800
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8801
|
+
if (message.interestedCount !== undefined) {
|
|
8802
|
+
writer.uint32(8).int32(message.interestedCount);
|
|
8803
|
+
}
|
|
8804
|
+
if (message.tradedCount !== undefined) {
|
|
8805
|
+
writer.uint32(16).int32(message.tradedCount);
|
|
8806
|
+
}
|
|
8807
|
+
if (message.time !== undefined) {
|
|
8808
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.time), writer.uint32(26).fork()).join();
|
|
8809
|
+
}
|
|
8810
|
+
return writer;
|
|
8811
|
+
},
|
|
8812
|
+
decode(input, length) {
|
|
8813
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8814
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
8815
|
+
if (previousRecursionDepth >= 100) {
|
|
8816
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
8817
|
+
}
|
|
8818
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8819
|
+
try {
|
|
8820
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8821
|
+
const message = createBaseMarketValueStatistic();
|
|
8822
|
+
while (reader.pos < end) {
|
|
8823
|
+
const tag = reader.uint32();
|
|
8824
|
+
switch (tag >>> 3) {
|
|
8825
|
+
case 1: {
|
|
8826
|
+
if (tag !== 8) {
|
|
8827
|
+
break;
|
|
8828
|
+
}
|
|
8829
|
+
message.interestedCount = reader.int32();
|
|
8830
|
+
continue;
|
|
8831
|
+
}
|
|
8832
|
+
case 2: {
|
|
8833
|
+
if (tag !== 16) {
|
|
8834
|
+
break;
|
|
8835
|
+
}
|
|
8836
|
+
message.tradedCount = reader.int32();
|
|
8837
|
+
continue;
|
|
8838
|
+
}
|
|
8839
|
+
case 3: {
|
|
8840
|
+
if (tag !== 26) {
|
|
8841
|
+
break;
|
|
8842
|
+
}
|
|
8843
|
+
message.time = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
8844
|
+
continue;
|
|
8845
|
+
}
|
|
8846
|
+
}
|
|
8847
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8848
|
+
break;
|
|
8849
|
+
}
|
|
8850
|
+
reader.skip(tag & 7);
|
|
8851
|
+
}
|
|
8852
|
+
return message;
|
|
8853
|
+
}
|
|
8854
|
+
finally {
|
|
8855
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
8856
|
+
}
|
|
8857
|
+
},
|
|
8858
|
+
fromJSON(object) {
|
|
8859
|
+
return {
|
|
8860
|
+
interestedCount: isSet(object.interestedCount)
|
|
8861
|
+
? globalThis.Number(object.interestedCount)
|
|
8862
|
+
: isSet(object.interested_count)
|
|
8863
|
+
? globalThis.Number(object.interested_count)
|
|
8864
|
+
: undefined,
|
|
8865
|
+
tradedCount: isSet(object.tradedCount)
|
|
8866
|
+
? globalThis.Number(object.tradedCount)
|
|
8867
|
+
: isSet(object.traded_count)
|
|
8868
|
+
? globalThis.Number(object.traded_count)
|
|
8869
|
+
: undefined,
|
|
8870
|
+
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
8871
|
+
};
|
|
8872
|
+
},
|
|
8873
|
+
toJSON(message) {
|
|
8874
|
+
const obj = {};
|
|
8875
|
+
if (message.interestedCount !== undefined) {
|
|
8876
|
+
obj.interestedCount = Math.round(message.interestedCount);
|
|
8877
|
+
}
|
|
8878
|
+
if (message.tradedCount !== undefined) {
|
|
8879
|
+
obj.tradedCount = Math.round(message.tradedCount);
|
|
8880
|
+
}
|
|
8881
|
+
if (message.time !== undefined) {
|
|
8882
|
+
obj.time = message.time.toISOString();
|
|
8883
|
+
}
|
|
8884
|
+
return obj;
|
|
8885
|
+
},
|
|
8886
|
+
create(base) {
|
|
8887
|
+
return exports.MarketValueStatistic.fromPartial(base ?? {});
|
|
8888
|
+
},
|
|
8889
|
+
fromPartial(object) {
|
|
8890
|
+
const message = createBaseMarketValueStatistic();
|
|
8891
|
+
message.interestedCount = object.interestedCount ?? undefined;
|
|
8892
|
+
message.tradedCount = object.tradedCount ?? undefined;
|
|
8893
|
+
message.time = object.time ?? undefined;
|
|
8677
8894
|
return message;
|
|
8678
8895
|
},
|
|
8679
8896
|
};
|
|
@@ -318,6 +318,10 @@ export interface PortfolioResponse {
|
|
|
318
318
|
dailyYieldRelative: Quotation | undefined;
|
|
319
319
|
/** Общая стоимость смарт-активов в портфеле в рублях. */
|
|
320
320
|
totalAmountDfa: MoneyValue | undefined;
|
|
321
|
+
/** Общая вариационная маржа. */
|
|
322
|
+
totalVarMargin: MoneyValue | undefined;
|
|
323
|
+
/** Общая вариационная маржа от расчетной цены или от цены закрытия позиции. */
|
|
324
|
+
totalVarMarginSettled: MoneyValue | undefined;
|
|
321
325
|
}
|
|
322
326
|
/** Запрос позиций портфеля по счету. */
|
|
323
327
|
export interface PositionsRequest {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.13.0
|
|
5
5
|
// protoc v7.36.2
|
|
6
6
|
// source: operations.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1536,6 +1536,8 @@ function createBasePortfolioResponse() {
|
|
|
1536
1536
|
dailyYield: undefined,
|
|
1537
1537
|
dailyYieldRelative: undefined,
|
|
1538
1538
|
totalAmountDfa: undefined,
|
|
1539
|
+
totalVarMargin: undefined,
|
|
1540
|
+
totalVarMarginSettled: undefined,
|
|
1539
1541
|
};
|
|
1540
1542
|
}
|
|
1541
1543
|
exports.PortfolioResponse = {
|
|
@@ -1585,6 +1587,12 @@ exports.PortfolioResponse = {
|
|
|
1585
1587
|
if (message.totalAmountDfa !== undefined) {
|
|
1586
1588
|
common_1.MoneyValue.encode(message.totalAmountDfa, writer.uint32(138).fork()).join();
|
|
1587
1589
|
}
|
|
1590
|
+
if (message.totalVarMargin !== undefined) {
|
|
1591
|
+
common_1.MoneyValue.encode(message.totalVarMargin, writer.uint32(146).fork()).join();
|
|
1592
|
+
}
|
|
1593
|
+
if (message.totalVarMarginSettled !== undefined) {
|
|
1594
|
+
common_1.MoneyValue.encode(message.totalVarMarginSettled, writer.uint32(154).fork()).join();
|
|
1595
|
+
}
|
|
1588
1596
|
return writer;
|
|
1589
1597
|
},
|
|
1590
1598
|
decode(input, length) {
|
|
@@ -1705,6 +1713,20 @@ exports.PortfolioResponse = {
|
|
|
1705
1713
|
message.totalAmountDfa = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
1706
1714
|
continue;
|
|
1707
1715
|
}
|
|
1716
|
+
case 18: {
|
|
1717
|
+
if (tag !== 146) {
|
|
1718
|
+
break;
|
|
1719
|
+
}
|
|
1720
|
+
message.totalVarMargin = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
1721
|
+
continue;
|
|
1722
|
+
}
|
|
1723
|
+
case 19: {
|
|
1724
|
+
if (tag !== 154) {
|
|
1725
|
+
break;
|
|
1726
|
+
}
|
|
1727
|
+
message.totalVarMarginSettled = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
1728
|
+
continue;
|
|
1729
|
+
}
|
|
1708
1730
|
}
|
|
1709
1731
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1710
1732
|
break;
|
|
@@ -1792,6 +1814,16 @@ exports.PortfolioResponse = {
|
|
|
1792
1814
|
: isSet(object.total_amount_dfa)
|
|
1793
1815
|
? common_1.MoneyValue.fromJSON(object.total_amount_dfa)
|
|
1794
1816
|
: undefined,
|
|
1817
|
+
totalVarMargin: isSet(object.totalVarMargin)
|
|
1818
|
+
? common_1.MoneyValue.fromJSON(object.totalVarMargin)
|
|
1819
|
+
: isSet(object.total_var_margin)
|
|
1820
|
+
? common_1.MoneyValue.fromJSON(object.total_var_margin)
|
|
1821
|
+
: undefined,
|
|
1822
|
+
totalVarMarginSettled: isSet(object.totalVarMarginSettled)
|
|
1823
|
+
? common_1.MoneyValue.fromJSON(object.totalVarMarginSettled)
|
|
1824
|
+
: isSet(object.total_var_margin_settled)
|
|
1825
|
+
? common_1.MoneyValue.fromJSON(object.total_var_margin_settled)
|
|
1826
|
+
: undefined,
|
|
1795
1827
|
};
|
|
1796
1828
|
},
|
|
1797
1829
|
toJSON(message) {
|
|
@@ -1841,6 +1873,12 @@ exports.PortfolioResponse = {
|
|
|
1841
1873
|
if (message.totalAmountDfa !== undefined) {
|
|
1842
1874
|
obj.totalAmountDfa = common_1.MoneyValue.toJSON(message.totalAmountDfa);
|
|
1843
1875
|
}
|
|
1876
|
+
if (message.totalVarMargin !== undefined) {
|
|
1877
|
+
obj.totalVarMargin = common_1.MoneyValue.toJSON(message.totalVarMargin);
|
|
1878
|
+
}
|
|
1879
|
+
if (message.totalVarMarginSettled !== undefined) {
|
|
1880
|
+
obj.totalVarMarginSettled = common_1.MoneyValue.toJSON(message.totalVarMarginSettled);
|
|
1881
|
+
}
|
|
1844
1882
|
return obj;
|
|
1845
1883
|
},
|
|
1846
1884
|
create(base) {
|
|
@@ -1888,6 +1926,13 @@ exports.PortfolioResponse = {
|
|
|
1888
1926
|
message.totalAmountDfa = (object.totalAmountDfa !== undefined && object.totalAmountDfa !== null)
|
|
1889
1927
|
? common_1.MoneyValue.fromPartial(object.totalAmountDfa)
|
|
1890
1928
|
: undefined;
|
|
1929
|
+
message.totalVarMargin = (object.totalVarMargin !== undefined && object.totalVarMargin !== null)
|
|
1930
|
+
? common_1.MoneyValue.fromPartial(object.totalVarMargin)
|
|
1931
|
+
: undefined;
|
|
1932
|
+
message.totalVarMarginSettled =
|
|
1933
|
+
(object.totalVarMarginSettled !== undefined && object.totalVarMarginSettled !== null)
|
|
1934
|
+
? common_1.MoneyValue.fromPartial(object.totalVarMarginSettled)
|
|
1935
|
+
: undefined;
|
|
1891
1936
|
return message;
|
|
1892
1937
|
},
|
|
1893
1938
|
};
|
package/dist/generated/orders.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.13.0
|
|
5
5
|
// protoc v7.36.2
|
|
6
6
|
// source: stoporders.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -20,6 +20,14 @@ export declare enum AccountType {
|
|
|
20
20
|
ACCOUNT_TYPE_SAVING = 6,
|
|
21
21
|
/** ACCOUNT_TYPE_DFA - Смарт-счет. */
|
|
22
22
|
ACCOUNT_TYPE_DFA = 7,
|
|
23
|
+
/** ACCOUNT_TYPE_SHARED_SAVING - Совместный накопительный счет. */
|
|
24
|
+
ACCOUNT_TYPE_SHARED_SAVING = 8,
|
|
25
|
+
/** ACCOUNT_TYPE_DEPOSIT - Вклад. */
|
|
26
|
+
ACCOUNT_TYPE_DEPOSIT = 9,
|
|
27
|
+
/** ACCOUNT_TYPE_OMS - ОМС. */
|
|
28
|
+
ACCOUNT_TYPE_OMS = 10,
|
|
29
|
+
/** ACCOUNT_TYPE_OFP_DEPOSIT - ОФП вклад. */
|
|
30
|
+
ACCOUNT_TYPE_OFP_DEPOSIT = 11,
|
|
23
31
|
UNRECOGNIZED = -1
|
|
24
32
|
}
|
|
25
33
|
export declare function accountTypeFromJSON(object: any): AccountType;
|