@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,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-last-prices`. */
|
|
11
|
+
export interface LastPricesReportPrice {
|
|
12
|
+
figi: string;
|
|
13
|
+
instrumentUid: string;
|
|
14
|
+
/** Последняя цена в денежном строковом формате отчета. */
|
|
15
|
+
price: string;
|
|
16
|
+
/** Время цены в ISO-формате или пустая строка. */
|
|
17
|
+
time: string;
|
|
18
|
+
}
|
|
19
|
+
/** Отчет команды `marketdata get-last-prices` на application/output boundary. */
|
|
20
|
+
export type LastPricesReport = LastPricesReportPrice[];
|
|
@@ -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
|
+
/** Одна обезличенная сделка в отчете команды `marketdata get-last-trades`. */
|
|
11
|
+
export interface LastTradesReportTrade {
|
|
12
|
+
figi: string;
|
|
13
|
+
instrumentUid: string;
|
|
14
|
+
/** Направление сделки в формате generated enum JSON name. */
|
|
15
|
+
direction: string;
|
|
16
|
+
/** Цена сделки в денежном строковом формате отчета. */
|
|
17
|
+
price: string;
|
|
18
|
+
/** Количество инструментов в сделке. */
|
|
19
|
+
quantity: number;
|
|
20
|
+
/** Время сделки в ISO-формате или пустая строка. */
|
|
21
|
+
time: string;
|
|
22
|
+
}
|
|
23
|
+
/** Отчет команды `marketdata get-last-trades` на application/output boundary. */
|
|
24
|
+
export type LastTradesReport = LastTradesReportTrade[];
|
|
@@ -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,25 @@
|
|
|
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
|
+
/** Отчет команды `users get-margin-attributes` на application/output boundary. */
|
|
12
|
+
export interface MarginAttributesReport {
|
|
13
|
+
/** Ликвидная стоимость портфеля или `null`, если provider не вернул значение. */
|
|
14
|
+
liquidPortfolio: ReportMoney | null;
|
|
15
|
+
/** Начальная маржа или `null`, если provider не вернул значение. */
|
|
16
|
+
startingMargin: ReportMoney | null;
|
|
17
|
+
/** Минимальная маржа или `null`, если provider не вернул значение. */
|
|
18
|
+
minimalMargin: ReportMoney | null;
|
|
19
|
+
/** Уровень достаточности средств в строковом формате quotation. */
|
|
20
|
+
fundsSufficiencyLevel: string;
|
|
21
|
+
/** Недостающие средства или `null`, если provider не вернул значение. */
|
|
22
|
+
amountOfMissingFunds: ReportMoney | null;
|
|
23
|
+
/** Скорректированная маржа или `null`, если provider не вернул значение. */
|
|
24
|
+
correctedMargin: ReportMoney | null;
|
|
25
|
+
}
|
|
@@ -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,15 @@
|
|
|
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
|
+
/** Денежное значение в стабильных report contracts. */
|
|
11
|
+
export interface ReportMoney {
|
|
12
|
+
currency: string;
|
|
13
|
+
/** Сумма в строковом формате decimal. */
|
|
14
|
+
amount: string;
|
|
15
|
+
}
|
|
@@ -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,65 @@
|
|
|
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
|
+
/** Метаданные страницы в отчете команды `operations get-operations-by-cursor`. */
|
|
12
|
+
export interface OperationsByCursorReportPage {
|
|
13
|
+
hasNext: boolean;
|
|
14
|
+
/** Cursor следующей страницы или пустая строка. */
|
|
15
|
+
nextCursor: string;
|
|
16
|
+
itemsCount: number;
|
|
17
|
+
}
|
|
18
|
+
/** Одна операция в отчете команды `operations get-operations-by-cursor`. */
|
|
19
|
+
export interface OperationsByCursorReportItem {
|
|
20
|
+
cursor: string;
|
|
21
|
+
brokerAccountId: string;
|
|
22
|
+
id: string;
|
|
23
|
+
parentOperationId: string;
|
|
24
|
+
name: string;
|
|
25
|
+
/** Дата операции в ISO-формате или пустая строка. */
|
|
26
|
+
date: string;
|
|
27
|
+
/** Тип операции в формате generated enum JSON name. */
|
|
28
|
+
type: string;
|
|
29
|
+
description: string;
|
|
30
|
+
/** Статус операции в формате generated enum JSON name. */
|
|
31
|
+
state: string;
|
|
32
|
+
figi: string;
|
|
33
|
+
instrumentUid: string;
|
|
34
|
+
/** Тип инструмента из provider contract. */
|
|
35
|
+
instrumentType: string;
|
|
36
|
+
/** Вид инструмента в формате generated enum JSON name. */
|
|
37
|
+
instrumentKind: string;
|
|
38
|
+
positionUid: string;
|
|
39
|
+
/** Платеж по операции или `null`, если provider не вернул значение. */
|
|
40
|
+
payment: ReportMoney | null;
|
|
41
|
+
/** Цена операции или `null`, если provider не вернул значение. */
|
|
42
|
+
price: ReportMoney | null;
|
|
43
|
+
/** Комиссия или `null`, если provider не вернул значение. */
|
|
44
|
+
commission: ReportMoney | null;
|
|
45
|
+
/** Доходность или `null`, если provider не вернул значение. */
|
|
46
|
+
yield: ReportMoney | null;
|
|
47
|
+
/** Относительная доходность в строковом формате quotation. */
|
|
48
|
+
yieldRelative: string;
|
|
49
|
+
/** НКД или `null`, если provider не вернул значение. */
|
|
50
|
+
accruedInt: ReportMoney | null;
|
|
51
|
+
/** Количество инструментов в операции. */
|
|
52
|
+
quantity: number;
|
|
53
|
+
quantityRest: number;
|
|
54
|
+
quantityDone: number;
|
|
55
|
+
/** Дата отмены операции в ISO-формате или пустая строка. */
|
|
56
|
+
cancelDateTime: string;
|
|
57
|
+
cancelReason: string;
|
|
58
|
+
assetUid: string;
|
|
59
|
+
tradesCount: number;
|
|
60
|
+
}
|
|
61
|
+
/** Отчет команды `operations get-operations-by-cursor` на application/output boundary. */
|
|
62
|
+
export interface OperationsByCursorReport {
|
|
63
|
+
page: OperationsByCursorReportPage;
|
|
64
|
+
items: OperationsByCursorReportItem[];
|
|
65
|
+
}
|
|
@@ -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,40 @@
|
|
|
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
|
+
/** Одна операция в отчете команды `operations get-operations`. */
|
|
12
|
+
export interface OperationsReportOperation {
|
|
13
|
+
id: string;
|
|
14
|
+
parentOperationId: string;
|
|
15
|
+
/** Дата операции в ISO-формате или пустая строка. */
|
|
16
|
+
date: string;
|
|
17
|
+
/** Тип операции из provider contract. */
|
|
18
|
+
type: string;
|
|
19
|
+
/** Тип операции в формате generated enum JSON name. */
|
|
20
|
+
operationType: string;
|
|
21
|
+
/** Статус операции в формате generated enum JSON name. */
|
|
22
|
+
state: string;
|
|
23
|
+
currency: string;
|
|
24
|
+
/** Платеж по операции или `null`, если provider не вернул значение. */
|
|
25
|
+
payment: ReportMoney | null;
|
|
26
|
+
/** Цена операции или `null`, если provider не вернул значение. */
|
|
27
|
+
price: ReportMoney | null;
|
|
28
|
+
/** Количество инструментов в операции. */
|
|
29
|
+
quantity: number;
|
|
30
|
+
quantityRest: number;
|
|
31
|
+
figi: string;
|
|
32
|
+
instrumentUid: string;
|
|
33
|
+
positionUid: string;
|
|
34
|
+
assetUid: string;
|
|
35
|
+
/** Тип инструмента из provider contract. */
|
|
36
|
+
instrumentType: string;
|
|
37
|
+
tradesCount: number;
|
|
38
|
+
}
|
|
39
|
+
/** Отчет команды `operations get-operations` на application/output boundary. */
|
|
40
|
+
export type OperationsReport = OperationsReportOperation[];
|
|
@@ -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,76 @@
|
|
|
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 option-by` и `instruments options-by`. */
|
|
12
|
+
export interface OptionReportInstrument {
|
|
13
|
+
uid: string;
|
|
14
|
+
positionUid: string;
|
|
15
|
+
ticker: string;
|
|
16
|
+
classCode: string;
|
|
17
|
+
name: string;
|
|
18
|
+
currency: string;
|
|
19
|
+
settlementCurrency: string;
|
|
20
|
+
lot: number;
|
|
21
|
+
exchange: string;
|
|
22
|
+
/** Реальная площадка исполнения в формате generated enum JSON name. */
|
|
23
|
+
realExchange: string;
|
|
24
|
+
sector: string;
|
|
25
|
+
/** Торговый статус в формате generated enum JSON name. */
|
|
26
|
+
tradingStatus: string;
|
|
27
|
+
/** Направление опциона в формате generated enum JSON name. */
|
|
28
|
+
direction: string;
|
|
29
|
+
/** Тип расчетов по опциону в формате generated enum JSON name. */
|
|
30
|
+
paymentType: string;
|
|
31
|
+
/** Стиль опциона в формате generated enum JSON name. */
|
|
32
|
+
style: string;
|
|
33
|
+
/** Способ исполнения опциона в формате generated enum JSON name. */
|
|
34
|
+
settlementType: string;
|
|
35
|
+
assetType: string;
|
|
36
|
+
basicAsset: string;
|
|
37
|
+
/** Размер базового актива в строковом формате quotation. */
|
|
38
|
+
basicAssetSize: string;
|
|
39
|
+
basicAssetPositionUid: string;
|
|
40
|
+
/** Цена страйка или `null`, если provider не вернул значение. */
|
|
41
|
+
strikePrice: ReportMoney | null;
|
|
42
|
+
/** Дата экспирации в ISO-формате или пустая строка. */
|
|
43
|
+
expirationDate: string;
|
|
44
|
+
/** Дата начала торгов в ISO-формате или пустая строка. */
|
|
45
|
+
firstTradeDate: string;
|
|
46
|
+
/** Дата последнего дня торгов в ISO-формате или пустая строка. */
|
|
47
|
+
lastTradeDate: string;
|
|
48
|
+
/** Ставка риска long. */
|
|
49
|
+
dlong: string;
|
|
50
|
+
/** Ставка риска short. */
|
|
51
|
+
dshort: string;
|
|
52
|
+
/** Минимальная ставка риска long. */
|
|
53
|
+
dlongMin: string;
|
|
54
|
+
/** Минимальная ставка риска short. */
|
|
55
|
+
dshortMin: string;
|
|
56
|
+
minPriceIncrement: string;
|
|
57
|
+
countryOfRisk: string;
|
|
58
|
+
countryOfRiskName: string;
|
|
59
|
+
otcFlag: boolean;
|
|
60
|
+
buyAvailableFlag: boolean;
|
|
61
|
+
sellAvailableFlag: boolean;
|
|
62
|
+
apiTradeAvailableFlag: boolean;
|
|
63
|
+
shortEnabledFlag: boolean;
|
|
64
|
+
forIisFlag: boolean;
|
|
65
|
+
forQualInvestorFlag: boolean;
|
|
66
|
+
weekendFlag: boolean;
|
|
67
|
+
blockedTcaFlag: boolean;
|
|
68
|
+
/** Дата первой минутной свечи в ISO-формате или пустая строка. */
|
|
69
|
+
first1minCandleDate: string;
|
|
70
|
+
/** Дата первой дневной свечи в ISO-формате или пустая строка. */
|
|
71
|
+
first1dayCandleDate: string;
|
|
72
|
+
}
|
|
73
|
+
/** Отчет команды `instruments option-by` на application/output boundary. */
|
|
74
|
+
export type OptionReport = OptionReportInstrument | null;
|
|
75
|
+
/** Отчет команды `instruments options-by` на application/output boundary. */
|
|
76
|
+
export type OptionsByReport = OptionReportInstrument[];
|
|
@@ -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,38 @@
|
|
|
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-order-book`. */
|
|
11
|
+
export interface OrderBookReportLevel {
|
|
12
|
+
side: 'bid' | 'ask';
|
|
13
|
+
/** Цена уровня в денежном строковом формате отчета. */
|
|
14
|
+
price: string;
|
|
15
|
+
/** Количество инструментов на уровне. */
|
|
16
|
+
quantity: number;
|
|
17
|
+
}
|
|
18
|
+
/** Отчет команды `marketdata get-order-book` на application/output boundary. */
|
|
19
|
+
export interface OrderBookReport {
|
|
20
|
+
figi: string;
|
|
21
|
+
instrumentUid: string;
|
|
22
|
+
depth: number;
|
|
23
|
+
/** Последняя цена в денежном строковом формате отчета. */
|
|
24
|
+
lastPrice: string;
|
|
25
|
+
/** Цена закрытия в денежном строковом формате отчета. */
|
|
26
|
+
closePrice: string;
|
|
27
|
+
/** Верхняя граница цены в денежном строковом формате отчета. */
|
|
28
|
+
limitUp: string;
|
|
29
|
+
/** Нижняя граница цены в денежном строковом формате отчета. */
|
|
30
|
+
limitDown: string;
|
|
31
|
+
/** Время последней цены в ISO-формате или пустая строка. */
|
|
32
|
+
lastPriceTime: string;
|
|
33
|
+
/** Время цены закрытия в ISO-формате или пустая строка. */
|
|
34
|
+
closePriceTime: string;
|
|
35
|
+
/** Время стакана в ISO-формате или пустая строка. */
|
|
36
|
+
orderBookTime: string;
|
|
37
|
+
levels: OrderBookReportLevel[];
|
|
38
|
+
}
|
|
@@ -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,45 @@
|
|
|
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
|
+
/** Результат успешного вызова `orders post-order` или `orders replace-order`. */
|
|
12
|
+
export interface OrderMutationReport {
|
|
13
|
+
/** Биржевой идентификатор заявки, который вернул provider. */
|
|
14
|
+
orderId: string;
|
|
15
|
+
/** Статус исполнения в формате generated enum JSON name. */
|
|
16
|
+
status: string;
|
|
17
|
+
lotsRequested: number;
|
|
18
|
+
lotsExecuted: number;
|
|
19
|
+
/** Начальная цена заявки или `null`, если provider не вернул значение. */
|
|
20
|
+
initialOrderPrice: ReportMoney | null;
|
|
21
|
+
/** Исполненная цена заявки или `null`, если provider не вернул значение. */
|
|
22
|
+
executedOrderPrice: ReportMoney | null;
|
|
23
|
+
/** Полная сумма заявки или `null`, если provider не вернул значение. */
|
|
24
|
+
totalOrderAmount: ReportMoney | null;
|
|
25
|
+
/** Начальная комиссия или `null`, если provider не вернул значение. */
|
|
26
|
+
initialCommission: ReportMoney | null;
|
|
27
|
+
/** Исполненная комиссия или `null`, если provider не вернул значение. */
|
|
28
|
+
executedCommission: ReportMoney | null;
|
|
29
|
+
/** НКД или `null`, если provider не вернул значение. */
|
|
30
|
+
aciValue: ReportMoney | null;
|
|
31
|
+
/** FIGI инструмента, который вернул provider. */
|
|
32
|
+
figi: string;
|
|
33
|
+
/** Направление заявки в формате generated enum JSON name. */
|
|
34
|
+
direction: string;
|
|
35
|
+
/** Начальная цена инструмента или `null`, если provider не вернул значение. */
|
|
36
|
+
initialSecurityPrice: ReportMoney | null;
|
|
37
|
+
/** Тип заявки в формате generated enum JSON name. */
|
|
38
|
+
orderType: string;
|
|
39
|
+
/** Сообщение provider-а об исполнении. */
|
|
40
|
+
message: string;
|
|
41
|
+
/** Начальная цена заявки в пунктах как decimal string или пустая строка. */
|
|
42
|
+
initialOrderPricePt: string;
|
|
43
|
+
/** UID инструмента, который вернул provider. */
|
|
44
|
+
instrumentUid: string;
|
|
45
|
+
}
|
|
@@ -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,12 @@
|
|
|
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 { OrdersReportOrder } from './orders.report';
|
|
11
|
+
/** Отчет команды `orders get-order-state` на application/output boundary. */
|
|
12
|
+
export type OrderStateReport = OrdersReportOrder;
|
|
@@ -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,53 @@
|
|
|
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
|
+
/** Одна стадия исполнения заявки в отчете команды `orders get-orders`. */
|
|
12
|
+
export interface OrdersReportStage {
|
|
13
|
+
/** Цена исполнения стадии или `null`, если provider не вернул значение. */
|
|
14
|
+
price: ReportMoney | null;
|
|
15
|
+
/** Количество лотов в стадии исполнения. */
|
|
16
|
+
quantity: number;
|
|
17
|
+
tradeId: string;
|
|
18
|
+
}
|
|
19
|
+
/** Одна активная заявка в отчете команды `orders get-orders`. */
|
|
20
|
+
export interface OrdersReportOrder {
|
|
21
|
+
orderId: string;
|
|
22
|
+
orderRequestId: string;
|
|
23
|
+
figi: string;
|
|
24
|
+
instrumentUid: string;
|
|
25
|
+
/** Статус заявки в формате generated enum JSON name. */
|
|
26
|
+
status: string;
|
|
27
|
+
/** Направление заявки в формате generated enum JSON name. */
|
|
28
|
+
direction: string;
|
|
29
|
+
/** Тип заявки в формате generated enum JSON name. */
|
|
30
|
+
orderType: string;
|
|
31
|
+
lotsRequested: number;
|
|
32
|
+
lotsExecuted: number;
|
|
33
|
+
/** Начальная цена заявки или `null`, если provider не вернул значение. */
|
|
34
|
+
initialOrderPrice: ReportMoney | null;
|
|
35
|
+
/** Исполненная цена заявки или `null`, если provider не вернул значение. */
|
|
36
|
+
executedOrderPrice: ReportMoney | null;
|
|
37
|
+
/** Полная сумма заявки или `null`, если provider не вернул значение. */
|
|
38
|
+
totalOrderAmount: ReportMoney | null;
|
|
39
|
+
/** Средняя цена позиции или `null`, если provider не вернул значение. */
|
|
40
|
+
averagePositionPrice: ReportMoney | null;
|
|
41
|
+
/** Начальная комиссия или `null`, если provider не вернул значение. */
|
|
42
|
+
initialCommission: ReportMoney | null;
|
|
43
|
+
/** Исполненная комиссия или `null`, если provider не вернул значение. */
|
|
44
|
+
executedCommission: ReportMoney | null;
|
|
45
|
+
/** Сервисная комиссия или `null`, если provider не вернул значение. */
|
|
46
|
+
serviceCommission: ReportMoney | null;
|
|
47
|
+
currency: string;
|
|
48
|
+
/** Дата заявки в ISO-формате или пустая строка. */
|
|
49
|
+
orderDate: string;
|
|
50
|
+
stages: OrdersReportStage[];
|
|
51
|
+
}
|
|
52
|
+
/** Отчет команды `orders get-orders` на application/output boundary. */
|
|
53
|
+
export type OrdersReport = OrdersReportOrder[];
|
|
@@ -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,54 @@
|
|
|
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
|
+
/** Сводка портфеля в отчете команды `operations get-portfolio`. */
|
|
12
|
+
export interface PortfolioReportSummary {
|
|
13
|
+
accountId: string;
|
|
14
|
+
/** Полная стоимость портфеля или `null`, если provider не вернул значение. */
|
|
15
|
+
totalAmountPortfolio: ReportMoney | null;
|
|
16
|
+
/** Стоимость акций или `null`, если provider не вернул значение. */
|
|
17
|
+
totalAmountShares: ReportMoney | null;
|
|
18
|
+
/** Стоимость облигаций или `null`, если provider не вернул значение. */
|
|
19
|
+
totalAmountBonds: ReportMoney | null;
|
|
20
|
+
/** Стоимость ETF или `null`, если provider не вернул значение. */
|
|
21
|
+
totalAmountEtf: ReportMoney | null;
|
|
22
|
+
/** Стоимость валют или `null`, если provider не вернул значение. */
|
|
23
|
+
totalAmountCurrencies: ReportMoney | null;
|
|
24
|
+
/** Стоимость фьючерсов или `null`, если provider не вернул значение. */
|
|
25
|
+
totalAmountFutures: ReportMoney | null;
|
|
26
|
+
/** Стоимость опционов или `null`, если provider не вернул значение. */
|
|
27
|
+
totalAmountOptions: ReportMoney | null;
|
|
28
|
+
/** Стоимость структурных продуктов или `null`, если provider не вернул значение. */
|
|
29
|
+
totalAmountSp: ReportMoney | null;
|
|
30
|
+
/** Ожидаемая доходность в строковом формате quotation. */
|
|
31
|
+
expectedYield: string;
|
|
32
|
+
}
|
|
33
|
+
/** Одна позиция портфеля в отчете команды `operations get-portfolio`. */
|
|
34
|
+
export interface PortfolioReportPosition {
|
|
35
|
+
figi: string;
|
|
36
|
+
instrumentUid: string;
|
|
37
|
+
positionUid: string;
|
|
38
|
+
/** Тип инструмента из provider contract. */
|
|
39
|
+
instrumentType: string;
|
|
40
|
+
/** Количество инструмента в строковом формате quotation. */
|
|
41
|
+
quantity: string;
|
|
42
|
+
/** Средняя цена позиции или `null`, если provider не вернул значение. */
|
|
43
|
+
averagePositionPrice: ReportMoney | null;
|
|
44
|
+
/** Текущая цена или `null`, если provider не вернул значение. */
|
|
45
|
+
currentPrice: ReportMoney | null;
|
|
46
|
+
/** Ожидаемая доходность в строковом формате quotation. */
|
|
47
|
+
expectedYield: string;
|
|
48
|
+
blocked: boolean;
|
|
49
|
+
}
|
|
50
|
+
/** Отчет команды `operations get-portfolio` на application/output boundary. */
|
|
51
|
+
export interface PortfolioReport {
|
|
52
|
+
summary: PortfolioReportSummary;
|
|
53
|
+
positions: PortfolioReportPosition[];
|
|
54
|
+
}
|
|
@@ -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 });
|