@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,1268 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
|
+
import { InstrumentStatus, Ping, PingDelaySettings, PingRequest, Quotation, SecurityTradingStatus } from "./common";
|
|
4
|
+
export declare const protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
5
|
+
/** Тип операции со списком подписок. */
|
|
6
|
+
export declare enum SubscriptionAction {
|
|
7
|
+
/** SUBSCRIPTION_ACTION_UNSPECIFIED - Статус подписки не определен. */
|
|
8
|
+
SUBSCRIPTION_ACTION_UNSPECIFIED = 0,
|
|
9
|
+
/** SUBSCRIPTION_ACTION_SUBSCRIBE - Подписаться. */
|
|
10
|
+
SUBSCRIPTION_ACTION_SUBSCRIBE = 1,
|
|
11
|
+
/** SUBSCRIPTION_ACTION_UNSUBSCRIBE - Отписаться. */
|
|
12
|
+
SUBSCRIPTION_ACTION_UNSUBSCRIBE = 2,
|
|
13
|
+
UNRECOGNIZED = -1
|
|
14
|
+
}
|
|
15
|
+
export declare function subscriptionActionFromJSON(object: any): SubscriptionAction;
|
|
16
|
+
export declare function subscriptionActionToJSON(object: SubscriptionAction): string;
|
|
17
|
+
/** Интервал свечи. */
|
|
18
|
+
export declare enum SubscriptionInterval {
|
|
19
|
+
/** SUBSCRIPTION_INTERVAL_UNSPECIFIED - Интервал свечи не определен. */
|
|
20
|
+
SUBSCRIPTION_INTERVAL_UNSPECIFIED = 0,
|
|
21
|
+
/** SUBSCRIPTION_INTERVAL_ONE_MINUTE - Минутные свечи. */
|
|
22
|
+
SUBSCRIPTION_INTERVAL_ONE_MINUTE = 1,
|
|
23
|
+
/** SUBSCRIPTION_INTERVAL_FIVE_MINUTES - Пятиминутные свечи. */
|
|
24
|
+
SUBSCRIPTION_INTERVAL_FIVE_MINUTES = 2,
|
|
25
|
+
/** SUBSCRIPTION_INTERVAL_FIFTEEN_MINUTES - Пятнадцатиминутные свечи. */
|
|
26
|
+
SUBSCRIPTION_INTERVAL_FIFTEEN_MINUTES = 3,
|
|
27
|
+
/** SUBSCRIPTION_INTERVAL_ONE_HOUR - Часовые свечи. */
|
|
28
|
+
SUBSCRIPTION_INTERVAL_ONE_HOUR = 4,
|
|
29
|
+
/** SUBSCRIPTION_INTERVAL_ONE_DAY - Дневные свечи. */
|
|
30
|
+
SUBSCRIPTION_INTERVAL_ONE_DAY = 5,
|
|
31
|
+
/** SUBSCRIPTION_INTERVAL_2_MIN - Двухминутные свечи. */
|
|
32
|
+
SUBSCRIPTION_INTERVAL_2_MIN = 6,
|
|
33
|
+
/** SUBSCRIPTION_INTERVAL_3_MIN - Трехминутные свечи. */
|
|
34
|
+
SUBSCRIPTION_INTERVAL_3_MIN = 7,
|
|
35
|
+
/** SUBSCRIPTION_INTERVAL_10_MIN - Десятиминутные свечи. */
|
|
36
|
+
SUBSCRIPTION_INTERVAL_10_MIN = 8,
|
|
37
|
+
/** SUBSCRIPTION_INTERVAL_30_MIN - Тридцатиминутные свечи. */
|
|
38
|
+
SUBSCRIPTION_INTERVAL_30_MIN = 9,
|
|
39
|
+
/** SUBSCRIPTION_INTERVAL_2_HOUR - Двухчасовые свечи. */
|
|
40
|
+
SUBSCRIPTION_INTERVAL_2_HOUR = 10,
|
|
41
|
+
/** SUBSCRIPTION_INTERVAL_4_HOUR - Четырехчасовые свечи. */
|
|
42
|
+
SUBSCRIPTION_INTERVAL_4_HOUR = 11,
|
|
43
|
+
/** SUBSCRIPTION_INTERVAL_WEEK - Недельные свечи. */
|
|
44
|
+
SUBSCRIPTION_INTERVAL_WEEK = 12,
|
|
45
|
+
/** SUBSCRIPTION_INTERVAL_MONTH - Месячные свечи. */
|
|
46
|
+
SUBSCRIPTION_INTERVAL_MONTH = 13,
|
|
47
|
+
UNRECOGNIZED = -1
|
|
48
|
+
}
|
|
49
|
+
export declare function subscriptionIntervalFromJSON(object: any): SubscriptionInterval;
|
|
50
|
+
export declare function subscriptionIntervalToJSON(object: SubscriptionInterval): string;
|
|
51
|
+
/** Результат подписки. */
|
|
52
|
+
export declare enum SubscriptionStatus {
|
|
53
|
+
/** SUBSCRIPTION_STATUS_UNSPECIFIED - Статус подписки не определен. */
|
|
54
|
+
SUBSCRIPTION_STATUS_UNSPECIFIED = 0,
|
|
55
|
+
/** SUBSCRIPTION_STATUS_SUCCESS - Успешно. */
|
|
56
|
+
SUBSCRIPTION_STATUS_SUCCESS = 1,
|
|
57
|
+
/** SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND - Инструмент не найден. */
|
|
58
|
+
SUBSCRIPTION_STATUS_INSTRUMENT_NOT_FOUND = 2,
|
|
59
|
+
/** SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID - Некорректный статус подписки. [Список возможных значений](./marketdata#subscriptionaction). */
|
|
60
|
+
SUBSCRIPTION_STATUS_SUBSCRIPTION_ACTION_IS_INVALID = 3,
|
|
61
|
+
/** SUBSCRIPTION_STATUS_DEPTH_IS_INVALID - Некорректная глубина стакана. Доступные значения — 1, 10, 20, 30, 40, 50. */
|
|
62
|
+
SUBSCRIPTION_STATUS_DEPTH_IS_INVALID = 4,
|
|
63
|
+
/** SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID - Некорректный интервал свечей. [Список возможных значений](./marketdata#subscriptioninterval). */
|
|
64
|
+
SUBSCRIPTION_STATUS_INTERVAL_IS_INVALID = 5,
|
|
65
|
+
/** SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED - Превышен лимит на общее количество подписок в рамках стрима. [Лимитная политика](./limits/). */
|
|
66
|
+
SUBSCRIPTION_STATUS_LIMIT_IS_EXCEEDED = 6,
|
|
67
|
+
/** SUBSCRIPTION_STATUS_INTERNAL_ERROR - Внутренняя ошибка сервиса. */
|
|
68
|
+
SUBSCRIPTION_STATUS_INTERNAL_ERROR = 7,
|
|
69
|
+
/** SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS - Превышен лимит на количество запросов на подписки в течение установленного отрезка времени. */
|
|
70
|
+
SUBSCRIPTION_STATUS_TOO_MANY_REQUESTS = 8,
|
|
71
|
+
/** SUBSCRIPTION_STATUS_SUBSCRIPTION_NOT_FOUND - Активная подписка не найдена. Ошибка может возникнуть только при отписке от несуществующей подписки. */
|
|
72
|
+
SUBSCRIPTION_STATUS_SUBSCRIPTION_NOT_FOUND = 9,
|
|
73
|
+
/** SUBSCRIPTION_STATUS_SOURCE_IS_INVALID - Указан некорректный источник. */
|
|
74
|
+
SUBSCRIPTION_STATUS_SOURCE_IS_INVALID = 10,
|
|
75
|
+
UNRECOGNIZED = -1
|
|
76
|
+
}
|
|
77
|
+
export declare function subscriptionStatusFromJSON(object: any): SubscriptionStatus;
|
|
78
|
+
export declare function subscriptionStatusToJSON(object: SubscriptionStatus): string;
|
|
79
|
+
/** Типы источников сделок. */
|
|
80
|
+
export declare enum TradeSourceType {
|
|
81
|
+
/** TRADE_SOURCE_UNSPECIFIED - Тип источника сделки не определён. */
|
|
82
|
+
TRADE_SOURCE_UNSPECIFIED = 0,
|
|
83
|
+
/** TRADE_SOURCE_EXCHANGE - Биржевые сделки. */
|
|
84
|
+
TRADE_SOURCE_EXCHANGE = 1,
|
|
85
|
+
/** TRADE_SOURCE_DEALER - Сделки дилера. */
|
|
86
|
+
TRADE_SOURCE_DEALER = 2,
|
|
87
|
+
/** TRADE_SOURCE_ALL - Все сделки. */
|
|
88
|
+
TRADE_SOURCE_ALL = 3,
|
|
89
|
+
UNRECOGNIZED = -1
|
|
90
|
+
}
|
|
91
|
+
export declare function tradeSourceTypeFromJSON(object: any): TradeSourceType;
|
|
92
|
+
export declare function tradeSourceTypeToJSON(object: TradeSourceType): string;
|
|
93
|
+
/** Направление сделки. */
|
|
94
|
+
export declare enum TradeDirection {
|
|
95
|
+
/** TRADE_DIRECTION_UNSPECIFIED - Направление сделки не определено. */
|
|
96
|
+
TRADE_DIRECTION_UNSPECIFIED = 0,
|
|
97
|
+
/** TRADE_DIRECTION_BUY - Покупка. */
|
|
98
|
+
TRADE_DIRECTION_BUY = 1,
|
|
99
|
+
/** TRADE_DIRECTION_SELL - Продажа. */
|
|
100
|
+
TRADE_DIRECTION_SELL = 2,
|
|
101
|
+
UNRECOGNIZED = -1
|
|
102
|
+
}
|
|
103
|
+
export declare function tradeDirectionFromJSON(object: any): TradeDirection;
|
|
104
|
+
export declare function tradeDirectionToJSON(object: TradeDirection): string;
|
|
105
|
+
/** Интервал свечей. Максимальное значение интервала приведено ориентировочно, может отличаться в большую сторону в зависимости от параметров запроса. */
|
|
106
|
+
export declare enum CandleInterval {
|
|
107
|
+
/** CANDLE_INTERVAL_UNSPECIFIED - Интервал не определен. */
|
|
108
|
+
CANDLE_INTERVAL_UNSPECIFIED = 0,
|
|
109
|
+
/** CANDLE_INTERVAL_1_MIN - От 1 минуты до 1 дня. Максимальное значение `limit` — 2400. */
|
|
110
|
+
CANDLE_INTERVAL_1_MIN = 1,
|
|
111
|
+
/** CANDLE_INTERVAL_5_MIN - От 5 минут до недели. Максимальное значение `limit` — 2400. */
|
|
112
|
+
CANDLE_INTERVAL_5_MIN = 2,
|
|
113
|
+
/** CANDLE_INTERVAL_15_MIN - От 15 минут до 3 недель. Максимальное значение `limit` — 2400. */
|
|
114
|
+
CANDLE_INTERVAL_15_MIN = 3,
|
|
115
|
+
/** CANDLE_INTERVAL_HOUR - От 1 часа до 3 месяцев. Максимальное значение `limit` — 2400. */
|
|
116
|
+
CANDLE_INTERVAL_HOUR = 4,
|
|
117
|
+
/** CANDLE_INTERVAL_DAY - От 1 дня до 6 лет. Максимальное значение `limit` — 2400. */
|
|
118
|
+
CANDLE_INTERVAL_DAY = 5,
|
|
119
|
+
/** CANDLE_INTERVAL_2_MIN - От 2 минут до 1 дня. Максимальное значение `limit` — 1200. */
|
|
120
|
+
CANDLE_INTERVAL_2_MIN = 6,
|
|
121
|
+
/** CANDLE_INTERVAL_3_MIN - От 3 минут до 1 дня. Максимальное значение `limit` — 750. */
|
|
122
|
+
CANDLE_INTERVAL_3_MIN = 7,
|
|
123
|
+
/** CANDLE_INTERVAL_10_MIN - От 10 минут до недели. Максимальное значение `limit` — 1200. */
|
|
124
|
+
CANDLE_INTERVAL_10_MIN = 8,
|
|
125
|
+
/** CANDLE_INTERVAL_30_MIN - От 30 минут до 3 недель. Максимальное значение `limit` — 1200. */
|
|
126
|
+
CANDLE_INTERVAL_30_MIN = 9,
|
|
127
|
+
/** CANDLE_INTERVAL_2_HOUR - От 2 часов до 3 месяцев. Максимальное значение `limit` — 2400. */
|
|
128
|
+
CANDLE_INTERVAL_2_HOUR = 10,
|
|
129
|
+
/** CANDLE_INTERVAL_4_HOUR - От 4 часов до 3 месяцев. Максимальное значение `limit` — 700. */
|
|
130
|
+
CANDLE_INTERVAL_4_HOUR = 11,
|
|
131
|
+
/** CANDLE_INTERVAL_WEEK - От 1 недели до 5 лет. Максимальное значение `limit` — 300. */
|
|
132
|
+
CANDLE_INTERVAL_WEEK = 12,
|
|
133
|
+
/** CANDLE_INTERVAL_MONTH - От 1 месяца до 10 лет. Максимальное значение `limit` — 120. */
|
|
134
|
+
CANDLE_INTERVAL_MONTH = 13,
|
|
135
|
+
/** CANDLE_INTERVAL_5_SEC - От 5 секунд до 200 минут. Максимальное значение `limit` — 2500. */
|
|
136
|
+
CANDLE_INTERVAL_5_SEC = 14,
|
|
137
|
+
/** CANDLE_INTERVAL_10_SEC - От 10 секунд до 200 минут. Максимальное значение `limit` — 1250. */
|
|
138
|
+
CANDLE_INTERVAL_10_SEC = 15,
|
|
139
|
+
/** CANDLE_INTERVAL_30_SEC - От 30 секунд до 20 часов. Максимальное значение `limit` — 2500. */
|
|
140
|
+
CANDLE_INTERVAL_30_SEC = 16,
|
|
141
|
+
UNRECOGNIZED = -1
|
|
142
|
+
}
|
|
143
|
+
export declare function candleIntervalFromJSON(object: any): CandleInterval;
|
|
144
|
+
export declare function candleIntervalToJSON(object: CandleInterval): string;
|
|
145
|
+
export declare enum CandleSource {
|
|
146
|
+
/** CANDLE_SOURCE_UNSPECIFIED - Источник свечей не определен. */
|
|
147
|
+
CANDLE_SOURCE_UNSPECIFIED = 0,
|
|
148
|
+
/** CANDLE_SOURCE_EXCHANGE - Биржевые свечи. */
|
|
149
|
+
CANDLE_SOURCE_EXCHANGE = 1,
|
|
150
|
+
/** CANDLE_SOURCE_DEALER_WEEKEND - Свечи дилера в результате торговли по выходным. */
|
|
151
|
+
CANDLE_SOURCE_DEALER_WEEKEND = 2,
|
|
152
|
+
UNRECOGNIZED = -1
|
|
153
|
+
}
|
|
154
|
+
export declare function candleSourceFromJSON(object: any): CandleSource;
|
|
155
|
+
export declare function candleSourceToJSON(object: CandleSource): string;
|
|
156
|
+
export declare enum MarketValueType {
|
|
157
|
+
/** INSTRUMENT_VALUE_UNSPECIFIED - Не определен. */
|
|
158
|
+
INSTRUMENT_VALUE_UNSPECIFIED = 0,
|
|
159
|
+
/** INSTRUMENT_VALUE_LAST_PRICE - Последняя биржевая цена. */
|
|
160
|
+
INSTRUMENT_VALUE_LAST_PRICE = 1,
|
|
161
|
+
/** INSTRUMENT_VALUE_LAST_PRICE_DEALER - Последняя цена дилера. */
|
|
162
|
+
INSTRUMENT_VALUE_LAST_PRICE_DEALER = 2,
|
|
163
|
+
/** INSTRUMENT_VALUE_CLOSE_PRICE - Цена закрытия. */
|
|
164
|
+
INSTRUMENT_VALUE_CLOSE_PRICE = 3,
|
|
165
|
+
/** INSTRUMENT_VALUE_EVENING_SESSION_PRICE - Цена последней сделки с вечерней сессии. */
|
|
166
|
+
INSTRUMENT_VALUE_EVENING_SESSION_PRICE = 4,
|
|
167
|
+
/** INSTRUMENT_VALUE_OPEN_INTEREST - Открытый интерес, возвращается только для фьючерсов. */
|
|
168
|
+
INSTRUMENT_VALUE_OPEN_INTEREST = 5,
|
|
169
|
+
/** INSTRUMENT_VALUE_THEOR_PRICE - Теоретическая цена, возвращается только для опционов. */
|
|
170
|
+
INSTRUMENT_VALUE_THEOR_PRICE = 6,
|
|
171
|
+
/** INSTRUMENT_VALUE_YIELD - Доходность */
|
|
172
|
+
INSTRUMENT_VALUE_YIELD = 7,
|
|
173
|
+
UNRECOGNIZED = -1
|
|
174
|
+
}
|
|
175
|
+
export declare function marketValueTypeFromJSON(object: any): MarketValueType;
|
|
176
|
+
export declare function marketValueTypeToJSON(object: MarketValueType): string;
|
|
177
|
+
export declare enum OrderBookType {
|
|
178
|
+
/** ORDERBOOK_TYPE_UNSPECIFIED - Не определен. */
|
|
179
|
+
ORDERBOOK_TYPE_UNSPECIFIED = 0,
|
|
180
|
+
/** ORDERBOOK_TYPE_EXCHANGE - Биржевой стакан. */
|
|
181
|
+
ORDERBOOK_TYPE_EXCHANGE = 1,
|
|
182
|
+
/** ORDERBOOK_TYPE_DEALER - Стакан дилера. */
|
|
183
|
+
ORDERBOOK_TYPE_DEALER = 2,
|
|
184
|
+
/** ORDERBOOK_TYPE_ALL - Стакан биржевой и дилера. */
|
|
185
|
+
ORDERBOOK_TYPE_ALL = 3,
|
|
186
|
+
UNRECOGNIZED = -1
|
|
187
|
+
}
|
|
188
|
+
export declare function orderBookTypeFromJSON(object: any): OrderBookType;
|
|
189
|
+
export declare function orderBookTypeToJSON(object: OrderBookType): string;
|
|
190
|
+
/** Тип последней цены */
|
|
191
|
+
export declare enum LastPriceType {
|
|
192
|
+
/** LAST_PRICE_UNSPECIFIED - Не определен. */
|
|
193
|
+
LAST_PRICE_UNSPECIFIED = 0,
|
|
194
|
+
/** LAST_PRICE_EXCHANGE - Цена биржи. */
|
|
195
|
+
LAST_PRICE_EXCHANGE = 1,
|
|
196
|
+
/** LAST_PRICE_DEALER - Цена дилера */
|
|
197
|
+
LAST_PRICE_DEALER = 2,
|
|
198
|
+
UNRECOGNIZED = -1
|
|
199
|
+
}
|
|
200
|
+
export declare function lastPriceTypeFromJSON(object: any): LastPriceType;
|
|
201
|
+
export declare function lastPriceTypeToJSON(object: LastPriceType): string;
|
|
202
|
+
/** Запрос подписки или отписки на определенные биржевые данные. */
|
|
203
|
+
export interface MarketDataRequest {
|
|
204
|
+
/** Запрос подписки на свечи. */
|
|
205
|
+
subscribeCandlesRequest?: SubscribeCandlesRequest | undefined;
|
|
206
|
+
/** Запрос подписки на стаканы. */
|
|
207
|
+
subscribeOrderBookRequest?: SubscribeOrderBookRequest | undefined;
|
|
208
|
+
/** Запрос подписки на ленту обезличенных сделок. */
|
|
209
|
+
subscribeTradesRequest?: SubscribeTradesRequest | undefined;
|
|
210
|
+
/** Запрос подписки на торговые статусы инструментов. */
|
|
211
|
+
subscribeInfoRequest?: SubscribeInfoRequest | undefined;
|
|
212
|
+
/** Запрос подписки на цены последних сделок. */
|
|
213
|
+
subscribeLastPriceRequest?: SubscribeLastPriceRequest | undefined;
|
|
214
|
+
/** Запрос своих подписок. */
|
|
215
|
+
getMySubscriptions?: GetMySubscriptions | undefined;
|
|
216
|
+
/** Запрос проверки активности соединения. */
|
|
217
|
+
ping?: PingRequest | undefined;
|
|
218
|
+
/** Запрос настройки пинга. */
|
|
219
|
+
pingSettings?: PingDelaySettings | undefined;
|
|
220
|
+
}
|
|
221
|
+
export interface MarketDataServerSideStreamRequest {
|
|
222
|
+
/** Запрос подписки на свечи. */
|
|
223
|
+
subscribeCandlesRequest: SubscribeCandlesRequest | undefined;
|
|
224
|
+
/** Запрос подписки на стаканы. */
|
|
225
|
+
subscribeOrderBookRequest: SubscribeOrderBookRequest | undefined;
|
|
226
|
+
/** Запрос подписки на ленту обезличенных сделок. */
|
|
227
|
+
subscribeTradesRequest: SubscribeTradesRequest | undefined;
|
|
228
|
+
/** Запрос подписки на торговые статусы инструментов. */
|
|
229
|
+
subscribeInfoRequest: SubscribeInfoRequest | undefined;
|
|
230
|
+
/** Запрос подписки на цены последних сделок. */
|
|
231
|
+
subscribeLastPriceRequest: SubscribeLastPriceRequest | undefined;
|
|
232
|
+
/** Запрос настройки пинга. */
|
|
233
|
+
pingSettings: PingDelaySettings | undefined;
|
|
234
|
+
}
|
|
235
|
+
/** Пакет биржевой информации по подписке. */
|
|
236
|
+
export interface MarketDataResponse {
|
|
237
|
+
/** Результат подписки на свечи. */
|
|
238
|
+
subscribeCandlesResponse?: SubscribeCandlesResponse | undefined;
|
|
239
|
+
/** Результат подписки на стаканы. */
|
|
240
|
+
subscribeOrderBookResponse?: SubscribeOrderBookResponse | undefined;
|
|
241
|
+
/** Результат подписки на поток обезличенных сделок. */
|
|
242
|
+
subscribeTradesResponse?: SubscribeTradesResponse | undefined;
|
|
243
|
+
/** Результат подписки на торговые статусы инструментов. */
|
|
244
|
+
subscribeInfoResponse?: SubscribeInfoResponse | undefined;
|
|
245
|
+
/** Свеча. */
|
|
246
|
+
candle?: Candle | undefined;
|
|
247
|
+
/** Сделки. */
|
|
248
|
+
trade?: Trade | undefined;
|
|
249
|
+
/** Стакан. */
|
|
250
|
+
orderbook?: OrderBook | undefined;
|
|
251
|
+
/** Торговый статус. */
|
|
252
|
+
tradingStatus?: TradingStatus | undefined;
|
|
253
|
+
/** Проверка активности стрима. */
|
|
254
|
+
ping?: Ping | undefined;
|
|
255
|
+
/** Результат подписки на цены последние сделок по инструментам. */
|
|
256
|
+
subscribeLastPriceResponse?: SubscribeLastPriceResponse | undefined;
|
|
257
|
+
/** Цена последней сделки. */
|
|
258
|
+
lastPrice?: LastPrice | undefined;
|
|
259
|
+
/** Открытый интерес. */
|
|
260
|
+
openInterest?: OpenInterest | undefined;
|
|
261
|
+
}
|
|
262
|
+
/** subscribeCandles | Изменения статуса подписки на свечи. */
|
|
263
|
+
export interface SubscribeCandlesRequest {
|
|
264
|
+
/** Изменение статуса подписки. */
|
|
265
|
+
subscriptionAction: SubscriptionAction;
|
|
266
|
+
/** Массив инструментов для подписки на свечи. */
|
|
267
|
+
instruments: CandleInstrument[];
|
|
268
|
+
/** Флаг ожидания закрытия временного интервала для отправки свечи. */
|
|
269
|
+
waitingClose: boolean;
|
|
270
|
+
/** Источник свечей. */
|
|
271
|
+
candleSourceType?: GetCandlesRequest_CandleSource | undefined;
|
|
272
|
+
}
|
|
273
|
+
/** Запрос изменения статус подписки на свечи. */
|
|
274
|
+
export interface CandleInstrument {
|
|
275
|
+
/**
|
|
276
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте `instrument_id`.
|
|
277
|
+
*
|
|
278
|
+
* @deprecated
|
|
279
|
+
*/
|
|
280
|
+
figi: string;
|
|
281
|
+
/** Интервал свечей. Двухчасовые и четырехчасовые свечи в стриме отсчитываются с 0:00 по UTC. */
|
|
282
|
+
interval: SubscriptionInterval;
|
|
283
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
284
|
+
instrumentId: string;
|
|
285
|
+
}
|
|
286
|
+
/** Результат изменения статус подписки на свечи. */
|
|
287
|
+
export interface SubscribeCandlesResponse {
|
|
288
|
+
/** Уникальный идентификатор запроса. [Подробнее](./grpc#tracking-id). */
|
|
289
|
+
trackingId: string;
|
|
290
|
+
/** Массив статусов подписки на свечи. */
|
|
291
|
+
candlesSubscriptions: CandleSubscription[];
|
|
292
|
+
}
|
|
293
|
+
/** Статус подписки на свечи. */
|
|
294
|
+
export interface CandleSubscription {
|
|
295
|
+
/** FIGI-идентификатор инструмента. */
|
|
296
|
+
figi: string;
|
|
297
|
+
/** Интервал свечей. */
|
|
298
|
+
interval: SubscriptionInterval;
|
|
299
|
+
/** Статус подписки. */
|
|
300
|
+
subscriptionStatus: SubscriptionStatus;
|
|
301
|
+
/** UID инструмента. */
|
|
302
|
+
instrumentUid: string;
|
|
303
|
+
/** Флаг ожидания закрытия временного интервала для отправки свечи. */
|
|
304
|
+
waitingClose: boolean;
|
|
305
|
+
/** Идентификатор открытого соединения. */
|
|
306
|
+
streamId: string;
|
|
307
|
+
/** Идентификатор подписки в формате `UUID`. */
|
|
308
|
+
subscriptionId: string;
|
|
309
|
+
/** Действие подписки. */
|
|
310
|
+
subscriptionAction: SubscriptionAction;
|
|
311
|
+
/** Источник свечей. */
|
|
312
|
+
candleSourceType?: GetCandlesRequest_CandleSource | undefined;
|
|
313
|
+
/** Тикер инструмента. */
|
|
314
|
+
ticker: string;
|
|
315
|
+
/** Класс-код (секция торгов). */
|
|
316
|
+
classCode: string;
|
|
317
|
+
}
|
|
318
|
+
/** Запрос на изменение статуса подписки на стаканы. */
|
|
319
|
+
export interface SubscribeOrderBookRequest {
|
|
320
|
+
/** Изменение статуса подписки. */
|
|
321
|
+
subscriptionAction: SubscriptionAction;
|
|
322
|
+
/** Массив инструментов для подписки на стаканы. */
|
|
323
|
+
instruments: OrderBookInstrument[];
|
|
324
|
+
}
|
|
325
|
+
/** Запрос подписки на стаканы. */
|
|
326
|
+
export interface OrderBookInstrument {
|
|
327
|
+
/**
|
|
328
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте `instrument_id`.
|
|
329
|
+
*
|
|
330
|
+
* @deprecated
|
|
331
|
+
*/
|
|
332
|
+
figi: string;
|
|
333
|
+
/** Глубина стакана. */
|
|
334
|
+
depth: number;
|
|
335
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
336
|
+
instrumentId: string;
|
|
337
|
+
/** Тип стакана. Значение по умолчанию — `ORDERBOOK_TYPE_ALL`, стакан биржевой и дилера. */
|
|
338
|
+
orderBookType: OrderBookType;
|
|
339
|
+
}
|
|
340
|
+
/** Результат изменения статуса подписки на стаканы. */
|
|
341
|
+
export interface SubscribeOrderBookResponse {
|
|
342
|
+
/** Уникальный идентификатор запроса. [Подробнее](./grpc#tracking-id). */
|
|
343
|
+
trackingId: string;
|
|
344
|
+
/** Массив статусов подписки на стаканы. */
|
|
345
|
+
orderBookSubscriptions: OrderBookSubscription[];
|
|
346
|
+
}
|
|
347
|
+
/** Статус подписки. */
|
|
348
|
+
export interface OrderBookSubscription {
|
|
349
|
+
/** FIGI-идентификатор инструмента. */
|
|
350
|
+
figi: string;
|
|
351
|
+
/** Глубина стакана. */
|
|
352
|
+
depth: number;
|
|
353
|
+
/** Статус подписки. */
|
|
354
|
+
subscriptionStatus: SubscriptionStatus;
|
|
355
|
+
/** UID инструмента. */
|
|
356
|
+
instrumentUid: string;
|
|
357
|
+
/** Идентификатор открытого соединения. */
|
|
358
|
+
streamId: string;
|
|
359
|
+
/** Идентификатор подписки в формате `UUID`. */
|
|
360
|
+
subscriptionId: string;
|
|
361
|
+
/** Тип стакана. */
|
|
362
|
+
orderBookType: OrderBookType;
|
|
363
|
+
/** Действие подписки. */
|
|
364
|
+
subscriptionAction: SubscriptionAction;
|
|
365
|
+
/** Тикер инструмента. */
|
|
366
|
+
ticker: string;
|
|
367
|
+
/** Класс-код (секция торгов). */
|
|
368
|
+
classCode: string;
|
|
369
|
+
}
|
|
370
|
+
/** Изменение статуса подписки на поток обезличенных сделок. */
|
|
371
|
+
export interface SubscribeTradesRequest {
|
|
372
|
+
/** Изменение статуса подписки. */
|
|
373
|
+
subscriptionAction: SubscriptionAction;
|
|
374
|
+
/** Массив инструментов для подписки на поток обезличенных сделок. */
|
|
375
|
+
instruments: TradeInstrument[];
|
|
376
|
+
/** Тип источника сделок. Значение по умолчанию — `TRADE_SOURCE_ALL`, все сделки. */
|
|
377
|
+
tradeSource: TradeSourceType;
|
|
378
|
+
/** Флаг открытого интереса. **true** - в стриме дополнительно передается информация об открытом интересе для фьючерсов */
|
|
379
|
+
withOpenInterest: boolean;
|
|
380
|
+
}
|
|
381
|
+
/** Запрос подписки на поток обезличенных сделок. */
|
|
382
|
+
export interface TradeInstrument {
|
|
383
|
+
/**
|
|
384
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте instrument_id`.
|
|
385
|
+
*
|
|
386
|
+
* @deprecated
|
|
387
|
+
*/
|
|
388
|
+
figi: string;
|
|
389
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
390
|
+
instrumentId: string;
|
|
391
|
+
}
|
|
392
|
+
/** Результат изменения статуса подписки на поток обезличенных сделок. */
|
|
393
|
+
export interface SubscribeTradesResponse {
|
|
394
|
+
/** Уникальный идентификатор запроса. [Подробнее](./grpc#tracking-id). */
|
|
395
|
+
trackingId: string;
|
|
396
|
+
/** Массив статусов подписки на поток сделок. */
|
|
397
|
+
tradeSubscriptions: TradeSubscription[];
|
|
398
|
+
/** Тип источника сделок. */
|
|
399
|
+
tradeSource: TradeSourceType;
|
|
400
|
+
}
|
|
401
|
+
/** Статус подписки. */
|
|
402
|
+
export interface TradeSubscription {
|
|
403
|
+
/** FIGI-идентификатор инструмента. */
|
|
404
|
+
figi: string;
|
|
405
|
+
/** Статус подписки. */
|
|
406
|
+
subscriptionStatus: SubscriptionStatus;
|
|
407
|
+
/** UID инструмента. */
|
|
408
|
+
instrumentUid: string;
|
|
409
|
+
/** Идентификатор открытого соединения. */
|
|
410
|
+
streamId: string;
|
|
411
|
+
/** Идентификатор подписки в формате UUID. */
|
|
412
|
+
subscriptionId: string;
|
|
413
|
+
/** Флаг открытого интереса. **true** - в стриме дополнительно передается информация об открытом интересе для фьючерсов */
|
|
414
|
+
withOpenInterest: boolean;
|
|
415
|
+
/** Действие подписки. */
|
|
416
|
+
subscriptionAction: SubscriptionAction;
|
|
417
|
+
/** Тикер инструмента. */
|
|
418
|
+
ticker: string;
|
|
419
|
+
/** Класс-код (секция торгов). */
|
|
420
|
+
classCode: string;
|
|
421
|
+
}
|
|
422
|
+
/** Изменение статуса подписки на торговый статус инструмента. */
|
|
423
|
+
export interface SubscribeInfoRequest {
|
|
424
|
+
/** Изменение статуса подписки. */
|
|
425
|
+
subscriptionAction: SubscriptionAction;
|
|
426
|
+
/** Массив инструментов для подписки на торговый статус. */
|
|
427
|
+
instruments: InfoInstrument[];
|
|
428
|
+
}
|
|
429
|
+
/** Запрос подписки на торговый статус. */
|
|
430
|
+
export interface InfoInstrument {
|
|
431
|
+
/**
|
|
432
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте instrument_id`.
|
|
433
|
+
*
|
|
434
|
+
* @deprecated
|
|
435
|
+
*/
|
|
436
|
+
figi: string;
|
|
437
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
438
|
+
instrumentId: string;
|
|
439
|
+
}
|
|
440
|
+
/** Результат изменения статуса подписки на торговый статус. */
|
|
441
|
+
export interface SubscribeInfoResponse {
|
|
442
|
+
/** Уникальный идентификатор запроса. [Подробнее](./grpc#tracking-id). */
|
|
443
|
+
trackingId: string;
|
|
444
|
+
/** Массив статусов подписки на торговый статус. */
|
|
445
|
+
infoSubscriptions: InfoSubscription[];
|
|
446
|
+
}
|
|
447
|
+
/** Статус подписки. */
|
|
448
|
+
export interface InfoSubscription {
|
|
449
|
+
/** FIGI-идентификатор инструмента. */
|
|
450
|
+
figi: string;
|
|
451
|
+
/** Статус подписки. */
|
|
452
|
+
subscriptionStatus: SubscriptionStatus;
|
|
453
|
+
/** UID инструмента. */
|
|
454
|
+
instrumentUid: string;
|
|
455
|
+
/** Идентификатор открытого соединения. */
|
|
456
|
+
streamId: string;
|
|
457
|
+
/** Идентификатор подписки в формате UUID. */
|
|
458
|
+
subscriptionId: string;
|
|
459
|
+
/** Действие подписки. */
|
|
460
|
+
subscriptionAction: SubscriptionAction;
|
|
461
|
+
/** Тикер инструмента. */
|
|
462
|
+
ticker: string;
|
|
463
|
+
/** Класс-код (секция торгов). */
|
|
464
|
+
classCode: string;
|
|
465
|
+
}
|
|
466
|
+
/** Изменение статуса подписки на цену последней сделки по инструменту. */
|
|
467
|
+
export interface SubscribeLastPriceRequest {
|
|
468
|
+
/** Изменение статуса подписки. */
|
|
469
|
+
subscriptionAction: SubscriptionAction;
|
|
470
|
+
/** Массив инструментов для подписки на цену последней сделки. */
|
|
471
|
+
instruments: LastPriceInstrument[];
|
|
472
|
+
}
|
|
473
|
+
/** Запрос подписки на последнюю цену. */
|
|
474
|
+
export interface LastPriceInstrument {
|
|
475
|
+
/**
|
|
476
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте instrument_id`.
|
|
477
|
+
*
|
|
478
|
+
* @deprecated
|
|
479
|
+
*/
|
|
480
|
+
figi: string;
|
|
481
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
482
|
+
instrumentId: string;
|
|
483
|
+
}
|
|
484
|
+
/** Результат изменения статуса подписки на цену последней сделки. */
|
|
485
|
+
export interface SubscribeLastPriceResponse {
|
|
486
|
+
/** Уникальный идентификатор запроса. [Подробнее](./grpc#tracking-id). */
|
|
487
|
+
trackingId: string;
|
|
488
|
+
/** Массив статусов подписки на цену последней сделки. */
|
|
489
|
+
lastPriceSubscriptions: LastPriceSubscription[];
|
|
490
|
+
}
|
|
491
|
+
/** Статус подписки на цену последней сделки. */
|
|
492
|
+
export interface LastPriceSubscription {
|
|
493
|
+
/** FIGI-идентификатор инструмента. */
|
|
494
|
+
figi: string;
|
|
495
|
+
/** Статус подписки. */
|
|
496
|
+
subscriptionStatus: SubscriptionStatus;
|
|
497
|
+
/** UID инструмента. */
|
|
498
|
+
instrumentUid: string;
|
|
499
|
+
/** Идентификатор открытого соединения. */
|
|
500
|
+
streamId: string;
|
|
501
|
+
/** Идентификатор подписки в формате `UUID`. */
|
|
502
|
+
subscriptionId: string;
|
|
503
|
+
/** Действие подписки. */
|
|
504
|
+
subscriptionAction: SubscriptionAction;
|
|
505
|
+
/** Тикер инструмента. */
|
|
506
|
+
ticker: string;
|
|
507
|
+
/** Класс-код (секция торгов). */
|
|
508
|
+
classCode: string;
|
|
509
|
+
}
|
|
510
|
+
/** Пакет свечей в рамках стрима. */
|
|
511
|
+
export interface Candle {
|
|
512
|
+
/** FIGI-идентификатор инструмента. */
|
|
513
|
+
figi: string;
|
|
514
|
+
/** Интервал свечи. */
|
|
515
|
+
interval: SubscriptionInterval;
|
|
516
|
+
/** Цена открытия за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
517
|
+
open: Quotation | undefined;
|
|
518
|
+
/** Максимальная цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
519
|
+
high: Quotation | undefined;
|
|
520
|
+
/** Минимальная цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
521
|
+
low: Quotation | undefined;
|
|
522
|
+
/** Цена закрытия за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
523
|
+
close: Quotation | undefined;
|
|
524
|
+
/** Объем сделок в лотах. */
|
|
525
|
+
volume: number;
|
|
526
|
+
/** Время начала интервала свечи по UTC. */
|
|
527
|
+
time: Date | undefined;
|
|
528
|
+
/** Время последней сделки, вошедшей в свечу по UTC. */
|
|
529
|
+
lastTradeTs: Date | undefined;
|
|
530
|
+
/** UID инструмента. */
|
|
531
|
+
instrumentUid: string;
|
|
532
|
+
/** Тикер инструмента. */
|
|
533
|
+
ticker: string;
|
|
534
|
+
/** Класс-код (секция торгов). */
|
|
535
|
+
classCode: string;
|
|
536
|
+
/** Объем торгов на покупку. */
|
|
537
|
+
volumeBuy: number;
|
|
538
|
+
/** Объём торгов на продажу. */
|
|
539
|
+
volumeSell: number;
|
|
540
|
+
/** Источник свечей. */
|
|
541
|
+
candleSourceType: CandleSource;
|
|
542
|
+
}
|
|
543
|
+
/** Пакет стаканов в рамках стрима. */
|
|
544
|
+
export interface OrderBook {
|
|
545
|
+
/** FIGI-идентификатор инструмента. */
|
|
546
|
+
figi: string;
|
|
547
|
+
/** Глубина стакана. */
|
|
548
|
+
depth: number;
|
|
549
|
+
/** Флаг консистентности стакана. **false** — не все заявки попали в стакан из-за сетевых задержек или нарушения порядка доставки. */
|
|
550
|
+
isConsistent: boolean;
|
|
551
|
+
/** Массив предложений. */
|
|
552
|
+
bids: Order[];
|
|
553
|
+
/** Массив спроса. */
|
|
554
|
+
asks: Order[];
|
|
555
|
+
/** Время формирования стакана в часовом поясе UTC по времени биржи. */
|
|
556
|
+
time: Date | undefined;
|
|
557
|
+
/** Верхний лимит цены за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
558
|
+
limitUp: Quotation | undefined;
|
|
559
|
+
/** Нижний лимит цены за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
560
|
+
limitDown: Quotation | undefined;
|
|
561
|
+
/** UID инструмента. */
|
|
562
|
+
instrumentUid: string;
|
|
563
|
+
/** Тип стакана. */
|
|
564
|
+
orderBookType: OrderBookType;
|
|
565
|
+
/** Тикер инструмента. */
|
|
566
|
+
ticker: string;
|
|
567
|
+
/** Класс-код (секция торгов). */
|
|
568
|
+
classCode: string;
|
|
569
|
+
}
|
|
570
|
+
/** Массив предложений/спроса. */
|
|
571
|
+
export interface Order {
|
|
572
|
+
/** Цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
573
|
+
price: Quotation | undefined;
|
|
574
|
+
/** Количество в лотах. */
|
|
575
|
+
quantity: number;
|
|
576
|
+
}
|
|
577
|
+
/** Информация о сделке. */
|
|
578
|
+
export interface Trade {
|
|
579
|
+
/** FIGI-идентификатор инструмента. */
|
|
580
|
+
figi: string;
|
|
581
|
+
/** Направление сделки. */
|
|
582
|
+
direction: TradeDirection;
|
|
583
|
+
/** Цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
584
|
+
price: Quotation | undefined;
|
|
585
|
+
/** Количество лотов. */
|
|
586
|
+
quantity: number;
|
|
587
|
+
/** Время сделки в часовом поясе UTC по времени биржи. */
|
|
588
|
+
time: Date | undefined;
|
|
589
|
+
/** UID инструмента. */
|
|
590
|
+
instrumentUid: string;
|
|
591
|
+
/** Тип источника сделки. */
|
|
592
|
+
tradeSource: TradeSourceType;
|
|
593
|
+
/** Тикер инструмента. */
|
|
594
|
+
ticker: string;
|
|
595
|
+
/** Класс-код (секция торгов). */
|
|
596
|
+
classCode: string;
|
|
597
|
+
}
|
|
598
|
+
/** Пакет изменения торгового статуса. */
|
|
599
|
+
export interface TradingStatus {
|
|
600
|
+
/** FIGI-идентификатор инструмента. */
|
|
601
|
+
figi: string;
|
|
602
|
+
/** Статус торговли инструментом. */
|
|
603
|
+
tradingStatus: SecurityTradingStatus;
|
|
604
|
+
/** Время изменения торгового статуса по UTC. */
|
|
605
|
+
time: Date | undefined;
|
|
606
|
+
/** Признак доступности выставления лимитной заявки по инструменту. */
|
|
607
|
+
limitOrderAvailableFlag: boolean;
|
|
608
|
+
/** Признак доступности выставления рыночной заявки по инструменту. */
|
|
609
|
+
marketOrderAvailableFlag: boolean;
|
|
610
|
+
/** UID инструмента. */
|
|
611
|
+
instrumentUid: string;
|
|
612
|
+
/** Тикер инструмента. */
|
|
613
|
+
ticker: string;
|
|
614
|
+
/** Класс-код (секция торгов). */
|
|
615
|
+
classCode: string;
|
|
616
|
+
}
|
|
617
|
+
/** Запрос исторических свечей. */
|
|
618
|
+
export interface GetCandlesRequest {
|
|
619
|
+
/**
|
|
620
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте `instrument_id`.
|
|
621
|
+
*
|
|
622
|
+
* @deprecated
|
|
623
|
+
*/
|
|
624
|
+
figi?: string | undefined;
|
|
625
|
+
/** Начало запрашиваемого периода по UTC. */
|
|
626
|
+
from: Date | undefined;
|
|
627
|
+
/** Окончание запрашиваемого периода по UTC. */
|
|
628
|
+
to: Date | undefined;
|
|
629
|
+
/** Интервал запрошенных свечей. */
|
|
630
|
+
interval: CandleInterval;
|
|
631
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
632
|
+
instrumentId?: string | undefined;
|
|
633
|
+
/** Тип источника свечи. */
|
|
634
|
+
candleSourceType?: GetCandlesRequest_CandleSource | undefined;
|
|
635
|
+
/** Максимальное количество свечей в ответе. */
|
|
636
|
+
limit?: number | undefined;
|
|
637
|
+
}
|
|
638
|
+
export declare enum GetCandlesRequest_CandleSource {
|
|
639
|
+
/** CANDLE_SOURCE_UNSPECIFIED - Все свечи. */
|
|
640
|
+
CANDLE_SOURCE_UNSPECIFIED = 0,
|
|
641
|
+
/** CANDLE_SOURCE_EXCHANGE - Биржевые свечи. */
|
|
642
|
+
CANDLE_SOURCE_EXCHANGE = 1,
|
|
643
|
+
/** CANDLE_SOURCE_INCLUDE_WEEKEND - Все свечи с учетом торговли по выходным. */
|
|
644
|
+
CANDLE_SOURCE_INCLUDE_WEEKEND = 3,
|
|
645
|
+
UNRECOGNIZED = -1
|
|
646
|
+
}
|
|
647
|
+
export declare function getCandlesRequest_CandleSourceFromJSON(object: any): GetCandlesRequest_CandleSource;
|
|
648
|
+
export declare function getCandlesRequest_CandleSourceToJSON(object: GetCandlesRequest_CandleSource): string;
|
|
649
|
+
/** Список свечей. */
|
|
650
|
+
export interface GetCandlesResponse {
|
|
651
|
+
/** Массив свечей. */
|
|
652
|
+
candles: HistoricCandle[];
|
|
653
|
+
}
|
|
654
|
+
/** Информация о свече. */
|
|
655
|
+
export interface HistoricCandle {
|
|
656
|
+
/** Цена открытия за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
657
|
+
open: Quotation | undefined;
|
|
658
|
+
/** Максимальная цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
659
|
+
high: Quotation | undefined;
|
|
660
|
+
/** Минимальная цена за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
661
|
+
low: Quotation | undefined;
|
|
662
|
+
/** Цена закрытия за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
663
|
+
close: Quotation | undefined;
|
|
664
|
+
/** Объем торгов в лотах. */
|
|
665
|
+
volume: number;
|
|
666
|
+
/** Время свечи в часовом поясе UTC. */
|
|
667
|
+
time: Date | undefined;
|
|
668
|
+
/** Признак завершенности свечи. **false** — свеча за текущие интервал еще сформирована не полностью. */
|
|
669
|
+
isComplete: boolean;
|
|
670
|
+
/** Тип источника свечи */
|
|
671
|
+
candleSource: CandleSource;
|
|
672
|
+
/** Объем торгов на покупку. */
|
|
673
|
+
volumeBuy: number;
|
|
674
|
+
/** Объём торгов на продажу. */
|
|
675
|
+
volumeSell: number;
|
|
676
|
+
}
|
|
677
|
+
/** Запрос получения цен последних сделок. */
|
|
678
|
+
export interface GetLastPricesRequest {
|
|
679
|
+
/**
|
|
680
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте `instrument_id`.
|
|
681
|
+
*
|
|
682
|
+
* @deprecated
|
|
683
|
+
*/
|
|
684
|
+
figi: string[];
|
|
685
|
+
/** Массив идентификаторов инструмента. Принимает значения `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
686
|
+
instrumentId: string[];
|
|
687
|
+
/** Тип запрашиваемой последней цены. */
|
|
688
|
+
lastPriceType: LastPriceType;
|
|
689
|
+
/** Статус запрашиваемых инструментов. [Возможные значения](#instrumentstatus). */
|
|
690
|
+
instrumentStatus?: InstrumentStatus | undefined;
|
|
691
|
+
}
|
|
692
|
+
/** Список цен последних сделок. */
|
|
693
|
+
export interface GetLastPricesResponse {
|
|
694
|
+
/** Массив цен последних сделок. */
|
|
695
|
+
lastPrices: LastPrice[];
|
|
696
|
+
}
|
|
697
|
+
/** Информация о цене последней сделки. */
|
|
698
|
+
export interface LastPrice {
|
|
699
|
+
/** FIGI инструмента. */
|
|
700
|
+
figi: string;
|
|
701
|
+
/** Цена последней сделки за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
702
|
+
price: Quotation | undefined;
|
|
703
|
+
/** Время получения последней цены в часовом поясе UTC по времени биржи. */
|
|
704
|
+
time: Date | undefined;
|
|
705
|
+
/** Тикер инструмента. */
|
|
706
|
+
ticker: string;
|
|
707
|
+
/** Класс-код (секция торгов). */
|
|
708
|
+
classCode: string;
|
|
709
|
+
/** UID инструмента. */
|
|
710
|
+
instrumentUid: string;
|
|
711
|
+
/** Тип последней цены. */
|
|
712
|
+
lastPriceType: LastPriceType;
|
|
713
|
+
}
|
|
714
|
+
export interface OpenInterest {
|
|
715
|
+
/** UID инструмента. */
|
|
716
|
+
instrumentUid: string;
|
|
717
|
+
/** Время получения открытого интереса в часовом поясе UTC по времени биржи. */
|
|
718
|
+
time: Date | undefined;
|
|
719
|
+
/** Открытый интерес. */
|
|
720
|
+
openInterest: number;
|
|
721
|
+
/** Тикер инструмента. */
|
|
722
|
+
ticker: string;
|
|
723
|
+
/** Класс-код (секция торгов). */
|
|
724
|
+
classCode: string;
|
|
725
|
+
}
|
|
726
|
+
/** Запрос стакана. */
|
|
727
|
+
export interface GetOrderBookRequest {
|
|
728
|
+
/**
|
|
729
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте `instrument_id`.
|
|
730
|
+
*
|
|
731
|
+
* @deprecated
|
|
732
|
+
*/
|
|
733
|
+
figi?: string | undefined;
|
|
734
|
+
/** Глубина стакана. */
|
|
735
|
+
depth: number;
|
|
736
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
737
|
+
instrumentId?: string | undefined;
|
|
738
|
+
}
|
|
739
|
+
/** Информация о стакане. */
|
|
740
|
+
export interface GetOrderBookResponse {
|
|
741
|
+
/** FIGI-идентификатор инструмента. */
|
|
742
|
+
figi: string;
|
|
743
|
+
/** Глубина стакана. */
|
|
744
|
+
depth: number;
|
|
745
|
+
/** Множество пар значений на покупку. */
|
|
746
|
+
bids: Order[];
|
|
747
|
+
/** Множество пар значений на продажу. */
|
|
748
|
+
asks: Order[];
|
|
749
|
+
/** Цена последней сделки за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
750
|
+
lastPrice: Quotation | undefined;
|
|
751
|
+
/** Цена закрытия за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
752
|
+
closePrice: Quotation | undefined;
|
|
753
|
+
/** Верхний лимит цены за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
754
|
+
limitUp: Quotation | undefined;
|
|
755
|
+
/** Нижний лимит цены за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. [Подробнее про перевод цен в валюту](./faq_marketdata/#_15). */
|
|
756
|
+
limitDown: Quotation | undefined;
|
|
757
|
+
/** UID инструмента. */
|
|
758
|
+
instrumentUid: string;
|
|
759
|
+
/** Тикер инструмента. */
|
|
760
|
+
ticker: string;
|
|
761
|
+
/** Класс-код (секция торгов). */
|
|
762
|
+
classCode: string;
|
|
763
|
+
/** Время получения цены последней сделки. */
|
|
764
|
+
lastPriceTs: Date | undefined;
|
|
765
|
+
/** Время получения цены закрытия. */
|
|
766
|
+
closePriceTs: Date | undefined;
|
|
767
|
+
/** Время формирования стакана на бирже. */
|
|
768
|
+
orderbookTs: Date | undefined;
|
|
769
|
+
}
|
|
770
|
+
/** Запрос получения торгового статуса. */
|
|
771
|
+
export interface GetTradingStatusRequest {
|
|
772
|
+
/**
|
|
773
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте `instrument_id`.
|
|
774
|
+
*
|
|
775
|
+
* @deprecated
|
|
776
|
+
*/
|
|
777
|
+
figi?: string | undefined;
|
|
778
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code` */
|
|
779
|
+
instrumentId?: string | undefined;
|
|
780
|
+
}
|
|
781
|
+
/** Запрос получения торгового статуса. */
|
|
782
|
+
export interface GetTradingStatusesRequest {
|
|
783
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code` */
|
|
784
|
+
instrumentId: string[];
|
|
785
|
+
}
|
|
786
|
+
/** Информация о торговом статусе. */
|
|
787
|
+
export interface GetTradingStatusesResponse {
|
|
788
|
+
/** Массив информации о торговых статусах. */
|
|
789
|
+
tradingStatuses: GetTradingStatusResponse[];
|
|
790
|
+
}
|
|
791
|
+
/** Информация о торговом статусе. */
|
|
792
|
+
export interface GetTradingStatusResponse {
|
|
793
|
+
/** FIGI-идентификатор инструмента. */
|
|
794
|
+
figi: string;
|
|
795
|
+
/** Статус торговли инструментом. */
|
|
796
|
+
tradingStatus: SecurityTradingStatus;
|
|
797
|
+
/** Признак доступности выставления лимитной заявки по инструменту. */
|
|
798
|
+
limitOrderAvailableFlag: boolean;
|
|
799
|
+
/** Признак доступности выставления рыночной заявки по инструменту. */
|
|
800
|
+
marketOrderAvailableFlag: boolean;
|
|
801
|
+
/** Признак доступности торгов через API. */
|
|
802
|
+
apiTradeAvailableFlag: boolean;
|
|
803
|
+
/** UID инструмента. */
|
|
804
|
+
instrumentUid: string;
|
|
805
|
+
/** Признак доступности завяки по лучшей цене. */
|
|
806
|
+
bestpriceOrderAvailableFlag: boolean;
|
|
807
|
+
/** Признак доступности только заявки по лучшей цене. */
|
|
808
|
+
onlyBestPrice: boolean;
|
|
809
|
+
/** Тикер инструмента. */
|
|
810
|
+
ticker: string;
|
|
811
|
+
/** Класс-код (секция торгов). */
|
|
812
|
+
classCode: string;
|
|
813
|
+
}
|
|
814
|
+
/** Запрос обезличенных сделок за последний час. */
|
|
815
|
+
export interface GetLastTradesRequest {
|
|
816
|
+
/**
|
|
817
|
+
* Deprecated FIGI-идентификатор инструмента. Используйте `instrument_id`.
|
|
818
|
+
*
|
|
819
|
+
* @deprecated
|
|
820
|
+
*/
|
|
821
|
+
figi?: string | undefined;
|
|
822
|
+
/** Начало запрашиваемого периода по UTC. */
|
|
823
|
+
from: Date | undefined;
|
|
824
|
+
/** Окончание запрашиваемого периода по UTC. */
|
|
825
|
+
to: Date | undefined;
|
|
826
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code` */
|
|
827
|
+
instrumentId?: string | undefined;
|
|
828
|
+
/** Тип источника сделок. Значение по умолчанию — `TRADE_SOURCE_ALL`, все сделки. */
|
|
829
|
+
tradeSource: TradeSourceType;
|
|
830
|
+
}
|
|
831
|
+
/** Обезличенных сделок за последний час. */
|
|
832
|
+
export interface GetLastTradesResponse {
|
|
833
|
+
/** Массив сделок. */
|
|
834
|
+
trades: Trade[];
|
|
835
|
+
}
|
|
836
|
+
/** Запрос активных подписок. Возвращает по одному сообщению на каждый тип активных подписок — `SubscribeLastPriceResponse`, `SubscribeInfoResponse`, `SubscribeTradesResponse`, `SubscribeOrderBookResponse`, `SubscribeCandlesResponse`. */
|
|
837
|
+
export interface GetMySubscriptions {
|
|
838
|
+
}
|
|
839
|
+
/** Запрос цен закрытия торговой сессии по инструментам. */
|
|
840
|
+
export interface GetClosePricesRequest {
|
|
841
|
+
/** Массив по инструментам. */
|
|
842
|
+
instruments: InstrumentClosePriceRequest[];
|
|
843
|
+
/** Статус запрашиваемых инструментов. [Возможные значения](#instrumentstatus). */
|
|
844
|
+
instrumentStatus?: InstrumentStatus | undefined;
|
|
845
|
+
}
|
|
846
|
+
/** Запрос цен закрытия торговой сессии по инструменту. */
|
|
847
|
+
export interface InstrumentClosePriceRequest {
|
|
848
|
+
/** Идентификатор инструмента. Принимает значение `figi`, `instrument_uid` или `ticker + '_' + class_code` */
|
|
849
|
+
instrumentId: string;
|
|
850
|
+
}
|
|
851
|
+
/** Цены закрытия торговой сессии по инструментам. */
|
|
852
|
+
export interface GetClosePricesResponse {
|
|
853
|
+
/** Массив по инструментам. */
|
|
854
|
+
closePrices: InstrumentClosePriceResponse[];
|
|
855
|
+
}
|
|
856
|
+
/** Цена закрытия торговой сессии по инструменту. */
|
|
857
|
+
export interface InstrumentClosePriceResponse {
|
|
858
|
+
/** FIGI инструмента. */
|
|
859
|
+
figi: string;
|
|
860
|
+
/** UID инструмента. */
|
|
861
|
+
instrumentUid: string;
|
|
862
|
+
/** Тикер инструмента. */
|
|
863
|
+
ticker: string;
|
|
864
|
+
/** Класс-код (секция торгов). */
|
|
865
|
+
classCode: string;
|
|
866
|
+
/** Цена закрытия торговой сессии. */
|
|
867
|
+
price: Quotation | undefined;
|
|
868
|
+
/** Цена последней сделки с вечерней сессии. Цена публикуется биржей по торговым дням и в нерабочие дни не обновляется. */
|
|
869
|
+
eveningSessionPrice: Quotation | undefined;
|
|
870
|
+
/** Дата совершения торгов. */
|
|
871
|
+
time: Date | undefined;
|
|
872
|
+
/** Дата цены закрытия вечерней сессии. */
|
|
873
|
+
eveningSessionPriceTime: Date | undefined;
|
|
874
|
+
}
|
|
875
|
+
export interface GetTechAnalysisRequest {
|
|
876
|
+
/** Тип технического индикатора. */
|
|
877
|
+
indicatorType: GetTechAnalysisRequest_IndicatorType;
|
|
878
|
+
/** UID инструмента. */
|
|
879
|
+
instrumentUid: string;
|
|
880
|
+
/** Начало запрашиваемого периода по UTC. */
|
|
881
|
+
from: Date | undefined;
|
|
882
|
+
/** Окончание запрашиваемого периода по UTC. */
|
|
883
|
+
to: Date | undefined;
|
|
884
|
+
/** Интервал, за который рассчитывается индикатор. */
|
|
885
|
+
interval: GetTechAnalysisRequest_IndicatorInterval;
|
|
886
|
+
/** Тип цены, который используется при расчете индикатора. */
|
|
887
|
+
typeOfPrice: GetTechAnalysisRequest_TypeOfPrice;
|
|
888
|
+
/** Торговый период, за который рассчитывается индикатор. */
|
|
889
|
+
length: number;
|
|
890
|
+
/** Параметры отклонения. */
|
|
891
|
+
deviation: GetTechAnalysisRequest_Deviation | undefined;
|
|
892
|
+
/** Параметры сглаживания. */
|
|
893
|
+
smoothing: GetTechAnalysisRequest_Smoothing | undefined;
|
|
894
|
+
}
|
|
895
|
+
/** Интервал свечи. */
|
|
896
|
+
export declare enum GetTechAnalysisRequest_IndicatorInterval {
|
|
897
|
+
/** INDICATOR_INTERVAL_UNSPECIFIED - Интервал не определен. */
|
|
898
|
+
INDICATOR_INTERVAL_UNSPECIFIED = 0,
|
|
899
|
+
/** INDICATOR_INTERVAL_ONE_MINUTE - 1 минута. */
|
|
900
|
+
INDICATOR_INTERVAL_ONE_MINUTE = 1,
|
|
901
|
+
/** INDICATOR_INTERVAL_FIVE_MINUTES - 5 минут. */
|
|
902
|
+
INDICATOR_INTERVAL_FIVE_MINUTES = 2,
|
|
903
|
+
/** INDICATOR_INTERVAL_FIFTEEN_MINUTES - 15 минут. */
|
|
904
|
+
INDICATOR_INTERVAL_FIFTEEN_MINUTES = 3,
|
|
905
|
+
/** INDICATOR_INTERVAL_ONE_HOUR - 1 час. */
|
|
906
|
+
INDICATOR_INTERVAL_ONE_HOUR = 4,
|
|
907
|
+
/** INDICATOR_INTERVAL_ONE_DAY - 1 день. */
|
|
908
|
+
INDICATOR_INTERVAL_ONE_DAY = 5,
|
|
909
|
+
/** INDICATOR_INTERVAL_2_MIN - 2 минуты. */
|
|
910
|
+
INDICATOR_INTERVAL_2_MIN = 6,
|
|
911
|
+
/** INDICATOR_INTERVAL_3_MIN - 3 минуты. */
|
|
912
|
+
INDICATOR_INTERVAL_3_MIN = 7,
|
|
913
|
+
/** INDICATOR_INTERVAL_10_MIN - 10 минут. */
|
|
914
|
+
INDICATOR_INTERVAL_10_MIN = 8,
|
|
915
|
+
/** INDICATOR_INTERVAL_30_MIN - 30 минут. */
|
|
916
|
+
INDICATOR_INTERVAL_30_MIN = 9,
|
|
917
|
+
/** INDICATOR_INTERVAL_2_HOUR - 2 часа. */
|
|
918
|
+
INDICATOR_INTERVAL_2_HOUR = 10,
|
|
919
|
+
/** INDICATOR_INTERVAL_4_HOUR - 4 часа. */
|
|
920
|
+
INDICATOR_INTERVAL_4_HOUR = 11,
|
|
921
|
+
/** INDICATOR_INTERVAL_WEEK - Неделя. */
|
|
922
|
+
INDICATOR_INTERVAL_WEEK = 12,
|
|
923
|
+
/** INDICATOR_INTERVAL_MONTH - Месяц. */
|
|
924
|
+
INDICATOR_INTERVAL_MONTH = 13,
|
|
925
|
+
UNRECOGNIZED = -1
|
|
926
|
+
}
|
|
927
|
+
export declare function getTechAnalysisRequest_IndicatorIntervalFromJSON(object: any): GetTechAnalysisRequest_IndicatorInterval;
|
|
928
|
+
export declare function getTechAnalysisRequest_IndicatorIntervalToJSON(object: GetTechAnalysisRequest_IndicatorInterval): string;
|
|
929
|
+
export declare enum GetTechAnalysisRequest_TypeOfPrice {
|
|
930
|
+
/** TYPE_OF_PRICE_UNSPECIFIED - Не указано. */
|
|
931
|
+
TYPE_OF_PRICE_UNSPECIFIED = 0,
|
|
932
|
+
/** TYPE_OF_PRICE_CLOSE - Цена закрытия. */
|
|
933
|
+
TYPE_OF_PRICE_CLOSE = 1,
|
|
934
|
+
/** TYPE_OF_PRICE_OPEN - Цена открытия. */
|
|
935
|
+
TYPE_OF_PRICE_OPEN = 2,
|
|
936
|
+
/** TYPE_OF_PRICE_HIGH - Максимальное значение за выбранный интервал. */
|
|
937
|
+
TYPE_OF_PRICE_HIGH = 3,
|
|
938
|
+
/** TYPE_OF_PRICE_LOW - Минимальное значение за выбранный интервал. */
|
|
939
|
+
TYPE_OF_PRICE_LOW = 4,
|
|
940
|
+
/** TYPE_OF_PRICE_AVG - Среднее значение по показателям [ (close + open + high + low) / 4 ]. */
|
|
941
|
+
TYPE_OF_PRICE_AVG = 5,
|
|
942
|
+
UNRECOGNIZED = -1
|
|
943
|
+
}
|
|
944
|
+
export declare function getTechAnalysisRequest_TypeOfPriceFromJSON(object: any): GetTechAnalysisRequest_TypeOfPrice;
|
|
945
|
+
export declare function getTechAnalysisRequest_TypeOfPriceToJSON(object: GetTechAnalysisRequest_TypeOfPrice): string;
|
|
946
|
+
export declare enum GetTechAnalysisRequest_IndicatorType {
|
|
947
|
+
/** INDICATOR_TYPE_UNSPECIFIED - Не определен. */
|
|
948
|
+
INDICATOR_TYPE_UNSPECIFIED = 0,
|
|
949
|
+
/** INDICATOR_TYPE_BB - Bollinger Bands — линия Боллинжера. */
|
|
950
|
+
INDICATOR_TYPE_BB = 1,
|
|
951
|
+
/** INDICATOR_TYPE_EMA - Exponential Moving Average — EMA, экспоненциальная скользящая средняя. */
|
|
952
|
+
INDICATOR_TYPE_EMA = 2,
|
|
953
|
+
/** INDICATOR_TYPE_RSI - Relative Strength Index — индекс относительной силы. */
|
|
954
|
+
INDICATOR_TYPE_RSI = 3,
|
|
955
|
+
/** INDICATOR_TYPE_MACD - Moving Average Convergence/Divergence — схождение/расхождение скользящих средних. */
|
|
956
|
+
INDICATOR_TYPE_MACD = 4,
|
|
957
|
+
/** INDICATOR_TYPE_SMA - Simple Moving Average — простое скользящее среднее. */
|
|
958
|
+
INDICATOR_TYPE_SMA = 5,
|
|
959
|
+
UNRECOGNIZED = -1
|
|
960
|
+
}
|
|
961
|
+
export declare function getTechAnalysisRequest_IndicatorTypeFromJSON(object: any): GetTechAnalysisRequest_IndicatorType;
|
|
962
|
+
export declare function getTechAnalysisRequest_IndicatorTypeToJSON(object: GetTechAnalysisRequest_IndicatorType): string;
|
|
963
|
+
export interface GetTechAnalysisRequest_Smoothing {
|
|
964
|
+
/** Короткий период сглаживания для первой экспоненциальной скользящей средней (EMA). */
|
|
965
|
+
fastLength: number;
|
|
966
|
+
/** Длинный период сглаживания для второй экспоненциальной скользящей средней (EMA). */
|
|
967
|
+
slowLength: number;
|
|
968
|
+
/** Период сглаживания для третьей экспоненциальной скользящей средней (EMA) */
|
|
969
|
+
signalSmoothing: number;
|
|
970
|
+
}
|
|
971
|
+
export interface GetTechAnalysisRequest_Deviation {
|
|
972
|
+
/** Количество стандартных отклонений, на которые отступают верхняя и нижняя границы. */
|
|
973
|
+
deviationMultiplier: Quotation | undefined;
|
|
974
|
+
}
|
|
975
|
+
export interface GetTechAnalysisResponse {
|
|
976
|
+
/** Массив значений результатов технического анализа. */
|
|
977
|
+
technicalIndicators: GetTechAnalysisResponse_TechAnalysisItem[];
|
|
978
|
+
}
|
|
979
|
+
export interface GetTechAnalysisResponse_TechAnalysisItem {
|
|
980
|
+
/** Временная метка по UTC, для которой были рассчитаны значения индикатора. */
|
|
981
|
+
timestamp: Date | undefined;
|
|
982
|
+
/** Значение простого скользящего среднего (средней линии). */
|
|
983
|
+
middleBand?: Quotation | undefined;
|
|
984
|
+
/** Значение верхней линии Боллинджера. */
|
|
985
|
+
upperBand?: Quotation | undefined;
|
|
986
|
+
/** Значение нижней линии Боллинджера. */
|
|
987
|
+
lowerBand?: Quotation | undefined;
|
|
988
|
+
/** Значение сигнальной линии. */
|
|
989
|
+
signal?: Quotation | undefined;
|
|
990
|
+
/** Значение линии MACD. */
|
|
991
|
+
macd?: Quotation | undefined;
|
|
992
|
+
}
|
|
993
|
+
export interface GetMarketValuesRequest {
|
|
994
|
+
/** Массив идентификаторов инструментов. Принимает значения `figi`, `instrument_uid` или `ticker + '_' + class_code`. */
|
|
995
|
+
instrumentId: string[];
|
|
996
|
+
/** Массив запрашиваемых параметров. */
|
|
997
|
+
values: MarketValueType[];
|
|
998
|
+
}
|
|
999
|
+
export interface GetMarketValuesResponse {
|
|
1000
|
+
/** Массив значений параметров. */
|
|
1001
|
+
instruments: MarketValueInstrument[];
|
|
1002
|
+
}
|
|
1003
|
+
export interface MarketValueInstrument {
|
|
1004
|
+
/** Идентификатор инструмента. */
|
|
1005
|
+
instrumentUid: string;
|
|
1006
|
+
/** Массив параметров инструмента. */
|
|
1007
|
+
values: MarketValue[];
|
|
1008
|
+
/** Тикер инструмента. */
|
|
1009
|
+
ticker: string;
|
|
1010
|
+
/** Класс-код (секция торгов). */
|
|
1011
|
+
classCode: string;
|
|
1012
|
+
}
|
|
1013
|
+
export interface MarketValue {
|
|
1014
|
+
/** Тип параметра. */
|
|
1015
|
+
type?: MarketValueType | undefined;
|
|
1016
|
+
/** Значение. */
|
|
1017
|
+
value?: Quotation | undefined;
|
|
1018
|
+
/** Дата и время. */
|
|
1019
|
+
time?: Date | undefined;
|
|
1020
|
+
}
|
|
1021
|
+
export declare const MarketDataRequest: MessageFns<MarketDataRequest>;
|
|
1022
|
+
export declare const MarketDataServerSideStreamRequest: MessageFns<MarketDataServerSideStreamRequest>;
|
|
1023
|
+
export declare const MarketDataResponse: MessageFns<MarketDataResponse>;
|
|
1024
|
+
export declare const SubscribeCandlesRequest: MessageFns<SubscribeCandlesRequest>;
|
|
1025
|
+
export declare const CandleInstrument: MessageFns<CandleInstrument>;
|
|
1026
|
+
export declare const SubscribeCandlesResponse: MessageFns<SubscribeCandlesResponse>;
|
|
1027
|
+
export declare const CandleSubscription: MessageFns<CandleSubscription>;
|
|
1028
|
+
export declare const SubscribeOrderBookRequest: MessageFns<SubscribeOrderBookRequest>;
|
|
1029
|
+
export declare const OrderBookInstrument: MessageFns<OrderBookInstrument>;
|
|
1030
|
+
export declare const SubscribeOrderBookResponse: MessageFns<SubscribeOrderBookResponse>;
|
|
1031
|
+
export declare const OrderBookSubscription: MessageFns<OrderBookSubscription>;
|
|
1032
|
+
export declare const SubscribeTradesRequest: MessageFns<SubscribeTradesRequest>;
|
|
1033
|
+
export declare const TradeInstrument: MessageFns<TradeInstrument>;
|
|
1034
|
+
export declare const SubscribeTradesResponse: MessageFns<SubscribeTradesResponse>;
|
|
1035
|
+
export declare const TradeSubscription: MessageFns<TradeSubscription>;
|
|
1036
|
+
export declare const SubscribeInfoRequest: MessageFns<SubscribeInfoRequest>;
|
|
1037
|
+
export declare const InfoInstrument: MessageFns<InfoInstrument>;
|
|
1038
|
+
export declare const SubscribeInfoResponse: MessageFns<SubscribeInfoResponse>;
|
|
1039
|
+
export declare const InfoSubscription: MessageFns<InfoSubscription>;
|
|
1040
|
+
export declare const SubscribeLastPriceRequest: MessageFns<SubscribeLastPriceRequest>;
|
|
1041
|
+
export declare const LastPriceInstrument: MessageFns<LastPriceInstrument>;
|
|
1042
|
+
export declare const SubscribeLastPriceResponse: MessageFns<SubscribeLastPriceResponse>;
|
|
1043
|
+
export declare const LastPriceSubscription: MessageFns<LastPriceSubscription>;
|
|
1044
|
+
export declare const Candle: MessageFns<Candle>;
|
|
1045
|
+
export declare const OrderBook: MessageFns<OrderBook>;
|
|
1046
|
+
export declare const Order: MessageFns<Order>;
|
|
1047
|
+
export declare const Trade: MessageFns<Trade>;
|
|
1048
|
+
export declare const TradingStatus: MessageFns<TradingStatus>;
|
|
1049
|
+
export declare const GetCandlesRequest: MessageFns<GetCandlesRequest>;
|
|
1050
|
+
export declare const GetCandlesResponse: MessageFns<GetCandlesResponse>;
|
|
1051
|
+
export declare const HistoricCandle: MessageFns<HistoricCandle>;
|
|
1052
|
+
export declare const GetLastPricesRequest: MessageFns<GetLastPricesRequest>;
|
|
1053
|
+
export declare const GetLastPricesResponse: MessageFns<GetLastPricesResponse>;
|
|
1054
|
+
export declare const LastPrice: MessageFns<LastPrice>;
|
|
1055
|
+
export declare const OpenInterest: MessageFns<OpenInterest>;
|
|
1056
|
+
export declare const GetOrderBookRequest: MessageFns<GetOrderBookRequest>;
|
|
1057
|
+
export declare const GetOrderBookResponse: MessageFns<GetOrderBookResponse>;
|
|
1058
|
+
export declare const GetTradingStatusRequest: MessageFns<GetTradingStatusRequest>;
|
|
1059
|
+
export declare const GetTradingStatusesRequest: MessageFns<GetTradingStatusesRequest>;
|
|
1060
|
+
export declare const GetTradingStatusesResponse: MessageFns<GetTradingStatusesResponse>;
|
|
1061
|
+
export declare const GetTradingStatusResponse: MessageFns<GetTradingStatusResponse>;
|
|
1062
|
+
export declare const GetLastTradesRequest: MessageFns<GetLastTradesRequest>;
|
|
1063
|
+
export declare const GetLastTradesResponse: MessageFns<GetLastTradesResponse>;
|
|
1064
|
+
export declare const GetMySubscriptions: MessageFns<GetMySubscriptions>;
|
|
1065
|
+
export declare const GetClosePricesRequest: MessageFns<GetClosePricesRequest>;
|
|
1066
|
+
export declare const InstrumentClosePriceRequest: MessageFns<InstrumentClosePriceRequest>;
|
|
1067
|
+
export declare const GetClosePricesResponse: MessageFns<GetClosePricesResponse>;
|
|
1068
|
+
export declare const InstrumentClosePriceResponse: MessageFns<InstrumentClosePriceResponse>;
|
|
1069
|
+
export declare const GetTechAnalysisRequest: MessageFns<GetTechAnalysisRequest>;
|
|
1070
|
+
export declare const GetTechAnalysisRequest_Smoothing: MessageFns<GetTechAnalysisRequest_Smoothing>;
|
|
1071
|
+
export declare const GetTechAnalysisRequest_Deviation: MessageFns<GetTechAnalysisRequest_Deviation>;
|
|
1072
|
+
export declare const GetTechAnalysisResponse: MessageFns<GetTechAnalysisResponse>;
|
|
1073
|
+
export declare const GetTechAnalysisResponse_TechAnalysisItem: MessageFns<GetTechAnalysisResponse_TechAnalysisItem>;
|
|
1074
|
+
export declare const GetMarketValuesRequest: MessageFns<GetMarketValuesRequest>;
|
|
1075
|
+
export declare const GetMarketValuesResponse: MessageFns<GetMarketValuesResponse>;
|
|
1076
|
+
export declare const MarketValueInstrument: MessageFns<MarketValueInstrument>;
|
|
1077
|
+
export declare const MarketValue: MessageFns<MarketValue>;
|
|
1078
|
+
/** Сервис для получения биржевой информации:<br/> 1. Свечи.<br/> 2. Стаканы.<br/> 3. Торговые статусы.<br/> 4. Лента сделок. */
|
|
1079
|
+
export type MarketDataServiceDefinition = typeof MarketDataServiceDefinition;
|
|
1080
|
+
export declare const MarketDataServiceDefinition: {
|
|
1081
|
+
readonly name: "MarketDataService";
|
|
1082
|
+
readonly fullName: "tinkoff.public.invest.api.contract.v1.MarketDataService";
|
|
1083
|
+
readonly methods: {
|
|
1084
|
+
/** GetCandles — исторические свечи по инструменту */
|
|
1085
|
+
readonly getCandles: {
|
|
1086
|
+
readonly name: "GetCandles";
|
|
1087
|
+
readonly requestType: typeof GetCandlesRequest;
|
|
1088
|
+
readonly requestStream: false;
|
|
1089
|
+
readonly responseType: typeof GetCandlesResponse;
|
|
1090
|
+
readonly responseStream: false;
|
|
1091
|
+
readonly options: {};
|
|
1092
|
+
};
|
|
1093
|
+
/** GetLastPrices — цены последних сделок по инструментам */
|
|
1094
|
+
readonly getLastPrices: {
|
|
1095
|
+
readonly name: "GetLastPrices";
|
|
1096
|
+
readonly requestType: typeof GetLastPricesRequest;
|
|
1097
|
+
readonly requestStream: false;
|
|
1098
|
+
readonly responseType: typeof GetLastPricesResponse;
|
|
1099
|
+
readonly responseStream: false;
|
|
1100
|
+
readonly options: {};
|
|
1101
|
+
};
|
|
1102
|
+
/** GetOrderBook — стакан по инструменту */
|
|
1103
|
+
readonly getOrderBook: {
|
|
1104
|
+
readonly name: "GetOrderBook";
|
|
1105
|
+
readonly requestType: typeof GetOrderBookRequest;
|
|
1106
|
+
readonly requestStream: false;
|
|
1107
|
+
readonly responseType: typeof GetOrderBookResponse;
|
|
1108
|
+
readonly responseStream: false;
|
|
1109
|
+
readonly options: {};
|
|
1110
|
+
};
|
|
1111
|
+
/** GetTradingStatus — статус торгов по инструменту */
|
|
1112
|
+
readonly getTradingStatus: {
|
|
1113
|
+
readonly name: "GetTradingStatus";
|
|
1114
|
+
readonly requestType: typeof GetTradingStatusRequest;
|
|
1115
|
+
readonly requestStream: false;
|
|
1116
|
+
readonly responseType: typeof GetTradingStatusResponse;
|
|
1117
|
+
readonly responseStream: false;
|
|
1118
|
+
readonly options: {};
|
|
1119
|
+
};
|
|
1120
|
+
/** GetTradingStatuses — статус торгов по инструментам */
|
|
1121
|
+
readonly getTradingStatuses: {
|
|
1122
|
+
readonly name: "GetTradingStatuses";
|
|
1123
|
+
readonly requestType: typeof GetTradingStatusesRequest;
|
|
1124
|
+
readonly requestStream: false;
|
|
1125
|
+
readonly responseType: typeof GetTradingStatusesResponse;
|
|
1126
|
+
readonly responseStream: false;
|
|
1127
|
+
readonly options: {};
|
|
1128
|
+
};
|
|
1129
|
+
/**
|
|
1130
|
+
* GetLastTrades — обезличенные сделки
|
|
1131
|
+
* Обезличенные сделки по инструменту. Метод гарантирует получение информации за последний час.
|
|
1132
|
+
*/
|
|
1133
|
+
readonly getLastTrades: {
|
|
1134
|
+
readonly name: "GetLastTrades";
|
|
1135
|
+
readonly requestType: typeof GetLastTradesRequest;
|
|
1136
|
+
readonly requestStream: false;
|
|
1137
|
+
readonly responseType: typeof GetLastTradesResponse;
|
|
1138
|
+
readonly responseStream: false;
|
|
1139
|
+
readonly options: {};
|
|
1140
|
+
};
|
|
1141
|
+
/** GetClosePrices — цены закрытия торговой сессии по инструментам */
|
|
1142
|
+
readonly getClosePrices: {
|
|
1143
|
+
readonly name: "GetClosePrices";
|
|
1144
|
+
readonly requestType: typeof GetClosePricesRequest;
|
|
1145
|
+
readonly requestStream: false;
|
|
1146
|
+
readonly responseType: typeof GetClosePricesResponse;
|
|
1147
|
+
readonly responseStream: false;
|
|
1148
|
+
readonly options: {};
|
|
1149
|
+
};
|
|
1150
|
+
/** GetTechAnalysis — технические индикаторы по инструменту */
|
|
1151
|
+
readonly getTechAnalysis: {
|
|
1152
|
+
readonly name: "GetTechAnalysis";
|
|
1153
|
+
readonly requestType: typeof GetTechAnalysisRequest;
|
|
1154
|
+
readonly requestStream: false;
|
|
1155
|
+
readonly responseType: typeof GetTechAnalysisResponse;
|
|
1156
|
+
readonly responseStream: false;
|
|
1157
|
+
readonly options: {};
|
|
1158
|
+
};
|
|
1159
|
+
/** GetMarketValues — рыночные данные по инструментам */
|
|
1160
|
+
readonly getMarketValues: {
|
|
1161
|
+
readonly name: "GetMarketValues";
|
|
1162
|
+
readonly requestType: typeof GetMarketValuesRequest;
|
|
1163
|
+
readonly requestStream: false;
|
|
1164
|
+
readonly responseType: typeof GetMarketValuesResponse;
|
|
1165
|
+
readonly responseStream: false;
|
|
1166
|
+
readonly options: {};
|
|
1167
|
+
};
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
export interface MarketDataServiceImplementation<CallContextExt = {}> {
|
|
1171
|
+
/** GetCandles — исторические свечи по инструменту */
|
|
1172
|
+
getCandles(request: GetCandlesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetCandlesResponse>>;
|
|
1173
|
+
/** GetLastPrices — цены последних сделок по инструментам */
|
|
1174
|
+
getLastPrices(request: GetLastPricesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetLastPricesResponse>>;
|
|
1175
|
+
/** GetOrderBook — стакан по инструменту */
|
|
1176
|
+
getOrderBook(request: GetOrderBookRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetOrderBookResponse>>;
|
|
1177
|
+
/** GetTradingStatus — статус торгов по инструменту */
|
|
1178
|
+
getTradingStatus(request: GetTradingStatusRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetTradingStatusResponse>>;
|
|
1179
|
+
/** GetTradingStatuses — статус торгов по инструментам */
|
|
1180
|
+
getTradingStatuses(request: GetTradingStatusesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetTradingStatusesResponse>>;
|
|
1181
|
+
/**
|
|
1182
|
+
* GetLastTrades — обезличенные сделки
|
|
1183
|
+
* Обезличенные сделки по инструменту. Метод гарантирует получение информации за последний час.
|
|
1184
|
+
*/
|
|
1185
|
+
getLastTrades(request: GetLastTradesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetLastTradesResponse>>;
|
|
1186
|
+
/** GetClosePrices — цены закрытия торговой сессии по инструментам */
|
|
1187
|
+
getClosePrices(request: GetClosePricesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetClosePricesResponse>>;
|
|
1188
|
+
/** GetTechAnalysis — технические индикаторы по инструменту */
|
|
1189
|
+
getTechAnalysis(request: GetTechAnalysisRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetTechAnalysisResponse>>;
|
|
1190
|
+
/** GetMarketValues — рыночные данные по инструментам */
|
|
1191
|
+
getMarketValues(request: GetMarketValuesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetMarketValuesResponse>>;
|
|
1192
|
+
}
|
|
1193
|
+
export interface MarketDataServiceClient<CallOptionsExt = {}> {
|
|
1194
|
+
/** GetCandles — исторические свечи по инструменту */
|
|
1195
|
+
getCandles(request: DeepPartial<GetCandlesRequest>, options?: CallOptions & CallOptionsExt): Promise<GetCandlesResponse>;
|
|
1196
|
+
/** GetLastPrices — цены последних сделок по инструментам */
|
|
1197
|
+
getLastPrices(request: DeepPartial<GetLastPricesRequest>, options?: CallOptions & CallOptionsExt): Promise<GetLastPricesResponse>;
|
|
1198
|
+
/** GetOrderBook — стакан по инструменту */
|
|
1199
|
+
getOrderBook(request: DeepPartial<GetOrderBookRequest>, options?: CallOptions & CallOptionsExt): Promise<GetOrderBookResponse>;
|
|
1200
|
+
/** GetTradingStatus — статус торгов по инструменту */
|
|
1201
|
+
getTradingStatus(request: DeepPartial<GetTradingStatusRequest>, options?: CallOptions & CallOptionsExt): Promise<GetTradingStatusResponse>;
|
|
1202
|
+
/** GetTradingStatuses — статус торгов по инструментам */
|
|
1203
|
+
getTradingStatuses(request: DeepPartial<GetTradingStatusesRequest>, options?: CallOptions & CallOptionsExt): Promise<GetTradingStatusesResponse>;
|
|
1204
|
+
/**
|
|
1205
|
+
* GetLastTrades — обезличенные сделки
|
|
1206
|
+
* Обезличенные сделки по инструменту. Метод гарантирует получение информации за последний час.
|
|
1207
|
+
*/
|
|
1208
|
+
getLastTrades(request: DeepPartial<GetLastTradesRequest>, options?: CallOptions & CallOptionsExt): Promise<GetLastTradesResponse>;
|
|
1209
|
+
/** GetClosePrices — цены закрытия торговой сессии по инструментам */
|
|
1210
|
+
getClosePrices(request: DeepPartial<GetClosePricesRequest>, options?: CallOptions & CallOptionsExt): Promise<GetClosePricesResponse>;
|
|
1211
|
+
/** GetTechAnalysis — технические индикаторы по инструменту */
|
|
1212
|
+
getTechAnalysis(request: DeepPartial<GetTechAnalysisRequest>, options?: CallOptions & CallOptionsExt): Promise<GetTechAnalysisResponse>;
|
|
1213
|
+
/** GetMarketValues — рыночные данные по инструментам */
|
|
1214
|
+
getMarketValues(request: DeepPartial<GetMarketValuesRequest>, options?: CallOptions & CallOptionsExt): Promise<GetMarketValuesResponse>;
|
|
1215
|
+
}
|
|
1216
|
+
export type MarketDataStreamServiceDefinition = typeof MarketDataStreamServiceDefinition;
|
|
1217
|
+
export declare const MarketDataStreamServiceDefinition: {
|
|
1218
|
+
readonly name: "MarketDataStreamService";
|
|
1219
|
+
readonly fullName: "tinkoff.public.invest.api.contract.v1.MarketDataStreamService";
|
|
1220
|
+
readonly methods: {
|
|
1221
|
+
/** MarketDataStream — bidirectional стрим предоставления биржевой информации */
|
|
1222
|
+
readonly marketDataStream: {
|
|
1223
|
+
readonly name: "MarketDataStream";
|
|
1224
|
+
readonly requestType: typeof MarketDataRequest;
|
|
1225
|
+
readonly requestStream: true;
|
|
1226
|
+
readonly responseType: typeof MarketDataResponse;
|
|
1227
|
+
readonly responseStream: true;
|
|
1228
|
+
readonly options: {};
|
|
1229
|
+
};
|
|
1230
|
+
/** MarketDataServerSideStream — server-side стрим предоставления биржевой информации */
|
|
1231
|
+
readonly marketDataServerSideStream: {
|
|
1232
|
+
readonly name: "MarketDataServerSideStream";
|
|
1233
|
+
readonly requestType: typeof MarketDataServerSideStreamRequest;
|
|
1234
|
+
readonly requestStream: false;
|
|
1235
|
+
readonly responseType: typeof MarketDataResponse;
|
|
1236
|
+
readonly responseStream: true;
|
|
1237
|
+
readonly options: {};
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
export interface MarketDataStreamServiceImplementation<CallContextExt = {}> {
|
|
1242
|
+
/** MarketDataStream — bidirectional стрим предоставления биржевой информации */
|
|
1243
|
+
marketDataStream(request: AsyncIterable<MarketDataRequest>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<MarketDataResponse>>;
|
|
1244
|
+
/** MarketDataServerSideStream — server-side стрим предоставления биржевой информации */
|
|
1245
|
+
marketDataServerSideStream(request: MarketDataServerSideStreamRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<MarketDataResponse>>;
|
|
1246
|
+
}
|
|
1247
|
+
export interface MarketDataStreamServiceClient<CallOptionsExt = {}> {
|
|
1248
|
+
/** MarketDataStream — bidirectional стрим предоставления биржевой информации */
|
|
1249
|
+
marketDataStream(request: AsyncIterable<DeepPartial<MarketDataRequest>>, options?: CallOptions & CallOptionsExt): AsyncIterable<MarketDataResponse>;
|
|
1250
|
+
/** MarketDataServerSideStream — server-side стрим предоставления биржевой информации */
|
|
1251
|
+
marketDataServerSideStream(request: DeepPartial<MarketDataServerSideStreamRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<MarketDataResponse>;
|
|
1252
|
+
}
|
|
1253
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1254
|
+
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 {} ? {
|
|
1255
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1256
|
+
} : Partial<T>;
|
|
1257
|
+
export type ServerStreamingMethodResult<Response> = {
|
|
1258
|
+
[Symbol.asyncIterator](): AsyncIterator<Response, void>;
|
|
1259
|
+
};
|
|
1260
|
+
export interface MessageFns<T> {
|
|
1261
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1262
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1263
|
+
fromJSON(object: any): T;
|
|
1264
|
+
toJSON(message: T): unknown;
|
|
1265
|
+
create(base?: DeepPartial<T>): T;
|
|
1266
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
1267
|
+
}
|
|
1268
|
+
export {};
|