@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,603 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.12.2
|
|
5
|
+
// protoc v3.19.6
|
|
6
|
+
// source: sandbox.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SandboxServiceDefinition = exports.SandboxPayInResponse = exports.SandboxPayInRequest = exports.CloseSandboxAccountResponse = exports.CloseSandboxAccountRequest = exports.OpenSandboxAccountResponse = exports.OpenSandboxAccountRequest = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const common_1 = require("./common");
|
|
12
|
+
const operations_1 = require("./operations");
|
|
13
|
+
const orders_1 = require("./orders");
|
|
14
|
+
const stoporders_1 = require("./stoporders");
|
|
15
|
+
const users_1 = require("./users");
|
|
16
|
+
exports.protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
17
|
+
function createBaseOpenSandboxAccountRequest() {
|
|
18
|
+
return { name: undefined };
|
|
19
|
+
}
|
|
20
|
+
exports.OpenSandboxAccountRequest = {
|
|
21
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
22
|
+
if (message.name !== undefined) {
|
|
23
|
+
writer.uint32(10).string(message.name);
|
|
24
|
+
}
|
|
25
|
+
return writer;
|
|
26
|
+
},
|
|
27
|
+
decode(input, length) {
|
|
28
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
29
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
30
|
+
if (previousRecursionDepth >= 100) {
|
|
31
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
32
|
+
}
|
|
33
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
34
|
+
try {
|
|
35
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
+
const message = createBaseOpenSandboxAccountRequest();
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1: {
|
|
41
|
+
if (tag !== 10) {
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
message.name = reader.string();
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skip(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
}
|
|
55
|
+
finally {
|
|
56
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
fromJSON(object) {
|
|
60
|
+
return { name: isSet(object.name) ? globalThis.String(object.name) : undefined };
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.name !== undefined) {
|
|
65
|
+
obj.name = message.name;
|
|
66
|
+
}
|
|
67
|
+
return obj;
|
|
68
|
+
},
|
|
69
|
+
create(base) {
|
|
70
|
+
return exports.OpenSandboxAccountRequest.fromPartial(base ?? {});
|
|
71
|
+
},
|
|
72
|
+
fromPartial(object) {
|
|
73
|
+
const message = createBaseOpenSandboxAccountRequest();
|
|
74
|
+
message.name = object.name ?? undefined;
|
|
75
|
+
return message;
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
function createBaseOpenSandboxAccountResponse() {
|
|
79
|
+
return { accountId: "" };
|
|
80
|
+
}
|
|
81
|
+
exports.OpenSandboxAccountResponse = {
|
|
82
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
83
|
+
if (message.accountId !== "") {
|
|
84
|
+
writer.uint32(10).string(message.accountId);
|
|
85
|
+
}
|
|
86
|
+
return writer;
|
|
87
|
+
},
|
|
88
|
+
decode(input, length) {
|
|
89
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
90
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
91
|
+
if (previousRecursionDepth >= 100) {
|
|
92
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
93
|
+
}
|
|
94
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
95
|
+
try {
|
|
96
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseOpenSandboxAccountResponse();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1: {
|
|
102
|
+
if (tag !== 10) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.accountId = reader.string();
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
reader.skip(tag & 7);
|
|
113
|
+
}
|
|
114
|
+
return message;
|
|
115
|
+
}
|
|
116
|
+
finally {
|
|
117
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
fromJSON(object) {
|
|
121
|
+
return {
|
|
122
|
+
accountId: isSet(object.accountId)
|
|
123
|
+
? globalThis.String(object.accountId)
|
|
124
|
+
: isSet(object.account_id)
|
|
125
|
+
? globalThis.String(object.account_id)
|
|
126
|
+
: "",
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
if (message.accountId !== "") {
|
|
132
|
+
obj.accountId = message.accountId;
|
|
133
|
+
}
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.OpenSandboxAccountResponse.fromPartial(base ?? {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
const message = createBaseOpenSandboxAccountResponse();
|
|
141
|
+
message.accountId = object.accountId ?? "";
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
function createBaseCloseSandboxAccountRequest() {
|
|
146
|
+
return { accountId: "" };
|
|
147
|
+
}
|
|
148
|
+
exports.CloseSandboxAccountRequest = {
|
|
149
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
150
|
+
if (message.accountId !== "") {
|
|
151
|
+
writer.uint32(10).string(message.accountId);
|
|
152
|
+
}
|
|
153
|
+
return writer;
|
|
154
|
+
},
|
|
155
|
+
decode(input, length) {
|
|
156
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
157
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
158
|
+
if (previousRecursionDepth >= 100) {
|
|
159
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
160
|
+
}
|
|
161
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
162
|
+
try {
|
|
163
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
164
|
+
const message = createBaseCloseSandboxAccountRequest();
|
|
165
|
+
while (reader.pos < end) {
|
|
166
|
+
const tag = reader.uint32();
|
|
167
|
+
switch (tag >>> 3) {
|
|
168
|
+
case 1: {
|
|
169
|
+
if (tag !== 10) {
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
message.accountId = reader.string();
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
reader.skip(tag & 7);
|
|
180
|
+
}
|
|
181
|
+
return message;
|
|
182
|
+
}
|
|
183
|
+
finally {
|
|
184
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
fromJSON(object) {
|
|
188
|
+
return {
|
|
189
|
+
accountId: isSet(object.accountId)
|
|
190
|
+
? globalThis.String(object.accountId)
|
|
191
|
+
: isSet(object.account_id)
|
|
192
|
+
? globalThis.String(object.account_id)
|
|
193
|
+
: "",
|
|
194
|
+
};
|
|
195
|
+
},
|
|
196
|
+
toJSON(message) {
|
|
197
|
+
const obj = {};
|
|
198
|
+
if (message.accountId !== "") {
|
|
199
|
+
obj.accountId = message.accountId;
|
|
200
|
+
}
|
|
201
|
+
return obj;
|
|
202
|
+
},
|
|
203
|
+
create(base) {
|
|
204
|
+
return exports.CloseSandboxAccountRequest.fromPartial(base ?? {});
|
|
205
|
+
},
|
|
206
|
+
fromPartial(object) {
|
|
207
|
+
const message = createBaseCloseSandboxAccountRequest();
|
|
208
|
+
message.accountId = object.accountId ?? "";
|
|
209
|
+
return message;
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
function createBaseCloseSandboxAccountResponse() {
|
|
213
|
+
return {};
|
|
214
|
+
}
|
|
215
|
+
exports.CloseSandboxAccountResponse = {
|
|
216
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
217
|
+
return writer;
|
|
218
|
+
},
|
|
219
|
+
decode(input, length) {
|
|
220
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
221
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
222
|
+
if (previousRecursionDepth >= 100) {
|
|
223
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
224
|
+
}
|
|
225
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
226
|
+
try {
|
|
227
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
228
|
+
const message = createBaseCloseSandboxAccountResponse();
|
|
229
|
+
while (reader.pos < end) {
|
|
230
|
+
const tag = reader.uint32();
|
|
231
|
+
switch (tag >>> 3) {
|
|
232
|
+
}
|
|
233
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
reader.skip(tag & 7);
|
|
237
|
+
}
|
|
238
|
+
return message;
|
|
239
|
+
}
|
|
240
|
+
finally {
|
|
241
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
fromJSON(_) {
|
|
245
|
+
return {};
|
|
246
|
+
},
|
|
247
|
+
toJSON(_) {
|
|
248
|
+
const obj = {};
|
|
249
|
+
return obj;
|
|
250
|
+
},
|
|
251
|
+
create(base) {
|
|
252
|
+
return exports.CloseSandboxAccountResponse.fromPartial(base ?? {});
|
|
253
|
+
},
|
|
254
|
+
fromPartial(_) {
|
|
255
|
+
const message = createBaseCloseSandboxAccountResponse();
|
|
256
|
+
return message;
|
|
257
|
+
},
|
|
258
|
+
};
|
|
259
|
+
function createBaseSandboxPayInRequest() {
|
|
260
|
+
return { accountId: "", amount: undefined };
|
|
261
|
+
}
|
|
262
|
+
exports.SandboxPayInRequest = {
|
|
263
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
264
|
+
if (message.accountId !== "") {
|
|
265
|
+
writer.uint32(10).string(message.accountId);
|
|
266
|
+
}
|
|
267
|
+
if (message.amount !== undefined) {
|
|
268
|
+
common_1.MoneyValue.encode(message.amount, writer.uint32(18).fork()).join();
|
|
269
|
+
}
|
|
270
|
+
return writer;
|
|
271
|
+
},
|
|
272
|
+
decode(input, length) {
|
|
273
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
274
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
275
|
+
if (previousRecursionDepth >= 100) {
|
|
276
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
277
|
+
}
|
|
278
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
279
|
+
try {
|
|
280
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
281
|
+
const message = createBaseSandboxPayInRequest();
|
|
282
|
+
while (reader.pos < end) {
|
|
283
|
+
const tag = reader.uint32();
|
|
284
|
+
switch (tag >>> 3) {
|
|
285
|
+
case 1: {
|
|
286
|
+
if (tag !== 10) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
message.accountId = reader.string();
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
case 2: {
|
|
293
|
+
if (tag !== 18) {
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
message.amount = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
reader.skip(tag & 7);
|
|
304
|
+
}
|
|
305
|
+
return message;
|
|
306
|
+
}
|
|
307
|
+
finally {
|
|
308
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
fromJSON(object) {
|
|
312
|
+
return {
|
|
313
|
+
accountId: isSet(object.accountId)
|
|
314
|
+
? globalThis.String(object.accountId)
|
|
315
|
+
: isSet(object.account_id)
|
|
316
|
+
? globalThis.String(object.account_id)
|
|
317
|
+
: "",
|
|
318
|
+
amount: isSet(object.amount) ? common_1.MoneyValue.fromJSON(object.amount) : undefined,
|
|
319
|
+
};
|
|
320
|
+
},
|
|
321
|
+
toJSON(message) {
|
|
322
|
+
const obj = {};
|
|
323
|
+
if (message.accountId !== "") {
|
|
324
|
+
obj.accountId = message.accountId;
|
|
325
|
+
}
|
|
326
|
+
if (message.amount !== undefined) {
|
|
327
|
+
obj.amount = common_1.MoneyValue.toJSON(message.amount);
|
|
328
|
+
}
|
|
329
|
+
return obj;
|
|
330
|
+
},
|
|
331
|
+
create(base) {
|
|
332
|
+
return exports.SandboxPayInRequest.fromPartial(base ?? {});
|
|
333
|
+
},
|
|
334
|
+
fromPartial(object) {
|
|
335
|
+
const message = createBaseSandboxPayInRequest();
|
|
336
|
+
message.accountId = object.accountId ?? "";
|
|
337
|
+
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
338
|
+
? common_1.MoneyValue.fromPartial(object.amount)
|
|
339
|
+
: undefined;
|
|
340
|
+
return message;
|
|
341
|
+
},
|
|
342
|
+
};
|
|
343
|
+
function createBaseSandboxPayInResponse() {
|
|
344
|
+
return { balance: undefined };
|
|
345
|
+
}
|
|
346
|
+
exports.SandboxPayInResponse = {
|
|
347
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
348
|
+
if (message.balance !== undefined) {
|
|
349
|
+
common_1.MoneyValue.encode(message.balance, writer.uint32(10).fork()).join();
|
|
350
|
+
}
|
|
351
|
+
return writer;
|
|
352
|
+
},
|
|
353
|
+
decode(input, length) {
|
|
354
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
355
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
356
|
+
if (previousRecursionDepth >= 100) {
|
|
357
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
358
|
+
}
|
|
359
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
360
|
+
try {
|
|
361
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
362
|
+
const message = createBaseSandboxPayInResponse();
|
|
363
|
+
while (reader.pos < end) {
|
|
364
|
+
const tag = reader.uint32();
|
|
365
|
+
switch (tag >>> 3) {
|
|
366
|
+
case 1: {
|
|
367
|
+
if (tag !== 10) {
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
message.balance = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
371
|
+
continue;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
reader.skip(tag & 7);
|
|
378
|
+
}
|
|
379
|
+
return message;
|
|
380
|
+
}
|
|
381
|
+
finally {
|
|
382
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
fromJSON(object) {
|
|
386
|
+
return { balance: isSet(object.balance) ? common_1.MoneyValue.fromJSON(object.balance) : undefined };
|
|
387
|
+
},
|
|
388
|
+
toJSON(message) {
|
|
389
|
+
const obj = {};
|
|
390
|
+
if (message.balance !== undefined) {
|
|
391
|
+
obj.balance = common_1.MoneyValue.toJSON(message.balance);
|
|
392
|
+
}
|
|
393
|
+
return obj;
|
|
394
|
+
},
|
|
395
|
+
create(base) {
|
|
396
|
+
return exports.SandboxPayInResponse.fromPartial(base ?? {});
|
|
397
|
+
},
|
|
398
|
+
fromPartial(object) {
|
|
399
|
+
const message = createBaseSandboxPayInResponse();
|
|
400
|
+
message.balance = (object.balance !== undefined && object.balance !== null)
|
|
401
|
+
? common_1.MoneyValue.fromPartial(object.balance)
|
|
402
|
+
: undefined;
|
|
403
|
+
return message;
|
|
404
|
+
},
|
|
405
|
+
};
|
|
406
|
+
exports.SandboxServiceDefinition = {
|
|
407
|
+
name: "SandboxService",
|
|
408
|
+
fullName: "tinkoff.public.invest.api.contract.v1.SandboxService",
|
|
409
|
+
methods: {
|
|
410
|
+
/** OpenSandboxAccount — зарегистрировать счет */
|
|
411
|
+
openSandboxAccount: {
|
|
412
|
+
name: "OpenSandboxAccount",
|
|
413
|
+
requestType: exports.OpenSandboxAccountRequest,
|
|
414
|
+
requestStream: false,
|
|
415
|
+
responseType: exports.OpenSandboxAccountResponse,
|
|
416
|
+
responseStream: false,
|
|
417
|
+
options: {},
|
|
418
|
+
},
|
|
419
|
+
/** GetSandboxAccounts — счета пользователя */
|
|
420
|
+
getSandboxAccounts: {
|
|
421
|
+
name: "GetSandboxAccounts",
|
|
422
|
+
requestType: users_1.GetAccountsRequest,
|
|
423
|
+
requestStream: false,
|
|
424
|
+
responseType: users_1.GetAccountsResponse,
|
|
425
|
+
responseStream: false,
|
|
426
|
+
options: {},
|
|
427
|
+
},
|
|
428
|
+
/** CloseSandboxAccount — закрыть счет */
|
|
429
|
+
closeSandboxAccount: {
|
|
430
|
+
name: "CloseSandboxAccount",
|
|
431
|
+
requestType: exports.CloseSandboxAccountRequest,
|
|
432
|
+
requestStream: false,
|
|
433
|
+
responseType: exports.CloseSandboxAccountResponse,
|
|
434
|
+
responseStream: false,
|
|
435
|
+
options: {},
|
|
436
|
+
},
|
|
437
|
+
/** PostSandboxOrder — выставить заявку */
|
|
438
|
+
postSandboxOrder: {
|
|
439
|
+
name: "PostSandboxOrder",
|
|
440
|
+
requestType: orders_1.PostOrderRequest,
|
|
441
|
+
requestStream: false,
|
|
442
|
+
responseType: orders_1.PostOrderResponse,
|
|
443
|
+
responseStream: false,
|
|
444
|
+
options: {},
|
|
445
|
+
},
|
|
446
|
+
/**
|
|
447
|
+
* PostSandboxOrderAsync — выставить заявку асинхронным методом
|
|
448
|
+
* Особенности работы приведены в [статье](/invest/services/orders/async).
|
|
449
|
+
*/
|
|
450
|
+
postSandboxOrderAsync: {
|
|
451
|
+
name: "PostSandboxOrderAsync",
|
|
452
|
+
requestType: orders_1.PostOrderAsyncRequest,
|
|
453
|
+
requestStream: false,
|
|
454
|
+
responseType: orders_1.PostOrderAsyncResponse,
|
|
455
|
+
responseStream: false,
|
|
456
|
+
options: {},
|
|
457
|
+
},
|
|
458
|
+
/** ReplaceSandboxOrder — изменить выставленную заявку */
|
|
459
|
+
replaceSandboxOrder: {
|
|
460
|
+
name: "ReplaceSandboxOrder",
|
|
461
|
+
requestType: orders_1.ReplaceOrderRequest,
|
|
462
|
+
requestStream: false,
|
|
463
|
+
responseType: orders_1.PostOrderResponse,
|
|
464
|
+
responseStream: false,
|
|
465
|
+
options: {},
|
|
466
|
+
},
|
|
467
|
+
/** GetSandboxOrders — получить список активных заявок по счету */
|
|
468
|
+
getSandboxOrders: {
|
|
469
|
+
name: "GetSandboxOrders",
|
|
470
|
+
requestType: orders_1.GetOrdersRequest,
|
|
471
|
+
requestStream: false,
|
|
472
|
+
responseType: orders_1.GetOrdersResponse,
|
|
473
|
+
responseStream: false,
|
|
474
|
+
options: {},
|
|
475
|
+
},
|
|
476
|
+
/** CancelSandboxOrder — отменить заявку */
|
|
477
|
+
cancelSandboxOrder: {
|
|
478
|
+
name: "CancelSandboxOrder",
|
|
479
|
+
requestType: orders_1.CancelOrderRequest,
|
|
480
|
+
requestStream: false,
|
|
481
|
+
responseType: orders_1.CancelOrderResponse,
|
|
482
|
+
responseStream: false,
|
|
483
|
+
options: {},
|
|
484
|
+
},
|
|
485
|
+
/** GetSandboxOrderState — получить статус торгового поручения */
|
|
486
|
+
getSandboxOrderState: {
|
|
487
|
+
name: "GetSandboxOrderState",
|
|
488
|
+
requestType: orders_1.GetOrderStateRequest,
|
|
489
|
+
requestStream: false,
|
|
490
|
+
responseType: orders_1.OrderState,
|
|
491
|
+
responseStream: false,
|
|
492
|
+
options: {},
|
|
493
|
+
},
|
|
494
|
+
/** GetSandboxOrderPrice — получить предварительную стоимость для лимитной заявки */
|
|
495
|
+
getSandboxOrderPrice: {
|
|
496
|
+
name: "GetSandboxOrderPrice",
|
|
497
|
+
requestType: orders_1.GetOrderPriceRequest,
|
|
498
|
+
requestStream: false,
|
|
499
|
+
responseType: orders_1.GetOrderPriceResponse,
|
|
500
|
+
responseStream: false,
|
|
501
|
+
options: {},
|
|
502
|
+
},
|
|
503
|
+
/** GetSandboxPositions — список позиций по счету */
|
|
504
|
+
getSandboxPositions: {
|
|
505
|
+
name: "GetSandboxPositions",
|
|
506
|
+
requestType: operations_1.PositionsRequest,
|
|
507
|
+
requestStream: false,
|
|
508
|
+
responseType: operations_1.PositionsResponse,
|
|
509
|
+
responseStream: false,
|
|
510
|
+
options: {},
|
|
511
|
+
},
|
|
512
|
+
/**
|
|
513
|
+
* GetSandboxOperations — список операций по счету
|
|
514
|
+
* При работе с методом учитывайте [особенности взаимодействия](/invest/services/operations/operations_problems).
|
|
515
|
+
*/
|
|
516
|
+
getSandboxOperations: {
|
|
517
|
+
name: "GetSandboxOperations",
|
|
518
|
+
requestType: operations_1.OperationsRequest,
|
|
519
|
+
requestStream: false,
|
|
520
|
+
responseType: operations_1.OperationsResponse,
|
|
521
|
+
responseStream: false,
|
|
522
|
+
options: {},
|
|
523
|
+
},
|
|
524
|
+
/**
|
|
525
|
+
* GetSandboxOperationsByCursor — список операций по счету с пагинацией
|
|
526
|
+
* При работе с методом учитывайте [особенности взаимодействия](/invest/services/operations/operations_problems).
|
|
527
|
+
*/
|
|
528
|
+
getSandboxOperationsByCursor: {
|
|
529
|
+
name: "GetSandboxOperationsByCursor",
|
|
530
|
+
requestType: operations_1.GetOperationsByCursorRequest,
|
|
531
|
+
requestStream: false,
|
|
532
|
+
responseType: operations_1.GetOperationsByCursorResponse,
|
|
533
|
+
responseStream: false,
|
|
534
|
+
options: {},
|
|
535
|
+
},
|
|
536
|
+
/** GetSandboxPortfolio — портфель по счету */
|
|
537
|
+
getSandboxPortfolio: {
|
|
538
|
+
name: "GetSandboxPortfolio",
|
|
539
|
+
requestType: operations_1.PortfolioRequest,
|
|
540
|
+
requestStream: false,
|
|
541
|
+
responseType: operations_1.PortfolioResponse,
|
|
542
|
+
responseStream: false,
|
|
543
|
+
options: {},
|
|
544
|
+
},
|
|
545
|
+
/** SandboxPayIn — пополнить счет. */
|
|
546
|
+
sandboxPayIn: {
|
|
547
|
+
name: "SandboxPayIn",
|
|
548
|
+
requestType: exports.SandboxPayInRequest,
|
|
549
|
+
requestStream: false,
|
|
550
|
+
responseType: exports.SandboxPayInResponse,
|
|
551
|
+
responseStream: false,
|
|
552
|
+
options: {},
|
|
553
|
+
},
|
|
554
|
+
/** GetSandboxWithdrawLimits — доступный остаток для вывода средств */
|
|
555
|
+
getSandboxWithdrawLimits: {
|
|
556
|
+
name: "GetSandboxWithdrawLimits",
|
|
557
|
+
requestType: operations_1.WithdrawLimitsRequest,
|
|
558
|
+
requestStream: false,
|
|
559
|
+
responseType: operations_1.WithdrawLimitsResponse,
|
|
560
|
+
responseStream: false,
|
|
561
|
+
options: {},
|
|
562
|
+
},
|
|
563
|
+
/** GetSandboxMaxLots — расчет количества доступных для покупки/продажи лотов */
|
|
564
|
+
getSandboxMaxLots: {
|
|
565
|
+
name: "GetSandboxMaxLots",
|
|
566
|
+
requestType: orders_1.GetMaxLotsRequest,
|
|
567
|
+
requestStream: false,
|
|
568
|
+
responseType: orders_1.GetMaxLotsResponse,
|
|
569
|
+
responseStream: false,
|
|
570
|
+
options: {},
|
|
571
|
+
},
|
|
572
|
+
/** PostSandboxStopOrder — выставить стоп-заявку */
|
|
573
|
+
postSandboxStopOrder: {
|
|
574
|
+
name: "PostSandboxStopOrder",
|
|
575
|
+
requestType: stoporders_1.PostStopOrderRequest,
|
|
576
|
+
requestStream: false,
|
|
577
|
+
responseType: stoporders_1.PostStopOrderResponse,
|
|
578
|
+
responseStream: false,
|
|
579
|
+
options: {},
|
|
580
|
+
},
|
|
581
|
+
/** GetSandboxStopOrders — получить список активных стоп-заявок по счету */
|
|
582
|
+
getSandboxStopOrders: {
|
|
583
|
+
name: "GetSandboxStopOrders",
|
|
584
|
+
requestType: stoporders_1.GetStopOrdersRequest,
|
|
585
|
+
requestStream: false,
|
|
586
|
+
responseType: stoporders_1.GetStopOrdersResponse,
|
|
587
|
+
responseStream: false,
|
|
588
|
+
options: {},
|
|
589
|
+
},
|
|
590
|
+
/** CancelSandboxStopOrder — отменить стоп-заявку */
|
|
591
|
+
cancelSandboxStopOrder: {
|
|
592
|
+
name: "CancelSandboxStopOrder",
|
|
593
|
+
requestType: stoporders_1.CancelStopOrderRequest,
|
|
594
|
+
requestStream: false,
|
|
595
|
+
responseType: stoporders_1.CancelStopOrderResponse,
|
|
596
|
+
responseStream: false,
|
|
597
|
+
options: {},
|
|
598
|
+
},
|
|
599
|
+
},
|
|
600
|
+
};
|
|
601
|
+
function isSet(value) {
|
|
602
|
+
return value !== null && value !== undefined;
|
|
603
|
+
}
|