@woodger/t-invest-node-sdk 0.5.6 → 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 +308 -524
- package/NOTICE +6 -6
- 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/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.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 +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
package/NOTICE
CHANGED
|
@@ -6,7 +6,7 @@ MIT License в [`LICENSE`](./LICENSE) применяется к исходном
|
|
|
6
6
|
|
|
7
7
|
## T-Invest API contracts
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Модуль содержит JavaScript-код и TypeScript declarations, сгенерированные из
|
|
10
10
|
официальных proto-контрактов T-Invest API версии 1.51. Исходный snapshot
|
|
11
11
|
зафиксирован в
|
|
12
12
|
[`contracts/upstream.json`](https://github.com/woodger/t-invest-node-sdk/blob/main/contracts/upstream.json).
|
|
@@ -24,20 +24,20 @@ MIT License в [`LICENSE`](./LICENSE) применяется к исходном
|
|
|
24
24
|
|
|
25
25
|
## Russian Trusted Root CA
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Модуль содержит публичный корневой X.509-сертификат Russian Trusted Root CA,
|
|
28
28
|
полученный по официальному маршруту со страницы сертификатов Госуслуг и
|
|
29
29
|
используемый для проверки TLS-цепочки T-Invest API. Соответствующий приватный
|
|
30
|
-
ключ в
|
|
30
|
+
ключ в модуль не входит.
|
|
31
31
|
|
|
32
32
|
Проект не заявляет авторство сертификата и не представляет MIT License SDK как
|
|
33
33
|
отдельное лицензионное разрешение на этот trust material. Официальный источник,
|
|
34
|
-
X.509 fingerprint, основание
|
|
34
|
+
X.509 fingerprint, основание включения в модуль и границы распространения описаны в
|
|
35
35
|
документе
|
|
36
36
|
[`docs/bundled-ca.md`](./docs/bundled-ca.md).
|
|
37
37
|
|
|
38
38
|
## Google API field behavior contract
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Модуль содержит артефакты, полученные из
|
|
41
41
|
[`google/api/field_behavior.proto`](https://github.com/googleapis/googleapis/blob/master/google/api/field_behavior.proto).
|
|
42
42
|
Исходный контракт опубликован на условиях Apache License 2.0. Полный текст
|
|
43
43
|
лицензии приведён в [`LICENSE-APACHE-2.0`](./LICENSE-APACHE-2.0).
|
|
@@ -62,7 +62,7 @@ limitations under the License.
|
|
|
62
62
|
|
|
63
63
|
## Google Protocol Buffers contracts
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
Модуль может содержать артефакты, полученные из контрактов Google Protocol
|
|
66
66
|
Buffers. Исходные контракты содержат следующее уведомление:
|
|
67
67
|
|
|
68
68
|
```text
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* - generated request/response DTO в method signatures;
|
|
7
7
|
* - transport-neutral call options без экспорта generated nice-grpc clients;
|
|
8
8
|
*
|
|
9
|
-
* Здесь не должно быть service definitions, gRPC client creation или bootstrap
|
|
9
|
+
* Здесь не должно быть service definitions, gRPC client creation или bootstrap
|
|
10
|
+
* wiring.
|
|
10
11
|
*/
|
|
11
12
|
import type { DeepPartial } from '../../generated/common';
|
|
12
13
|
import type { AssetRequest, AssetResponse, AssetsRequest, AssetsResponse, BondResponse, BondsResponse, Brand, CreateFavoriteGroupRequest, CreateFavoriteGroupResponse, CurrencyResponse, CurrenciesResponse, DeleteFavoriteGroupRequest, DeleteFavoriteGroupResponse, DfaResponse, DfasRequest, DfasResponse, EditFavoritesRequest, EditFavoritesResponse, EtfResponse, EtfsResponse, FilterOptionsRequest, FindInstrumentRequest, FindInstrumentResponse, FutureResponse, FuturesResponse, GetAccruedInterestsRequest, GetAccruedInterestsResponse, GetAssetFundamentalsRequest, GetAssetFundamentalsResponse, GetAssetReportsRequest, GetAssetReportsResponse, GetBondCouponsRequest, GetBondCouponsResponse, GetBondEventsRequest, GetBondEventsResponse, GetBrandRequest, GetBrandsRequest, GetBrandsResponse, GetConsensusForecastsRequest, GetConsensusForecastsResponse, GetCountriesRequest, GetCountriesResponse, GetDividendsRequest, GetDividendsResponse, GetFavoritesRequest, GetFavoritesResponse, GetFavoriteGroupsRequest, GetFavoriteGroupsResponse, GetForecastRequest, GetForecastResponse, GetFuturesMarginRequest, GetFuturesMarginResponse, GetInsiderDealsRequest, GetInsiderDealsResponse, IndicativesRequest, IndicativesResponse, InstrumentRequest, InstrumentResponse, InstrumentsRequest, NewsRequest, NewsResponse, OptionResponse, OptionsResponse, RiskRatesRequest, RiskRatesResponse, ShareResponse, SharesResponse, StructuredNoteResponse, StructuredNotesResponse, TradingSchedulesRequest, TradingSchedulesResponse } from '../../generated/instruments';
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* - generated request/response DTO в method signatures;
|
|
8
8
|
* - transport-neutral call options без экспорта generated nice-grpc clients;
|
|
9
9
|
*
|
|
10
|
-
* Здесь не должно быть service definitions, gRPC client creation или bootstrap
|
|
10
|
+
* Здесь не должно быть service definitions, gRPC client creation или bootstrap
|
|
11
|
+
* wiring.
|
|
11
12
|
*/
|
|
12
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -41,7 +41,16 @@ export declare class SdkError<Code extends SdkErrorCode = SdkErrorCode> extends
|
|
|
41
41
|
readonly path: string | undefined;
|
|
42
42
|
readonly details: string | undefined;
|
|
43
43
|
constructor(code: Code, message: string, options: SdkErrorOptions);
|
|
44
|
+
/**
|
|
45
|
+
* Обеспечивает instanceof SdkError для ошибок из разных копий пакета
|
|
46
|
+
* по общему бренду и проверяемой форме диагностических полей.
|
|
47
|
+
*/
|
|
44
48
|
static [Symbol.hasInstance](value: unknown): boolean;
|
|
45
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Распознаёт SDK-ошибки из разных копий пакета по общему бренду и форме
|
|
52
|
+
* диагностических полей.
|
|
53
|
+
* При указании code дополнительно проверяет и сужает конкретный код ошибки.
|
|
54
|
+
*/
|
|
46
55
|
export declare function isSdkError(error: unknown): error is SdkError;
|
|
47
56
|
export declare function isSdkError<Code extends SdkErrorCode>(error: unknown, code: Code): error is SdkError<Code>;
|
|
@@ -58,6 +58,10 @@ class SdkError extends Error {
|
|
|
58
58
|
value: true
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Обеспечивает instanceof SdkError для ошибок из разных копий пакета
|
|
63
|
+
* по общему бренду и проверяемой форме диагностических полей.
|
|
64
|
+
*/
|
|
61
65
|
static [Symbol.hasInstance](value) {
|
|
62
66
|
return hasSdkErrorContract(value);
|
|
63
67
|
}
|
|
@@ -67,6 +71,10 @@ function isSdkError(error, code) {
|
|
|
67
71
|
return hasSdkErrorContract(error)
|
|
68
72
|
&& (code === undefined || error.code === code);
|
|
69
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Общая проверка runtime-контракта для instanceof SdkError и публичного
|
|
76
|
+
* isSdkError.
|
|
77
|
+
*/
|
|
70
78
|
function hasSdkErrorContract(value) {
|
|
71
79
|
if (typeof value !== 'object' || value === null) {
|
|
72
80
|
return false;
|
|
@@ -79,6 +87,8 @@ function hasSdkErrorContract(value) {
|
|
|
79
87
|
&& sdkErrorCodes.has(candidate['code'])
|
|
80
88
|
&& typeof candidate['source'] === 'string'
|
|
81
89
|
&& sdkErrorSources.has(candidate['source'])
|
|
82
|
-
&& (candidate['path'] === undefined
|
|
83
|
-
|
|
90
|
+
&& (candidate['path'] === undefined
|
|
91
|
+
|| typeof candidate['path'] === 'string')
|
|
92
|
+
&& (candidate['details'] === undefined
|
|
93
|
+
|| typeof candidate['details'] === 'string');
|
|
84
94
|
}
|
|
@@ -17,9 +17,14 @@ export interface AccountsReportAccount {
|
|
|
17
17
|
status: string;
|
|
18
18
|
/** Уровень доступа к счету в формате generated enum JSON name. */
|
|
19
19
|
accessLevel: string;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Дата открытия счета в ISO-формате или пустая строка, если дата не пришла от
|
|
22
|
+
* provider-а.
|
|
23
|
+
*/
|
|
21
24
|
openedDate: string;
|
|
22
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Дата закрытия счета в ISO-формате или пустая строка для открытого счета.
|
|
27
|
+
*/
|
|
23
28
|
closedDate: string;
|
|
24
29
|
}
|
|
25
30
|
/** Отчет команды `users get-accounts` на application/output boundary. */
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
/** Одна запись НКД в отчете команды `instruments get-accrued-interests`. */
|
|
11
11
|
export interface AccruedInterestsReportItem {
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Дата расчета НКД в ISO-формате или пустая строка, если дата не пришла от
|
|
14
|
+
* provider-а.
|
|
15
|
+
*/
|
|
13
16
|
date: string;
|
|
14
17
|
/** Значение НКД в денежном строковом формате отчета. */
|
|
15
18
|
value: string;
|
|
@@ -18,5 +21,8 @@ export interface AccruedInterestsReportItem {
|
|
|
18
21
|
/** Номинал облигации в денежном строковом формате отчета. */
|
|
19
22
|
nominal: string;
|
|
20
23
|
}
|
|
21
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Отчет команды `instruments get-accrued-interests` на application/output
|
|
26
|
+
* boundary.
|
|
27
|
+
*/
|
|
22
28
|
export type AccruedInterestsReport = AccruedInterestsReportItem[];
|
|
@@ -27,5 +27,7 @@ export interface BondCouponsReportCoupon {
|
|
|
27
27
|
/** Длительность купонного периода в днях. */
|
|
28
28
|
couponPeriod: number;
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Отчет команды `instruments get-bond-coupons` на application/output boundary.
|
|
32
|
+
*/
|
|
31
33
|
export type BondCouponsReport = BondCouponsReportCoupon[];
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
10
|
import type { ReportMoney } from './money.report';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Одна облигация в отчете команд `instruments bond-by` и `instruments bonds`.
|
|
13
|
+
*/
|
|
12
14
|
export interface BondReportInstrument {
|
|
13
15
|
figi: string;
|
|
14
16
|
ticker: string;
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Один бренд в отчете команд `instruments get-brands` и `instruments
|
|
12
|
+
* get-brand-by`.
|
|
13
|
+
*/
|
|
11
14
|
export interface BrandsReportBrand {
|
|
12
15
|
uid: string;
|
|
13
16
|
name: string;
|
|
@@ -44,7 +44,9 @@ export interface BrokerReportItemReport {
|
|
|
44
44
|
brokerCommission: ReportMoney | null;
|
|
45
45
|
/** Комиссия биржи или `null`, если provider не вернул значение. */
|
|
46
46
|
exchangeCommission: ReportMoney | null;
|
|
47
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Клиринговая комиссия биржи или `null`, если provider не вернул значение.
|
|
49
|
+
*/
|
|
48
50
|
exchangeClearingCommission: ReportMoney | null;
|
|
49
51
|
/** Ставка РЕПО в строковом формате quotation. */
|
|
50
52
|
repoRate: string;
|
|
@@ -70,5 +72,7 @@ export interface BrokerReportEmptyReport {
|
|
|
70
72
|
/** Тип отчета для пустого provider response. */
|
|
71
73
|
type: 'empty';
|
|
72
74
|
}
|
|
73
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* Отчет команды `operations get-broker-report` на application/output boundary.
|
|
77
|
+
*/
|
|
74
78
|
export type BrokerReportReport = BrokerReportTaskReport | BrokerReportPageReport | BrokerReportEmptyReport;
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
/** Одна историческая свеча в отчете команды `marketdata get-candles`. */
|
|
11
11
|
export interface CandlesReportCandle {
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Время свечи в ISO-формате или пустая строка, если дата не пришла от
|
|
14
|
+
* provider-а.
|
|
15
|
+
*/
|
|
13
16
|
time: string;
|
|
14
17
|
/** Цена открытия в строковом формате quotation. */
|
|
15
18
|
open: string;
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Одна цена закрытия торговой сессии в отчете команды `marketdata
|
|
12
|
+
* get-close-prices`.
|
|
13
|
+
*/
|
|
11
14
|
export interface ClosePricesReportPrice {
|
|
12
15
|
figi: string;
|
|
13
16
|
instrumentUid: string;
|
|
@@ -16,5 +19,7 @@ export interface ClosePricesReportPrice {
|
|
|
16
19
|
/** Время цены закрытия в ISO-формате или пустая строка. */
|
|
17
20
|
time: string;
|
|
18
21
|
}
|
|
19
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Отчет команды `marketdata get-close-prices` на application/output boundary.
|
|
24
|
+
*/
|
|
20
25
|
export type ClosePricesReport = ClosePricesReportPrice[];
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
10
|
import type { ReportMoney } from './money.report';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Одна валюта в отчете команд `instruments currency-by` и `instruments
|
|
13
|
+
* currencies`.
|
|
14
|
+
*/
|
|
12
15
|
export interface CurrencyReportInstrument {
|
|
13
16
|
figi: string;
|
|
14
17
|
ticker: string;
|
|
@@ -47,5 +47,8 @@ export interface DividendsForeignIssuerEmptyReport {
|
|
|
47
47
|
/** Тип отчета для пустого provider response. */
|
|
48
48
|
type: 'empty';
|
|
49
49
|
}
|
|
50
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Отчет команды `operations get-dividends-foreign-issuer` на application/output
|
|
52
|
+
* boundary.
|
|
53
|
+
*/
|
|
51
54
|
export type DividendsForeignIssuerReport = DividendsForeignIssuerTaskReport | DividendsForeignIssuerPageReport | DividendsForeignIssuerEmptyReport;
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
import type { ReportMoney } from './money.report';
|
|
11
11
|
/** Одна дивидендная выплата в отчете команды `instruments get-dividends`. */
|
|
12
12
|
export interface DividendsReportItem {
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Размер дивиденда на одну ценную бумагу или `null`, если provider не вернул
|
|
15
|
+
* значение.
|
|
16
|
+
*/
|
|
14
17
|
dividendNet: ReportMoney | null;
|
|
15
18
|
/** Дата выплаты в ISO-формате или пустая строка. */
|
|
16
19
|
paymentDate: string;
|
|
@@ -30,5 +30,7 @@ export interface FindInstrumentReportInstrument {
|
|
|
30
30
|
/** Дата первой дневной свечи в ISO-формате или пустая строка. */
|
|
31
31
|
first1dayCandleDate: string;
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Отчет команды `instruments find-instrument` на application/output boundary.
|
|
35
|
+
*/
|
|
34
36
|
export type FindInstrumentReport = FindInstrumentReportInstrument[];
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Один фьючерс в отчете команд `instruments future-by` и `instruments futures`.
|
|
12
|
+
*/
|
|
11
13
|
export interface FutureReportInstrument {
|
|
12
14
|
figi: string;
|
|
13
15
|
ticker: string;
|
|
@@ -8,11 +8,18 @@
|
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
10
|
import type { ReportMoney } from './money.report';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Отчет команды `instruments get-futures-margin` на application/output
|
|
13
|
+
* boundary.
|
|
14
|
+
*/
|
|
12
15
|
export interface FuturesMarginReport {
|
|
13
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Начальная маржа на покупку или `null`, если provider не вернул значение.
|
|
18
|
+
*/
|
|
14
19
|
initialMarginOnBuy: ReportMoney | null;
|
|
15
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Начальная маржа на продажу или `null`, если provider не вернул значение.
|
|
22
|
+
*/
|
|
16
23
|
initialMarginOnSell: ReportMoney | null;
|
|
17
24
|
/** Минимальный шаг цены в строковом формате quotation. */
|
|
18
25
|
minPriceIncrement: string;
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Основная информация об инструменте в отчете команды `instruments
|
|
12
|
+
* get-instrument-by`.
|
|
13
|
+
*/
|
|
11
14
|
export interface InstrumentReportInstrument {
|
|
12
15
|
figi: string;
|
|
13
16
|
ticker: string;
|
|
@@ -43,5 +46,7 @@ export interface InstrumentReportInstrument {
|
|
|
43
46
|
/** Дата первой дневной свечи в ISO-формате или пустая строка. */
|
|
44
47
|
first1dayCandleDate: string;
|
|
45
48
|
}
|
|
46
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Отчет команды `instruments get-instrument-by` на application/output boundary.
|
|
51
|
+
*/
|
|
47
52
|
export type InstrumentReport = InstrumentReportInstrument | null;
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Одна последняя цена инструмента в отчете команды `marketdata
|
|
12
|
+
* get-last-prices`.
|
|
13
|
+
*/
|
|
11
14
|
export interface LastPricesReportPrice {
|
|
12
15
|
figi: string;
|
|
13
16
|
instrumentUid: string;
|
|
@@ -16,5 +19,7 @@ export interface LastPricesReportPrice {
|
|
|
16
19
|
/** Время цены в ISO-формате или пустая строка. */
|
|
17
20
|
time: string;
|
|
18
21
|
}
|
|
19
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Отчет команды `marketdata get-last-prices` на application/output boundary.
|
|
24
|
+
*/
|
|
20
25
|
export type LastPricesReport = LastPricesReportPrice[];
|
|
@@ -15,10 +15,12 @@ export interface LastTradesReportTrade {
|
|
|
15
15
|
direction: string;
|
|
16
16
|
/** Цена сделки в денежном строковом формате отчета. */
|
|
17
17
|
price: string;
|
|
18
|
-
/** Количество
|
|
18
|
+
/** Количество лотов в сделке. */
|
|
19
19
|
quantity: number;
|
|
20
20
|
/** Время сделки в ISO-формате или пустая строка. */
|
|
21
21
|
time: string;
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Отчет команды `marketdata get-last-trades` на application/output boundary.
|
|
25
|
+
*/
|
|
24
26
|
export type LastTradesReport = LastTradesReportTrade[];
|
|
@@ -8,9 +8,13 @@
|
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
10
|
import type { ReportMoney } from './money.report';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Отчет команды `users get-margin-attributes` на application/output boundary.
|
|
13
|
+
*/
|
|
12
14
|
export interface MarginAttributesReport {
|
|
13
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Ликвидная стоимость портфеля или `null`, если provider не вернул значение.
|
|
17
|
+
*/
|
|
14
18
|
liquidPortfolio: ReportMoney | null;
|
|
15
19
|
/** Начальная маржа или `null`, если provider не вернул значение. */
|
|
16
20
|
startingMargin: ReportMoney | null;
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
10
|
import type { ReportMoney } from './money.report';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Метаданные страницы в отчете команды `operations get-operations-by-cursor`.
|
|
13
|
+
*/
|
|
12
14
|
export interface OperationsByCursorReportPage {
|
|
13
15
|
hasNext: boolean;
|
|
14
16
|
/** Cursor следующей страницы или пустая строка. */
|
|
@@ -58,7 +60,10 @@ export interface OperationsByCursorReportItem {
|
|
|
58
60
|
assetUid: string;
|
|
59
61
|
tradesCount: number;
|
|
60
62
|
}
|
|
61
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Отчет команды `operations get-operations-by-cursor` на application/output
|
|
65
|
+
* boundary.
|
|
66
|
+
*/
|
|
62
67
|
export interface OperationsByCursorReport {
|
|
63
68
|
page: OperationsByCursorReportPage;
|
|
64
69
|
items: OperationsByCursorReportItem[];
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
10
|
import type { ReportMoney } from './money.report';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Один опцион в отчете команд `instruments option-by` и `instruments
|
|
13
|
+
* options-by`.
|
|
14
|
+
*/
|
|
12
15
|
export interface OptionReportInstrument {
|
|
13
16
|
uid: string;
|
|
14
17
|
positionUid: string;
|
|
@@ -12,7 +12,7 @@ export interface OrderBookReportLevel {
|
|
|
12
12
|
side: 'bid' | 'ask';
|
|
13
13
|
/** Цена уровня в денежном строковом формате отчета. */
|
|
14
14
|
price: string;
|
|
15
|
-
/** Количество
|
|
15
|
+
/** Количество лотов на уровне стакана. */
|
|
16
16
|
quantity: number;
|
|
17
17
|
}
|
|
18
18
|
/** Отчет команды `marketdata get-order-book` на application/output boundary. */
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
10
|
import type { ReportMoney } from './money.report';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Результат успешного вызова `orders post-order` или `orders replace-order`.
|
|
13
|
+
*/
|
|
12
14
|
export interface OrderMutationReport {
|
|
13
15
|
/** Биржевой идентификатор заявки, который вернул provider. */
|
|
14
16
|
orderId: string;
|
|
@@ -32,7 +34,9 @@ export interface OrderMutationReport {
|
|
|
32
34
|
figi: string;
|
|
33
35
|
/** Направление заявки в формате generated enum JSON name. */
|
|
34
36
|
direction: string;
|
|
35
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Начальная цена инструмента или `null`, если provider не вернул значение.
|
|
39
|
+
*/
|
|
36
40
|
initialSecurityPrice: ReportMoney | null;
|
|
37
41
|
/** Тип заявки в формате generated enum JSON name. */
|
|
38
42
|
orderType: string;
|
|
@@ -25,7 +25,10 @@ export interface PortfolioReportSummary {
|
|
|
25
25
|
totalAmountFutures: ReportMoney | null;
|
|
26
26
|
/** Стоимость опционов или `null`, если provider не вернул значение. */
|
|
27
27
|
totalAmountOptions: ReportMoney | null;
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Стоимость структурных продуктов или `null`, если provider не вернул
|
|
30
|
+
* значение.
|
|
31
|
+
*/
|
|
29
32
|
totalAmountSp: ReportMoney | null;
|
|
30
33
|
/** Ожидаемая доходность в строковом формате quotation. */
|
|
31
34
|
expectedYield: string;
|
|
@@ -30,5 +30,7 @@ export interface StopOrdersReportOrder {
|
|
|
30
30
|
/** Стоп-цена или `null`, если provider не вернул значение. */
|
|
31
31
|
stopPrice: ReportMoney | null;
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Отчет команды `stoporders get-stop-orders` на application/output boundary.
|
|
35
|
+
*/
|
|
34
36
|
export type StopOrdersReport = StopOrdersReportOrder[];
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Один день торговой площадки в отчете команды `instruments trading-schedules`.
|
|
12
|
+
*/
|
|
11
13
|
export interface TradingSchedulesReportDay {
|
|
12
14
|
exchange: string;
|
|
13
15
|
/** Дата торгового дня в ISO-формате или пустая строка. */
|
|
@@ -15,7 +17,9 @@ export interface TradingSchedulesReportDay {
|
|
|
15
17
|
isTradingDay: boolean;
|
|
16
18
|
/** Время начала основной торговой сессии в ISO-формате или пустая строка. */
|
|
17
19
|
startTime: string;
|
|
18
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Время окончания основной торговой сессии в ISO-формате или пустая строка.
|
|
22
|
+
*/
|
|
19
23
|
endTime: string;
|
|
20
24
|
/** Время начала аукциона открытия в ISO-формате или пустая строка. */
|
|
21
25
|
openingAuctionStartTime: string;
|
|
@@ -25,7 +29,9 @@ export interface TradingSchedulesReportDay {
|
|
|
25
29
|
closingAuctionStartTime: string;
|
|
26
30
|
/** Время окончания аукциона закрытия в ISO-формате или пустая строка. */
|
|
27
31
|
closingAuctionEndTime: string;
|
|
28
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Время начала вечернего аукциона открытия в ISO-формате или пустая строка.
|
|
34
|
+
*/
|
|
29
35
|
eveningOpeningAuctionStartTime: string;
|
|
30
36
|
/** Время начала вечерней сессии в ISO-формате или пустая строка. */
|
|
31
37
|
eveningStartTime: string;
|
|
@@ -40,5 +46,7 @@ export interface TradingSchedulesReportDay {
|
|
|
40
46
|
/** Время окончания премаркета в ISO-формате или пустая строка. */
|
|
41
47
|
premarketEndTime: string;
|
|
42
48
|
}
|
|
43
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Отчет команды `instruments trading-schedules` на application/output boundary.
|
|
51
|
+
*/
|
|
44
52
|
export type TradingSchedulesReport = TradingSchedulesReportDay[];
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Отчет команды `marketdata get-trading-status` на application/output boundary.
|
|
12
|
+
*/
|
|
11
13
|
export interface TradingStatusReport {
|
|
12
14
|
figi: string;
|
|
13
15
|
instrumentUid: string;
|
|
@@ -8,5 +8,8 @@
|
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
10
|
import type { TradingStatusReport } from './trading-status.report';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Отчет команды `marketdata get-trading-statuses` на application/output
|
|
13
|
+
* boundary.
|
|
14
|
+
*/
|
|
12
15
|
export type TradingStatusesReport = TradingStatusReport[];
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
export interface UserTariffUnaryLimitReport {
|
|
12
12
|
/** Лимит запросов в минуту. */
|
|
13
13
|
limitPerMinute: number;
|
|
14
|
+
/** Лимит запросов в секунду, если он передан provider-ом. */
|
|
15
|
+
limitPerSecond?: number;
|
|
14
16
|
methods: string[];
|
|
15
17
|
}
|
|
16
18
|
/** Один лимит stream-соединений в отчете команды `users get-user-tariff`. */
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
9
|
*/
|
|
10
10
|
import type { ReportMoney } from './money.report';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Отчет команды `operations get-withdraw-limits` на application/output
|
|
13
|
+
* boundary.
|
|
14
|
+
*/
|
|
12
15
|
export interface WithdrawLimitsReport {
|
|
13
16
|
money: ReportMoney[];
|
|
14
17
|
blocked: ReportMoney[];
|
|
@@ -21,7 +21,9 @@ export interface TInvestUnaryLimit {
|
|
|
21
21
|
export type TInvestUnaryLimits = Record<string, TInvestUnaryLimit>;
|
|
22
22
|
/** Разрешённая SDK квота и её непрозрачный общий bucket. */
|
|
23
23
|
export interface TInvestUnaryQuota extends TInvestUnaryLimit {
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Идентификатор общей квоты; Consumer должен сравнивать, но не разбирать его.
|
|
26
|
+
*/
|
|
25
27
|
readonly bucket: string;
|
|
26
28
|
}
|
|
27
29
|
/** Контекст одного ожидания перед unary transport call. */
|
|
@@ -48,6 +50,7 @@ export interface TInvestInMemoryUnaryLimiterOptions {
|
|
|
48
50
|
/**
|
|
49
51
|
* Создаёт необязательный process-local limiter с равномерной выдачей permits.
|
|
50
52
|
* Один объект можно передать нескольким SDK instances для общего состояния.
|
|
51
|
-
* `quotaShare` статически резервирует часть исходной квоты для других
|
|
53
|
+
* `quotaShare` статически резервирует часть исходной квоты для других
|
|
54
|
+
* владельцев.
|
|
52
55
|
*/
|
|
53
56
|
export declare function createInMemoryUnaryLimiter(options?: TInvestInMemoryUnaryLimiterOptions): TInvestUnaryLimiter;
|