@woodger/t-invest-node-sdk 0.5.1
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 +611 -0
- package/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES.md +307 -0
- package/certificates/russian-trusted-root-ca.pem +33 -0
- package/dist/application/dto/t-invest-options.d.ts +30 -0
- package/dist/application/dto/t-invest-options.js +11 -0
- package/dist/application/dto/t-invest-services.d.ts +168 -0
- package/dist/application/dto/t-invest-services.js +12 -0
- package/dist/application/errors/sdk-error.d.ts +47 -0
- package/dist/application/errors/sdk-error.js +84 -0
- package/dist/application/reports/accounts.report.d.ts +26 -0
- package/dist/application/reports/accounts.report.js +11 -0
- package/dist/application/reports/accrued-interests.report.d.ts +22 -0
- package/dist/application/reports/accrued-interests.report.js +11 -0
- package/dist/application/reports/asset.report.d.ts +72 -0
- package/dist/application/reports/asset.report.js +11 -0
- package/dist/application/reports/bond-coupons.report.d.ts +31 -0
- package/dist/application/reports/bond-coupons.report.js +11 -0
- package/dist/application/reports/bond.report.d.ts +82 -0
- package/dist/application/reports/bond.report.js +11 -0
- package/dist/application/reports/brands.report.d.ts +24 -0
- package/dist/application/reports/brands.report.js +11 -0
- package/dist/application/reports/broker-report.report.d.ts +74 -0
- package/dist/application/reports/broker-report.report.js +11 -0
- package/dist/application/reports/cancel-order.report.d.ts +14 -0
- package/dist/application/reports/cancel-order.report.js +11 -0
- package/dist/application/reports/cancel-stop-order.report.d.ts +14 -0
- package/dist/application/reports/cancel-stop-order.report.js +11 -0
- package/dist/application/reports/candles.report.d.ts +26 -0
- package/dist/application/reports/candles.report.js +11 -0
- package/dist/application/reports/close-prices.report.d.ts +20 -0
- package/dist/application/reports/close-prices.report.js +11 -0
- package/dist/application/reports/countries.report.d.ts +20 -0
- package/dist/application/reports/countries.report.js +11 -0
- package/dist/application/reports/currency.report.d.ts +58 -0
- package/dist/application/reports/currency.report.js +11 -0
- package/dist/application/reports/dividends-foreign-issuer.report.d.ts +51 -0
- package/dist/application/reports/dividends-foreign-issuer.report.js +11 -0
- package/dist/application/reports/dividends.report.d.ts +33 -0
- package/dist/application/reports/dividends.report.js +11 -0
- package/dist/application/reports/etf.report.d.ts +62 -0
- package/dist/application/reports/etf.report.js +11 -0
- package/dist/application/reports/favorites.report.d.ts +24 -0
- package/dist/application/reports/favorites.report.js +11 -0
- package/dist/application/reports/find-instrument.report.d.ts +34 -0
- package/dist/application/reports/find-instrument.report.js +11 -0
- package/dist/application/reports/future.report.d.ts +66 -0
- package/dist/application/reports/future.report.js +11 -0
- package/dist/application/reports/futures-margin.report.d.ts +21 -0
- package/dist/application/reports/futures-margin.report.js +11 -0
- package/dist/application/reports/index.d.ts +50 -0
- package/dist/application/reports/index.js +66 -0
- package/dist/application/reports/instrument.report.d.ts +47 -0
- package/dist/application/reports/instrument.report.js +11 -0
- package/dist/application/reports/last-prices.report.d.ts +20 -0
- package/dist/application/reports/last-prices.report.js +11 -0
- package/dist/application/reports/last-trades.report.d.ts +24 -0
- package/dist/application/reports/last-trades.report.js +11 -0
- package/dist/application/reports/margin-attributes.report.d.ts +25 -0
- package/dist/application/reports/margin-attributes.report.js +11 -0
- package/dist/application/reports/money.report.d.ts +15 -0
- package/dist/application/reports/money.report.js +11 -0
- package/dist/application/reports/operations-by-cursor.report.d.ts +65 -0
- package/dist/application/reports/operations-by-cursor.report.js +11 -0
- package/dist/application/reports/operations.report.d.ts +40 -0
- package/dist/application/reports/operations.report.js +11 -0
- package/dist/application/reports/option.report.d.ts +76 -0
- package/dist/application/reports/option.report.js +11 -0
- package/dist/application/reports/order-book.report.d.ts +38 -0
- package/dist/application/reports/order-book.report.js +11 -0
- package/dist/application/reports/order-mutation.report.d.ts +45 -0
- package/dist/application/reports/order-mutation.report.js +11 -0
- package/dist/application/reports/order-state.report.d.ts +12 -0
- package/dist/application/reports/order-state.report.js +11 -0
- package/dist/application/reports/orders.report.d.ts +53 -0
- package/dist/application/reports/orders.report.js +11 -0
- package/dist/application/reports/portfolio.report.d.ts +54 -0
- package/dist/application/reports/portfolio.report.js +11 -0
- package/dist/application/reports/positions.report.d.ts +45 -0
- package/dist/application/reports/positions.report.js +11 -0
- package/dist/application/reports/post-stop-order.report.d.ts +14 -0
- package/dist/application/reports/post-stop-order.report.js +11 -0
- package/dist/application/reports/sandbox-account.report.d.ts +20 -0
- package/dist/application/reports/sandbox-account.report.js +11 -0
- package/dist/application/reports/share.report.d.ts +66 -0
- package/dist/application/reports/share.report.js +11 -0
- package/dist/application/reports/stop-orders.report.d.ts +34 -0
- package/dist/application/reports/stop-orders.report.js +11 -0
- package/dist/application/reports/trading-schedules.report.d.ts +44 -0
- package/dist/application/reports/trading-schedules.report.js +11 -0
- package/dist/application/reports/trading-status.report.d.ts +19 -0
- package/dist/application/reports/trading-status.report.js +11 -0
- package/dist/application/reports/trading-statuses.report.d.ts +12 -0
- package/dist/application/reports/trading-statuses.report.js +11 -0
- package/dist/application/reports/user-info.report.d.ts +16 -0
- package/dist/application/reports/user-info.report.js +11 -0
- package/dist/application/reports/user-tariff.report.d.ts +28 -0
- package/dist/application/reports/user-tariff.report.js +11 -0
- package/dist/application/reports/withdraw-limits.report.d.ts +16 -0
- package/dist/application/reports/withdraw-limits.report.js +11 -0
- package/dist/application/services/unary-limiter.d.ts +44 -0
- package/dist/application/services/unary-limiter.js +138 -0
- package/dist/bootstrap/args/command-options.d.ts +43 -0
- package/dist/bootstrap/args/command-options.js +125 -0
- package/dist/bootstrap/args/index.d.ts +1 -0
- package/dist/bootstrap/args/index.js +5 -0
- package/dist/bootstrap/args/instrument-id-options.d.ts +24 -0
- package/dist/bootstrap/args/instrument-id-options.js +47 -0
- package/dist/bootstrap/args/instruments-args.d.ts +49 -0
- package/dist/bootstrap/args/instruments-args.js +89 -0
- package/dist/bootstrap/args/sdk-options.d.ts +19 -0
- package/dist/bootstrap/args/sdk-options.js +40 -0
- package/dist/bootstrap/args/side-effect-args.d.ts +20 -0
- package/dist/bootstrap/args/side-effect-args.js +50 -0
- package/dist/bootstrap/cli/contract.d.ts +16 -0
- package/dist/bootstrap/cli/contract.js +15 -0
- package/dist/bootstrap/cli/domains.d.ts +260 -0
- package/dist/bootstrap/cli/domains.js +631 -0
- package/dist/bootstrap/cli/error.d.ts +15 -0
- package/dist/bootstrap/cli/error.js +40 -0
- package/dist/bootstrap/cli/help.d.ts +751 -0
- package/dist/bootstrap/cli/help.js +1789 -0
- package/dist/bootstrap/cli/registry.d.ts +2102 -0
- package/dist/bootstrap/cli/registry.js +186 -0
- package/dist/bootstrap/cli/runner.d.ts +10 -0
- package/dist/bootstrap/cli/runner.js +151 -0
- package/dist/bootstrap/cli/version.d.ts +17 -0
- package/dist/bootstrap/cli/version.js +26 -0
- package/dist/bootstrap/commands/accounts/cli.d.ts +63 -0
- package/dist/bootstrap/commands/accounts/cli.js +50 -0
- package/dist/bootstrap/commands/accounts/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/accounts/reporter.js +50 -0
- package/dist/bootstrap/commands/accrued-interests/cli.d.ts +129 -0
- package/dist/bootstrap/commands/accrued-interests/cli.js +80 -0
- package/dist/bootstrap/commands/accrued-interests/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/accrued-interests/reporter.js +43 -0
- package/dist/bootstrap/commands/asset/cli.d.ts +99 -0
- package/dist/bootstrap/commands/asset/cli.js +64 -0
- package/dist/bootstrap/commands/asset/reporter.d.ts +16 -0
- package/dist/bootstrap/commands/asset/reporter.js +122 -0
- package/dist/bootstrap/commands/assets/cli.d.ts +102 -0
- package/dist/bootstrap/commands/assets/cli.js +78 -0
- package/dist/bootstrap/commands/assets/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/assets/reporter.js +27 -0
- package/dist/bootstrap/commands/bond/cli.d.ts +83 -0
- package/dist/bootstrap/commands/bond/cli.js +53 -0
- package/dist/bootstrap/commands/bond/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/bond/reporter.js +123 -0
- package/dist/bootstrap/commands/bond-coupons/cli.d.ts +129 -0
- package/dist/bootstrap/commands/bond-coupons/cli.js +80 -0
- package/dist/bootstrap/commands/bond-coupons/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/bond-coupons/reporter.js +64 -0
- package/dist/bootstrap/commands/bonds/cli.d.ts +73 -0
- package/dist/bootstrap/commands/bonds/cli.js +53 -0
- package/dist/bootstrap/commands/bonds/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/bonds/reporter.js +27 -0
- package/dist/bootstrap/commands/brand/cli.d.ts +99 -0
- package/dist/bootstrap/commands/brand/cli.js +64 -0
- package/dist/bootstrap/commands/brand/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/brand/reporter.js +37 -0
- package/dist/bootstrap/commands/brands/cli.d.ts +63 -0
- package/dist/bootstrap/commands/brands/cli.js +50 -0
- package/dist/bootstrap/commands/brands/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/brands/reporter.js +49 -0
- package/dist/bootstrap/commands/broker-report/cli.d.ts +132 -0
- package/dist/bootstrap/commands/broker-report/cli.js +105 -0
- package/dist/bootstrap/commands/broker-report/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/broker-report/reporter.js +123 -0
- package/dist/bootstrap/commands/cancel-order/cli.d.ts +120 -0
- package/dist/bootstrap/commands/cancel-order/cli.js +71 -0
- package/dist/bootstrap/commands/cancel-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/cancel-order/reporter.js +32 -0
- package/dist/bootstrap/commands/cancel-stop-order/cli.d.ts +120 -0
- package/dist/bootstrap/commands/cancel-stop-order/cli.js +71 -0
- package/dist/bootstrap/commands/cancel-stop-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/cancel-stop-order/reporter.js +32 -0
- package/dist/bootstrap/commands/candles/cli.d.ts +138 -0
- package/dist/bootstrap/commands/candles/cli.js +104 -0
- package/dist/bootstrap/commands/candles/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/candles/reporter.js +49 -0
- package/dist/bootstrap/commands/close-prices/cli.d.ts +99 -0
- package/dist/bootstrap/commands/close-prices/cli.js +66 -0
- package/dist/bootstrap/commands/close-prices/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/close-prices/reporter.js +43 -0
- package/dist/bootstrap/commands/compile-proto/cli.d.ts +12 -0
- package/dist/bootstrap/commands/compile-proto/cli.js +22 -0
- package/dist/bootstrap/commands/countries/cli.d.ts +63 -0
- package/dist/bootstrap/commands/countries/cli.js +50 -0
- package/dist/bootstrap/commands/countries/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/countries/reporter.js +42 -0
- package/dist/bootstrap/commands/currencies/cli.d.ts +73 -0
- package/dist/bootstrap/commands/currencies/cli.js +53 -0
- package/dist/bootstrap/commands/currencies/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/currencies/reporter.js +27 -0
- package/dist/bootstrap/commands/currency/cli.d.ts +83 -0
- package/dist/bootstrap/commands/currency/cli.js +53 -0
- package/dist/bootstrap/commands/currency/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/currency/reporter.js +104 -0
- package/dist/bootstrap/commands/dividends/cli.d.ts +129 -0
- package/dist/bootstrap/commands/dividends/cli.js +80 -0
- package/dist/bootstrap/commands/dividends/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/dividends/reporter.js +62 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.d.ts +132 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.js +105 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.js +108 -0
- package/dist/bootstrap/commands/edit-favorites/cli.d.ts +129 -0
- package/dist/bootstrap/commands/edit-favorites/cli.js +78 -0
- package/dist/bootstrap/commands/edit-favorites/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/edit-favorites/reporter.js +23 -0
- package/dist/bootstrap/commands/etf/cli.d.ts +83 -0
- package/dist/bootstrap/commands/etf/cli.js +53 -0
- package/dist/bootstrap/commands/etf/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/etf/reporter.js +109 -0
- package/dist/bootstrap/commands/etfs/cli.d.ts +73 -0
- package/dist/bootstrap/commands/etfs/cli.js +53 -0
- package/dist/bootstrap/commands/etfs/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/etfs/reporter.js +27 -0
- package/dist/bootstrap/commands/favorites/cli.d.ts +63 -0
- package/dist/bootstrap/commands/favorites/cli.js +50 -0
- package/dist/bootstrap/commands/favorites/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/favorites/reporter.js +60 -0
- package/dist/bootstrap/commands/find-instrument/cli.d.ts +126 -0
- package/dist/bootstrap/commands/find-instrument/cli.js +88 -0
- package/dist/bootstrap/commands/find-instrument/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/find-instrument/reporter.js +71 -0
- package/dist/bootstrap/commands/future/cli.d.ts +83 -0
- package/dist/bootstrap/commands/future/cli.js +53 -0
- package/dist/bootstrap/commands/future/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/future/reporter.js +116 -0
- package/dist/bootstrap/commands/futures/cli.d.ts +73 -0
- package/dist/bootstrap/commands/futures/cli.js +53 -0
- package/dist/bootstrap/commands/futures/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/futures/reporter.js +27 -0
- package/dist/bootstrap/commands/futures-margin/cli.d.ts +105 -0
- package/dist/bootstrap/commands/futures-margin/cli.js +64 -0
- package/dist/bootstrap/commands/futures-margin/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/futures-margin/reporter.js +40 -0
- package/dist/bootstrap/commands/help/cli.d.ts +13 -0
- package/dist/bootstrap/commands/help/cli.js +26 -0
- package/dist/bootstrap/commands/instrument/cli.d.ts +83 -0
- package/dist/bootstrap/commands/instrument/cli.js +53 -0
- package/dist/bootstrap/commands/instrument/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/instrument/reporter.js +91 -0
- package/dist/bootstrap/commands/last-prices/cli.d.ts +99 -0
- package/dist/bootstrap/commands/last-prices/cli.js +66 -0
- package/dist/bootstrap/commands/last-prices/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/last-prices/reporter.js +43 -0
- package/dist/bootstrap/commands/last-trades/cli.d.ts +123 -0
- package/dist/bootstrap/commands/last-trades/cli.js +82 -0
- package/dist/bootstrap/commands/last-trades/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/last-trades/reporter.js +48 -0
- package/dist/bootstrap/commands/margin-attributes/cli.d.ts +99 -0
- package/dist/bootstrap/commands/margin-attributes/cli.js +64 -0
- package/dist/bootstrap/commands/margin-attributes/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/margin-attributes/reporter.js +51 -0
- package/dist/bootstrap/commands/operations/cli.d.ts +156 -0
- package/dist/bootstrap/commands/operations/cli.js +99 -0
- package/dist/bootstrap/commands/operations/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/operations/reporter.js +78 -0
- package/dist/bootstrap/commands/operations-by-cursor/cli.d.ts +204 -0
- package/dist/bootstrap/commands/operations-by-cursor/cli.js +164 -0
- package/dist/bootstrap/commands/operations-by-cursor/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/operations-by-cursor/reporter.js +107 -0
- package/dist/bootstrap/commands/option/cli.d.ts +83 -0
- package/dist/bootstrap/commands/option/cli.js +53 -0
- package/dist/bootstrap/commands/option/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/option/reporter.js +125 -0
- package/dist/bootstrap/commands/options-by/cli.d.ts +108 -0
- package/dist/bootstrap/commands/options-by/cli.js +68 -0
- package/dist/bootstrap/commands/options-by/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/options-by/reporter.js +27 -0
- package/dist/bootstrap/commands/order-book/cli.d.ts +120 -0
- package/dist/bootstrap/commands/order-book/cli.js +73 -0
- package/dist/bootstrap/commands/order-book/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/order-book/reporter.js +60 -0
- package/dist/bootstrap/commands/order-state/cli.d.ts +111 -0
- package/dist/bootstrap/commands/order-state/cli.js +71 -0
- package/dist/bootstrap/commands/order-state/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/order-state/reporter.js +57 -0
- package/dist/bootstrap/commands/orders/cli.d.ts +99 -0
- package/dist/bootstrap/commands/orders/cli.js +64 -0
- package/dist/bootstrap/commands/orders/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/orders/reporter.js +88 -0
- package/dist/bootstrap/commands/portfolio/cli.d.ts +114 -0
- package/dist/bootstrap/commands/portfolio/cli.js +77 -0
- package/dist/bootstrap/commands/portfolio/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/portfolio/reporter.js +95 -0
- package/dist/bootstrap/commands/positions/cli.d.ts +99 -0
- package/dist/bootstrap/commands/positions/cli.js +64 -0
- package/dist/bootstrap/commands/positions/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/positions/reporter.js +116 -0
- package/dist/bootstrap/commands/post-order/cli.d.ts +192 -0
- package/dist/bootstrap/commands/post-order/cli.js +113 -0
- package/dist/bootstrap/commands/post-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/post-order/reporter.js +77 -0
- package/dist/bootstrap/commands/post-stop-order/cli.d.ts +216 -0
- package/dist/bootstrap/commands/post-stop-order/cli.js +145 -0
- package/dist/bootstrap/commands/post-stop-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/post-stop-order/reporter.js +31 -0
- package/dist/bootstrap/commands/replace-order/cli.d.ts +180 -0
- package/dist/bootstrap/commands/replace-order/cli.js +99 -0
- package/dist/bootstrap/commands/replace-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/replace-order/reporter.js +17 -0
- package/dist/bootstrap/commands/sandbox-accounts/cli.d.ts +64 -0
- package/dist/bootstrap/commands/sandbox-accounts/cli.js +54 -0
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.d.ts +120 -0
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.js +69 -0
- package/dist/bootstrap/commands/sandbox-close-account/cli.d.ts +108 -0
- package/dist/bootstrap/commands/sandbox-close-account/cli.js +66 -0
- package/dist/bootstrap/commands/sandbox-close-account/reporter.d.ts +12 -0
- package/dist/bootstrap/commands/sandbox-close-account/reporter.js +32 -0
- package/dist/bootstrap/commands/sandbox-open-account/cli.d.ts +70 -0
- package/dist/bootstrap/commands/sandbox-open-account/cli.js +57 -0
- package/dist/bootstrap/commands/sandbox-open-account/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/sandbox-open-account/reporter.js +31 -0
- package/dist/bootstrap/commands/sandbox-operations/cli.d.ts +156 -0
- package/dist/bootstrap/commands/sandbox-operations/cli.js +78 -0
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.d.ts +204 -0
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.js +98 -0
- package/dist/bootstrap/commands/sandbox-order-state/cli.d.ts +111 -0
- package/dist/bootstrap/commands/sandbox-order-state/cli.js +67 -0
- package/dist/bootstrap/commands/sandbox-orders/cli.d.ts +99 -0
- package/dist/bootstrap/commands/sandbox-orders/cli.js +63 -0
- package/dist/bootstrap/commands/sandbox-pay-in/cli.d.ts +135 -0
- package/dist/bootstrap/commands/sandbox-pay-in/cli.js +86 -0
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.js +32 -0
- package/dist/bootstrap/commands/sandbox-portfolio/cli.d.ts +114 -0
- package/dist/bootstrap/commands/sandbox-portfolio/cli.js +68 -0
- package/dist/bootstrap/commands/sandbox-positions/cli.d.ts +99 -0
- package/dist/bootstrap/commands/sandbox-positions/cli.js +63 -0
- package/dist/bootstrap/commands/sandbox-post-order/cli.d.ts +192 -0
- package/dist/bootstrap/commands/sandbox-post-order/cli.js +90 -0
- package/dist/bootstrap/commands/sandbox-replace-order/cli.d.ts +180 -0
- package/dist/bootstrap/commands/sandbox-replace-order/cli.js +86 -0
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.d.ts +99 -0
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.js +63 -0
- package/dist/bootstrap/commands/share/cli.d.ts +83 -0
- package/dist/bootstrap/commands/share/cli.js +53 -0
- package/dist/bootstrap/commands/share/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/share/reporter.js +111 -0
- package/dist/bootstrap/commands/shares/cli.d.ts +73 -0
- package/dist/bootstrap/commands/shares/cli.js +53 -0
- package/dist/bootstrap/commands/shares/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/shares/reporter.js +27 -0
- package/dist/bootstrap/commands/stop-orders/cli.d.ts +99 -0
- package/dist/bootstrap/commands/stop-orders/cli.js +68 -0
- package/dist/bootstrap/commands/stop-orders/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/stop-orders/reporter.js +69 -0
- package/dist/bootstrap/commands/stream-run/cli.d.ts +138 -0
- package/dist/bootstrap/commands/stream-run/cli.js +229 -0
- package/dist/bootstrap/commands/stream-run/config.d.ts +56 -0
- package/dist/bootstrap/commands/stream-run/config.js +468 -0
- package/dist/bootstrap/commands/stream-run/reporter.d.ts +30 -0
- package/dist/bootstrap/commands/stream-run/reporter.js +76 -0
- package/dist/bootstrap/commands/trading-schedules/cli.d.ts +120 -0
- package/dist/bootstrap/commands/trading-schedules/cli.js +79 -0
- package/dist/bootstrap/commands/trading-schedules/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/trading-schedules/reporter.js +58 -0
- package/dist/bootstrap/commands/trading-status/cli.d.ts +99 -0
- package/dist/bootstrap/commands/trading-status/cli.js +65 -0
- package/dist/bootstrap/commands/trading-status/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/trading-status/reporter.js +51 -0
- package/dist/bootstrap/commands/trading-statuses/cli.d.ts +99 -0
- package/dist/bootstrap/commands/trading-statuses/cli.js +64 -0
- package/dist/bootstrap/commands/trading-statuses/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/trading-statuses/reporter.js +44 -0
- package/dist/bootstrap/commands/user-info/cli.d.ts +63 -0
- package/dist/bootstrap/commands/user-info/cli.js +50 -0
- package/dist/bootstrap/commands/user-info/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/user-info/reporter.js +39 -0
- package/dist/bootstrap/commands/user-tariff/cli.d.ts +63 -0
- package/dist/bootstrap/commands/user-tariff/cli.js +50 -0
- package/dist/bootstrap/commands/user-tariff/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/user-tariff/reporter.js +50 -0
- package/dist/bootstrap/commands/version/cli.d.ts +13 -0
- package/dist/bootstrap/commands/version/cli.js +22 -0
- package/dist/bootstrap/commands/withdraw-limits/cli.d.ts +99 -0
- package/dist/bootstrap/commands/withdraw-limits/cli.js +64 -0
- package/dist/bootstrap/commands/withdraw-limits/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/withdraw-limits/reporter.js +59 -0
- package/dist/bootstrap/generated-exports.d.ts +29 -0
- package/dist/bootstrap/generated-exports.js +590 -0
- package/dist/bootstrap/index.d.ts +6 -0
- package/dist/bootstrap/index.js +22 -0
- package/dist/bootstrap/proto/compile-proto.d.ts +18 -0
- package/dist/bootstrap/proto/compile-proto.js +122 -0
- package/dist/bootstrap/sdk-config.d.ts +21 -0
- package/dist/bootstrap/sdk-config.js +152 -0
- package/dist/bootstrap/t-invest-node-sdk.d.ts +42 -0
- package/dist/bootstrap/t-invest-node-sdk.js +115 -0
- package/dist/bootstrap/unary-limit-config.d.ts +38 -0
- package/dist/bootstrap/unary-limit-config.js +130 -0
- package/dist/config.d.ts +160 -0
- package/dist/config.js +173 -0
- package/dist/config.types.d.ts +89 -0
- package/dist/config.types.js +13 -0
- package/dist/generated/common.d.ts +214 -0
- package/dist/generated/common.js +1336 -0
- package/dist/generated/google/api/field_behavior.d.ts +61 -0
- package/dist/generated/google/api/field_behavior.js +126 -0
- package/dist/generated/google/protobuf/descriptor.d.ts +1330 -0
- package/dist/generated/google/protobuf/descriptor.js +5984 -0
- package/dist/generated/google/protobuf/timestamp.d.ts +122 -0
- package/dist/generated/google/protobuf/timestamp.js +102 -0
- package/dist/generated/instruments.d.ts +3230 -0
- package/dist/generated/instruments.js +24246 -0
- package/dist/generated/marketdata.d.ts +1268 -0
- package/dist/generated/marketdata.js +8922 -0
- package/dist/generated/operations.d.ts +1165 -0
- package/dist/generated/operations.js +8625 -0
- package/dist/generated/orders.d.ts +806 -0
- package/dist/generated/orders.js +5639 -0
- package/dist/generated/sandbox.d.ts +356 -0
- package/dist/generated/sandbox.js +603 -0
- package/dist/generated/signals.d.ts +196 -0
- package/dist/generated/signals.js +1261 -0
- package/dist/generated/stoporders.d.ts +328 -0
- package/dist/generated/stoporders.js +1990 -0
- package/dist/generated/users.d.ts +453 -0
- package/dist/generated/users.js +2334 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +30 -0
- package/dist/infrastructure/interceptor/index.d.ts +1 -0
- package/dist/infrastructure/interceptor/index.js +17 -0
- package/dist/infrastructure/interceptor/warning-interceptor.d.ts +23 -0
- package/dist/infrastructure/interceptor/warning-interceptor.js +38 -0
- package/dist/infrastructure/report-values.d.ts +19 -0
- package/dist/infrastructure/report-values.js +50 -0
- package/dist/infrastructure/transport/grpc/index.d.ts +5 -0
- package/dist/infrastructure/transport/grpc/index.js +13 -0
- package/dist/infrastructure/transport/grpc/sdk-channel.d.ts +12 -0
- package/dist/infrastructure/transport/grpc/sdk-channel.js +23 -0
- package/dist/infrastructure/transport/grpc/sdk-client.d.ts +16 -0
- package/dist/infrastructure/transport/grpc/sdk-client.js +33 -0
- package/dist/infrastructure/transport/grpc/sdk-metadata.d.ts +12 -0
- package/dist/infrastructure/transport/grpc/sdk-metadata.js +22 -0
- package/dist/infrastructure/transport/grpc/sdk-middleware.d.ts +22 -0
- package/dist/infrastructure/transport/grpc/sdk-middleware.js +312 -0
- package/dist/infrastructure/transport/grpc/tls-root-certificates.d.ts +10 -0
- package/dist/infrastructure/transport/grpc/tls-root-certificates.js +20 -0
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.d.ts +22 -0
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.js +60 -0
- package/dist/infrastructure/transport/grpc/unary-limits.d.ts +1 -0
- package/dist/infrastructure/transport/grpc/unary-limits.js +7 -0
- package/docs/architecture.md +378 -0
- package/docs/bundled-ca.md +157 -0
- package/docs/clean-architecture/adapters.md +173 -0
- package/docs/clean-architecture/api-commands.md +487 -0
- package/docs/clean-architecture/application.md +137 -0
- package/docs/clean-architecture/cli-output-boundaries.md +256 -0
- package/docs/clean-architecture/dto.md +153 -0
- package/docs/clean-architecture/index.md +89 -0
- package/docs/cli-stream-configuration.md +305 -0
- package/docs/cli-stream-reference.md +195 -0
- package/docs/guides/custom-unary-limiter.md +552 -0
- package/docs/guides/errors-and-lifecycle.md +196 -0
- package/docs/guides/getting-started.md +100 -0
- package/docs/guides/index.md +43 -0
- package/docs/guides/streams-and-cancellation.md +177 -0
- package/docs/guides/testing-with-service-definitions.md +110 -0
- package/docs/guides/unary-calls.md +216 -0
- package/docs/index.md +86 -0
- package/docs/limits-policy.md +201 -0
- package/docs/roadmap.md +204 -0
- package/docs/tls-policy.md +62 -0
- package/package.json +62 -0
- package/readme.md +472 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль задает transport-neutral публичный контракт ошибок SDK.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - стабильные machine-readable коды;
|
|
7
|
+
* - источник ошибки и безопасные диагностические поля;
|
|
8
|
+
* - cross-copy runtime narrowing.
|
|
9
|
+
*
|
|
10
|
+
* Здесь не должно быть imports из transport libraries или retry policy.
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.SdkError = exports.SdkErrorCode = void 0;
|
|
14
|
+
exports.isSdkError = isSdkError;
|
|
15
|
+
var SdkErrorCode;
|
|
16
|
+
(function (SdkErrorCode) {
|
|
17
|
+
SdkErrorCode["Cancelled"] = "CANCELLED";
|
|
18
|
+
SdkErrorCode["Unknown"] = "UNKNOWN";
|
|
19
|
+
SdkErrorCode["InvalidArgument"] = "INVALID_ARGUMENT";
|
|
20
|
+
SdkErrorCode["DeadlineExceeded"] = "DEADLINE_EXCEEDED";
|
|
21
|
+
SdkErrorCode["NotFound"] = "NOT_FOUND";
|
|
22
|
+
SdkErrorCode["AlreadyExists"] = "ALREADY_EXISTS";
|
|
23
|
+
SdkErrorCode["PermissionDenied"] = "PERMISSION_DENIED";
|
|
24
|
+
SdkErrorCode["ResourceExhausted"] = "RESOURCE_EXHAUSTED";
|
|
25
|
+
SdkErrorCode["FailedPrecondition"] = "FAILED_PRECONDITION";
|
|
26
|
+
SdkErrorCode["Aborted"] = "ABORTED";
|
|
27
|
+
SdkErrorCode["OutOfRange"] = "OUT_OF_RANGE";
|
|
28
|
+
SdkErrorCode["Unimplemented"] = "UNIMPLEMENTED";
|
|
29
|
+
SdkErrorCode["Internal"] = "INTERNAL";
|
|
30
|
+
SdkErrorCode["Unavailable"] = "UNAVAILABLE";
|
|
31
|
+
SdkErrorCode["DataLoss"] = "DATA_LOSS";
|
|
32
|
+
SdkErrorCode["Unauthenticated"] = "UNAUTHENTICATED";
|
|
33
|
+
SdkErrorCode["SdkClosed"] = "SDK_CLOSED";
|
|
34
|
+
SdkErrorCode["UnknownUnaryLimit"] = "UNKNOWN_UNARY_LIMIT";
|
|
35
|
+
})(SdkErrorCode || (exports.SdkErrorCode = SdkErrorCode = {}));
|
|
36
|
+
const sdkErrorBrand = Symbol.for('t-invest-node-sdk/SdkError');
|
|
37
|
+
const sdkErrorCodes = new Set(Object.values(SdkErrorCode));
|
|
38
|
+
const sdkErrorSources = new Set([
|
|
39
|
+
'grpc',
|
|
40
|
+
'tls',
|
|
41
|
+
'abort',
|
|
42
|
+
'lifecycle',
|
|
43
|
+
'sdk'
|
|
44
|
+
]);
|
|
45
|
+
class SdkError extends Error {
|
|
46
|
+
code;
|
|
47
|
+
source;
|
|
48
|
+
path;
|
|
49
|
+
details;
|
|
50
|
+
constructor(code, message, options) {
|
|
51
|
+
super(message, { cause: options.cause });
|
|
52
|
+
this.name = 'SdkError';
|
|
53
|
+
this.code = code;
|
|
54
|
+
this.source = options.source;
|
|
55
|
+
this.path = options.path;
|
|
56
|
+
this.details = options.details;
|
|
57
|
+
Object.defineProperty(this, sdkErrorBrand, {
|
|
58
|
+
value: true
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
static [Symbol.hasInstance](value) {
|
|
62
|
+
return hasSdkErrorContract(value);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.SdkError = SdkError;
|
|
66
|
+
function isSdkError(error, code) {
|
|
67
|
+
return hasSdkErrorContract(error)
|
|
68
|
+
&& (code === undefined || error.code === code);
|
|
69
|
+
}
|
|
70
|
+
function hasSdkErrorContract(value) {
|
|
71
|
+
if (typeof value !== 'object' || value === null) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
const candidate = value;
|
|
75
|
+
return candidate[sdkErrorBrand] === true
|
|
76
|
+
&& candidate['name'] === 'SdkError'
|
|
77
|
+
&& typeof candidate['message'] === 'string'
|
|
78
|
+
&& typeof candidate['code'] === 'string'
|
|
79
|
+
&& sdkErrorCodes.has(candidate['code'])
|
|
80
|
+
&& typeof candidate['source'] === 'string'
|
|
81
|
+
&& sdkErrorSources.has(candidate['source'])
|
|
82
|
+
&& (candidate['path'] === undefined || typeof candidate['path'] === 'string')
|
|
83
|
+
&& (candidate['details'] === undefined || typeof candidate['details'] === 'string');
|
|
84
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
/** Один счет в отчете команды `users get-accounts`. */
|
|
11
|
+
export interface AccountsReportAccount {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
/** Тип счета в формате generated enum JSON name. */
|
|
15
|
+
type: string;
|
|
16
|
+
/** Статус счета в формате generated enum JSON name. */
|
|
17
|
+
status: string;
|
|
18
|
+
/** Уровень доступа к счету в формате generated enum JSON name. */
|
|
19
|
+
accessLevel: string;
|
|
20
|
+
/** Дата открытия счета в ISO-формате или пустая строка, если дата не пришла от provider-а. */
|
|
21
|
+
openedDate: string;
|
|
22
|
+
/** Дата закрытия счета в ISO-формате или пустая строка для открытого счета. */
|
|
23
|
+
closedDate: string;
|
|
24
|
+
}
|
|
25
|
+
/** Отчет команды `users get-accounts` на application/output boundary. */
|
|
26
|
+
export type AccountsReport = AccountsReportAccount[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
/** Одна запись НКД в отчете команды `instruments get-accrued-interests`. */
|
|
11
|
+
export interface AccruedInterestsReportItem {
|
|
12
|
+
/** Дата расчета НКД в ISO-формате. */
|
|
13
|
+
date: string;
|
|
14
|
+
/** Значение НКД в денежном строковом формате отчета. */
|
|
15
|
+
value: string;
|
|
16
|
+
/** Значение НКД в процентах в строковом формате отчета. */
|
|
17
|
+
valuePercent: string;
|
|
18
|
+
/** Номинал облигации в денежном строковом формате отчета. */
|
|
19
|
+
nominal: string;
|
|
20
|
+
}
|
|
21
|
+
/** Отчет команды `instruments get-accrued-interests` на application/output boundary. */
|
|
22
|
+
export type AccruedInterestsReport = AccruedInterestsReportItem[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
export interface AssetReportInstrumentLink {
|
|
11
|
+
/** Тип связи инструмента с активом. */
|
|
12
|
+
type: string;
|
|
13
|
+
instrumentUid: string;
|
|
14
|
+
}
|
|
15
|
+
export interface AssetReportInstrument {
|
|
16
|
+
uid: string;
|
|
17
|
+
figi: string;
|
|
18
|
+
/** Тип инструмента из provider contract. */
|
|
19
|
+
instrumentType: string;
|
|
20
|
+
/** Вид инструмента в формате generated enum JSON name. */
|
|
21
|
+
instrumentKind: string;
|
|
22
|
+
ticker: string;
|
|
23
|
+
classCode: string;
|
|
24
|
+
positionUid: string;
|
|
25
|
+
links: AssetReportInstrumentLink[];
|
|
26
|
+
}
|
|
27
|
+
export interface AssetReportBrand {
|
|
28
|
+
uid: string;
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
info: string;
|
|
32
|
+
company: string;
|
|
33
|
+
sector: string;
|
|
34
|
+
countryOfRisk: string;
|
|
35
|
+
countryOfRiskName: string;
|
|
36
|
+
}
|
|
37
|
+
export interface AssetReportSummary {
|
|
38
|
+
uid: string;
|
|
39
|
+
/** Тип актива в формате generated enum JSON name. */
|
|
40
|
+
type: string;
|
|
41
|
+
name: string;
|
|
42
|
+
instruments: AssetReportInstrument[];
|
|
43
|
+
}
|
|
44
|
+
/** Отчет команды `instruments get-asset-by` на application/output boundary. */
|
|
45
|
+
export interface AssetReportFull extends AssetReportSummary {
|
|
46
|
+
nameBrief: string;
|
|
47
|
+
description: string;
|
|
48
|
+
/** Дата удаления актива в ISO-формате или пустая строка. */
|
|
49
|
+
deletedAt: string;
|
|
50
|
+
requiredTests: string[];
|
|
51
|
+
currencyBaseCurrency: string;
|
|
52
|
+
securityIsin: string;
|
|
53
|
+
securityType: string;
|
|
54
|
+
/** Вид инструмента ценной бумаги в формате generated enum JSON name. */
|
|
55
|
+
securityInstrumentKind: string;
|
|
56
|
+
/** Государственный регистрационный код. */
|
|
57
|
+
gosRegCode: string;
|
|
58
|
+
/** CFI-код ценной бумаги. */
|
|
59
|
+
cfi: string;
|
|
60
|
+
/** Код НРД. */
|
|
61
|
+
codeNsd: string;
|
|
62
|
+
status: string;
|
|
63
|
+
/** Бренд актива или `null`, если provider его не вернул. */
|
|
64
|
+
brand: AssetReportBrand | null;
|
|
65
|
+
/** Дата последнего обновления в ISO-формате или пустая строка. */
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
brCode: string;
|
|
68
|
+
brCodeName: string;
|
|
69
|
+
}
|
|
70
|
+
export type AssetReport = AssetReportFull | null;
|
|
71
|
+
/** Отчет команды `instruments get-assets` на application/output boundary. */
|
|
72
|
+
export type AssetsReport = AssetReportSummary[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
import type { ReportMoney } from './money.report';
|
|
11
|
+
/** Один купон в отчете команды `instruments get-bond-coupons`. */
|
|
12
|
+
export interface BondCouponsReportCoupon {
|
|
13
|
+
figi: string;
|
|
14
|
+
/** Дата выплаты купона в ISO-формате или пустая строка. */
|
|
15
|
+
couponDate: string;
|
|
16
|
+
couponNumber: number;
|
|
17
|
+
/** Дата фиксации реестра в ISO-формате или пустая строка. */
|
|
18
|
+
fixDate: string;
|
|
19
|
+
/** Выплата на одну облигацию или `null`, если provider не вернул значение. */
|
|
20
|
+
payOneBond: ReportMoney | null;
|
|
21
|
+
/** Тип купона в формате generated enum JSON name. */
|
|
22
|
+
couponType: string;
|
|
23
|
+
/** Начало купонного периода в ISO-формате или пустая строка. */
|
|
24
|
+
couponStartDate: string;
|
|
25
|
+
/** Окончание купонного периода в ISO-формате или пустая строка. */
|
|
26
|
+
couponEndDate: string;
|
|
27
|
+
/** Длительность купонного периода в днях. */
|
|
28
|
+
couponPeriod: number;
|
|
29
|
+
}
|
|
30
|
+
/** Отчет команды `instruments get-bond-coupons` на application/output boundary. */
|
|
31
|
+
export type BondCouponsReport = BondCouponsReportCoupon[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
import type { ReportMoney } from './money.report';
|
|
11
|
+
/** Одна облигация в отчете команд `instruments bond-by` и `instruments bonds`. */
|
|
12
|
+
export interface BondReportInstrument {
|
|
13
|
+
figi: string;
|
|
14
|
+
ticker: string;
|
|
15
|
+
classCode: string;
|
|
16
|
+
isin: string;
|
|
17
|
+
uid: string;
|
|
18
|
+
positionUid: string;
|
|
19
|
+
name: string;
|
|
20
|
+
currency: string;
|
|
21
|
+
lot: number;
|
|
22
|
+
exchange: string;
|
|
23
|
+
/** Реальная площадка исполнения в формате generated enum JSON name. */
|
|
24
|
+
realExchange: string;
|
|
25
|
+
sector: string;
|
|
26
|
+
couponQuantityPerYear: number;
|
|
27
|
+
/** Дата погашения в ISO-формате или пустая строка. */
|
|
28
|
+
maturityDate: string;
|
|
29
|
+
/** Номинал или `null`, если provider не вернул значение. */
|
|
30
|
+
nominal: ReportMoney | null;
|
|
31
|
+
/** Первоначальный номинал или `null`, если provider не вернул значение. */
|
|
32
|
+
initialNominal: ReportMoney | null;
|
|
33
|
+
/** Дата государственной регистрации в ISO-формате или пустая строка. */
|
|
34
|
+
stateRegDate: string;
|
|
35
|
+
/** Дата размещения в ISO-формате или пустая строка. */
|
|
36
|
+
placementDate: string;
|
|
37
|
+
/** Цена размещения или `null`, если provider не вернул значение. */
|
|
38
|
+
placementPrice: ReportMoney | null;
|
|
39
|
+
/** НКД или `null`, если provider не вернул значение. */
|
|
40
|
+
aciValue: ReportMoney | null;
|
|
41
|
+
/** Вид выпуска. */
|
|
42
|
+
issueKind: string;
|
|
43
|
+
issueSize: number;
|
|
44
|
+
issueSizePlan: number;
|
|
45
|
+
/** Ставка риска long. */
|
|
46
|
+
dlong: string;
|
|
47
|
+
/** Ставка риска short. */
|
|
48
|
+
dshort: string;
|
|
49
|
+
/** Минимальная ставка риска long. */
|
|
50
|
+
dlongMin: string;
|
|
51
|
+
/** Минимальная ставка риска short. */
|
|
52
|
+
dshortMin: string;
|
|
53
|
+
minPriceIncrement: string;
|
|
54
|
+
/** Торговый статус в формате generated enum JSON name. */
|
|
55
|
+
tradingStatus: string;
|
|
56
|
+
/** Уровень риска в формате generated enum JSON name. */
|
|
57
|
+
riskLevel: string;
|
|
58
|
+
countryOfRisk: string;
|
|
59
|
+
countryOfRiskName: string;
|
|
60
|
+
otcFlag: boolean;
|
|
61
|
+
buyAvailableFlag: boolean;
|
|
62
|
+
sellAvailableFlag: boolean;
|
|
63
|
+
floatingCouponFlag: boolean;
|
|
64
|
+
perpetualFlag: boolean;
|
|
65
|
+
amortizationFlag: boolean;
|
|
66
|
+
apiTradeAvailableFlag: boolean;
|
|
67
|
+
shortEnabledFlag: boolean;
|
|
68
|
+
forIisFlag: boolean;
|
|
69
|
+
forQualInvestorFlag: boolean;
|
|
70
|
+
weekendFlag: boolean;
|
|
71
|
+
blockedTcaFlag: boolean;
|
|
72
|
+
subordinatedFlag: boolean;
|
|
73
|
+
liquidityFlag: boolean;
|
|
74
|
+
/** Дата первой минутной свечи в ISO-формате или пустая строка. */
|
|
75
|
+
first1minCandleDate: string;
|
|
76
|
+
/** Дата первой дневной свечи в ISO-формате или пустая строка. */
|
|
77
|
+
first1dayCandleDate: string;
|
|
78
|
+
}
|
|
79
|
+
/** Отчет команды `instruments bond-by` на application/output boundary. */
|
|
80
|
+
export type BondReport = BondReportInstrument | null;
|
|
81
|
+
/** Отчет команды `instruments bonds` на application/output boundary. */
|
|
82
|
+
export type BondsReport = BondReportInstrument[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
/** Один бренд в отчете команд `instruments get-brands` и `instruments get-brand-by`. */
|
|
11
|
+
export interface BrandsReportBrand {
|
|
12
|
+
uid: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
info: string;
|
|
16
|
+
company: string;
|
|
17
|
+
sector: string;
|
|
18
|
+
countryOfRisk: string;
|
|
19
|
+
countryOfRiskName: string;
|
|
20
|
+
}
|
|
21
|
+
/** Отчет команды `instruments get-brands` на application/output boundary. */
|
|
22
|
+
export type BrandsReport = BrandsReportBrand[];
|
|
23
|
+
/** Отчет команды `instruments get-brand-by` на application/output boundary. */
|
|
24
|
+
export type BrandReport = BrandsReportBrand;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
import type { ReportMoney } from './money.report';
|
|
11
|
+
export interface BrokerReportTaskReport {
|
|
12
|
+
type: 'generate';
|
|
13
|
+
taskId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface BrokerReportPageInfo {
|
|
16
|
+
page: number;
|
|
17
|
+
pagesCount: number;
|
|
18
|
+
itemsCount: number;
|
|
19
|
+
}
|
|
20
|
+
export interface BrokerReportItemReport {
|
|
21
|
+
tradeId: string;
|
|
22
|
+
orderId: string;
|
|
23
|
+
figi: string;
|
|
24
|
+
/** Признак исполнения сделки. */
|
|
25
|
+
executeSign: string;
|
|
26
|
+
/** Дата и время сделки в ISO-формате или пустая строка. */
|
|
27
|
+
tradeDatetime: string;
|
|
28
|
+
exchange: string;
|
|
29
|
+
classCode: string;
|
|
30
|
+
direction: string;
|
|
31
|
+
name: string;
|
|
32
|
+
ticker: string;
|
|
33
|
+
/** Цена сделки или `null`, если provider не вернул значение. */
|
|
34
|
+
price: ReportMoney | null;
|
|
35
|
+
/** Количество инструментов в сделке. */
|
|
36
|
+
quantity: number;
|
|
37
|
+
/** Сумма заявки или `null`, если provider не вернул значение. */
|
|
38
|
+
orderAmount: ReportMoney | null;
|
|
39
|
+
/** НКД в строковом формате quotation. */
|
|
40
|
+
aciValue: string;
|
|
41
|
+
/** Полная сумма заявки или `null`, если provider не вернул значение. */
|
|
42
|
+
totalOrderAmount: ReportMoney | null;
|
|
43
|
+
/** Комиссия брокера или `null`, если provider не вернул значение. */
|
|
44
|
+
brokerCommission: ReportMoney | null;
|
|
45
|
+
/** Комиссия биржи или `null`, если provider не вернул значение. */
|
|
46
|
+
exchangeCommission: ReportMoney | null;
|
|
47
|
+
/** Клиринговая комиссия биржи или `null`, если provider не вернул значение. */
|
|
48
|
+
exchangeClearingCommission: ReportMoney | null;
|
|
49
|
+
/** Ставка РЕПО в строковом формате quotation. */
|
|
50
|
+
repoRate: string;
|
|
51
|
+
/** Сторона сделки. */
|
|
52
|
+
party: string;
|
|
53
|
+
/** Дата расчетов по деньгам в ISO-формате или пустая строка. */
|
|
54
|
+
clearValueDate: string;
|
|
55
|
+
/** Дата расчетов по ценным бумагам в ISO-формате или пустая строка. */
|
|
56
|
+
secValueDate: string;
|
|
57
|
+
/** Статус брокера по сделке. */
|
|
58
|
+
brokerStatus: string;
|
|
59
|
+
separateAgreementType: string;
|
|
60
|
+
separateAgreementNumber: string;
|
|
61
|
+
separateAgreementDate: string;
|
|
62
|
+
deliveryType: string;
|
|
63
|
+
}
|
|
64
|
+
export interface BrokerReportPageReport {
|
|
65
|
+
type: 'page';
|
|
66
|
+
page: BrokerReportPageInfo;
|
|
67
|
+
items: BrokerReportItemReport[];
|
|
68
|
+
}
|
|
69
|
+
export interface BrokerReportEmptyReport {
|
|
70
|
+
/** Тип отчета для пустого provider response. */
|
|
71
|
+
type: 'empty';
|
|
72
|
+
}
|
|
73
|
+
/** Отчет команды `operations get-broker-report` на application/output boundary. */
|
|
74
|
+
export type BrokerReportReport = BrokerReportTaskReport | BrokerReportPageReport | BrokerReportEmptyReport;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
/** Результат успешного вызова `orders cancel-order`. */
|
|
11
|
+
export interface CancelOrderReport {
|
|
12
|
+
/** Время отмены в ISO-формате или пустая строка. */
|
|
13
|
+
time: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
/** Результат успешного вызова `stoporders cancel-stop-order`. */
|
|
11
|
+
export interface CancelStopOrderReport {
|
|
12
|
+
/** Время отмены в ISO-формате или пустая строка. */
|
|
13
|
+
time: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
/** Одна историческая свеча в отчете команды `marketdata get-candles`. */
|
|
11
|
+
export interface CandlesReportCandle {
|
|
12
|
+
/** Время свечи в ISO-формате. */
|
|
13
|
+
time: string;
|
|
14
|
+
/** Цена открытия в строковом формате quotation. */
|
|
15
|
+
open: string;
|
|
16
|
+
/** Максимальная цена в строковом формате quotation. */
|
|
17
|
+
high: string;
|
|
18
|
+
/** Минимальная цена в строковом формате quotation. */
|
|
19
|
+
low: string;
|
|
20
|
+
/** Цена закрытия в строковом формате quotation. */
|
|
21
|
+
close: string;
|
|
22
|
+
volume: number;
|
|
23
|
+
isComplete: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Отчет команды `marketdata get-candles` на application/output boundary. */
|
|
26
|
+
export type CandlesReport = CandlesReportCandle[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - DTO отчетов на границе application/output;
|
|
6
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
9
|
+
*/
|
|
10
|
+
/** Одна цена закрытия торговой сессии в отчете команды `marketdata get-close-prices`. */
|
|
11
|
+
export interface ClosePricesReportPrice {
|
|
12
|
+
figi: string;
|
|
13
|
+
instrumentUid: string;
|
|
14
|
+
/** Цена закрытия в строковом формате quotation. */
|
|
15
|
+
price: string;
|
|
16
|
+
/** Время цены закрытия в ISO-формате или пустая строка. */
|
|
17
|
+
time: string;
|
|
18
|
+
}
|
|
19
|
+
/** Отчет команды `marketdata get-close-prices` на application/output boundary. */
|
|
20
|
+
export type ClosePricesReport = ClosePricesReportPrice[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application report contracts описывает стабильный output shape.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - DTO отчетов на границе application/output;
|
|
7
|
+
* - scalar values без зависимости от generated transport DTO;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть CLI parsing, SDK calls или presentation formatting.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|