@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,307 @@
|
|
|
1
|
+
# Уведомления о сторонних компонентах
|
|
2
|
+
|
|
3
|
+
MIT License в [`LICENSE`](./LICENSE) применяется к исходному коду SDK,
|
|
4
|
+
созданному в этом проекте. Артефакты, полученные из сторонних proto-контрактов,
|
|
5
|
+
остаются под условиями соответствующих правообладателей.
|
|
6
|
+
|
|
7
|
+
## T-Invest API contracts
|
|
8
|
+
|
|
9
|
+
Пакет содержит JavaScript-код и TypeScript declarations, сгенерированные из
|
|
10
|
+
официальных proto-контрактов T-Invest API версии 1.49. Исходный snapshot
|
|
11
|
+
зафиксирован в
|
|
12
|
+
[`contracts/upstream.json`](https://github.com/woodger/t-invest-node-sdk/blob/main/contracts/upstream.json).
|
|
13
|
+
|
|
14
|
+
Официальный артефакт
|
|
15
|
+
[`ru.tinkoff.piapi:java-sdk-grpc-contract:1.49`](https://central.sonatype.com/artifact/ru.tinkoff.piapi/java-sdk-grpc-contract/1.49)
|
|
16
|
+
содержит тот же snapshot контрактов и опубликован на условиях Apache License
|
|
17
|
+
2.0. Сгенерированные из этих контрактов файлы `dist/generated/*.js` и
|
|
18
|
+
`dist/generated/*.d.ts` распространяются с сохранением этих условий. Полный
|
|
19
|
+
текст лицензии приведён в разделе
|
|
20
|
+
[`Apache License 2.0`](#apache-license-20).
|
|
21
|
+
|
|
22
|
+
Проект не заявляет права собственности на контракты и не является
|
|
23
|
+
аффилированным, одобренным или спонсируемым T-Invest, T-Bank либо связанными с
|
|
24
|
+
ними организациями.
|
|
25
|
+
|
|
26
|
+
## Russian Trusted Root CA
|
|
27
|
+
|
|
28
|
+
Пакет содержит публичный корневой X.509-сертификат Russian Trusted Root CA,
|
|
29
|
+
полученный по официальному маршруту со страницы сертификатов Госуслуг и
|
|
30
|
+
используемый для проверки TLS-цепочки T-Invest API. Соответствующий приватный
|
|
31
|
+
ключ в пакет не входит.
|
|
32
|
+
|
|
33
|
+
Проект не заявляет авторство сертификата и не представляет MIT License SDK как
|
|
34
|
+
отдельное лицензионное разрешение на этот trust material. Официальный источник,
|
|
35
|
+
X.509 fingerprint, основание package-модели и границы распространения описаны в
|
|
36
|
+
документе
|
|
37
|
+
[`docs/bundled-ca.md`](./docs/bundled-ca.md).
|
|
38
|
+
|
|
39
|
+
## Google API field behavior contract
|
|
40
|
+
|
|
41
|
+
Пакет содержит артефакты, полученные из
|
|
42
|
+
[`google/api/field_behavior.proto`](https://github.com/googleapis/googleapis/blob/master/google/api/field_behavior.proto).
|
|
43
|
+
Исходный контракт опубликован на условиях Apache License 2.0. Полный текст
|
|
44
|
+
лицензии приведён в разделе [`Apache License 2.0`](#apache-license-20).
|
|
45
|
+
|
|
46
|
+
Исходный контракт содержит следующее уведомление:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
Copyright 2023 Google LLC
|
|
50
|
+
|
|
51
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
52
|
+
you may not use this file except in compliance with the License.
|
|
53
|
+
You may obtain a copy of the License at
|
|
54
|
+
|
|
55
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
56
|
+
|
|
57
|
+
Unless required by applicable law or agreed to in writing, software
|
|
58
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
59
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
60
|
+
See the License for the specific language governing permissions and
|
|
61
|
+
limitations under the License.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Google Protocol Buffers contracts
|
|
65
|
+
|
|
66
|
+
Пакет может содержать артефакты, полученные из контрактов Google Protocol
|
|
67
|
+
Buffers. Исходные контракты содержат следующее уведомление:
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
Protocol Buffers - Google's data interchange format
|
|
71
|
+
Copyright 2008 Google Inc. All rights reserved.
|
|
72
|
+
https://developers.google.com/protocol-buffers/
|
|
73
|
+
|
|
74
|
+
Redistribution and use in source and binary forms, with or without
|
|
75
|
+
modification, are permitted provided that the following conditions are
|
|
76
|
+
met:
|
|
77
|
+
|
|
78
|
+
* Redistributions of source code must retain the above copyright
|
|
79
|
+
notice, this list of conditions and the following disclaimer.
|
|
80
|
+
* Redistributions in binary form must reproduce the above
|
|
81
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
82
|
+
in the documentation and/or other materials provided with the
|
|
83
|
+
distribution.
|
|
84
|
+
* Neither the name of Google Inc. nor the names of its
|
|
85
|
+
contributors may be used to endorse or promote products derived from
|
|
86
|
+
this software without specific prior written permission.
|
|
87
|
+
|
|
88
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
89
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
90
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
91
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
92
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
93
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
94
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
95
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
96
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
97
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
98
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Apache License 2.0
|
|
102
|
+
|
|
103
|
+
Полный текст лицензии, применяемой к указанным выше компонентам:
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
Apache License
|
|
107
|
+
Version 2.0, January 2004
|
|
108
|
+
http://www.apache.org/licenses/
|
|
109
|
+
|
|
110
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
111
|
+
|
|
112
|
+
1. Definitions.
|
|
113
|
+
|
|
114
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
115
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
116
|
+
|
|
117
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
118
|
+
the copyright owner that is granting the License.
|
|
119
|
+
|
|
120
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
121
|
+
other entities that control, are controlled by, or are under common
|
|
122
|
+
control with that entity. For the purposes of this definition,
|
|
123
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
124
|
+
direction or management of such entity, whether by contract or
|
|
125
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
126
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
127
|
+
|
|
128
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
129
|
+
exercising permissions granted by this License.
|
|
130
|
+
|
|
131
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
132
|
+
including but not limited to software source code, documentation
|
|
133
|
+
source, and configuration files.
|
|
134
|
+
|
|
135
|
+
"Object" form shall mean any form resulting from mechanical
|
|
136
|
+
transformation or translation of a Source form, including but
|
|
137
|
+
not limited to compiled object code, generated documentation,
|
|
138
|
+
and conversions to other media types.
|
|
139
|
+
|
|
140
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
141
|
+
Object form, made available under the License, as indicated by a
|
|
142
|
+
copyright notice that is included in or attached to the work
|
|
143
|
+
(an example is provided in the Appendix below).
|
|
144
|
+
|
|
145
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
146
|
+
form, that is based on (or derived from) the Work and for which the
|
|
147
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
148
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
149
|
+
of this License, Derivative Works shall not include works that remain
|
|
150
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
151
|
+
the Work and Derivative Works thereof.
|
|
152
|
+
|
|
153
|
+
"Contribution" shall mean any work of authorship, including
|
|
154
|
+
the original version of the Work and any modifications or additions
|
|
155
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
156
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
157
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
158
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
159
|
+
means any form of electronic, verbal, or written communication sent
|
|
160
|
+
to the Licensor or its representatives, including but not limited to
|
|
161
|
+
communication on electronic mailing lists, source code control systems,
|
|
162
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
163
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
164
|
+
excluding communication that is conspicuously marked or otherwise
|
|
165
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
166
|
+
|
|
167
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
168
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
169
|
+
subsequently incorporated within the Work.
|
|
170
|
+
|
|
171
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
172
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
173
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
174
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
175
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
176
|
+
Work and such Derivative Works in Source or Object form.
|
|
177
|
+
|
|
178
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
179
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
180
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
181
|
+
(except as stated in this section) patent license to make, have made,
|
|
182
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
183
|
+
where such license applies only to those patent claims licensable
|
|
184
|
+
by such Contributor that are necessarily infringed by their
|
|
185
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
186
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
187
|
+
institute patent litigation against any entity (including a
|
|
188
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
189
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
190
|
+
or contributory patent infringement, then any patent licenses
|
|
191
|
+
granted to You under this License for that Work shall terminate
|
|
192
|
+
as of the date such litigation is filed.
|
|
193
|
+
|
|
194
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
195
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
196
|
+
modifications, and in Source or Object form, provided that You
|
|
197
|
+
meet the following conditions:
|
|
198
|
+
|
|
199
|
+
(a) You must give any other recipients of the Work or
|
|
200
|
+
Derivative Works a copy of this License; and
|
|
201
|
+
|
|
202
|
+
(b) You must cause any modified files to carry prominent notices
|
|
203
|
+
stating that You changed the files; and
|
|
204
|
+
|
|
205
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
206
|
+
that You distribute, all copyright, patent, trademark, and
|
|
207
|
+
attribution notices from the Source form of the Work,
|
|
208
|
+
excluding those notices that do not pertain to any part of
|
|
209
|
+
the Derivative Works; and
|
|
210
|
+
|
|
211
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
212
|
+
distribution, then any Derivative Works that You distribute must
|
|
213
|
+
include a readable copy of the attribution notices contained
|
|
214
|
+
within such NOTICE file, excluding those notices that do not
|
|
215
|
+
pertain to any part of the Derivative Works, in at least one
|
|
216
|
+
of the following places: within a NOTICE text file distributed
|
|
217
|
+
as part of the Derivative Works; within the Source form or
|
|
218
|
+
documentation, if provided along with the Derivative Works; or,
|
|
219
|
+
within a display generated by the Derivative Works, if and
|
|
220
|
+
wherever such third-party notices normally appear. The contents
|
|
221
|
+
of the NOTICE file are for informational purposes only and
|
|
222
|
+
do not modify the License. You may add Your own attribution
|
|
223
|
+
notices within Derivative Works that You distribute, alongside
|
|
224
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
225
|
+
that such additional attribution notices cannot be construed
|
|
226
|
+
as modifying the License.
|
|
227
|
+
|
|
228
|
+
You may add Your own copyright statement to Your modifications and
|
|
229
|
+
may provide additional or different license terms and conditions
|
|
230
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
231
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
232
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
233
|
+
the conditions stated in this License.
|
|
234
|
+
|
|
235
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
236
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
237
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
238
|
+
this License, without any additional terms or conditions.
|
|
239
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
240
|
+
the terms of any separate license agreement you may have executed
|
|
241
|
+
with Licensor regarding such Contributions.
|
|
242
|
+
|
|
243
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
244
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
245
|
+
except as required for reasonable and customary use in describing the
|
|
246
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
247
|
+
|
|
248
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
249
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
250
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
251
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
252
|
+
implied, including, without limitation, any warranties or conditions
|
|
253
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
254
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
255
|
+
appropriateness of using or redistributing the Work and assume any
|
|
256
|
+
risks associated with Your exercise of permissions under this License.
|
|
257
|
+
|
|
258
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
259
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
260
|
+
unless required by applicable law (such as deliberate and grossly
|
|
261
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
262
|
+
liable to You for damages, including any direct, indirect, special,
|
|
263
|
+
incidental, or consequential damages of any character arising as a
|
|
264
|
+
result of this License or out of the use or inability to use the
|
|
265
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
266
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
267
|
+
other commercial damages or losses), even if such Contributor
|
|
268
|
+
has been advised of the possibility of such damages.
|
|
269
|
+
|
|
270
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
271
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
272
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
273
|
+
or other liability obligations and/or rights consistent with this
|
|
274
|
+
License. However, in accepting such obligations, You may act only
|
|
275
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
276
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
277
|
+
defend, and hold each Contributor harmless for any liability
|
|
278
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
279
|
+
of your accepting any such warranty or additional liability.
|
|
280
|
+
|
|
281
|
+
END OF TERMS AND CONDITIONS
|
|
282
|
+
|
|
283
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
284
|
+
|
|
285
|
+
To apply the Apache License to your work, attach the following
|
|
286
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
287
|
+
replaced with your own identifying information. (Don't include
|
|
288
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
289
|
+
comment syntax for the file format. We also recommend that a
|
|
290
|
+
file or class name and description of purpose be included on the
|
|
291
|
+
same "printed page" as the copyright notice for easier
|
|
292
|
+
identification within third-party archives.
|
|
293
|
+
|
|
294
|
+
Copyright [yyyy] [name of copyright owner]
|
|
295
|
+
|
|
296
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
297
|
+
you may not use this file except in compliance with the License.
|
|
298
|
+
You may obtain a copy of the License at
|
|
299
|
+
|
|
300
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
301
|
+
|
|
302
|
+
Unless required by applicable law or agreed to in writing, software
|
|
303
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
304
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
305
|
+
See the License for the specific language governing permissions and
|
|
306
|
+
limitations under the License.
|
|
307
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
|
2
|
+
MIIFwjCCA6qgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwcDELMAkGA1UEBhMCUlUx
|
|
3
|
+
PzA9BgNVBAoMNlRoZSBNaW5pc3RyeSBvZiBEaWdpdGFsIERldmVsb3BtZW50IGFu
|
|
4
|
+
ZCBDb21tdW5pY2F0aW9uczEgMB4GA1UEAwwXUnVzc2lhbiBUcnVzdGVkIFJvb3Qg
|
|
5
|
+
Q0EwHhcNMjIwMzAxMjEwNDE1WhcNMzIwMjI3MjEwNDE1WjBwMQswCQYDVQQGEwJS
|
|
6
|
+
VTE/MD0GA1UECgw2VGhlIE1pbmlzdHJ5IG9mIERpZ2l0YWwgRGV2ZWxvcG1lbnQg
|
|
7
|
+
YW5kIENvbW11bmljYXRpb25zMSAwHgYDVQQDDBdSdXNzaWFuIFRydXN0ZWQgUm9v
|
|
8
|
+
dCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMfFOZ8pUAL3+r2n
|
|
9
|
+
qqE0Zp52selXsKGFYoG0GM5bwz1bSFtCt+AZQMhkWQheI3poZAToYJu69pHLKS6Q
|
|
10
|
+
XBiwBC1cvzYmUYKMYZC7jE5YhEU2bSL0mX7NaMxMDmH2/NwuOVRj8OImVa5s1F4U
|
|
11
|
+
zn4Kv3PFlDBjjSjXKVY9kmjUBsXQrIHeaqmUIsPIlNWUnimXS0I0abExqkbdrXbX
|
|
12
|
+
YwCOXhOO2pDUx3ckmJlCMUGacUTnylyQW2VsJIyIGA8V0xzdaeUXg0VZ6ZmNUr5Y
|
|
13
|
+
Ber/EAOLPb8NYpsAhJe2mXjMB/J9HNsoFMBFJ0lLOT/+dQvjbdRZoOT8eqJpWnVD
|
|
14
|
+
U+QL/qEZnz57N88OWM3rabJkRNdU/Z7x5SFIM9FrqtN8xewsiBWBI0K6XFuOBOTD
|
|
15
|
+
4V08o4TzJ8+Ccq5XlCUW2L48pZNCYuBDfBh7FxkB7qDgGDiaftEkZZfApRg2E+M9
|
|
16
|
+
G8wkNKTPLDc4wH0FDTijhgxR3Y4PiS1HL2Zhw7bD3CbslmEGgfnnZojNkJtcLeBH
|
|
17
|
+
BLa52/dSwNU4WWLubaYSiAmA9IUMX1/RpfpxOxd4Ykmhz97oFbUaDJFipIggx5sX
|
|
18
|
+
ePAlkTdWnv+RWBxlJwMQ25oEHmRguNYf4Zr/Rxr9cS93Y+mdXIZaBEE0KS2iLRqa
|
|
19
|
+
OiWBki9IMQU4phqPOBAaG7A+eP8PAgMBAAGjZjBkMB0GA1UdDgQWBBTh0YHlzlpf
|
|
20
|
+
BKrS6badZrHF+qwshzAfBgNVHSMEGDAWgBTh0YHlzlpfBKrS6badZrHF+qwshzAS
|
|
21
|
+
BgNVHRMBAf8ECDAGAQH/AgEEMA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsF
|
|
22
|
+
AAOCAgEAALIY1wkilt/urfEVM5vKzr6utOeDWCUczmWX/RX4ljpRdgF+5fAIS4vH
|
|
23
|
+
tmXkqpSCOVeWUrJV9QvZn6L227ZwuE15cWi8DCDal3Ue90WgAJJZMfTshN4OI8cq
|
|
24
|
+
W9E4EG9wglbEtMnObHlms8F3CHmrw3k6KmUkWGoa+/ENmcVl68u/cMRl1JbW2bM+
|
|
25
|
+
/3A+SAg2c6iPDlehczKx2oa95QW0SkPPWGuNA/CE8CpyANIhu9XFrj3RQ3EqeRcS
|
|
26
|
+
AQQod1RNuHpfETLU/A2gMmvn/w/sx7TB3W5BPs6rprOA37tutPq9u6FTZOcG1Oqj
|
|
27
|
+
C/B7yTqgI7rbyvox7DEXoX7rIiEqyNNUguTk/u3SZ4VXE2kmxdmSh3TQvybfbnXV
|
|
28
|
+
4JbCZVaqiZraqc7oZMnRoWrXRG3ztbnbes/9qhRGI7PqXqeKJBztxRTEVj8ONs1d
|
|
29
|
+
WN5szTwaPIvhkhO3CO5ErU2rVdUr89wKpNXbBODFKRtgxUT70YpmJ46VVaqdAhOZ
|
|
30
|
+
D9EUUn4YaeLaS8AjSF/h7UkjOibNc4qVDiPP+rkehFWM66PVnP1Msh93tc+taIfC
|
|
31
|
+
EYVMxjh8zNbFuoc7fzvvrFILLe7ifvEIUqSVIC/AzplM/Jxw7buXFeGP1qVCBEHq
|
|
32
|
+
391d/9RAfaZ12zkwFsl+IKwE/OZxW8AHa9i1p4GO0YSNuczzEm4=
|
|
33
|
+
-----END CERTIFICATE-----
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application DTO задает options публичного SDK.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - форма настроек, передаваемых в bootstrap SDK facade;
|
|
6
|
+
* - optional runtime flags без привязки к CLI parser-у;
|
|
7
|
+
*
|
|
8
|
+
* Здесь не должно быть environment fallback logic или transport creation.
|
|
9
|
+
*/
|
|
10
|
+
import type { TInvestUnaryLimiter, TInvestUnaryLimits } from '../services/unary-limiter';
|
|
11
|
+
export interface TInvestTlsOptions {
|
|
12
|
+
/**
|
|
13
|
+
* PEM-содержимое root CA bundle для channel этого SDK instance.
|
|
14
|
+
* При включённом TLS полностью заменяет bundled T-Invest certificate.
|
|
15
|
+
*/
|
|
16
|
+
rootCertificates?: Buffer;
|
|
17
|
+
}
|
|
18
|
+
export interface TInvestOptions {
|
|
19
|
+
/** OAuth token в допустимой для строковых gRPC metadata ASCII-форме. */
|
|
20
|
+
token: string;
|
|
21
|
+
endpoint: string;
|
|
22
|
+
/** Необязательное ASCII-значение gRPC metadata `x-app-name`. */
|
|
23
|
+
appName?: string;
|
|
24
|
+
useSsl?: boolean;
|
|
25
|
+
tls?: TInvestTlsOptions;
|
|
26
|
+
/** Необязательная Consumer-owned стратегия ожидания перед unary-вызовами. */
|
|
27
|
+
unaryLimiter?: TInvestUnaryLimiter;
|
|
28
|
+
/** Per-instance конечные положительные overrides unary-квот. */
|
|
29
|
+
unaryLimits?: TInvestUnaryLimits;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application DTO задает options публичного SDK.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - форма настроек, передаваемых в bootstrap SDK facade;
|
|
7
|
+
* - optional runtime flags без привязки к CLI parser-у;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть environment fallback logic или transport creation.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль application DTO задает публичные service contracts SDK facade.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - package-owned interfaces для сервисов T-Invest API;
|
|
6
|
+
* - generated request/response DTO в method signatures;
|
|
7
|
+
* - transport-neutral call options без экспорта generated nice-grpc clients;
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть service definitions, gRPC client creation или bootstrap wiring.
|
|
10
|
+
*/
|
|
11
|
+
import type { DeepPartial } from '../../generated/common';
|
|
12
|
+
import type { AssetRequest, AssetResponse, AssetsRequest, AssetsResponse, BondResponse, BondsResponse, Brand, CreateFavoriteGroupRequest, CreateFavoriteGroupResponse, CurrencyResponse, CurrenciesResponse, DeleteFavoriteGroupRequest, DeleteFavoriteGroupResponse, DfaResponse, DfasRequest, DfasResponse, EditFavoritesRequest, EditFavoritesResponse, EtfResponse, EtfsResponse, FilterOptionsRequest, FindInstrumentRequest, FindInstrumentResponse, FutureResponse, FuturesResponse, GetAccruedInterestsRequest, GetAccruedInterestsResponse, GetAssetFundamentalsRequest, GetAssetFundamentalsResponse, GetAssetReportsRequest, GetAssetReportsResponse, GetBondCouponsRequest, GetBondCouponsResponse, GetBondEventsRequest, GetBondEventsResponse, GetBrandRequest, GetBrandsRequest, GetBrandsResponse, GetConsensusForecastsRequest, GetConsensusForecastsResponse, GetCountriesRequest, GetCountriesResponse, GetDividendsRequest, GetDividendsResponse, GetFavoritesRequest, GetFavoritesResponse, GetFavoriteGroupsRequest, GetFavoriteGroupsResponse, GetForecastRequest, GetForecastResponse, GetFuturesMarginRequest, GetFuturesMarginResponse, GetInsiderDealsRequest, GetInsiderDealsResponse, IndicativesRequest, IndicativesResponse, InstrumentRequest, InstrumentResponse, InstrumentsRequest, NewsRequest, NewsResponse, OptionResponse, OptionsResponse, RiskRatesRequest, RiskRatesResponse, ShareResponse, SharesResponse, StructuredNoteResponse, StructuredNotesResponse, TradingSchedulesRequest, TradingSchedulesResponse } from '../../generated/instruments';
|
|
13
|
+
import type { GetCandlesRequest, GetCandlesResponse, GetClosePricesRequest, GetClosePricesResponse, GetLastPricesRequest, GetLastPricesResponse, GetLastTradesRequest, GetLastTradesResponse, GetMarketValuesRequest, GetMarketValuesResponse, GetOrderBookRequest, GetOrderBookResponse, GetTechAnalysisRequest, GetTechAnalysisResponse, GetTradingStatusRequest, GetTradingStatusResponse, GetTradingStatusesRequest, GetTradingStatusesResponse, MarketDataRequest, MarketDataResponse, MarketDataServerSideStreamRequest } from '../../generated/marketdata';
|
|
14
|
+
import type { BrokerReportRequest, BrokerReportResponse, GetDividendsForeignIssuerRequest, GetDividendsForeignIssuerResponse, GetOperationsByCursorRequest, GetOperationsByCursorResponse, OperationsRequest, OperationsResponse, OperationsStreamRequest, OperationsStreamResponse, PortfolioRequest, PortfolioResponse, PortfolioStreamRequest, PortfolioStreamResponse, PositionsRequest, PositionsResponse, PositionsStreamRequest, PositionsStreamResponse, WithdrawLimitsRequest, WithdrawLimitsResponse } from '../../generated/operations';
|
|
15
|
+
import type { CancelOrderRequest, CancelOrderResponse, GetMaxLotsRequest, GetMaxLotsResponse, GetOrderPriceRequest, GetOrderPriceResponse, GetOrdersRequest, GetOrdersResponse, GetOrderStateRequest, OrderState, OrderStateStreamRequest, OrderStateStreamResponse, PostOrderAsyncRequest, PostOrderAsyncResponse, PostOrderRequest, PostOrderResponse, ReplaceOrderRequest, TradesStreamRequest, TradesStreamResponse } from '../../generated/orders';
|
|
16
|
+
import type { CloseSandboxAccountRequest, CloseSandboxAccountResponse, OpenSandboxAccountRequest, OpenSandboxAccountResponse, SandboxPayInRequest, SandboxPayInResponse } from '../../generated/sandbox';
|
|
17
|
+
import type { GetSignalsRequest, GetSignalsResponse, GetStrategiesRequest, GetStrategiesResponse } from '../../generated/signals';
|
|
18
|
+
import type { CancelStopOrderRequest, CancelStopOrderResponse, GetStopOrdersRequest, GetStopOrdersResponse, PostStopOrderRequest, PostStopOrderResponse } from '../../generated/stoporders';
|
|
19
|
+
import type { CurrencyTransferRequest, CurrencyTransferResponse, GetAccountValuesRequest, GetAccountValuesResponse, GetAccountsRequest, GetAccountsResponse, GetBankAccountsRequest, GetBankAccountsResponse, GetInfoRequest, GetInfoResponse, GetMarginAttributesRequest, GetMarginAttributesResponse, GetUserTariffRequest, GetUserTariffResponse, PayInRequest, PayInResponse } from '../../generated/users';
|
|
20
|
+
export type TInvestMetadataValue<Key extends string> = string extends Key ? string | Uint8Array : Lowercase<Key> extends `${string}-bin` ? Uint8Array : string;
|
|
21
|
+
export interface TInvestMetadata {
|
|
22
|
+
set<Key extends string>(key: Key, value: TInvestMetadataValue<Key> | Array<TInvestMetadataValue<Key>>): TInvestMetadata;
|
|
23
|
+
append<Key extends string>(key: Key, value: TInvestMetadataValue<Key>): TInvestMetadata;
|
|
24
|
+
delete(key: string): void;
|
|
25
|
+
get<Key extends string>(key: Key): TInvestMetadataValue<Key> | undefined;
|
|
26
|
+
getAll<Key extends string>(key: Key): Array<TInvestMetadataValue<Key>>;
|
|
27
|
+
has(key: string): boolean;
|
|
28
|
+
[Symbol.iterator](): IterableIterator<[string, Array<string | Uint8Array>]>;
|
|
29
|
+
}
|
|
30
|
+
export interface TInvestCallOptions {
|
|
31
|
+
metadata?: TInvestMetadata;
|
|
32
|
+
/** Отменяет ожидание локальной квоты и переданный transport-вызов. */
|
|
33
|
+
signal?: AbortSignal;
|
|
34
|
+
/** Синхронное исключение отклоняет владеющий RPC или stream iteration. */
|
|
35
|
+
onHeader?(header: TInvestMetadata): void;
|
|
36
|
+
/** Синхронное исключение отклоняет владеющий RPC или stream iteration. */
|
|
37
|
+
onTrailer?(trailer: TInvestMetadata): void;
|
|
38
|
+
}
|
|
39
|
+
export interface UsersService {
|
|
40
|
+
getAccounts(request: DeepPartial<GetAccountsRequest>, options?: TInvestCallOptions): Promise<GetAccountsResponse>;
|
|
41
|
+
getMarginAttributes(request: DeepPartial<GetMarginAttributesRequest>, options?: TInvestCallOptions): Promise<GetMarginAttributesResponse>;
|
|
42
|
+
getUserTariff(request: DeepPartial<GetUserTariffRequest>, options?: TInvestCallOptions): Promise<GetUserTariffResponse>;
|
|
43
|
+
getInfo(request: DeepPartial<GetInfoRequest>, options?: TInvestCallOptions): Promise<GetInfoResponse>;
|
|
44
|
+
getBankAccounts(request: DeepPartial<GetBankAccountsRequest>, options?: TInvestCallOptions): Promise<GetBankAccountsResponse>;
|
|
45
|
+
currencyTransfer(request: DeepPartial<CurrencyTransferRequest>, options?: TInvestCallOptions): Promise<CurrencyTransferResponse>;
|
|
46
|
+
payIn(request: DeepPartial<PayInRequest>, options?: TInvestCallOptions): Promise<PayInResponse>;
|
|
47
|
+
getAccountValues(request: DeepPartial<GetAccountValuesRequest>, options?: TInvestCallOptions): Promise<GetAccountValuesResponse>;
|
|
48
|
+
}
|
|
49
|
+
export interface OrdersService {
|
|
50
|
+
postOrder(request: DeepPartial<PostOrderRequest>, options?: TInvestCallOptions): Promise<PostOrderResponse>;
|
|
51
|
+
postOrderAsync(request: DeepPartial<PostOrderAsyncRequest>, options?: TInvestCallOptions): Promise<PostOrderAsyncResponse>;
|
|
52
|
+
cancelOrder(request: DeepPartial<CancelOrderRequest>, options?: TInvestCallOptions): Promise<CancelOrderResponse>;
|
|
53
|
+
getOrderState(request: DeepPartial<GetOrderStateRequest>, options?: TInvestCallOptions): Promise<OrderState>;
|
|
54
|
+
getOrders(request: DeepPartial<GetOrdersRequest>, options?: TInvestCallOptions): Promise<GetOrdersResponse>;
|
|
55
|
+
replaceOrder(request: DeepPartial<ReplaceOrderRequest>, options?: TInvestCallOptions): Promise<PostOrderResponse>;
|
|
56
|
+
getMaxLots(request: DeepPartial<GetMaxLotsRequest>, options?: TInvestCallOptions): Promise<GetMaxLotsResponse>;
|
|
57
|
+
getOrderPrice(request: DeepPartial<GetOrderPriceRequest>, options?: TInvestCallOptions): Promise<GetOrderPriceResponse>;
|
|
58
|
+
}
|
|
59
|
+
export interface OrdersStreamService {
|
|
60
|
+
tradesStream(request: DeepPartial<TradesStreamRequest>, options?: TInvestCallOptions): AsyncIterable<TradesStreamResponse>;
|
|
61
|
+
orderStateStream(request: DeepPartial<OrderStateStreamRequest>, options?: TInvestCallOptions): AsyncIterable<OrderStateStreamResponse>;
|
|
62
|
+
}
|
|
63
|
+
export interface StopOrdersService {
|
|
64
|
+
postStopOrder(request: DeepPartial<PostStopOrderRequest>, options?: TInvestCallOptions): Promise<PostStopOrderResponse>;
|
|
65
|
+
getStopOrders(request: DeepPartial<GetStopOrdersRequest>, options?: TInvestCallOptions): Promise<GetStopOrdersResponse>;
|
|
66
|
+
cancelStopOrder(request: DeepPartial<CancelStopOrderRequest>, options?: TInvestCallOptions): Promise<CancelStopOrderResponse>;
|
|
67
|
+
}
|
|
68
|
+
export interface SandboxService {
|
|
69
|
+
openSandboxAccount(request: DeepPartial<OpenSandboxAccountRequest>, options?: TInvestCallOptions): Promise<OpenSandboxAccountResponse>;
|
|
70
|
+
getSandboxAccounts(request: DeepPartial<GetAccountsRequest>, options?: TInvestCallOptions): Promise<GetAccountsResponse>;
|
|
71
|
+
closeSandboxAccount(request: DeepPartial<CloseSandboxAccountRequest>, options?: TInvestCallOptions): Promise<CloseSandboxAccountResponse>;
|
|
72
|
+
postSandboxOrder(request: DeepPartial<PostOrderRequest>, options?: TInvestCallOptions): Promise<PostOrderResponse>;
|
|
73
|
+
postSandboxOrderAsync(request: DeepPartial<PostOrderAsyncRequest>, options?: TInvestCallOptions): Promise<PostOrderAsyncResponse>;
|
|
74
|
+
replaceSandboxOrder(request: DeepPartial<ReplaceOrderRequest>, options?: TInvestCallOptions): Promise<PostOrderResponse>;
|
|
75
|
+
getSandboxOrders(request: DeepPartial<GetOrdersRequest>, options?: TInvestCallOptions): Promise<GetOrdersResponse>;
|
|
76
|
+
cancelSandboxOrder(request: DeepPartial<CancelOrderRequest>, options?: TInvestCallOptions): Promise<CancelOrderResponse>;
|
|
77
|
+
getSandboxOrderState(request: DeepPartial<GetOrderStateRequest>, options?: TInvestCallOptions): Promise<OrderState>;
|
|
78
|
+
getSandboxOrderPrice(request: DeepPartial<GetOrderPriceRequest>, options?: TInvestCallOptions): Promise<GetOrderPriceResponse>;
|
|
79
|
+
getSandboxPositions(request: DeepPartial<PositionsRequest>, options?: TInvestCallOptions): Promise<PositionsResponse>;
|
|
80
|
+
getSandboxOperations(request: DeepPartial<OperationsRequest>, options?: TInvestCallOptions): Promise<OperationsResponse>;
|
|
81
|
+
getSandboxOperationsByCursor(request: DeepPartial<GetOperationsByCursorRequest>, options?: TInvestCallOptions): Promise<GetOperationsByCursorResponse>;
|
|
82
|
+
getSandboxPortfolio(request: DeepPartial<PortfolioRequest>, options?: TInvestCallOptions): Promise<PortfolioResponse>;
|
|
83
|
+
sandboxPayIn(request: DeepPartial<SandboxPayInRequest>, options?: TInvestCallOptions): Promise<SandboxPayInResponse>;
|
|
84
|
+
getSandboxWithdrawLimits(request: DeepPartial<WithdrawLimitsRequest>, options?: TInvestCallOptions): Promise<WithdrawLimitsResponse>;
|
|
85
|
+
getSandboxMaxLots(request: DeepPartial<GetMaxLotsRequest>, options?: TInvestCallOptions): Promise<GetMaxLotsResponse>;
|
|
86
|
+
postSandboxStopOrder(request: DeepPartial<PostStopOrderRequest>, options?: TInvestCallOptions): Promise<PostStopOrderResponse>;
|
|
87
|
+
getSandboxStopOrders(request: DeepPartial<GetStopOrdersRequest>, options?: TInvestCallOptions): Promise<GetStopOrdersResponse>;
|
|
88
|
+
cancelSandboxStopOrder(request: DeepPartial<CancelStopOrderRequest>, options?: TInvestCallOptions): Promise<CancelStopOrderResponse>;
|
|
89
|
+
}
|
|
90
|
+
export interface SignalService {
|
|
91
|
+
getStrategies(request: DeepPartial<GetStrategiesRequest>, options?: TInvestCallOptions): Promise<GetStrategiesResponse>;
|
|
92
|
+
getSignals(request: DeepPartial<GetSignalsRequest>, options?: TInvestCallOptions): Promise<GetSignalsResponse>;
|
|
93
|
+
}
|
|
94
|
+
export interface MarketDataService {
|
|
95
|
+
getCandles(request: DeepPartial<GetCandlesRequest>, options?: TInvestCallOptions): Promise<GetCandlesResponse>;
|
|
96
|
+
getLastPrices(request: DeepPartial<GetLastPricesRequest>, options?: TInvestCallOptions): Promise<GetLastPricesResponse>;
|
|
97
|
+
getOrderBook(request: DeepPartial<GetOrderBookRequest>, options?: TInvestCallOptions): Promise<GetOrderBookResponse>;
|
|
98
|
+
getTradingStatus(request: DeepPartial<GetTradingStatusRequest>, options?: TInvestCallOptions): Promise<GetTradingStatusResponse>;
|
|
99
|
+
getTradingStatuses(request: DeepPartial<GetTradingStatusesRequest>, options?: TInvestCallOptions): Promise<GetTradingStatusesResponse>;
|
|
100
|
+
getLastTrades(request: DeepPartial<GetLastTradesRequest>, options?: TInvestCallOptions): Promise<GetLastTradesResponse>;
|
|
101
|
+
getClosePrices(request: DeepPartial<GetClosePricesRequest>, options?: TInvestCallOptions): Promise<GetClosePricesResponse>;
|
|
102
|
+
getTechAnalysis(request: DeepPartial<GetTechAnalysisRequest>, options?: TInvestCallOptions): Promise<GetTechAnalysisResponse>;
|
|
103
|
+
getMarketValues(request: DeepPartial<GetMarketValuesRequest>, options?: TInvestCallOptions): Promise<GetMarketValuesResponse>;
|
|
104
|
+
}
|
|
105
|
+
export interface MarketDataStreamService {
|
|
106
|
+
marketDataStream(request: AsyncIterable<DeepPartial<MarketDataRequest>>, options?: TInvestCallOptions): AsyncIterable<MarketDataResponse>;
|
|
107
|
+
marketDataServerSideStream(request: DeepPartial<MarketDataServerSideStreamRequest>, options?: TInvestCallOptions): AsyncIterable<MarketDataResponse>;
|
|
108
|
+
}
|
|
109
|
+
export interface OperationsService {
|
|
110
|
+
getOperations(request: DeepPartial<OperationsRequest>, options?: TInvestCallOptions): Promise<OperationsResponse>;
|
|
111
|
+
getPortfolio(request: DeepPartial<PortfolioRequest>, options?: TInvestCallOptions): Promise<PortfolioResponse>;
|
|
112
|
+
getPositions(request: DeepPartial<PositionsRequest>, options?: TInvestCallOptions): Promise<PositionsResponse>;
|
|
113
|
+
getWithdrawLimits(request: DeepPartial<WithdrawLimitsRequest>, options?: TInvestCallOptions): Promise<WithdrawLimitsResponse>;
|
|
114
|
+
getBrokerReport(request: DeepPartial<BrokerReportRequest>, options?: TInvestCallOptions): Promise<BrokerReportResponse>;
|
|
115
|
+
getDividendsForeignIssuer(request: DeepPartial<GetDividendsForeignIssuerRequest>, options?: TInvestCallOptions): Promise<GetDividendsForeignIssuerResponse>;
|
|
116
|
+
getOperationsByCursor(request: DeepPartial<GetOperationsByCursorRequest>, options?: TInvestCallOptions): Promise<GetOperationsByCursorResponse>;
|
|
117
|
+
}
|
|
118
|
+
export interface OperationsStreamService {
|
|
119
|
+
portfolioStream(request: DeepPartial<PortfolioStreamRequest>, options?: TInvestCallOptions): AsyncIterable<PortfolioStreamResponse>;
|
|
120
|
+
positionsStream(request: DeepPartial<PositionsStreamRequest>, options?: TInvestCallOptions): AsyncIterable<PositionsStreamResponse>;
|
|
121
|
+
operationsStream(request: DeepPartial<OperationsStreamRequest>, options?: TInvestCallOptions): AsyncIterable<OperationsStreamResponse>;
|
|
122
|
+
}
|
|
123
|
+
export interface InstrumentsService {
|
|
124
|
+
tradingSchedules(request: DeepPartial<TradingSchedulesRequest>, options?: TInvestCallOptions): Promise<TradingSchedulesResponse>;
|
|
125
|
+
bondBy(request: DeepPartial<InstrumentRequest>, options?: TInvestCallOptions): Promise<BondResponse>;
|
|
126
|
+
bonds(request: DeepPartial<InstrumentsRequest>, options?: TInvestCallOptions): Promise<BondsResponse>;
|
|
127
|
+
getBondCoupons(request: DeepPartial<GetBondCouponsRequest>, options?: TInvestCallOptions): Promise<GetBondCouponsResponse>;
|
|
128
|
+
getBondEvents(request: DeepPartial<GetBondEventsRequest>, options?: TInvestCallOptions): Promise<GetBondEventsResponse>;
|
|
129
|
+
currencyBy(request: DeepPartial<InstrumentRequest>, options?: TInvestCallOptions): Promise<CurrencyResponse>;
|
|
130
|
+
currencies(request: DeepPartial<InstrumentsRequest>, options?: TInvestCallOptions): Promise<CurrenciesResponse>;
|
|
131
|
+
etfBy(request: DeepPartial<InstrumentRequest>, options?: TInvestCallOptions): Promise<EtfResponse>;
|
|
132
|
+
etfs(request: DeepPartial<InstrumentsRequest>, options?: TInvestCallOptions): Promise<EtfsResponse>;
|
|
133
|
+
futureBy(request: DeepPartial<InstrumentRequest>, options?: TInvestCallOptions): Promise<FutureResponse>;
|
|
134
|
+
futures(request: DeepPartial<InstrumentsRequest>, options?: TInvestCallOptions): Promise<FuturesResponse>;
|
|
135
|
+
optionBy(request: DeepPartial<InstrumentRequest>, options?: TInvestCallOptions): Promise<OptionResponse>;
|
|
136
|
+
/** @deprecated Generated-контракт T-Invest помечает этот метод устаревшим. */
|
|
137
|
+
options(request: DeepPartial<InstrumentsRequest>, options?: TInvestCallOptions): Promise<OptionsResponse>;
|
|
138
|
+
optionsBy(request: DeepPartial<FilterOptionsRequest>, options?: TInvestCallOptions): Promise<OptionsResponse>;
|
|
139
|
+
shareBy(request: DeepPartial<InstrumentRequest>, options?: TInvestCallOptions): Promise<ShareResponse>;
|
|
140
|
+
shares(request: DeepPartial<InstrumentsRequest>, options?: TInvestCallOptions): Promise<SharesResponse>;
|
|
141
|
+
dfaBy(request: DeepPartial<InstrumentRequest>, options?: TInvestCallOptions): Promise<DfaResponse>;
|
|
142
|
+
dfas(request: DeepPartial<DfasRequest>, options?: TInvestCallOptions): Promise<DfasResponse>;
|
|
143
|
+
indicatives(request: DeepPartial<IndicativesRequest>, options?: TInvestCallOptions): Promise<IndicativesResponse>;
|
|
144
|
+
getAccruedInterests(request: DeepPartial<GetAccruedInterestsRequest>, options?: TInvestCallOptions): Promise<GetAccruedInterestsResponse>;
|
|
145
|
+
getFuturesMargin(request: DeepPartial<GetFuturesMarginRequest>, options?: TInvestCallOptions): Promise<GetFuturesMarginResponse>;
|
|
146
|
+
getInstrumentBy(request: DeepPartial<InstrumentRequest>, options?: TInvestCallOptions): Promise<InstrumentResponse>;
|
|
147
|
+
getDividends(request: DeepPartial<GetDividendsRequest>, options?: TInvestCallOptions): Promise<GetDividendsResponse>;
|
|
148
|
+
getAssetBy(request: DeepPartial<AssetRequest>, options?: TInvestCallOptions): Promise<AssetResponse>;
|
|
149
|
+
getAssets(request: DeepPartial<AssetsRequest>, options?: TInvestCallOptions): Promise<AssetsResponse>;
|
|
150
|
+
getFavorites(request: DeepPartial<GetFavoritesRequest>, options?: TInvestCallOptions): Promise<GetFavoritesResponse>;
|
|
151
|
+
editFavorites(request: DeepPartial<EditFavoritesRequest>, options?: TInvestCallOptions): Promise<EditFavoritesResponse>;
|
|
152
|
+
createFavoriteGroup(request: DeepPartial<CreateFavoriteGroupRequest>, options?: TInvestCallOptions): Promise<CreateFavoriteGroupResponse>;
|
|
153
|
+
deleteFavoriteGroup(request: DeepPartial<DeleteFavoriteGroupRequest>, options?: TInvestCallOptions): Promise<DeleteFavoriteGroupResponse>;
|
|
154
|
+
getFavoriteGroups(request: DeepPartial<GetFavoriteGroupsRequest>, options?: TInvestCallOptions): Promise<GetFavoriteGroupsResponse>;
|
|
155
|
+
getCountries(request: DeepPartial<GetCountriesRequest>, options?: TInvestCallOptions): Promise<GetCountriesResponse>;
|
|
156
|
+
findInstrument(request: DeepPartial<FindInstrumentRequest>, options?: TInvestCallOptions): Promise<FindInstrumentResponse>;
|
|
157
|
+
getBrands(request: DeepPartial<GetBrandsRequest>, options?: TInvestCallOptions): Promise<GetBrandsResponse>;
|
|
158
|
+
getBrandBy(request: DeepPartial<GetBrandRequest>, options?: TInvestCallOptions): Promise<Brand>;
|
|
159
|
+
getAssetFundamentals(request: DeepPartial<GetAssetFundamentalsRequest>, options?: TInvestCallOptions): Promise<GetAssetFundamentalsResponse>;
|
|
160
|
+
getAssetReports(request: DeepPartial<GetAssetReportsRequest>, options?: TInvestCallOptions): Promise<GetAssetReportsResponse>;
|
|
161
|
+
getConsensusForecasts(request: DeepPartial<GetConsensusForecastsRequest>, options?: TInvestCallOptions): Promise<GetConsensusForecastsResponse>;
|
|
162
|
+
getForecastBy(request: DeepPartial<GetForecastRequest>, options?: TInvestCallOptions): Promise<GetForecastResponse>;
|
|
163
|
+
getRiskRates(request: DeepPartial<RiskRatesRequest>, options?: TInvestCallOptions): Promise<RiskRatesResponse>;
|
|
164
|
+
getInsiderDeals(request: DeepPartial<GetInsiderDealsRequest>, options?: TInvestCallOptions): Promise<GetInsiderDealsResponse>;
|
|
165
|
+
structuredNoteBy(request: DeepPartial<InstrumentRequest>, options?: TInvestCallOptions): Promise<StructuredNoteResponse>;
|
|
166
|
+
structuredNotes(request: DeepPartial<InstrumentsRequest>, options?: TInvestCallOptions): Promise<StructuredNotesResponse>;
|
|
167
|
+
news(request: DeepPartial<NewsRequest>, options?: TInvestCallOptions): Promise<NewsResponse>;
|
|
168
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Модуль application DTO задает публичные service contracts SDK facade.
|
|
4
|
+
*
|
|
5
|
+
* Здесь допустимы:
|
|
6
|
+
* - package-owned interfaces для сервисов T-Invest API;
|
|
7
|
+
* - generated request/response DTO в method signatures;
|
|
8
|
+
* - transport-neutral call options без экспорта generated nice-grpc clients;
|
|
9
|
+
*
|
|
10
|
+
* Здесь не должно быть service definitions, gRPC client creation или bootstrap wiring.
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Модуль задает transport-neutral публичный контракт ошибок SDK.
|
|
3
|
+
*
|
|
4
|
+
* Здесь допустимы:
|
|
5
|
+
* - стабильные machine-readable коды;
|
|
6
|
+
* - источник ошибки и безопасные диагностические поля;
|
|
7
|
+
* - cross-copy runtime narrowing.
|
|
8
|
+
*
|
|
9
|
+
* Здесь не должно быть imports из transport libraries или retry policy.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum SdkErrorCode {
|
|
12
|
+
Cancelled = "CANCELLED",
|
|
13
|
+
Unknown = "UNKNOWN",
|
|
14
|
+
InvalidArgument = "INVALID_ARGUMENT",
|
|
15
|
+
DeadlineExceeded = "DEADLINE_EXCEEDED",
|
|
16
|
+
NotFound = "NOT_FOUND",
|
|
17
|
+
AlreadyExists = "ALREADY_EXISTS",
|
|
18
|
+
PermissionDenied = "PERMISSION_DENIED",
|
|
19
|
+
ResourceExhausted = "RESOURCE_EXHAUSTED",
|
|
20
|
+
FailedPrecondition = "FAILED_PRECONDITION",
|
|
21
|
+
Aborted = "ABORTED",
|
|
22
|
+
OutOfRange = "OUT_OF_RANGE",
|
|
23
|
+
Unimplemented = "UNIMPLEMENTED",
|
|
24
|
+
Internal = "INTERNAL",
|
|
25
|
+
Unavailable = "UNAVAILABLE",
|
|
26
|
+
DataLoss = "DATA_LOSS",
|
|
27
|
+
Unauthenticated = "UNAUTHENTICATED",
|
|
28
|
+
SdkClosed = "SDK_CLOSED",
|
|
29
|
+
UnknownUnaryLimit = "UNKNOWN_UNARY_LIMIT"
|
|
30
|
+
}
|
|
31
|
+
export type SdkErrorSource = 'grpc' | 'tls' | 'abort' | 'lifecycle' | 'sdk';
|
|
32
|
+
export interface SdkErrorOptions {
|
|
33
|
+
source: SdkErrorSource;
|
|
34
|
+
path?: string;
|
|
35
|
+
details?: string;
|
|
36
|
+
cause?: unknown;
|
|
37
|
+
}
|
|
38
|
+
export declare class SdkError<Code extends SdkErrorCode = SdkErrorCode> extends Error {
|
|
39
|
+
readonly code: Code;
|
|
40
|
+
readonly source: SdkErrorSource;
|
|
41
|
+
readonly path: string | undefined;
|
|
42
|
+
readonly details: string | undefined;
|
|
43
|
+
constructor(code: Code, message: string, options: SdkErrorOptions);
|
|
44
|
+
static [Symbol.hasInstance](value: unknown): boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare function isSdkError(error: unknown): error is SdkError;
|
|
47
|
+
export declare function isSdkError<Code extends SdkErrorCode>(error: unknown, code: Code): error is SdkError<Code>;
|