@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,1165 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
|
+
import { InstrumentType, MoneyValue, Ping, PingDelaySettings, Quotation } from "./common";
|
|
4
|
+
export declare const protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
5
|
+
/** Статус запрашиваемых операций. */
|
|
6
|
+
export declare enum OperationState {
|
|
7
|
+
/** OPERATION_STATE_UNSPECIFIED - Статус операции не определен. */
|
|
8
|
+
OPERATION_STATE_UNSPECIFIED = 0,
|
|
9
|
+
/** OPERATION_STATE_EXECUTED - Исполнена частично или полностью. */
|
|
10
|
+
OPERATION_STATE_EXECUTED = 1,
|
|
11
|
+
/** OPERATION_STATE_CANCELED - Отменена. */
|
|
12
|
+
OPERATION_STATE_CANCELED = 2,
|
|
13
|
+
/** OPERATION_STATE_PROGRESS - Исполняется. */
|
|
14
|
+
OPERATION_STATE_PROGRESS = 3,
|
|
15
|
+
UNRECOGNIZED = -1
|
|
16
|
+
}
|
|
17
|
+
export declare function operationStateFromJSON(object: any): OperationState;
|
|
18
|
+
export declare function operationStateToJSON(object: OperationState): string;
|
|
19
|
+
/** Тип операции. */
|
|
20
|
+
export declare enum OperationType {
|
|
21
|
+
/** OPERATION_TYPE_UNSPECIFIED - Тип операции не определен. */
|
|
22
|
+
OPERATION_TYPE_UNSPECIFIED = 0,
|
|
23
|
+
/** OPERATION_TYPE_INPUT - Пополнение брокерского счета. */
|
|
24
|
+
OPERATION_TYPE_INPUT = 1,
|
|
25
|
+
/** OPERATION_TYPE_BOND_TAX - Удержание НДФЛ по купонам. */
|
|
26
|
+
OPERATION_TYPE_BOND_TAX = 2,
|
|
27
|
+
/** OPERATION_TYPE_OUTPUT_SECURITIES - Вывод ЦБ. */
|
|
28
|
+
OPERATION_TYPE_OUTPUT_SECURITIES = 3,
|
|
29
|
+
/** OPERATION_TYPE_OVERNIGHT - Доход по сделке РЕПО овернайт. */
|
|
30
|
+
OPERATION_TYPE_OVERNIGHT = 4,
|
|
31
|
+
/** OPERATION_TYPE_TAX - Удержание налога. */
|
|
32
|
+
OPERATION_TYPE_TAX = 5,
|
|
33
|
+
/** OPERATION_TYPE_BOND_REPAYMENT_FULL - Полное погашение облигаций. */
|
|
34
|
+
OPERATION_TYPE_BOND_REPAYMENT_FULL = 6,
|
|
35
|
+
/** OPERATION_TYPE_SELL_CARD - Продажа ЦБ с карты. */
|
|
36
|
+
OPERATION_TYPE_SELL_CARD = 7,
|
|
37
|
+
/** OPERATION_TYPE_DIVIDEND_TAX - Удержание налога по дивидендам. */
|
|
38
|
+
OPERATION_TYPE_DIVIDEND_TAX = 8,
|
|
39
|
+
/** OPERATION_TYPE_OUTPUT - Вывод денежных средств. */
|
|
40
|
+
OPERATION_TYPE_OUTPUT = 9,
|
|
41
|
+
/** OPERATION_TYPE_BOND_REPAYMENT - Частичное погашение облигаций. */
|
|
42
|
+
OPERATION_TYPE_BOND_REPAYMENT = 10,
|
|
43
|
+
/** OPERATION_TYPE_TAX_CORRECTION - Корректировка налога. */
|
|
44
|
+
OPERATION_TYPE_TAX_CORRECTION = 11,
|
|
45
|
+
/** OPERATION_TYPE_SERVICE_FEE - Удержание комиссии за обслуживание брокерского счета. */
|
|
46
|
+
OPERATION_TYPE_SERVICE_FEE = 12,
|
|
47
|
+
/** OPERATION_TYPE_BENEFIT_TAX - Удержание налога за материальную выгоду. */
|
|
48
|
+
OPERATION_TYPE_BENEFIT_TAX = 13,
|
|
49
|
+
/** OPERATION_TYPE_MARGIN_FEE - Удержание комиссии за непокрытую позицию. */
|
|
50
|
+
OPERATION_TYPE_MARGIN_FEE = 14,
|
|
51
|
+
/** OPERATION_TYPE_BUY - Покупка ЦБ. */
|
|
52
|
+
OPERATION_TYPE_BUY = 15,
|
|
53
|
+
/** OPERATION_TYPE_BUY_CARD - Покупка ЦБ с карты. */
|
|
54
|
+
OPERATION_TYPE_BUY_CARD = 16,
|
|
55
|
+
/** OPERATION_TYPE_INPUT_SECURITIES - Перевод ценных бумаг из другого депозитария. */
|
|
56
|
+
OPERATION_TYPE_INPUT_SECURITIES = 17,
|
|
57
|
+
/** OPERATION_TYPE_SELL_MARGIN - Продажа в результате Margin-call. */
|
|
58
|
+
OPERATION_TYPE_SELL_MARGIN = 18,
|
|
59
|
+
/** OPERATION_TYPE_BROKER_FEE - Удержание комиссии за операцию. */
|
|
60
|
+
OPERATION_TYPE_BROKER_FEE = 19,
|
|
61
|
+
/** OPERATION_TYPE_BUY_MARGIN - Покупка в результате Margin-call. */
|
|
62
|
+
OPERATION_TYPE_BUY_MARGIN = 20,
|
|
63
|
+
/** OPERATION_TYPE_DIVIDEND - Выплата дивидендов. */
|
|
64
|
+
OPERATION_TYPE_DIVIDEND = 21,
|
|
65
|
+
/** OPERATION_TYPE_SELL - Продажа ЦБ. */
|
|
66
|
+
OPERATION_TYPE_SELL = 22,
|
|
67
|
+
/** OPERATION_TYPE_COUPON - Выплата купонов. */
|
|
68
|
+
OPERATION_TYPE_COUPON = 23,
|
|
69
|
+
/** OPERATION_TYPE_SUCCESS_FEE - Удержание комиссии SuccessFee. */
|
|
70
|
+
OPERATION_TYPE_SUCCESS_FEE = 24,
|
|
71
|
+
/** OPERATION_TYPE_DIVIDEND_TRANSFER - Передача дивидендного дохода. */
|
|
72
|
+
OPERATION_TYPE_DIVIDEND_TRANSFER = 25,
|
|
73
|
+
/** OPERATION_TYPE_ACCRUING_VARMARGIN - Зачисление вариационной маржи. */
|
|
74
|
+
OPERATION_TYPE_ACCRUING_VARMARGIN = 26,
|
|
75
|
+
/** OPERATION_TYPE_WRITING_OFF_VARMARGIN - Списание вариационной маржи. */
|
|
76
|
+
OPERATION_TYPE_WRITING_OFF_VARMARGIN = 27,
|
|
77
|
+
/** OPERATION_TYPE_DELIVERY_BUY - Покупка в рамках экспирации фьючерсного контракта. */
|
|
78
|
+
OPERATION_TYPE_DELIVERY_BUY = 28,
|
|
79
|
+
/** OPERATION_TYPE_DELIVERY_SELL - Продажа в рамках экспирации фьючерсного контракта. */
|
|
80
|
+
OPERATION_TYPE_DELIVERY_SELL = 29,
|
|
81
|
+
/** OPERATION_TYPE_TRACK_MFEE - Комиссия за управление по счету автоследования. */
|
|
82
|
+
OPERATION_TYPE_TRACK_MFEE = 30,
|
|
83
|
+
/** OPERATION_TYPE_TRACK_PFEE - Комиссия за результат по счету автоследования. */
|
|
84
|
+
OPERATION_TYPE_TRACK_PFEE = 31,
|
|
85
|
+
/** OPERATION_TYPE_TAX_PROGRESSIVE - Удержание налога по ставке 15%. */
|
|
86
|
+
OPERATION_TYPE_TAX_PROGRESSIVE = 32,
|
|
87
|
+
/** OPERATION_TYPE_BOND_TAX_PROGRESSIVE - Удержание налога по купонам по ставке 15%. */
|
|
88
|
+
OPERATION_TYPE_BOND_TAX_PROGRESSIVE = 33,
|
|
89
|
+
/** OPERATION_TYPE_DIVIDEND_TAX_PROGRESSIVE - Удержание налога по дивидендам по ставке 15%. */
|
|
90
|
+
OPERATION_TYPE_DIVIDEND_TAX_PROGRESSIVE = 34,
|
|
91
|
+
/** OPERATION_TYPE_BENEFIT_TAX_PROGRESSIVE - Удержание налога за материальную выгоду по ставке 15%. */
|
|
92
|
+
OPERATION_TYPE_BENEFIT_TAX_PROGRESSIVE = 35,
|
|
93
|
+
/** OPERATION_TYPE_TAX_CORRECTION_PROGRESSIVE - Корректировка налога по ставке 15%. */
|
|
94
|
+
OPERATION_TYPE_TAX_CORRECTION_PROGRESSIVE = 36,
|
|
95
|
+
/** OPERATION_TYPE_TAX_REPO_PROGRESSIVE - Удержание налога за возмещение по сделкам РЕПО по ставке 15%. */
|
|
96
|
+
OPERATION_TYPE_TAX_REPO_PROGRESSIVE = 37,
|
|
97
|
+
/** OPERATION_TYPE_TAX_REPO - Удержание налога за возмещение по сделкам РЕПО. */
|
|
98
|
+
OPERATION_TYPE_TAX_REPO = 38,
|
|
99
|
+
/** OPERATION_TYPE_TAX_REPO_HOLD - Удержание налога по сделкам РЕПО. */
|
|
100
|
+
OPERATION_TYPE_TAX_REPO_HOLD = 39,
|
|
101
|
+
/** OPERATION_TYPE_TAX_REPO_REFUND - Возврат налога по сделкам РЕПО. */
|
|
102
|
+
OPERATION_TYPE_TAX_REPO_REFUND = 40,
|
|
103
|
+
/** OPERATION_TYPE_TAX_REPO_HOLD_PROGRESSIVE - Удержание налога по сделкам РЕПО по ставке 15%. */
|
|
104
|
+
OPERATION_TYPE_TAX_REPO_HOLD_PROGRESSIVE = 41,
|
|
105
|
+
/** OPERATION_TYPE_TAX_REPO_REFUND_PROGRESSIVE - Возврат налога по сделкам РЕПО по ставке 15%. */
|
|
106
|
+
OPERATION_TYPE_TAX_REPO_REFUND_PROGRESSIVE = 42,
|
|
107
|
+
/** OPERATION_TYPE_DIV_EXT - Выплата дивидендов на карту. */
|
|
108
|
+
OPERATION_TYPE_DIV_EXT = 43,
|
|
109
|
+
/** OPERATION_TYPE_TAX_CORRECTION_COUPON - Корректировка налога по купонам. */
|
|
110
|
+
OPERATION_TYPE_TAX_CORRECTION_COUPON = 44,
|
|
111
|
+
/** OPERATION_TYPE_CASH_FEE - Комиссия за валютный остаток. */
|
|
112
|
+
OPERATION_TYPE_CASH_FEE = 45,
|
|
113
|
+
/** OPERATION_TYPE_OUT_FEE - Комиссия за вывод валюты с брокерского счета. */
|
|
114
|
+
OPERATION_TYPE_OUT_FEE = 46,
|
|
115
|
+
/** OPERATION_TYPE_OUT_STAMP_DUTY - Гербовый сбор. */
|
|
116
|
+
OPERATION_TYPE_OUT_STAMP_DUTY = 47,
|
|
117
|
+
/** OPERATION_TYPE_OUTPUT_SWIFT - SWIFT-перевод. */
|
|
118
|
+
OPERATION_TYPE_OUTPUT_SWIFT = 50,
|
|
119
|
+
/** OPERATION_TYPE_INPUT_SWIFT - SWIFT-перевод. */
|
|
120
|
+
OPERATION_TYPE_INPUT_SWIFT = 51,
|
|
121
|
+
/** OPERATION_TYPE_OUTPUT_ACQUIRING - Перевод на карту. */
|
|
122
|
+
OPERATION_TYPE_OUTPUT_ACQUIRING = 53,
|
|
123
|
+
/** OPERATION_TYPE_INPUT_ACQUIRING - Перевод с карты. */
|
|
124
|
+
OPERATION_TYPE_INPUT_ACQUIRING = 54,
|
|
125
|
+
/** OPERATION_TYPE_OUTPUT_PENALTY - Комиссия за вывод средств. */
|
|
126
|
+
OPERATION_TYPE_OUTPUT_PENALTY = 55,
|
|
127
|
+
/** OPERATION_TYPE_ADVICE_FEE - Списание оплаты за сервис Советов. */
|
|
128
|
+
OPERATION_TYPE_ADVICE_FEE = 56,
|
|
129
|
+
/** OPERATION_TYPE_TRANS_IIS_BS - Перевод ценных бумаг с ИИС на брокерский счет. */
|
|
130
|
+
OPERATION_TYPE_TRANS_IIS_BS = 57,
|
|
131
|
+
/** OPERATION_TYPE_TRANS_BS_BS - Перевод ценных бумаг с одного брокерского счета на другой. */
|
|
132
|
+
OPERATION_TYPE_TRANS_BS_BS = 58,
|
|
133
|
+
/** OPERATION_TYPE_OUT_MULTI - Вывод денежных средств со счета. */
|
|
134
|
+
OPERATION_TYPE_OUT_MULTI = 59,
|
|
135
|
+
/** OPERATION_TYPE_INP_MULTI - Пополнение денежных средств со счета. */
|
|
136
|
+
OPERATION_TYPE_INP_MULTI = 60,
|
|
137
|
+
/** OPERATION_TYPE_OVER_PLACEMENT - Размещение биржевого овернайта. */
|
|
138
|
+
OPERATION_TYPE_OVER_PLACEMENT = 61,
|
|
139
|
+
/** OPERATION_TYPE_OVER_COM - Списание комиссии. */
|
|
140
|
+
OPERATION_TYPE_OVER_COM = 62,
|
|
141
|
+
/** OPERATION_TYPE_OVER_INCOME - Доход от оверанайта. */
|
|
142
|
+
OPERATION_TYPE_OVER_INCOME = 63,
|
|
143
|
+
/** OPERATION_TYPE_OPTION_EXPIRATION - Экспирация опциона. */
|
|
144
|
+
OPERATION_TYPE_OPTION_EXPIRATION = 64,
|
|
145
|
+
/** OPERATION_TYPE_FUTURE_EXPIRATION - Экспирация фьючерса. */
|
|
146
|
+
OPERATION_TYPE_FUTURE_EXPIRATION = 65,
|
|
147
|
+
/** OPERATION_TYPE_OTHER_FEE - Прочие комиссии; */
|
|
148
|
+
OPERATION_TYPE_OTHER_FEE = 66,
|
|
149
|
+
/** OPERATION_TYPE_OTHER - Операция по счету; */
|
|
150
|
+
OPERATION_TYPE_OTHER = 67,
|
|
151
|
+
/** OPERATION_TYPE_DFA_REDEMPTION - погашение ЦФА-токена; */
|
|
152
|
+
OPERATION_TYPE_DFA_REDEMPTION = 68,
|
|
153
|
+
/** OPERATION_TYPE_PRIMARY_ORDER - отмена заявки на первичное размещение по ЦФА; */
|
|
154
|
+
OPERATION_TYPE_PRIMARY_ORDER = 69,
|
|
155
|
+
/** OPERATION_TYPE_FUNDING - Списание фандинга. */
|
|
156
|
+
OPERATION_TYPE_FUNDING = 70,
|
|
157
|
+
UNRECOGNIZED = -1
|
|
158
|
+
}
|
|
159
|
+
export declare function operationTypeFromJSON(object: any): OperationType;
|
|
160
|
+
export declare function operationTypeToJSON(object: OperationType): string;
|
|
161
|
+
/** Результат подписки. */
|
|
162
|
+
export declare enum PortfolioSubscriptionStatus {
|
|
163
|
+
/** PORTFOLIO_SUBSCRIPTION_STATUS_UNSPECIFIED - Тип не определен. */
|
|
164
|
+
PORTFOLIO_SUBSCRIPTION_STATUS_UNSPECIFIED = 0,
|
|
165
|
+
/** PORTFOLIO_SUBSCRIPTION_STATUS_SUCCESS - Успешно. */
|
|
166
|
+
PORTFOLIO_SUBSCRIPTION_STATUS_SUCCESS = 1,
|
|
167
|
+
/** PORTFOLIO_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND - Счет не найден или недостаточно прав. */
|
|
168
|
+
PORTFOLIO_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND = 2,
|
|
169
|
+
/** PORTFOLIO_SUBSCRIPTION_STATUS_INTERNAL_ERROR - Произошла ошибка. */
|
|
170
|
+
PORTFOLIO_SUBSCRIPTION_STATUS_INTERNAL_ERROR = 3,
|
|
171
|
+
UNRECOGNIZED = -1
|
|
172
|
+
}
|
|
173
|
+
export declare function portfolioSubscriptionStatusFromJSON(object: any): PortfolioSubscriptionStatus;
|
|
174
|
+
export declare function portfolioSubscriptionStatusToJSON(object: PortfolioSubscriptionStatus): string;
|
|
175
|
+
/** Результат подписки. */
|
|
176
|
+
export declare enum PositionsAccountSubscriptionStatus {
|
|
177
|
+
/** POSITIONS_SUBSCRIPTION_STATUS_UNSPECIFIED - Тип не определен. */
|
|
178
|
+
POSITIONS_SUBSCRIPTION_STATUS_UNSPECIFIED = 0,
|
|
179
|
+
/** POSITIONS_SUBSCRIPTION_STATUS_SUCCESS - Успешно. */
|
|
180
|
+
POSITIONS_SUBSCRIPTION_STATUS_SUCCESS = 1,
|
|
181
|
+
/** POSITIONS_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND - Счет не найден или недостаточно прав. */
|
|
182
|
+
POSITIONS_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND = 2,
|
|
183
|
+
/** POSITIONS_SUBSCRIPTION_STATUS_INTERNAL_ERROR - Произошла ошибка. */
|
|
184
|
+
POSITIONS_SUBSCRIPTION_STATUS_INTERNAL_ERROR = 3,
|
|
185
|
+
UNRECOGNIZED = -1
|
|
186
|
+
}
|
|
187
|
+
export declare function positionsAccountSubscriptionStatusFromJSON(object: any): PositionsAccountSubscriptionStatus;
|
|
188
|
+
export declare function positionsAccountSubscriptionStatusToJSON(object: PositionsAccountSubscriptionStatus): string;
|
|
189
|
+
/** Результат подписки. */
|
|
190
|
+
export declare enum OperationsAccountSubscriptionStatus {
|
|
191
|
+
/** OPERATIONS_SUBSCRIPTION_STATUS_UNSPECIFIED - Тип не определен. */
|
|
192
|
+
OPERATIONS_SUBSCRIPTION_STATUS_UNSPECIFIED = 0,
|
|
193
|
+
/** OPERATIONS_SUBSCRIPTION_STATUS_SUCCESS - Успешно. */
|
|
194
|
+
OPERATIONS_SUBSCRIPTION_STATUS_SUCCESS = 1,
|
|
195
|
+
/** OPERATIONS_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND - Счет не найден или недостаточно прав. */
|
|
196
|
+
OPERATIONS_SUBSCRIPTION_STATUS_ACCOUNT_NOT_FOUND = 2,
|
|
197
|
+
/** OPERATIONS_SUBSCRIPTION_STATUS_INTERNAL_ERROR - Произошла ошибка. */
|
|
198
|
+
OPERATIONS_SUBSCRIPTION_STATUS_INTERNAL_ERROR = 3,
|
|
199
|
+
UNRECOGNIZED = -1
|
|
200
|
+
}
|
|
201
|
+
export declare function operationsAccountSubscriptionStatusFromJSON(object: any): OperationsAccountSubscriptionStatus;
|
|
202
|
+
export declare function operationsAccountSubscriptionStatusToJSON(object: OperationsAccountSubscriptionStatus): string;
|
|
203
|
+
/** Запрос получения списка операций по счету. */
|
|
204
|
+
export interface OperationsRequest {
|
|
205
|
+
/** Идентификатор счета клиента. */
|
|
206
|
+
accountId: string;
|
|
207
|
+
/** Начало периода по UTC. */
|
|
208
|
+
from?: Date | undefined;
|
|
209
|
+
/** Окончание периода по UTC. */
|
|
210
|
+
to?: Date | undefined;
|
|
211
|
+
/** Статус запрашиваемых операций. */
|
|
212
|
+
state?: OperationState | undefined;
|
|
213
|
+
/** FIGI-идентификатор инструмента для фильтрации. */
|
|
214
|
+
figi?: string | undefined;
|
|
215
|
+
}
|
|
216
|
+
/** Список операций. */
|
|
217
|
+
export interface OperationsResponse {
|
|
218
|
+
/** Массив операций. */
|
|
219
|
+
operations: Operation[];
|
|
220
|
+
}
|
|
221
|
+
/** Данные по операции. */
|
|
222
|
+
export interface Operation {
|
|
223
|
+
/** Идентификатор операции. */
|
|
224
|
+
id: string;
|
|
225
|
+
/** Идентификатор родительской операции. */
|
|
226
|
+
parentOperationId: string;
|
|
227
|
+
/** Валюта операции. */
|
|
228
|
+
currency: string;
|
|
229
|
+
/** Сумма операции. */
|
|
230
|
+
payment: MoneyValue | undefined;
|
|
231
|
+
/** Цена операции за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. */
|
|
232
|
+
price: MoneyValue | undefined;
|
|
233
|
+
/** Статус операции. */
|
|
234
|
+
state: OperationState;
|
|
235
|
+
/** Количество единиц инструмента. */
|
|
236
|
+
quantity: number;
|
|
237
|
+
/** Неисполненный остаток по сделке. */
|
|
238
|
+
quantityRest: number;
|
|
239
|
+
/** FIGI-идентификатор инструмента, связанного с операцией. */
|
|
240
|
+
figi: string;
|
|
241
|
+
/** Тип инструмента. Возможные значения: <br/><br/>`bond` — облигация; <br/>`share` — акция; <br/>`currency` — валюта; <br/>`etf` — фонд; <br/>`futures` — фьючерс. */
|
|
242
|
+
instrumentType: string;
|
|
243
|
+
/** Дата и время операции в формате часовом поясе UTC. */
|
|
244
|
+
date: Date | undefined;
|
|
245
|
+
/** Текстовое описание типа операции. */
|
|
246
|
+
type: string;
|
|
247
|
+
/** Тип операции. */
|
|
248
|
+
operationType: OperationType;
|
|
249
|
+
/** Массив сделок. */
|
|
250
|
+
trades: OperationTrade[];
|
|
251
|
+
/** Идентификатор актива */
|
|
252
|
+
assetUid: string;
|
|
253
|
+
/** Уникальный идентификатор позиции. */
|
|
254
|
+
positionUid: string;
|
|
255
|
+
/** Уникальный идентификатор инструмента. */
|
|
256
|
+
instrumentUid: string;
|
|
257
|
+
/** Массив дочерних операций. */
|
|
258
|
+
childOperations: ChildOperationItem[];
|
|
259
|
+
}
|
|
260
|
+
/** Сделка по операции. */
|
|
261
|
+
export interface OperationTrade {
|
|
262
|
+
/** Идентификатор сделки. */
|
|
263
|
+
tradeId: string;
|
|
264
|
+
/** Дата и время сделки по UTC. */
|
|
265
|
+
dateTime: Date | undefined;
|
|
266
|
+
/** Количество инструментов. */
|
|
267
|
+
quantity: number;
|
|
268
|
+
/** Цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. */
|
|
269
|
+
price: MoneyValue | undefined;
|
|
270
|
+
}
|
|
271
|
+
/** Запрос получения текущего портфеля по счету. */
|
|
272
|
+
export interface PortfolioRequest {
|
|
273
|
+
/** Идентификатор счета пользователя. */
|
|
274
|
+
accountId: string;
|
|
275
|
+
/** Валюта, в которой нужно рассчитать портфель. */
|
|
276
|
+
currency?: PortfolioRequest_CurrencyRequest | undefined;
|
|
277
|
+
}
|
|
278
|
+
export declare enum PortfolioRequest_CurrencyRequest {
|
|
279
|
+
/** RUB - Рубли */
|
|
280
|
+
RUB = 0,
|
|
281
|
+
/** USD - Доллары */
|
|
282
|
+
USD = 1,
|
|
283
|
+
/** EUR - Евро */
|
|
284
|
+
EUR = 2,
|
|
285
|
+
UNRECOGNIZED = -1
|
|
286
|
+
}
|
|
287
|
+
export declare function portfolioRequest_CurrencyRequestFromJSON(object: any): PortfolioRequest_CurrencyRequest;
|
|
288
|
+
export declare function portfolioRequest_CurrencyRequestToJSON(object: PortfolioRequest_CurrencyRequest): string;
|
|
289
|
+
/** Текущий портфель по счету. */
|
|
290
|
+
export interface PortfolioResponse {
|
|
291
|
+
/** Общая стоимость акций в портфеле. */
|
|
292
|
+
totalAmountShares: MoneyValue | undefined;
|
|
293
|
+
/** Общая стоимость облигаций в портфеле. */
|
|
294
|
+
totalAmountBonds: MoneyValue | undefined;
|
|
295
|
+
/** Общая стоимость фондов в портфеле. */
|
|
296
|
+
totalAmountEtf: MoneyValue | undefined;
|
|
297
|
+
/** Общая стоимость валют в портфеле. */
|
|
298
|
+
totalAmountCurrencies: MoneyValue | undefined;
|
|
299
|
+
/** Общая стоимость фьючерсов в портфеле. */
|
|
300
|
+
totalAmountFutures: MoneyValue | undefined;
|
|
301
|
+
/** Текущая относительная доходность портфеля в %. */
|
|
302
|
+
expectedYield: Quotation | undefined;
|
|
303
|
+
/** Список позиций портфеля. */
|
|
304
|
+
positions: PortfolioPosition[];
|
|
305
|
+
/** Идентификатор счета пользователя. */
|
|
306
|
+
accountId: string;
|
|
307
|
+
/** Общая стоимость опционов в портфеле. */
|
|
308
|
+
totalAmountOptions: MoneyValue | undefined;
|
|
309
|
+
/** Общая стоимость структурных нот в портфеле. */
|
|
310
|
+
totalAmountSp: MoneyValue | undefined;
|
|
311
|
+
/** Общая стоимость портфеля. */
|
|
312
|
+
totalAmountPortfolio: MoneyValue | undefined;
|
|
313
|
+
/** Массив виртуальных позиций портфеля. */
|
|
314
|
+
virtualPositions: VirtualPortfolioPosition[];
|
|
315
|
+
/** Рассчитанная доходность портфеля за день в рублях. */
|
|
316
|
+
dailyYield: MoneyValue | undefined;
|
|
317
|
+
/** Относительная доходность в день в %. */
|
|
318
|
+
dailyYieldRelative: Quotation | undefined;
|
|
319
|
+
/** Общая стоимость смарт-активов в портфеле в рублях. */
|
|
320
|
+
totalAmountDfa: MoneyValue | undefined;
|
|
321
|
+
}
|
|
322
|
+
/** Запрос позиций портфеля по счету. */
|
|
323
|
+
export interface PositionsRequest {
|
|
324
|
+
/** Идентификатор счета пользователя. */
|
|
325
|
+
accountId: string;
|
|
326
|
+
}
|
|
327
|
+
/** Список позиций по счету. */
|
|
328
|
+
export interface PositionsResponse {
|
|
329
|
+
/** Массив валютных позиций портфеля. */
|
|
330
|
+
money: MoneyValue[];
|
|
331
|
+
/** Массив заблокированных валютных позиций портфеля. */
|
|
332
|
+
blocked: MoneyValue[];
|
|
333
|
+
/** Список ценно-бумажных позиций портфеля. */
|
|
334
|
+
securities: PositionsSecurities[];
|
|
335
|
+
/** Признак идущей выгрузки лимитов в данный момент. */
|
|
336
|
+
limitsLoadingInProgress: boolean;
|
|
337
|
+
/** Список фьючерсов портфеля. */
|
|
338
|
+
futures: PositionsFutures[];
|
|
339
|
+
/** Список опционов портфеля. */
|
|
340
|
+
options: PositionsOptions[];
|
|
341
|
+
/** Идентификатор счёта пользователя. */
|
|
342
|
+
accountId: string;
|
|
343
|
+
}
|
|
344
|
+
/** Запрос доступного остатка для вывода. */
|
|
345
|
+
export interface WithdrawLimitsRequest {
|
|
346
|
+
/** Идентификатор счета пользователя. */
|
|
347
|
+
accountId: string;
|
|
348
|
+
}
|
|
349
|
+
/** Доступный остаток для вывода. */
|
|
350
|
+
export interface WithdrawLimitsResponse {
|
|
351
|
+
/** Массив валютных позиций портфеля. */
|
|
352
|
+
money: MoneyValue[];
|
|
353
|
+
/** Массив заблокированных валютных позиций портфеля. */
|
|
354
|
+
blocked: MoneyValue[];
|
|
355
|
+
/** Заблокировано под гарантийное обеспечение фьючерсов. */
|
|
356
|
+
blockedGuarantee: MoneyValue[];
|
|
357
|
+
}
|
|
358
|
+
/** Позиции портфеля. */
|
|
359
|
+
export interface PortfolioPosition {
|
|
360
|
+
/** FIGI-идентификатор инструмента. */
|
|
361
|
+
figi: string;
|
|
362
|
+
/** Тип инструмента. */
|
|
363
|
+
instrumentType: string;
|
|
364
|
+
/** Количество инструмента в портфеле в штуках. */
|
|
365
|
+
quantity: Quotation | undefined;
|
|
366
|
+
/** Средневзвешенная цена позиции. Для пересчета возможна задержка до одной секунды. */
|
|
367
|
+
averagePositionPrice: MoneyValue | undefined;
|
|
368
|
+
/** Текущая рассчитанная доходность позиции. */
|
|
369
|
+
expectedYield: Quotation | undefined;
|
|
370
|
+
/** Текущий НКД. */
|
|
371
|
+
currentNkd: MoneyValue | undefined;
|
|
372
|
+
/**
|
|
373
|
+
* Deprecated Средняя цена позиции в пунктах (для фьючерсов). Для пересчета возможна задержка до одной секунды.
|
|
374
|
+
*
|
|
375
|
+
* @deprecated
|
|
376
|
+
*/
|
|
377
|
+
averagePositionPricePt: Quotation | undefined;
|
|
378
|
+
/** Текущая цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. */
|
|
379
|
+
currentPrice: MoneyValue | undefined;
|
|
380
|
+
/** Средняя цена позиции по методу FIFO. Для пересчета возможна задержка до одной секунды. */
|
|
381
|
+
averagePositionPriceFifo: MoneyValue | undefined;
|
|
382
|
+
/**
|
|
383
|
+
* Deprecated Количество лотов в портфеле.
|
|
384
|
+
*
|
|
385
|
+
* @deprecated
|
|
386
|
+
*/
|
|
387
|
+
quantityLots: Quotation | undefined;
|
|
388
|
+
/** Заблокировано на бирже. */
|
|
389
|
+
blocked: boolean;
|
|
390
|
+
/** Количество бумаг, заблокированных выставленными заявками. */
|
|
391
|
+
blockedLots: Quotation | undefined;
|
|
392
|
+
/** Уникальный идентификатор позиции. */
|
|
393
|
+
positionUid: string;
|
|
394
|
+
/** Уникальный идентификатор инструмента. */
|
|
395
|
+
instrumentUid: string;
|
|
396
|
+
/** Вариационная маржа. */
|
|
397
|
+
varMargin: MoneyValue | undefined;
|
|
398
|
+
/** Текущая рассчитанная доходность позиции. */
|
|
399
|
+
expectedYieldFifo: Quotation | undefined;
|
|
400
|
+
/** Рассчитанная доходность портфеля за день. */
|
|
401
|
+
dailyYield: MoneyValue | undefined;
|
|
402
|
+
/** Тикер инструмента. */
|
|
403
|
+
ticker: string;
|
|
404
|
+
/** Класс-код (секция торгов). */
|
|
405
|
+
classCode: string;
|
|
406
|
+
/** Вариационная маржа (расчетная). */
|
|
407
|
+
varMarginSettled?: MoneyValue | undefined;
|
|
408
|
+
}
|
|
409
|
+
export interface VirtualPortfolioPosition {
|
|
410
|
+
/** Уникальный идентификатор позиции. */
|
|
411
|
+
positionUid: string;
|
|
412
|
+
/** Уникальный идентификатор инструмента. */
|
|
413
|
+
instrumentUid: string;
|
|
414
|
+
/** FIGI-идентификатор инструмента. */
|
|
415
|
+
figi: string;
|
|
416
|
+
/** Тип инструмента. */
|
|
417
|
+
instrumentType: string;
|
|
418
|
+
/** Количество инструмента в портфеле в штуках. */
|
|
419
|
+
quantity: Quotation | undefined;
|
|
420
|
+
/** Средневзвешенная цена позиции. Для пересчета возможна задержка до одной секунды. */
|
|
421
|
+
averagePositionPrice: MoneyValue | undefined;
|
|
422
|
+
/** Текущая рассчитанная доходность позиции. */
|
|
423
|
+
expectedYield: Quotation | undefined;
|
|
424
|
+
/** Текущая рассчитанная доходность позиции. */
|
|
425
|
+
expectedYieldFifo: Quotation | undefined;
|
|
426
|
+
/** Дата, до которой нужно продать виртуальные бумаги. После этой даты виртуальная позиция «сгораетт». */
|
|
427
|
+
expireDate: Date | undefined;
|
|
428
|
+
/** Текущая цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. */
|
|
429
|
+
currentPrice: MoneyValue | undefined;
|
|
430
|
+
/** Средняя цена позиции по методу FIFO. Для пересчета возможна задержка до одной секунды. */
|
|
431
|
+
averagePositionPriceFifo: MoneyValue | undefined;
|
|
432
|
+
/** Рассчитанная доходность портфеля за день. */
|
|
433
|
+
dailyYield: MoneyValue | undefined;
|
|
434
|
+
/** Тикер инструмента. */
|
|
435
|
+
ticker: string;
|
|
436
|
+
/** Класс-код (секция торгов). */
|
|
437
|
+
classCode: string;
|
|
438
|
+
}
|
|
439
|
+
/** Баланс позиции ценной бумаги. */
|
|
440
|
+
export interface PositionsSecurities {
|
|
441
|
+
/** FIGI-идентификатор бумаги. */
|
|
442
|
+
figi: string;
|
|
443
|
+
/** Количество бумаг, заблокированных выставленными заявками. */
|
|
444
|
+
blocked: number;
|
|
445
|
+
/** Текущий незаблокированный баланс. */
|
|
446
|
+
balance: number;
|
|
447
|
+
/** Уникальный идентификатор позиции. */
|
|
448
|
+
positionUid: string;
|
|
449
|
+
/** Уникальный идентификатор инструмента. */
|
|
450
|
+
instrumentUid: string;
|
|
451
|
+
/** Тикер инструмента. */
|
|
452
|
+
ticker: string;
|
|
453
|
+
/** Класс-код (секция торгов). */
|
|
454
|
+
classCode: string;
|
|
455
|
+
/** Заблокировано на бирже. */
|
|
456
|
+
exchangeBlocked: boolean;
|
|
457
|
+
/** Тип инструмента. */
|
|
458
|
+
instrumentType: string;
|
|
459
|
+
}
|
|
460
|
+
/** Баланс фьючерса. */
|
|
461
|
+
export interface PositionsFutures {
|
|
462
|
+
/** FIGI-идентификатор фьючерса. */
|
|
463
|
+
figi: string;
|
|
464
|
+
/** Количество бумаг, заблокированных выставленными заявками. */
|
|
465
|
+
blocked: number;
|
|
466
|
+
/** Текущий незаблокированный баланс. */
|
|
467
|
+
balance: number;
|
|
468
|
+
/** Уникальный идентификатор позиции. */
|
|
469
|
+
positionUid: string;
|
|
470
|
+
/** Уникальный идентификатор инструмента. */
|
|
471
|
+
instrumentUid: string;
|
|
472
|
+
/** Тикер инструмента. */
|
|
473
|
+
ticker: string;
|
|
474
|
+
/** Класс-код (секция торгов). */
|
|
475
|
+
classCode: string;
|
|
476
|
+
}
|
|
477
|
+
/** Баланс опциона. */
|
|
478
|
+
export interface PositionsOptions {
|
|
479
|
+
/** Уникальный идентификатор позиции опциона. */
|
|
480
|
+
positionUid: string;
|
|
481
|
+
/** Уникальный идентификатор инструмента. */
|
|
482
|
+
instrumentUid: string;
|
|
483
|
+
/** Тикер инструмента. */
|
|
484
|
+
ticker: string;
|
|
485
|
+
/** Класс-код (секция торгов). */
|
|
486
|
+
classCode: string;
|
|
487
|
+
/** Количество бумаг, заблокированных выставленными заявками. */
|
|
488
|
+
blocked: number;
|
|
489
|
+
/** Текущий незаблокированный баланс. */
|
|
490
|
+
balance: number;
|
|
491
|
+
}
|
|
492
|
+
export interface BrokerReportRequest {
|
|
493
|
+
generateBrokerReportRequest?: GenerateBrokerReportRequest | undefined;
|
|
494
|
+
getBrokerReportRequest?: GetBrokerReportRequest | undefined;
|
|
495
|
+
}
|
|
496
|
+
export interface BrokerReportResponse {
|
|
497
|
+
generateBrokerReportResponse?: GenerateBrokerReportResponse | undefined;
|
|
498
|
+
getBrokerReportResponse?: GetBrokerReportResponse | undefined;
|
|
499
|
+
}
|
|
500
|
+
export interface GenerateBrokerReportRequest {
|
|
501
|
+
/** Идентификатор счета клиента. */
|
|
502
|
+
accountId: string;
|
|
503
|
+
/** Начало периода по UTC. */
|
|
504
|
+
from: Date | undefined;
|
|
505
|
+
/** Окончание периода по UTC. */
|
|
506
|
+
to: Date | undefined;
|
|
507
|
+
}
|
|
508
|
+
export interface GenerateBrokerReportResponse {
|
|
509
|
+
/** Идентификатор задачи формирования брокерского отчета. */
|
|
510
|
+
taskId: string;
|
|
511
|
+
}
|
|
512
|
+
export interface GetBrokerReportRequest {
|
|
513
|
+
/** Идентификатор задачи формирования брокерского отчета. */
|
|
514
|
+
taskId: string;
|
|
515
|
+
/** Номер страницы отчета, начинается с 1. Значение по умолчанию — 0. */
|
|
516
|
+
page?: number | undefined;
|
|
517
|
+
}
|
|
518
|
+
export interface GetBrokerReportResponse {
|
|
519
|
+
brokerReport: BrokerReport[];
|
|
520
|
+
/** Количество записей в отчете. */
|
|
521
|
+
itemsCount: number;
|
|
522
|
+
/** Количество страниц с данными отчета, начинается с 0. */
|
|
523
|
+
pagesCount: number;
|
|
524
|
+
/** Текущая страница, начинается с 0. */
|
|
525
|
+
page: number;
|
|
526
|
+
/** Идентификатор задачи формирования брокерского отчета. */
|
|
527
|
+
taskId: string;
|
|
528
|
+
}
|
|
529
|
+
export interface BrokerReport {
|
|
530
|
+
/** Номер сделки. */
|
|
531
|
+
tradeId: string;
|
|
532
|
+
/** Номер поручения. */
|
|
533
|
+
orderId: string;
|
|
534
|
+
/** FIGI-идентификаторинструмента. */
|
|
535
|
+
figi: string;
|
|
536
|
+
/** Признак исполнения. */
|
|
537
|
+
executeSign: string;
|
|
538
|
+
/** Дата и время заключения по UTC. */
|
|
539
|
+
tradeDatetime: Date | undefined;
|
|
540
|
+
/** Торговая площадка. */
|
|
541
|
+
exchange: string;
|
|
542
|
+
/** Режим торгов. */
|
|
543
|
+
classCode: string;
|
|
544
|
+
/** Вид сделки. */
|
|
545
|
+
direction: string;
|
|
546
|
+
/** Сокращенное наименование актива. */
|
|
547
|
+
name: string;
|
|
548
|
+
/** Код актива. */
|
|
549
|
+
ticker: string;
|
|
550
|
+
/** Цена за единицу. */
|
|
551
|
+
price: MoneyValue | undefined;
|
|
552
|
+
/** Количество. */
|
|
553
|
+
quantity: number;
|
|
554
|
+
/** Сумма без НКД. */
|
|
555
|
+
orderAmount: MoneyValue | undefined;
|
|
556
|
+
/** НКД. */
|
|
557
|
+
aciValue: Quotation | undefined;
|
|
558
|
+
/** Сумма сделки. */
|
|
559
|
+
totalOrderAmount: MoneyValue | undefined;
|
|
560
|
+
/** Комиссия брокера. */
|
|
561
|
+
brokerCommission: MoneyValue | undefined;
|
|
562
|
+
/** Комиссия биржи. */
|
|
563
|
+
exchangeCommission: MoneyValue | undefined;
|
|
564
|
+
/** Комиссия клирингового центра. */
|
|
565
|
+
exchangeClearingCommission: MoneyValue | undefined;
|
|
566
|
+
/** Ставка РЕПО, %. */
|
|
567
|
+
repoRate: Quotation | undefined;
|
|
568
|
+
/** Контрагент или брокерарокер. */
|
|
569
|
+
party: string;
|
|
570
|
+
/** Дата расчетов по UTC. */
|
|
571
|
+
clearValueDate: Date | undefined;
|
|
572
|
+
/** Дата поставки по UTC. */
|
|
573
|
+
secValueDate: Date | undefined;
|
|
574
|
+
/** Статус брокера. */
|
|
575
|
+
brokerStatus: string;
|
|
576
|
+
/** Тип договора. */
|
|
577
|
+
separateAgreementType: string;
|
|
578
|
+
/** Номер договора. */
|
|
579
|
+
separateAgreementNumber: string;
|
|
580
|
+
/** Дата договора. */
|
|
581
|
+
separateAgreementDate: string;
|
|
582
|
+
/** Тип расчета по сделке. */
|
|
583
|
+
deliveryType: string;
|
|
584
|
+
}
|
|
585
|
+
export interface GetDividendsForeignIssuerRequest {
|
|
586
|
+
/** Объект запроса формирования отчета. */
|
|
587
|
+
generateDivForeignIssuerReport?: GenerateDividendsForeignIssuerReportRequest | undefined;
|
|
588
|
+
/** Объект запроса сформированного отчета. */
|
|
589
|
+
getDivForeignIssuerReport?: GetDividendsForeignIssuerReportRequest | undefined;
|
|
590
|
+
}
|
|
591
|
+
export interface GetDividendsForeignIssuerResponse {
|
|
592
|
+
/** Объект результата задачи запуска формирования отчета. */
|
|
593
|
+
generateDivForeignIssuerReportResponse?: GenerateDividendsForeignIssuerReportResponse | undefined;
|
|
594
|
+
/** Отчет «Справка о доходах за пределами РФ». */
|
|
595
|
+
divForeignIssuerReport?: GetDividendsForeignIssuerReportResponse | undefined;
|
|
596
|
+
}
|
|
597
|
+
/** Объект запроса формирования отчета «Справка о доходах за пределами РФ». */
|
|
598
|
+
export interface GenerateDividendsForeignIssuerReportRequest {
|
|
599
|
+
/** Идентификатор счета клиента. */
|
|
600
|
+
accountId: string;
|
|
601
|
+
/** Начало периода по UTC. */
|
|
602
|
+
from: Date | undefined;
|
|
603
|
+
/** Окончание периода по UTC. Как правило, можно сформировать отчет по дату на несколько дней меньше текущей. Начало и окончание периода должны быть в рамках одного календарного года. */
|
|
604
|
+
to: Date | undefined;
|
|
605
|
+
}
|
|
606
|
+
/** Объект запроса сформированного отчета «Справка о доходах за пределами РФ». */
|
|
607
|
+
export interface GetDividendsForeignIssuerReportRequest {
|
|
608
|
+
/** Идентификатор задачи формирования отчета. */
|
|
609
|
+
taskId: string;
|
|
610
|
+
/** Номер страницы отчета (начинается с 0), значение по умолчанию: 0. */
|
|
611
|
+
page?: number | undefined;
|
|
612
|
+
}
|
|
613
|
+
/** Объект результата задачи запуска формирования отчета «Справка о доходах за пределами РФ». */
|
|
614
|
+
export interface GenerateDividendsForeignIssuerReportResponse {
|
|
615
|
+
/** Идентификатор задачи формирования отчета. */
|
|
616
|
+
taskId: string;
|
|
617
|
+
}
|
|
618
|
+
export interface GetDividendsForeignIssuerReportResponse {
|
|
619
|
+
dividendsForeignIssuerReport: DividendsForeignIssuerReport[];
|
|
620
|
+
/** Количество записей в отчете. */
|
|
621
|
+
itemsCount: number;
|
|
622
|
+
/** Количество страниц с данными отчета, начинается с 0. */
|
|
623
|
+
pagesCount: number;
|
|
624
|
+
/** Текущая страница, начинается с 0. */
|
|
625
|
+
page: number;
|
|
626
|
+
}
|
|
627
|
+
/** Отчет «Справка о доходах за пределами РФ». */
|
|
628
|
+
export interface DividendsForeignIssuerReport {
|
|
629
|
+
/** Дата фиксации реестра. */
|
|
630
|
+
recordDate: Date | undefined;
|
|
631
|
+
/** Дата выплаты. */
|
|
632
|
+
paymentDate: Date | undefined;
|
|
633
|
+
/** Наименование ценной бумаги. */
|
|
634
|
+
securityName: string;
|
|
635
|
+
/** ISIN-идентификатор ценной бумаги. */
|
|
636
|
+
isin: string;
|
|
637
|
+
/** Страна эмитента. Для депозитарных расписок указывается страна эмитента базового актива. */
|
|
638
|
+
issuerCountry: string;
|
|
639
|
+
/** Количество ценных бумаг. */
|
|
640
|
+
quantity: number;
|
|
641
|
+
/** Выплаты на одну бумагу */
|
|
642
|
+
dividend: Quotation | undefined;
|
|
643
|
+
/** Комиссия внешних платежных агентов. */
|
|
644
|
+
externalCommission: Quotation | undefined;
|
|
645
|
+
/** Сумма до удержания налога. */
|
|
646
|
+
dividendGross: Quotation | undefined;
|
|
647
|
+
/** Сумма налога, удержанного агентом. */
|
|
648
|
+
tax: Quotation | undefined;
|
|
649
|
+
/** Итоговая сумма выплаты. */
|
|
650
|
+
dividendAmount: Quotation | undefined;
|
|
651
|
+
/** Валюта. */
|
|
652
|
+
currency: string;
|
|
653
|
+
}
|
|
654
|
+
/** Запрос установки stream-соединения. */
|
|
655
|
+
export interface PortfolioStreamRequest {
|
|
656
|
+
/** Массив идентификаторов счетов пользователя. */
|
|
657
|
+
accounts: string[];
|
|
658
|
+
/** Запрос настройки пинга. */
|
|
659
|
+
pingSettings: PingDelaySettings | undefined;
|
|
660
|
+
}
|
|
661
|
+
/** Информация по позициям и доходностям портфелей. */
|
|
662
|
+
export interface PortfolioStreamResponse {
|
|
663
|
+
/** Объект результата подписки. */
|
|
664
|
+
subscriptions?: PortfolioSubscriptionResult | undefined;
|
|
665
|
+
/** Объект стриминга портфеля. */
|
|
666
|
+
portfolio?: PortfolioResponse | undefined;
|
|
667
|
+
/** Проверка активности стрима. */
|
|
668
|
+
ping?: Ping | undefined;
|
|
669
|
+
}
|
|
670
|
+
/** Объект результата подписки. */
|
|
671
|
+
export interface PortfolioSubscriptionResult {
|
|
672
|
+
/** Массив счетов клиента. */
|
|
673
|
+
accounts: AccountSubscriptionStatus[];
|
|
674
|
+
/** Уникальный идентификатор запроса, подробнее: [tracking_id](/invest/intro/developer/protocols/grpc#tracking-id). */
|
|
675
|
+
trackingId: string;
|
|
676
|
+
/** Идентификатор открытого соединения */
|
|
677
|
+
streamId: string;
|
|
678
|
+
}
|
|
679
|
+
/** Счет клиента. */
|
|
680
|
+
export interface AccountSubscriptionStatus {
|
|
681
|
+
/** Идентификатор счета. */
|
|
682
|
+
accountId: string;
|
|
683
|
+
/** Результат подписки. */
|
|
684
|
+
subscriptionStatus: PortfolioSubscriptionStatus;
|
|
685
|
+
}
|
|
686
|
+
/** Запрос списка операций по счету с пагинацией. */
|
|
687
|
+
export interface GetOperationsByCursorRequest {
|
|
688
|
+
/** Идентификатор счета клиента, обязательный параметр. Остальные параметры опциональны. */
|
|
689
|
+
accountId: string;
|
|
690
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
691
|
+
instrumentId?: string | undefined;
|
|
692
|
+
/** Начало периода по UTC. */
|
|
693
|
+
from?: Date | undefined;
|
|
694
|
+
/** Окончание периода по UTC. */
|
|
695
|
+
to?: Date | undefined;
|
|
696
|
+
/** Идентификатор элемента, с которого начать формировать ответ. */
|
|
697
|
+
cursor?: string | undefined;
|
|
698
|
+
/** Лимит количества операций. По умолчанию — `100`, максимальное значение — `1000`. */
|
|
699
|
+
limit?: number | undefined;
|
|
700
|
+
/** Тип операции. Принимает значение из списка `OperationType`. */
|
|
701
|
+
operationTypes: OperationType[];
|
|
702
|
+
/** Статус запрашиваемых операций. Возможные значения указаны в `OperationState`. */
|
|
703
|
+
state?: OperationState | undefined;
|
|
704
|
+
/** Флаг возврата комиссии. По умолчанию — `false`. */
|
|
705
|
+
withoutCommissions?: boolean | undefined;
|
|
706
|
+
/** Флаг получения ответа без массива сделок. */
|
|
707
|
+
withoutTrades?: boolean | undefined;
|
|
708
|
+
/** Флаг показа overnight операций. */
|
|
709
|
+
withoutOvernights?: boolean | undefined;
|
|
710
|
+
}
|
|
711
|
+
/** Список операций по счету с пагинацией. */
|
|
712
|
+
export interface GetOperationsByCursorResponse {
|
|
713
|
+
/** Признак, есть ли следующий элемент. */
|
|
714
|
+
hasNext: boolean;
|
|
715
|
+
/** Следующий курсор. */
|
|
716
|
+
nextCursor: string;
|
|
717
|
+
/** Список операций. */
|
|
718
|
+
items: OperationItem[];
|
|
719
|
+
}
|
|
720
|
+
/** Данные об операции. */
|
|
721
|
+
export interface OperationItem {
|
|
722
|
+
/** Курсор. */
|
|
723
|
+
cursor: string;
|
|
724
|
+
/** Номер счета клиента. */
|
|
725
|
+
brokerAccountId: string;
|
|
726
|
+
/** Идентификатор операции, может меняться с течением времени. */
|
|
727
|
+
id: string;
|
|
728
|
+
/** Идентификатор родительской операции. Может измениться, если изменился ID родительской операции. */
|
|
729
|
+
parentOperationId: string;
|
|
730
|
+
/** Название операции. */
|
|
731
|
+
name: string;
|
|
732
|
+
/** Дата поручения. */
|
|
733
|
+
date: Date | undefined;
|
|
734
|
+
/** Тип операции. */
|
|
735
|
+
type: OperationType;
|
|
736
|
+
/** Описание операции. */
|
|
737
|
+
description: string;
|
|
738
|
+
/** Статус поручения. */
|
|
739
|
+
state: OperationState;
|
|
740
|
+
/** Уникальный идентификатор инструмента. */
|
|
741
|
+
instrumentUid: string;
|
|
742
|
+
/** FIGI. */
|
|
743
|
+
figi: string;
|
|
744
|
+
/** Тип инструмента. */
|
|
745
|
+
instrumentType: string;
|
|
746
|
+
/** Тип инструмента. */
|
|
747
|
+
instrumentKind: InstrumentType;
|
|
748
|
+
/** Уникальный идентификатор позиции. */
|
|
749
|
+
positionUid: string;
|
|
750
|
+
/** Тикер инструмента. */
|
|
751
|
+
ticker: string;
|
|
752
|
+
/** Класс-код (секция торгов). */
|
|
753
|
+
classCode: string;
|
|
754
|
+
/** Сумма операции. */
|
|
755
|
+
payment: MoneyValue | undefined;
|
|
756
|
+
/** Цена операции за 1 инструмент. */
|
|
757
|
+
price: MoneyValue | undefined;
|
|
758
|
+
/** Комиссия. */
|
|
759
|
+
commission: MoneyValue | undefined;
|
|
760
|
+
/** Доходность. */
|
|
761
|
+
yield: MoneyValue | undefined;
|
|
762
|
+
/** Относительная доходность. */
|
|
763
|
+
yieldRelative: Quotation | undefined;
|
|
764
|
+
/** Накопленный купонный доход. */
|
|
765
|
+
accruedInt: MoneyValue | undefined;
|
|
766
|
+
/** Количество единиц инструмента. */
|
|
767
|
+
quantity: number;
|
|
768
|
+
/** Неисполненный остаток по сделке. */
|
|
769
|
+
quantityRest: number;
|
|
770
|
+
/** Исполненный остаток. */
|
|
771
|
+
quantityDone: number;
|
|
772
|
+
/** Дата и время снятия заявки. */
|
|
773
|
+
cancelDateTime: Date | undefined;
|
|
774
|
+
/** Причина отмены операции. */
|
|
775
|
+
cancelReason: string;
|
|
776
|
+
/** Массив сделок. */
|
|
777
|
+
tradesInfo: OperationItemTrades | undefined;
|
|
778
|
+
/** Идентификатор актива. */
|
|
779
|
+
assetUid: string;
|
|
780
|
+
/** Массив дочерних операций. */
|
|
781
|
+
childOperations: ChildOperationItem[];
|
|
782
|
+
}
|
|
783
|
+
/** Массив с информацией о сделках. */
|
|
784
|
+
export interface OperationItemTrades {
|
|
785
|
+
trades: OperationItemTrade[];
|
|
786
|
+
}
|
|
787
|
+
/** Сделка по операции. */
|
|
788
|
+
export interface OperationItemTrade {
|
|
789
|
+
/** Номер сделки. */
|
|
790
|
+
num: string;
|
|
791
|
+
/** Дата сделки. */
|
|
792
|
+
date: Date | undefined;
|
|
793
|
+
/** Количество в единицах. */
|
|
794
|
+
quantity: number;
|
|
795
|
+
/** Цена. */
|
|
796
|
+
price: MoneyValue | undefined;
|
|
797
|
+
/** Доходность. */
|
|
798
|
+
yield: MoneyValue | undefined;
|
|
799
|
+
/** Относительная доходность. */
|
|
800
|
+
yieldRelative: Quotation | undefined;
|
|
801
|
+
}
|
|
802
|
+
/** Запрос установки stream-соединения позиций. */
|
|
803
|
+
export interface PositionsStreamRequest {
|
|
804
|
+
/** Массив идентификаторов счетов пользователя. */
|
|
805
|
+
accounts: string[];
|
|
806
|
+
/** Получение состояния позиций на момент подключения. */
|
|
807
|
+
withInitialPositions: boolean;
|
|
808
|
+
/** Запрос настройки пинга. */
|
|
809
|
+
pingSettings: PingDelaySettings | undefined;
|
|
810
|
+
}
|
|
811
|
+
/** Информация по изменению позиций портфеля. */
|
|
812
|
+
export interface PositionsStreamResponse {
|
|
813
|
+
/** Объект результата подписки. */
|
|
814
|
+
subscriptions?: PositionsSubscriptionResult | undefined;
|
|
815
|
+
/** Объект стриминга позиций. */
|
|
816
|
+
position?: PositionData | undefined;
|
|
817
|
+
/** Проверка активности стрима. */
|
|
818
|
+
ping?: Ping | undefined;
|
|
819
|
+
/** Текущие позиции. */
|
|
820
|
+
initialPositions?: PositionsResponse | undefined;
|
|
821
|
+
}
|
|
822
|
+
/** Объект результата подписки. */
|
|
823
|
+
export interface PositionsSubscriptionResult {
|
|
824
|
+
/** Массив счетов клиента. */
|
|
825
|
+
accounts: PositionsSubscriptionStatus[];
|
|
826
|
+
/** Уникальный идентификатор запроса, подробнее: [tracking_id](/invest/intro/developer/protocols/grpc#tracking-id). */
|
|
827
|
+
trackingId: string;
|
|
828
|
+
/** Идентификатор открытого соединения */
|
|
829
|
+
streamId: string;
|
|
830
|
+
}
|
|
831
|
+
/** Счет клиента. */
|
|
832
|
+
export interface PositionsSubscriptionStatus {
|
|
833
|
+
/** Идентификатор счета. */
|
|
834
|
+
accountId: string;
|
|
835
|
+
/** Результат подписки. */
|
|
836
|
+
subscriptionStatus: PositionsAccountSubscriptionStatus;
|
|
837
|
+
}
|
|
838
|
+
/** Данные о позиции портфеля. */
|
|
839
|
+
export interface PositionData {
|
|
840
|
+
/** Идентификатор счета. */
|
|
841
|
+
accountId: string;
|
|
842
|
+
/** Массив валютных позиций портфеля. */
|
|
843
|
+
money: PositionsMoney[];
|
|
844
|
+
/** Список ценно-бумажных позиций портфеля. */
|
|
845
|
+
securities: PositionsSecurities[];
|
|
846
|
+
/** Список фьючерсов портфеля. */
|
|
847
|
+
futures: PositionsFutures[];
|
|
848
|
+
/** Список опционов портфеля. */
|
|
849
|
+
options: PositionsOptions[];
|
|
850
|
+
/** Дата и время операции в формате UTC. */
|
|
851
|
+
date: Date | undefined;
|
|
852
|
+
}
|
|
853
|
+
/** Валютная позиция портфеля. */
|
|
854
|
+
export interface PositionsMoney {
|
|
855
|
+
/** Доступное количество валютный позиций. */
|
|
856
|
+
availableValue: MoneyValue | undefined;
|
|
857
|
+
/** Заблокированное количество валютных позиций. */
|
|
858
|
+
blockedValue: MoneyValue | undefined;
|
|
859
|
+
}
|
|
860
|
+
export interface ChildOperationItem {
|
|
861
|
+
/** Уникальный идентификатор инструмента. */
|
|
862
|
+
instrumentUid: string;
|
|
863
|
+
/** Сумма операции. */
|
|
864
|
+
payment: MoneyValue | undefined;
|
|
865
|
+
}
|
|
866
|
+
/** Запрос установки stream-соединения операций. */
|
|
867
|
+
export interface OperationsStreamRequest {
|
|
868
|
+
/** Массив идентификаторов счетов пользователя. */
|
|
869
|
+
accounts: string[];
|
|
870
|
+
/** Запрос настройки пинга. */
|
|
871
|
+
pingSettings: PingDelaySettings | undefined;
|
|
872
|
+
}
|
|
873
|
+
/** Информация по операциям. */
|
|
874
|
+
export interface OperationsStreamResponse {
|
|
875
|
+
/** Объект результата подписки. */
|
|
876
|
+
subscriptions?: OperationsSubscriptionResult | undefined;
|
|
877
|
+
/** Объект стриминга операций. */
|
|
878
|
+
operation?: OperationData | undefined;
|
|
879
|
+
/** Проверка активности стрима. */
|
|
880
|
+
ping?: Ping | undefined;
|
|
881
|
+
}
|
|
882
|
+
/** Объект результата подписки. */
|
|
883
|
+
export interface OperationsSubscriptionResult {
|
|
884
|
+
/** Массив счетов клиента. */
|
|
885
|
+
accounts: string[];
|
|
886
|
+
/** Результат подписки. */
|
|
887
|
+
subscriptionStatus: OperationsAccountSubscriptionStatus;
|
|
888
|
+
/** Уникальный идентификатор запроса, подробнее: [tracking_id](/invest/intro/developer/protocols/grpc#tracking-id). */
|
|
889
|
+
trackingId: string;
|
|
890
|
+
/** Идентификатор открытого соединения */
|
|
891
|
+
streamId: string;
|
|
892
|
+
}
|
|
893
|
+
/** Данные об операции. */
|
|
894
|
+
export interface OperationData {
|
|
895
|
+
/** Идентификатор счета. */
|
|
896
|
+
brokerAccountId: string;
|
|
897
|
+
/** Номер поручения. */
|
|
898
|
+
id: string;
|
|
899
|
+
/** Номер родительского поручения. */
|
|
900
|
+
parentOperationId: string;
|
|
901
|
+
/** Название инструмента. */
|
|
902
|
+
name: string;
|
|
903
|
+
/** Дата. */
|
|
904
|
+
date: Date | undefined;
|
|
905
|
+
/** Тип операции. */
|
|
906
|
+
type: OperationType;
|
|
907
|
+
/** Статус поручения. */
|
|
908
|
+
state: OperationState;
|
|
909
|
+
/** Уникальный идентификатор инструмента. */
|
|
910
|
+
instrumentUid: string;
|
|
911
|
+
/** FIGI-идентификатор инструмента. */
|
|
912
|
+
figi: string;
|
|
913
|
+
/** Тип инструмента. */
|
|
914
|
+
instrumentType: string;
|
|
915
|
+
/** Тип инструмента. */
|
|
916
|
+
instrumentKind: InstrumentType;
|
|
917
|
+
/** Идентификатор позиции. */
|
|
918
|
+
positionUid: string;
|
|
919
|
+
/** Тикер инструмента. */
|
|
920
|
+
ticker: string;
|
|
921
|
+
/** Класс-код (секция торгов). */
|
|
922
|
+
classCode: string;
|
|
923
|
+
/** Сумма операции. */
|
|
924
|
+
payment: MoneyValue | undefined;
|
|
925
|
+
}
|
|
926
|
+
export declare const OperationsRequest: MessageFns<OperationsRequest>;
|
|
927
|
+
export declare const OperationsResponse: MessageFns<OperationsResponse>;
|
|
928
|
+
export declare const Operation: MessageFns<Operation>;
|
|
929
|
+
export declare const OperationTrade: MessageFns<OperationTrade>;
|
|
930
|
+
export declare const PortfolioRequest: MessageFns<PortfolioRequest>;
|
|
931
|
+
export declare const PortfolioResponse: MessageFns<PortfolioResponse>;
|
|
932
|
+
export declare const PositionsRequest: MessageFns<PositionsRequest>;
|
|
933
|
+
export declare const PositionsResponse: MessageFns<PositionsResponse>;
|
|
934
|
+
export declare const WithdrawLimitsRequest: MessageFns<WithdrawLimitsRequest>;
|
|
935
|
+
export declare const WithdrawLimitsResponse: MessageFns<WithdrawLimitsResponse>;
|
|
936
|
+
export declare const PortfolioPosition: MessageFns<PortfolioPosition>;
|
|
937
|
+
export declare const VirtualPortfolioPosition: MessageFns<VirtualPortfolioPosition>;
|
|
938
|
+
export declare const PositionsSecurities: MessageFns<PositionsSecurities>;
|
|
939
|
+
export declare const PositionsFutures: MessageFns<PositionsFutures>;
|
|
940
|
+
export declare const PositionsOptions: MessageFns<PositionsOptions>;
|
|
941
|
+
export declare const BrokerReportRequest: MessageFns<BrokerReportRequest>;
|
|
942
|
+
export declare const BrokerReportResponse: MessageFns<BrokerReportResponse>;
|
|
943
|
+
export declare const GenerateBrokerReportRequest: MessageFns<GenerateBrokerReportRequest>;
|
|
944
|
+
export declare const GenerateBrokerReportResponse: MessageFns<GenerateBrokerReportResponse>;
|
|
945
|
+
export declare const GetBrokerReportRequest: MessageFns<GetBrokerReportRequest>;
|
|
946
|
+
export declare const GetBrokerReportResponse: MessageFns<GetBrokerReportResponse>;
|
|
947
|
+
export declare const BrokerReport: MessageFns<BrokerReport>;
|
|
948
|
+
export declare const GetDividendsForeignIssuerRequest: MessageFns<GetDividendsForeignIssuerRequest>;
|
|
949
|
+
export declare const GetDividendsForeignIssuerResponse: MessageFns<GetDividendsForeignIssuerResponse>;
|
|
950
|
+
export declare const GenerateDividendsForeignIssuerReportRequest: MessageFns<GenerateDividendsForeignIssuerReportRequest>;
|
|
951
|
+
export declare const GetDividendsForeignIssuerReportRequest: MessageFns<GetDividendsForeignIssuerReportRequest>;
|
|
952
|
+
export declare const GenerateDividendsForeignIssuerReportResponse: MessageFns<GenerateDividendsForeignIssuerReportResponse>;
|
|
953
|
+
export declare const GetDividendsForeignIssuerReportResponse: MessageFns<GetDividendsForeignIssuerReportResponse>;
|
|
954
|
+
export declare const DividendsForeignIssuerReport: MessageFns<DividendsForeignIssuerReport>;
|
|
955
|
+
export declare const PortfolioStreamRequest: MessageFns<PortfolioStreamRequest>;
|
|
956
|
+
export declare const PortfolioStreamResponse: MessageFns<PortfolioStreamResponse>;
|
|
957
|
+
export declare const PortfolioSubscriptionResult: MessageFns<PortfolioSubscriptionResult>;
|
|
958
|
+
export declare const AccountSubscriptionStatus: MessageFns<AccountSubscriptionStatus>;
|
|
959
|
+
export declare const GetOperationsByCursorRequest: MessageFns<GetOperationsByCursorRequest>;
|
|
960
|
+
export declare const GetOperationsByCursorResponse: MessageFns<GetOperationsByCursorResponse>;
|
|
961
|
+
export declare const OperationItem: MessageFns<OperationItem>;
|
|
962
|
+
export declare const OperationItemTrades: MessageFns<OperationItemTrades>;
|
|
963
|
+
export declare const OperationItemTrade: MessageFns<OperationItemTrade>;
|
|
964
|
+
export declare const PositionsStreamRequest: MessageFns<PositionsStreamRequest>;
|
|
965
|
+
export declare const PositionsStreamResponse: MessageFns<PositionsStreamResponse>;
|
|
966
|
+
export declare const PositionsSubscriptionResult: MessageFns<PositionsSubscriptionResult>;
|
|
967
|
+
export declare const PositionsSubscriptionStatus: MessageFns<PositionsSubscriptionStatus>;
|
|
968
|
+
export declare const PositionData: MessageFns<PositionData>;
|
|
969
|
+
export declare const PositionsMoney: MessageFns<PositionsMoney>;
|
|
970
|
+
export declare const ChildOperationItem: MessageFns<ChildOperationItem>;
|
|
971
|
+
export declare const OperationsStreamRequest: MessageFns<OperationsStreamRequest>;
|
|
972
|
+
export declare const OperationsStreamResponse: MessageFns<OperationsStreamResponse>;
|
|
973
|
+
export declare const OperationsSubscriptionResult: MessageFns<OperationsSubscriptionResult>;
|
|
974
|
+
export declare const OperationData: MessageFns<OperationData>;
|
|
975
|
+
/**
|
|
976
|
+
* С помощью методов сервиса можно получить:<br/><br/> **1**. Список операций по счету.<br/> **2**.
|
|
977
|
+
* Портфель по счету.<br/> **3**. Позиции ценных бумаг на счете.<br/> **4**.
|
|
978
|
+
* Доступный остаток для вывода средств.<br/> **5**. Различные отчеты.
|
|
979
|
+
*/
|
|
980
|
+
export type OperationsServiceDefinition = typeof OperationsServiceDefinition;
|
|
981
|
+
export declare const OperationsServiceDefinition: {
|
|
982
|
+
readonly name: "OperationsService";
|
|
983
|
+
readonly fullName: "tinkoff.public.invest.api.contract.v1.OperationsService";
|
|
984
|
+
readonly methods: {
|
|
985
|
+
/**
|
|
986
|
+
* Deprecated GetOperations — список операций по счету
|
|
987
|
+
* При работе с методом учитывайте [особенности взаимодействия](/invest/services/operations/operations_problems).
|
|
988
|
+
*/
|
|
989
|
+
readonly getOperations: {
|
|
990
|
+
readonly name: "GetOperations";
|
|
991
|
+
readonly requestType: typeof OperationsRequest;
|
|
992
|
+
readonly requestStream: false;
|
|
993
|
+
readonly responseType: typeof OperationsResponse;
|
|
994
|
+
readonly responseStream: false;
|
|
995
|
+
readonly options: {};
|
|
996
|
+
};
|
|
997
|
+
/** GetPortfolio — портфель по счету */
|
|
998
|
+
readonly getPortfolio: {
|
|
999
|
+
readonly name: "GetPortfolio";
|
|
1000
|
+
readonly requestType: typeof PortfolioRequest;
|
|
1001
|
+
readonly requestStream: false;
|
|
1002
|
+
readonly responseType: typeof PortfolioResponse;
|
|
1003
|
+
readonly responseStream: false;
|
|
1004
|
+
readonly options: {};
|
|
1005
|
+
};
|
|
1006
|
+
/** GetPositions — список позиций по счету */
|
|
1007
|
+
readonly getPositions: {
|
|
1008
|
+
readonly name: "GetPositions";
|
|
1009
|
+
readonly requestType: typeof PositionsRequest;
|
|
1010
|
+
readonly requestStream: false;
|
|
1011
|
+
readonly responseType: typeof PositionsResponse;
|
|
1012
|
+
readonly responseStream: false;
|
|
1013
|
+
readonly options: {};
|
|
1014
|
+
};
|
|
1015
|
+
/** GetWithdrawLimits — доступный остаток для вывода средств */
|
|
1016
|
+
readonly getWithdrawLimits: {
|
|
1017
|
+
readonly name: "GetWithdrawLimits";
|
|
1018
|
+
readonly requestType: typeof WithdrawLimitsRequest;
|
|
1019
|
+
readonly requestStream: false;
|
|
1020
|
+
readonly responseType: typeof WithdrawLimitsResponse;
|
|
1021
|
+
readonly responseStream: false;
|
|
1022
|
+
readonly options: {};
|
|
1023
|
+
};
|
|
1024
|
+
/** GetBrokerReport — брокерский отчет. */
|
|
1025
|
+
readonly getBrokerReport: {
|
|
1026
|
+
readonly name: "GetBrokerReport";
|
|
1027
|
+
readonly requestType: typeof BrokerReportRequest;
|
|
1028
|
+
readonly requestStream: false;
|
|
1029
|
+
readonly responseType: typeof BrokerReportResponse;
|
|
1030
|
+
readonly responseStream: false;
|
|
1031
|
+
readonly options: {};
|
|
1032
|
+
};
|
|
1033
|
+
/** GetDividendsForeignIssuer — отчет «Справка о доходах за пределами РФ» */
|
|
1034
|
+
readonly getDividendsForeignIssuer: {
|
|
1035
|
+
readonly name: "GetDividendsForeignIssuer";
|
|
1036
|
+
readonly requestType: typeof GetDividendsForeignIssuerRequest;
|
|
1037
|
+
readonly requestStream: false;
|
|
1038
|
+
readonly responseType: typeof GetDividendsForeignIssuerResponse;
|
|
1039
|
+
readonly responseStream: false;
|
|
1040
|
+
readonly options: {};
|
|
1041
|
+
};
|
|
1042
|
+
/**
|
|
1043
|
+
* GetOperationsByCursor — список операций по счету с пагинацией
|
|
1044
|
+
* При работе с методом учитывайте [особенности взаимодействия](/invest/services/operations/operations_problems).
|
|
1045
|
+
*/
|
|
1046
|
+
readonly getOperationsByCursor: {
|
|
1047
|
+
readonly name: "GetOperationsByCursor";
|
|
1048
|
+
readonly requestType: typeof GetOperationsByCursorRequest;
|
|
1049
|
+
readonly requestStream: false;
|
|
1050
|
+
readonly responseType: typeof GetOperationsByCursorResponse;
|
|
1051
|
+
readonly responseStream: false;
|
|
1052
|
+
readonly options: {};
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
export interface OperationsServiceImplementation<CallContextExt = {}> {
|
|
1057
|
+
/**
|
|
1058
|
+
* Deprecated GetOperations — список операций по счету
|
|
1059
|
+
* При работе с методом учитывайте [особенности взаимодействия](/invest/services/operations/operations_problems).
|
|
1060
|
+
*/
|
|
1061
|
+
getOperations(request: OperationsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<OperationsResponse>>;
|
|
1062
|
+
/** GetPortfolio — портфель по счету */
|
|
1063
|
+
getPortfolio(request: PortfolioRequest, context: CallContext & CallContextExt): Promise<DeepPartial<PortfolioResponse>>;
|
|
1064
|
+
/** GetPositions — список позиций по счету */
|
|
1065
|
+
getPositions(request: PositionsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<PositionsResponse>>;
|
|
1066
|
+
/** GetWithdrawLimits — доступный остаток для вывода средств */
|
|
1067
|
+
getWithdrawLimits(request: WithdrawLimitsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<WithdrawLimitsResponse>>;
|
|
1068
|
+
/** GetBrokerReport — брокерский отчет. */
|
|
1069
|
+
getBrokerReport(request: BrokerReportRequest, context: CallContext & CallContextExt): Promise<DeepPartial<BrokerReportResponse>>;
|
|
1070
|
+
/** GetDividendsForeignIssuer — отчет «Справка о доходах за пределами РФ» */
|
|
1071
|
+
getDividendsForeignIssuer(request: GetDividendsForeignIssuerRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetDividendsForeignIssuerResponse>>;
|
|
1072
|
+
/**
|
|
1073
|
+
* GetOperationsByCursor — список операций по счету с пагинацией
|
|
1074
|
+
* При работе с методом учитывайте [особенности взаимодействия](/invest/services/operations/operations_problems).
|
|
1075
|
+
*/
|
|
1076
|
+
getOperationsByCursor(request: GetOperationsByCursorRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetOperationsByCursorResponse>>;
|
|
1077
|
+
}
|
|
1078
|
+
export interface OperationsServiceClient<CallOptionsExt = {}> {
|
|
1079
|
+
/**
|
|
1080
|
+
* Deprecated GetOperations — список операций по счету
|
|
1081
|
+
* При работе с методом учитывайте [особенности взаимодействия](/invest/services/operations/operations_problems).
|
|
1082
|
+
*/
|
|
1083
|
+
getOperations(request: DeepPartial<OperationsRequest>, options?: CallOptions & CallOptionsExt): Promise<OperationsResponse>;
|
|
1084
|
+
/** GetPortfolio — портфель по счету */
|
|
1085
|
+
getPortfolio(request: DeepPartial<PortfolioRequest>, options?: CallOptions & CallOptionsExt): Promise<PortfolioResponse>;
|
|
1086
|
+
/** GetPositions — список позиций по счету */
|
|
1087
|
+
getPositions(request: DeepPartial<PositionsRequest>, options?: CallOptions & CallOptionsExt): Promise<PositionsResponse>;
|
|
1088
|
+
/** GetWithdrawLimits — доступный остаток для вывода средств */
|
|
1089
|
+
getWithdrawLimits(request: DeepPartial<WithdrawLimitsRequest>, options?: CallOptions & CallOptionsExt): Promise<WithdrawLimitsResponse>;
|
|
1090
|
+
/** GetBrokerReport — брокерский отчет. */
|
|
1091
|
+
getBrokerReport(request: DeepPartial<BrokerReportRequest>, options?: CallOptions & CallOptionsExt): Promise<BrokerReportResponse>;
|
|
1092
|
+
/** GetDividendsForeignIssuer — отчет «Справка о доходах за пределами РФ» */
|
|
1093
|
+
getDividendsForeignIssuer(request: DeepPartial<GetDividendsForeignIssuerRequest>, options?: CallOptions & CallOptionsExt): Promise<GetDividendsForeignIssuerResponse>;
|
|
1094
|
+
/**
|
|
1095
|
+
* GetOperationsByCursor — список операций по счету с пагинацией
|
|
1096
|
+
* При работе с методом учитывайте [особенности взаимодействия](/invest/services/operations/operations_problems).
|
|
1097
|
+
*/
|
|
1098
|
+
getOperationsByCursor(request: DeepPartial<GetOperationsByCursorRequest>, options?: CallOptions & CallOptionsExt): Promise<GetOperationsByCursorResponse>;
|
|
1099
|
+
}
|
|
1100
|
+
export type OperationsStreamServiceDefinition = typeof OperationsStreamServiceDefinition;
|
|
1101
|
+
export declare const OperationsStreamServiceDefinition: {
|
|
1102
|
+
readonly name: "OperationsStreamService";
|
|
1103
|
+
readonly fullName: "tinkoff.public.invest.api.contract.v1.OperationsStreamService";
|
|
1104
|
+
readonly methods: {
|
|
1105
|
+
/** PortfolioStream — стрим обновлений портфеля */
|
|
1106
|
+
readonly portfolioStream: {
|
|
1107
|
+
readonly name: "PortfolioStream";
|
|
1108
|
+
readonly requestType: typeof PortfolioStreamRequest;
|
|
1109
|
+
readonly requestStream: false;
|
|
1110
|
+
readonly responseType: typeof PortfolioStreamResponse;
|
|
1111
|
+
readonly responseStream: true;
|
|
1112
|
+
readonly options: {};
|
|
1113
|
+
};
|
|
1114
|
+
/** PositionsStream — стрим обновлений информации по изменению позиций портфеля */
|
|
1115
|
+
readonly positionsStream: {
|
|
1116
|
+
readonly name: "PositionsStream";
|
|
1117
|
+
readonly requestType: typeof PositionsStreamRequest;
|
|
1118
|
+
readonly requestStream: false;
|
|
1119
|
+
readonly responseType: typeof PositionsStreamResponse;
|
|
1120
|
+
readonly responseStream: true;
|
|
1121
|
+
readonly options: {};
|
|
1122
|
+
};
|
|
1123
|
+
/** OperationsStream — стрим обновлений операций */
|
|
1124
|
+
readonly operationsStream: {
|
|
1125
|
+
readonly name: "OperationsStream";
|
|
1126
|
+
readonly requestType: typeof OperationsStreamRequest;
|
|
1127
|
+
readonly requestStream: false;
|
|
1128
|
+
readonly responseType: typeof OperationsStreamResponse;
|
|
1129
|
+
readonly responseStream: true;
|
|
1130
|
+
readonly options: {};
|
|
1131
|
+
};
|
|
1132
|
+
};
|
|
1133
|
+
};
|
|
1134
|
+
export interface OperationsStreamServiceImplementation<CallContextExt = {}> {
|
|
1135
|
+
/** PortfolioStream — стрим обновлений портфеля */
|
|
1136
|
+
portfolioStream(request: PortfolioStreamRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<PortfolioStreamResponse>>;
|
|
1137
|
+
/** PositionsStream — стрим обновлений информации по изменению позиций портфеля */
|
|
1138
|
+
positionsStream(request: PositionsStreamRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<PositionsStreamResponse>>;
|
|
1139
|
+
/** OperationsStream — стрим обновлений операций */
|
|
1140
|
+
operationsStream(request: OperationsStreamRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<OperationsStreamResponse>>;
|
|
1141
|
+
}
|
|
1142
|
+
export interface OperationsStreamServiceClient<CallOptionsExt = {}> {
|
|
1143
|
+
/** PortfolioStream — стрим обновлений портфеля */
|
|
1144
|
+
portfolioStream(request: DeepPartial<PortfolioStreamRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<PortfolioStreamResponse>;
|
|
1145
|
+
/** PositionsStream — стрим обновлений информации по изменению позиций портфеля */
|
|
1146
|
+
positionsStream(request: DeepPartial<PositionsStreamRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<PositionsStreamResponse>;
|
|
1147
|
+
/** OperationsStream — стрим обновлений операций */
|
|
1148
|
+
operationsStream(request: DeepPartial<OperationsStreamRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<OperationsStreamResponse>;
|
|
1149
|
+
}
|
|
1150
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1151
|
+
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 {} ? {
|
|
1152
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1153
|
+
} : Partial<T>;
|
|
1154
|
+
export type ServerStreamingMethodResult<Response> = {
|
|
1155
|
+
[Symbol.asyncIterator](): AsyncIterator<Response, void>;
|
|
1156
|
+
};
|
|
1157
|
+
export interface MessageFns<T> {
|
|
1158
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1159
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1160
|
+
fromJSON(object: any): T;
|
|
1161
|
+
toJSON(message: T): unknown;
|
|
1162
|
+
create(base?: DeepPartial<T>): T;
|
|
1163
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
1164
|
+
}
|
|
1165
|
+
export {};
|