@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,453 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
|
+
import { MoneyValue, Quotation } from "./common";
|
|
4
|
+
export declare const protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
5
|
+
/** Тип счeта. */
|
|
6
|
+
export declare enum AccountType {
|
|
7
|
+
/** ACCOUNT_TYPE_UNSPECIFIED - Тип аккаунта не определeн. */
|
|
8
|
+
ACCOUNT_TYPE_UNSPECIFIED = 0,
|
|
9
|
+
/** ACCOUNT_TYPE_TINKOFF - Брокерский счeт Т-Инвестиций. */
|
|
10
|
+
ACCOUNT_TYPE_TINKOFF = 1,
|
|
11
|
+
/** ACCOUNT_TYPE_TINKOFF_IIS - ИИС. */
|
|
12
|
+
ACCOUNT_TYPE_TINKOFF_IIS = 2,
|
|
13
|
+
/** ACCOUNT_TYPE_INVEST_BOX - Инвесткопилка. */
|
|
14
|
+
ACCOUNT_TYPE_INVEST_BOX = 3,
|
|
15
|
+
/** ACCOUNT_TYPE_INVEST_FUND - Фонд денежного рынка. */
|
|
16
|
+
ACCOUNT_TYPE_INVEST_FUND = 4,
|
|
17
|
+
/** ACCOUNT_TYPE_DEBIT - Дебетовый карточный счeт. */
|
|
18
|
+
ACCOUNT_TYPE_DEBIT = 5,
|
|
19
|
+
/** ACCOUNT_TYPE_SAVING - Накопительный счeт. */
|
|
20
|
+
ACCOUNT_TYPE_SAVING = 6,
|
|
21
|
+
/** ACCOUNT_TYPE_DFA - Смарт-счет. */
|
|
22
|
+
ACCOUNT_TYPE_DFA = 7,
|
|
23
|
+
UNRECOGNIZED = -1
|
|
24
|
+
}
|
|
25
|
+
export declare function accountTypeFromJSON(object: any): AccountType;
|
|
26
|
+
export declare function accountTypeToJSON(object: AccountType): string;
|
|
27
|
+
/** Статус счeта. */
|
|
28
|
+
export declare enum AccountStatus {
|
|
29
|
+
/** ACCOUNT_STATUS_UNSPECIFIED - Статус счeта не определeн. */
|
|
30
|
+
ACCOUNT_STATUS_UNSPECIFIED = 0,
|
|
31
|
+
/** ACCOUNT_STATUS_NEW - Новый, в процессе открытия. */
|
|
32
|
+
ACCOUNT_STATUS_NEW = 1,
|
|
33
|
+
/** ACCOUNT_STATUS_OPEN - Открытый и активный счeт. */
|
|
34
|
+
ACCOUNT_STATUS_OPEN = 2,
|
|
35
|
+
/** ACCOUNT_STATUS_CLOSED - Закрытый счeт. */
|
|
36
|
+
ACCOUNT_STATUS_CLOSED = 3,
|
|
37
|
+
/** ACCOUNT_STATUS_ALL - Все счета. */
|
|
38
|
+
ACCOUNT_STATUS_ALL = 4,
|
|
39
|
+
UNRECOGNIZED = -1
|
|
40
|
+
}
|
|
41
|
+
export declare function accountStatusFromJSON(object: any): AccountStatus;
|
|
42
|
+
export declare function accountStatusToJSON(object: AccountStatus): string;
|
|
43
|
+
/** Уровень доступа к счeту. */
|
|
44
|
+
export declare enum AccessLevel {
|
|
45
|
+
/** ACCOUNT_ACCESS_LEVEL_UNSPECIFIED - Уровень доступа не определeн. */
|
|
46
|
+
ACCOUNT_ACCESS_LEVEL_UNSPECIFIED = 0,
|
|
47
|
+
/** ACCOUNT_ACCESS_LEVEL_FULL_ACCESS - Полный доступ к счeту. */
|
|
48
|
+
ACCOUNT_ACCESS_LEVEL_FULL_ACCESS = 1,
|
|
49
|
+
/** ACCOUNT_ACCESS_LEVEL_READ_ONLY - Доступ с уровнем прав «только чтение». */
|
|
50
|
+
ACCOUNT_ACCESS_LEVEL_READ_ONLY = 2,
|
|
51
|
+
/** ACCOUNT_ACCESS_LEVEL_NO_ACCESS - Доступа нет. */
|
|
52
|
+
ACCOUNT_ACCESS_LEVEL_NO_ACCESS = 3,
|
|
53
|
+
UNRECOGNIZED = -1
|
|
54
|
+
}
|
|
55
|
+
export declare function accessLevelFromJSON(object: any): AccessLevel;
|
|
56
|
+
export declare function accessLevelToJSON(object: AccessLevel): string;
|
|
57
|
+
export declare enum AccountValue {
|
|
58
|
+
/** ACCOUNT_VALUE_UNSPECIFIED - Не определён. */
|
|
59
|
+
ACCOUNT_VALUE_UNSPECIFIED = 0,
|
|
60
|
+
/** ACCOUNT_VALUE_MARGIN_FEE - Размер комиссии за маржинальное кредитование. */
|
|
61
|
+
ACCOUNT_VALUE_MARGIN_FEE = 1,
|
|
62
|
+
/** ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE - Остаток доступного лимита с текущей комиссией. */
|
|
63
|
+
ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE = 2,
|
|
64
|
+
UNRECOGNIZED = -1
|
|
65
|
+
}
|
|
66
|
+
export declare function accountValueFromJSON(object: any): AccountValue;
|
|
67
|
+
export declare function accountValueToJSON(object: AccountValue): string;
|
|
68
|
+
/** Запрос получения счетов пользователя. */
|
|
69
|
+
export interface GetAccountsRequest {
|
|
70
|
+
/** Статус счета. */
|
|
71
|
+
status?: AccountStatus | undefined;
|
|
72
|
+
}
|
|
73
|
+
/** Список счетов пользователя. */
|
|
74
|
+
export interface GetAccountsResponse {
|
|
75
|
+
/** Массив счетов клиента. */
|
|
76
|
+
accounts: Account[];
|
|
77
|
+
}
|
|
78
|
+
/** Информация о счeте. */
|
|
79
|
+
export interface Account {
|
|
80
|
+
/** Идентификатор счeта. */
|
|
81
|
+
id: string;
|
|
82
|
+
/** Тип счeта. */
|
|
83
|
+
type: AccountType;
|
|
84
|
+
/** Название счeта. */
|
|
85
|
+
name: string;
|
|
86
|
+
/** Статус счeта. */
|
|
87
|
+
status: AccountStatus;
|
|
88
|
+
/** Дата открытия счeта в часовом поясе UTC. */
|
|
89
|
+
openedDate: Date | undefined;
|
|
90
|
+
/** Дата закрытия счeта в часовом поясе UTC. */
|
|
91
|
+
closedDate: Date | undefined;
|
|
92
|
+
/** Уровень доступа к текущему счeту (определяется токеном). */
|
|
93
|
+
accessLevel: AccessLevel;
|
|
94
|
+
}
|
|
95
|
+
/** Запрос маржинальных показателей по счeту. */
|
|
96
|
+
export interface GetMarginAttributesRequest {
|
|
97
|
+
/** Идентификатор счeта пользователя. */
|
|
98
|
+
accountId: string;
|
|
99
|
+
}
|
|
100
|
+
/** Маржинальные показатели по счeту. */
|
|
101
|
+
export interface GetMarginAttributesResponse {
|
|
102
|
+
/** Ликвидная стоимость портфеля. [Подробнее про ликвидный портфель](https://www.tbank.ru/invest/help/brokerage/account/margin/about/#q4). */
|
|
103
|
+
liquidPortfolio: MoneyValue | undefined;
|
|
104
|
+
/** Начальная маржа — начальное обеспечение для совершения новой сделки. [Подробнее про начальную и минимальную маржу](https://www.tbank.ru/invest/help/brokerage/account/margin/about/#q6). */
|
|
105
|
+
startingMargin: MoneyValue | undefined;
|
|
106
|
+
/** Минимальная маржа — это минимальное обеспечение для поддержания позиции, которую вы уже открыли. [Подробнее про начальную и минимальную маржу](https://www.tbank.ru/invest/help/brokerage/account/margin/about/#q6). */
|
|
107
|
+
minimalMargin: MoneyValue | undefined;
|
|
108
|
+
/** Уровень достаточности средств. Соотношение стоимости ликвидного портфеля к начальной марже. */
|
|
109
|
+
fundsSufficiencyLevel: Quotation | undefined;
|
|
110
|
+
/** Объем недостающих средств. Разница между стартовой маржой и ликвидной стоимости портфеля. */
|
|
111
|
+
amountOfMissingFunds: MoneyValue | undefined;
|
|
112
|
+
/** Скорректированная маржа. Начальная маржа, в которой плановые позиции рассчитываются с учeтом активных заявок на покупку позиций лонг или продажу позиций шорт. */
|
|
113
|
+
correctedMargin: MoneyValue | undefined;
|
|
114
|
+
/** Размер гарантийного обеспечения, заблокированного под фьючерсы. */
|
|
115
|
+
guaranteeForFutures: MoneyValue | undefined;
|
|
116
|
+
}
|
|
117
|
+
/** Запрос текущих лимитов пользователя. */
|
|
118
|
+
export interface GetUserTariffRequest {
|
|
119
|
+
}
|
|
120
|
+
/** Текущие лимиты пользователя. */
|
|
121
|
+
export interface GetUserTariffResponse {
|
|
122
|
+
/** Массив лимитов пользователя по unary-запросам. */
|
|
123
|
+
unaryLimits: UnaryLimit[];
|
|
124
|
+
/** Массив лимитов пользователей для stream-соединений. */
|
|
125
|
+
streamLimits: StreamLimit[];
|
|
126
|
+
}
|
|
127
|
+
/** Лимит unary-методов. */
|
|
128
|
+
export interface UnaryLimit {
|
|
129
|
+
/** Количество unary-запросов в минуту. */
|
|
130
|
+
limitPerMinute: number;
|
|
131
|
+
/** Названия методов. */
|
|
132
|
+
methods: string[];
|
|
133
|
+
/** Количество unary-запросов в секунду. */
|
|
134
|
+
limitPerSecond?: number | undefined;
|
|
135
|
+
}
|
|
136
|
+
/** Лимит stream-соединений. */
|
|
137
|
+
export interface StreamLimit {
|
|
138
|
+
/** Максимальное количество stream-соединений. */
|
|
139
|
+
limit: number;
|
|
140
|
+
/** Названия stream-методов. */
|
|
141
|
+
streams: string[];
|
|
142
|
+
/** Текущее количество открытых stream-соединений. */
|
|
143
|
+
open: number;
|
|
144
|
+
}
|
|
145
|
+
/** Запрос информации о пользователе. */
|
|
146
|
+
export interface GetInfoRequest {
|
|
147
|
+
}
|
|
148
|
+
/** Информация о пользователе. */
|
|
149
|
+
export interface GetInfoResponse {
|
|
150
|
+
/** Признак премиум клиента. */
|
|
151
|
+
premStatus: boolean;
|
|
152
|
+
/** Признак квалифицированного инвестора. */
|
|
153
|
+
qualStatus: boolean;
|
|
154
|
+
/** Набор требующих тестирования инструментов и возможностей, с которыми может работать пользователь. [Подробнее](/invest/services/accounts/faq_users). */
|
|
155
|
+
qualifiedForWorkWith: string[];
|
|
156
|
+
/** Наименование тарифа пользователя. */
|
|
157
|
+
tariff: string;
|
|
158
|
+
/** Идентификатор пользователя. */
|
|
159
|
+
userId: string;
|
|
160
|
+
/** Категория риска. */
|
|
161
|
+
riskLevelCode: string;
|
|
162
|
+
}
|
|
163
|
+
/** Запрос списка банковских счетов пользователя. */
|
|
164
|
+
export interface GetBankAccountsRequest {
|
|
165
|
+
}
|
|
166
|
+
/** Список банковских счетов пользователя. */
|
|
167
|
+
export interface GetBankAccountsResponse {
|
|
168
|
+
/** Массив банковских счетов. */
|
|
169
|
+
bankAccounts: BankAccount[];
|
|
170
|
+
}
|
|
171
|
+
/** Банковский счeт. */
|
|
172
|
+
export interface BankAccount {
|
|
173
|
+
/** Идентификатор счeта. */
|
|
174
|
+
id: string;
|
|
175
|
+
/** Название счeта. */
|
|
176
|
+
name: string;
|
|
177
|
+
/** Список валютных позиций на счeте. */
|
|
178
|
+
money: MoneyValue[];
|
|
179
|
+
/** Дата открытия счeта в часовом поясе UTC. */
|
|
180
|
+
openedDate: Date | undefined;
|
|
181
|
+
/** Тип счeта. */
|
|
182
|
+
type: AccountType;
|
|
183
|
+
}
|
|
184
|
+
export interface CurrencyTransferRequest {
|
|
185
|
+
/** Номер счета списания. */
|
|
186
|
+
fromAccountId: string;
|
|
187
|
+
/** Номер счета зачисления. */
|
|
188
|
+
toAccountId: string;
|
|
189
|
+
/** Сумма перевода с указанием валюты. */
|
|
190
|
+
amount: MoneyValue | undefined;
|
|
191
|
+
/** Идентификатор запроса выставления поручения для целей идемпотентности в формате UUID. */
|
|
192
|
+
transactionId: string;
|
|
193
|
+
}
|
|
194
|
+
export interface CurrencyTransferResponse {
|
|
195
|
+
}
|
|
196
|
+
export interface PayInRequest {
|
|
197
|
+
/** Номер счета списания. */
|
|
198
|
+
fromAccountId: string;
|
|
199
|
+
/** Номер брокерского счета зачисления. */
|
|
200
|
+
toAccountId: string;
|
|
201
|
+
/** Сумма перевода с указанием валюты. */
|
|
202
|
+
amount: MoneyValue | undefined;
|
|
203
|
+
}
|
|
204
|
+
export interface PayInResponse {
|
|
205
|
+
}
|
|
206
|
+
export interface GetAccountValuesRequest {
|
|
207
|
+
/** Массив счетов пользователя. */
|
|
208
|
+
accounts: string[];
|
|
209
|
+
/** Массив запрашиваемых параметров. */
|
|
210
|
+
values: AccountValue[];
|
|
211
|
+
}
|
|
212
|
+
export interface GetAccountValuesResponse {
|
|
213
|
+
/** Массив счетов с параметрами. */
|
|
214
|
+
accounts: AccountValuesWithParameters[];
|
|
215
|
+
}
|
|
216
|
+
export interface AccountValuesWithParameters {
|
|
217
|
+
/** Номер счета. */
|
|
218
|
+
accountId: string;
|
|
219
|
+
/** Массив параметров инструмента. */
|
|
220
|
+
values: InstrumentParameter[];
|
|
221
|
+
}
|
|
222
|
+
export interface InstrumentParameter {
|
|
223
|
+
/** Тип запрашиваемого параметра. */
|
|
224
|
+
name: AccountValue;
|
|
225
|
+
/** Значение запрашиваемого параметра. */
|
|
226
|
+
value: MoneyValue | undefined;
|
|
227
|
+
}
|
|
228
|
+
export declare const GetAccountsRequest: MessageFns<GetAccountsRequest>;
|
|
229
|
+
export declare const GetAccountsResponse: MessageFns<GetAccountsResponse>;
|
|
230
|
+
export declare const Account: MessageFns<Account>;
|
|
231
|
+
export declare const GetMarginAttributesRequest: MessageFns<GetMarginAttributesRequest>;
|
|
232
|
+
export declare const GetMarginAttributesResponse: MessageFns<GetMarginAttributesResponse>;
|
|
233
|
+
export declare const GetUserTariffRequest: MessageFns<GetUserTariffRequest>;
|
|
234
|
+
export declare const GetUserTariffResponse: MessageFns<GetUserTariffResponse>;
|
|
235
|
+
export declare const UnaryLimit: MessageFns<UnaryLimit>;
|
|
236
|
+
export declare const StreamLimit: MessageFns<StreamLimit>;
|
|
237
|
+
export declare const GetInfoRequest: MessageFns<GetInfoRequest>;
|
|
238
|
+
export declare const GetInfoResponse: MessageFns<GetInfoResponse>;
|
|
239
|
+
export declare const GetBankAccountsRequest: MessageFns<GetBankAccountsRequest>;
|
|
240
|
+
export declare const GetBankAccountsResponse: MessageFns<GetBankAccountsResponse>;
|
|
241
|
+
export declare const BankAccount: MessageFns<BankAccount>;
|
|
242
|
+
export declare const CurrencyTransferRequest: MessageFns<CurrencyTransferRequest>;
|
|
243
|
+
export declare const CurrencyTransferResponse: MessageFns<CurrencyTransferResponse>;
|
|
244
|
+
export declare const PayInRequest: MessageFns<PayInRequest>;
|
|
245
|
+
export declare const PayInResponse: MessageFns<PayInResponse>;
|
|
246
|
+
export declare const GetAccountValuesRequest: MessageFns<GetAccountValuesRequest>;
|
|
247
|
+
export declare const GetAccountValuesResponse: MessageFns<GetAccountValuesResponse>;
|
|
248
|
+
export declare const AccountValuesWithParameters: MessageFns<AccountValuesWithParameters>;
|
|
249
|
+
export declare const InstrumentParameter: MessageFns<InstrumentParameter>;
|
|
250
|
+
/**
|
|
251
|
+
* С помощью сервиса можно получить: <br/> 1.
|
|
252
|
+
* список счетов пользователя; <br/> 2. маржинальные показатели по счeту.
|
|
253
|
+
*/
|
|
254
|
+
export type UsersServiceDefinition = typeof UsersServiceDefinition;
|
|
255
|
+
export declare const UsersServiceDefinition: {
|
|
256
|
+
readonly name: "UsersService";
|
|
257
|
+
readonly fullName: "tinkoff.public.invest.api.contract.v1.UsersService";
|
|
258
|
+
readonly methods: {
|
|
259
|
+
/**
|
|
260
|
+
* GetAccounts — счета пользователя
|
|
261
|
+
* Получить список счетов.
|
|
262
|
+
*/
|
|
263
|
+
readonly getAccounts: {
|
|
264
|
+
readonly name: "GetAccounts";
|
|
265
|
+
readonly requestType: typeof GetAccountsRequest;
|
|
266
|
+
readonly requestStream: false;
|
|
267
|
+
readonly responseType: typeof GetAccountsResponse;
|
|
268
|
+
readonly responseStream: false;
|
|
269
|
+
readonly options: {};
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* GetMarginAttributes — маржинальные показатели по счeту
|
|
273
|
+
* Метод позволяет получить маржинальные показатели и ликвидность по заданному счeту.
|
|
274
|
+
*/
|
|
275
|
+
readonly getMarginAttributes: {
|
|
276
|
+
readonly name: "GetMarginAttributes";
|
|
277
|
+
readonly requestType: typeof GetMarginAttributesRequest;
|
|
278
|
+
readonly requestStream: false;
|
|
279
|
+
readonly responseType: typeof GetMarginAttributesResponse;
|
|
280
|
+
readonly responseStream: false;
|
|
281
|
+
readonly options: {};
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* GetUserTariff — тариф пользователя
|
|
285
|
+
* Получить информацию о текущих лимитах на подклчение, согласно текущему тарифу пользователя.
|
|
286
|
+
*/
|
|
287
|
+
readonly getUserTariff: {
|
|
288
|
+
readonly name: "GetUserTariff";
|
|
289
|
+
readonly requestType: typeof GetUserTariffRequest;
|
|
290
|
+
readonly requestStream: false;
|
|
291
|
+
readonly responseType: typeof GetUserTariffResponse;
|
|
292
|
+
readonly responseStream: false;
|
|
293
|
+
readonly options: {};
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* GetInfo — информация о пользователе
|
|
297
|
+
* Получить информацию о пользователе: тариф, признак квалификации, пройденные тесты и др.
|
|
298
|
+
*/
|
|
299
|
+
readonly getInfo: {
|
|
300
|
+
readonly name: "GetInfo";
|
|
301
|
+
readonly requestType: typeof GetInfoRequest;
|
|
302
|
+
readonly requestStream: false;
|
|
303
|
+
readonly responseType: typeof GetInfoResponse;
|
|
304
|
+
readonly responseStream: false;
|
|
305
|
+
readonly options: {};
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* GetBankAccounts — банковские счета пользователя
|
|
309
|
+
* Получить список счетов пользователя, в том числе и банковских.
|
|
310
|
+
*/
|
|
311
|
+
readonly getBankAccounts: {
|
|
312
|
+
readonly name: "GetBankAccounts";
|
|
313
|
+
readonly requestType: typeof GetBankAccountsRequest;
|
|
314
|
+
readonly requestStream: false;
|
|
315
|
+
readonly responseType: typeof GetBankAccountsResponse;
|
|
316
|
+
readonly responseStream: false;
|
|
317
|
+
readonly options: {};
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* CurrencyTransfer — перевод денежных средств между счетами
|
|
321
|
+
* Перевести денежные средства между брокерскими счетами
|
|
322
|
+
*/
|
|
323
|
+
readonly currencyTransfer: {
|
|
324
|
+
readonly name: "CurrencyTransfer";
|
|
325
|
+
readonly requestType: typeof CurrencyTransferRequest;
|
|
326
|
+
readonly requestStream: false;
|
|
327
|
+
readonly responseType: typeof CurrencyTransferResponse;
|
|
328
|
+
readonly responseStream: false;
|
|
329
|
+
readonly options: {};
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* PayIn — пополнение брокерского счета
|
|
333
|
+
* Пополнить брокерский счёт с банковского
|
|
334
|
+
*/
|
|
335
|
+
readonly payIn: {
|
|
336
|
+
readonly name: "PayIn";
|
|
337
|
+
readonly requestType: typeof PayInRequest;
|
|
338
|
+
readonly requestStream: false;
|
|
339
|
+
readonly responseType: typeof PayInResponse;
|
|
340
|
+
readonly responseStream: false;
|
|
341
|
+
readonly options: {};
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* GetAccountValues — дополнительные показатели счетов
|
|
345
|
+
* Метод предназначен для получения дополнительных показателей счетов
|
|
346
|
+
*/
|
|
347
|
+
readonly getAccountValues: {
|
|
348
|
+
readonly name: "GetAccountValues";
|
|
349
|
+
readonly requestType: typeof GetAccountValuesRequest;
|
|
350
|
+
readonly requestStream: false;
|
|
351
|
+
readonly responseType: typeof GetAccountValuesResponse;
|
|
352
|
+
readonly responseStream: false;
|
|
353
|
+
readonly options: {};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
export interface UsersServiceImplementation<CallContextExt = {}> {
|
|
358
|
+
/**
|
|
359
|
+
* GetAccounts — счета пользователя
|
|
360
|
+
* Получить список счетов.
|
|
361
|
+
*/
|
|
362
|
+
getAccounts(request: GetAccountsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetAccountsResponse>>;
|
|
363
|
+
/**
|
|
364
|
+
* GetMarginAttributes — маржинальные показатели по счeту
|
|
365
|
+
* Метод позволяет получить маржинальные показатели и ликвидность по заданному счeту.
|
|
366
|
+
*/
|
|
367
|
+
getMarginAttributes(request: GetMarginAttributesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetMarginAttributesResponse>>;
|
|
368
|
+
/**
|
|
369
|
+
* GetUserTariff — тариф пользователя
|
|
370
|
+
* Получить информацию о текущих лимитах на подклчение, согласно текущему тарифу пользователя.
|
|
371
|
+
*/
|
|
372
|
+
getUserTariff(request: GetUserTariffRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetUserTariffResponse>>;
|
|
373
|
+
/**
|
|
374
|
+
* GetInfo — информация о пользователе
|
|
375
|
+
* Получить информацию о пользователе: тариф, признак квалификации, пройденные тесты и др.
|
|
376
|
+
*/
|
|
377
|
+
getInfo(request: GetInfoRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetInfoResponse>>;
|
|
378
|
+
/**
|
|
379
|
+
* GetBankAccounts — банковские счета пользователя
|
|
380
|
+
* Получить список счетов пользователя, в том числе и банковских.
|
|
381
|
+
*/
|
|
382
|
+
getBankAccounts(request: GetBankAccountsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetBankAccountsResponse>>;
|
|
383
|
+
/**
|
|
384
|
+
* CurrencyTransfer — перевод денежных средств между счетами
|
|
385
|
+
* Перевести денежные средства между брокерскими счетами
|
|
386
|
+
*/
|
|
387
|
+
currencyTransfer(request: CurrencyTransferRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CurrencyTransferResponse>>;
|
|
388
|
+
/**
|
|
389
|
+
* PayIn — пополнение брокерского счета
|
|
390
|
+
* Пополнить брокерский счёт с банковского
|
|
391
|
+
*/
|
|
392
|
+
payIn(request: PayInRequest, context: CallContext & CallContextExt): Promise<DeepPartial<PayInResponse>>;
|
|
393
|
+
/**
|
|
394
|
+
* GetAccountValues — дополнительные показатели счетов
|
|
395
|
+
* Метод предназначен для получения дополнительных показателей счетов
|
|
396
|
+
*/
|
|
397
|
+
getAccountValues(request: GetAccountValuesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetAccountValuesResponse>>;
|
|
398
|
+
}
|
|
399
|
+
export interface UsersServiceClient<CallOptionsExt = {}> {
|
|
400
|
+
/**
|
|
401
|
+
* GetAccounts — счета пользователя
|
|
402
|
+
* Получить список счетов.
|
|
403
|
+
*/
|
|
404
|
+
getAccounts(request: DeepPartial<GetAccountsRequest>, options?: CallOptions & CallOptionsExt): Promise<GetAccountsResponse>;
|
|
405
|
+
/**
|
|
406
|
+
* GetMarginAttributes — маржинальные показатели по счeту
|
|
407
|
+
* Метод позволяет получить маржинальные показатели и ликвидность по заданному счeту.
|
|
408
|
+
*/
|
|
409
|
+
getMarginAttributes(request: DeepPartial<GetMarginAttributesRequest>, options?: CallOptions & CallOptionsExt): Promise<GetMarginAttributesResponse>;
|
|
410
|
+
/**
|
|
411
|
+
* GetUserTariff — тариф пользователя
|
|
412
|
+
* Получить информацию о текущих лимитах на подклчение, согласно текущему тарифу пользователя.
|
|
413
|
+
*/
|
|
414
|
+
getUserTariff(request: DeepPartial<GetUserTariffRequest>, options?: CallOptions & CallOptionsExt): Promise<GetUserTariffResponse>;
|
|
415
|
+
/**
|
|
416
|
+
* GetInfo — информация о пользователе
|
|
417
|
+
* Получить информацию о пользователе: тариф, признак квалификации, пройденные тесты и др.
|
|
418
|
+
*/
|
|
419
|
+
getInfo(request: DeepPartial<GetInfoRequest>, options?: CallOptions & CallOptionsExt): Promise<GetInfoResponse>;
|
|
420
|
+
/**
|
|
421
|
+
* GetBankAccounts — банковские счета пользователя
|
|
422
|
+
* Получить список счетов пользователя, в том числе и банковских.
|
|
423
|
+
*/
|
|
424
|
+
getBankAccounts(request: DeepPartial<GetBankAccountsRequest>, options?: CallOptions & CallOptionsExt): Promise<GetBankAccountsResponse>;
|
|
425
|
+
/**
|
|
426
|
+
* CurrencyTransfer — перевод денежных средств между счетами
|
|
427
|
+
* Перевести денежные средства между брокерскими счетами
|
|
428
|
+
*/
|
|
429
|
+
currencyTransfer(request: DeepPartial<CurrencyTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<CurrencyTransferResponse>;
|
|
430
|
+
/**
|
|
431
|
+
* PayIn — пополнение брокерского счета
|
|
432
|
+
* Пополнить брокерский счёт с банковского
|
|
433
|
+
*/
|
|
434
|
+
payIn(request: DeepPartial<PayInRequest>, options?: CallOptions & CallOptionsExt): Promise<PayInResponse>;
|
|
435
|
+
/**
|
|
436
|
+
* GetAccountValues — дополнительные показатели счетов
|
|
437
|
+
* Метод предназначен для получения дополнительных показателей счетов
|
|
438
|
+
*/
|
|
439
|
+
getAccountValues(request: DeepPartial<GetAccountValuesRequest>, options?: CallOptions & CallOptionsExt): Promise<GetAccountValuesResponse>;
|
|
440
|
+
}
|
|
441
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
442
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
443
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
444
|
+
} : Partial<T>;
|
|
445
|
+
export interface MessageFns<T> {
|
|
446
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
447
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
448
|
+
fromJSON(object: any): T;
|
|
449
|
+
toJSON(message: T): unknown;
|
|
450
|
+
create(base?: DeepPartial<T>): T;
|
|
451
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
452
|
+
}
|
|
453
|
+
export {};
|