@woodger/t-invest-node-sdk 0.5.6 → 0.5.8
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 +317 -524
- package/NOTICE +8 -8
- package/dist/application/dto/t-invest-options.d.ts +8 -6
- package/dist/application/dto/t-invest-options.js +4 -4
- package/dist/application/dto/t-invest-services.d.ts +26 -1
- package/dist/application/dto/t-invest-services.js +2 -1
- package/dist/application/errors/sdk-error.d.ts +21 -7
- package/dist/application/errors/sdk-error.js +20 -17
- package/dist/application/reports/accounts.report.d.ts +7 -2
- package/dist/application/reports/accrued-interests.report.d.ts +8 -2
- package/dist/application/reports/asset.report.d.ts +5 -0
- package/dist/application/reports/bond-coupons.report.d.ts +3 -1
- package/dist/application/reports/bond.report.d.ts +3 -1
- package/dist/application/reports/brands.report.d.ts +4 -1
- package/dist/application/reports/broker-report.report.d.ts +14 -2
- package/dist/application/reports/candles.report.d.ts +4 -1
- package/dist/application/reports/close-prices.report.d.ts +7 -2
- package/dist/application/reports/currency.report.d.ts +4 -1
- package/dist/application/reports/dividends-foreign-issuer.report.d.ts +12 -1
- package/dist/application/reports/dividends.report.d.ts +4 -1
- package/dist/application/reports/find-instrument.report.d.ts +3 -1
- package/dist/application/reports/future.report.d.ts +3 -1
- package/dist/application/reports/futures-margin.report.d.ts +10 -3
- package/dist/application/reports/instrument.report.d.ts +7 -2
- package/dist/application/reports/last-prices.report.d.ts +7 -2
- package/dist/application/reports/last-trades.report.d.ts +4 -2
- package/dist/application/reports/margin-attributes.report.d.ts +6 -2
- package/dist/application/reports/operations-by-cursor.report.d.ts +7 -2
- package/dist/application/reports/option.report.d.ts +4 -1
- package/dist/application/reports/order-book.report.d.ts +1 -1
- package/dist/application/reports/order-mutation.report.d.ts +6 -2
- package/dist/application/reports/portfolio.report.d.ts +4 -1
- package/dist/application/reports/sandbox-account.report.d.ts +6 -0
- package/dist/application/reports/stop-orders.report.d.ts +3 -1
- package/dist/application/reports/trading-schedules.report.d.ts +12 -4
- package/dist/application/reports/trading-status.report.d.ts +3 -1
- package/dist/application/reports/trading-statuses.report.d.ts +4 -1
- package/dist/application/reports/user-tariff.report.d.ts +2 -0
- package/dist/application/reports/withdraw-limits.report.d.ts +4 -1
- package/dist/application/services/unary-limiter.d.ts +18 -14
- package/dist/application/services/unary-limiter.js +91 -33
- package/dist/bootstrap/args/command-options.d.ts +5 -0
- package/dist/bootstrap/args/command-options.js +24 -15
- package/dist/bootstrap/args/instrument-id-options.d.ts +12 -6
- package/dist/bootstrap/args/instrument-id-options.js +4 -2
- package/dist/bootstrap/args/instruments-args.d.ts +2 -2
- package/dist/bootstrap/args/instruments-args.js +2 -1
- package/dist/bootstrap/args/sdk-options.d.ts +7 -3
- package/dist/bootstrap/args/sdk-options.js +3 -3
- package/dist/bootstrap/args/side-effect-args.js +7 -3
- package/dist/bootstrap/cli/contract.d.ts +2 -1
- package/dist/bootstrap/cli/contract.js +2 -1
- package/dist/bootstrap/cli/domains.d.ts +13 -10
- package/dist/bootstrap/cli/domains.js +8 -3
- package/dist/bootstrap/cli/error.d.ts +7 -1
- package/dist/bootstrap/cli/error.js +11 -3
- package/dist/bootstrap/cli/help-catalog.d.ts +4 -1
- package/dist/bootstrap/cli/help-catalog.js +5 -0
- package/dist/bootstrap/cli/help.d.ts +5 -4
- package/dist/bootstrap/cli/help.js +4 -3
- package/dist/bootstrap/cli/registry.d.ts +288 -287
- package/dist/bootstrap/cli/registry.js +4 -2
- package/dist/bootstrap/cli/runner.js +1 -1
- package/dist/bootstrap/cli/version.d.ts +2 -1
- package/dist/bootstrap/cli/version.js +2 -1
- package/dist/bootstrap/commands/accounts/cli.d.ts +6 -5
- package/dist/bootstrap/commands/accounts/cli.js +17 -22
- package/dist/bootstrap/commands/accounts/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/accounts/reporter.js +2 -1
- package/dist/bootstrap/commands/accrued-interests/cli.d.ts +16 -15
- package/dist/bootstrap/commands/accrued-interests/cli.js +14 -21
- package/dist/bootstrap/commands/accrued-interests/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/accrued-interests/reporter.js +2 -1
- package/dist/bootstrap/commands/asset/cli.d.ts +13 -12
- package/dist/bootstrap/commands/asset/cli.js +14 -21
- package/dist/bootstrap/commands/asset/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/asset/reporter.js +2 -1
- package/dist/bootstrap/commands/assets/cli.d.ts +16 -15
- package/dist/bootstrap/commands/assets/cli.js +14 -21
- package/dist/bootstrap/commands/assets/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/assets/reporter.js +2 -1
- package/dist/bootstrap/commands/bond/cli.d.ts +6 -5
- package/dist/bootstrap/commands/bond/cli.js +19 -24
- package/dist/bootstrap/commands/bond/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/bond/reporter.js +5 -2
- package/dist/bootstrap/commands/bond-coupons/cli.d.ts +16 -15
- package/dist/bootstrap/commands/bond-coupons/cli.js +14 -21
- package/dist/bootstrap/commands/bond-coupons/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/bond-coupons/reporter.js +2 -1
- package/dist/bootstrap/commands/bonds/cli.d.ts +6 -5
- package/dist/bootstrap/commands/bonds/cli.js +19 -24
- package/dist/bootstrap/commands/bonds/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/bonds/reporter.js +2 -1
- package/dist/bootstrap/commands/brand/cli.d.ts +13 -12
- package/dist/bootstrap/commands/brand/cli.js +14 -21
- package/dist/bootstrap/commands/brand/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/brand/reporter.js +2 -1
- package/dist/bootstrap/commands/brands/cli.d.ts +6 -5
- package/dist/bootstrap/commands/brands/cli.js +17 -22
- package/dist/bootstrap/commands/brands/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/brands/reporter.js +2 -1
- package/dist/bootstrap/commands/broker-report/cli.d.ts +25 -24
- package/dist/bootstrap/commands/broker-report/cli.js +14 -21
- package/dist/bootstrap/commands/broker-report/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/broker-report/reporter.js +2 -1
- package/dist/bootstrap/commands/cancel-order/cli.d.ts +10 -9
- package/dist/bootstrap/commands/cancel-order/cli.js +28 -35
- package/dist/bootstrap/commands/cancel-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/cancel-order/reporter.js +2 -1
- package/dist/bootstrap/commands/cancel-stop-order/cli.d.ts +16 -15
- package/dist/bootstrap/commands/cancel-stop-order/cli.js +16 -22
- package/dist/bootstrap/commands/cancel-stop-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/cancel-stop-order/reporter.js +2 -1
- package/dist/bootstrap/commands/candles/cli.d.ts +22 -21
- package/dist/bootstrap/commands/candles/cli.js +14 -21
- package/dist/bootstrap/commands/candles/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/candles/reporter.js +2 -1
- package/dist/bootstrap/commands/close-prices/cli.d.ts +13 -12
- package/dist/bootstrap/commands/close-prices/cli.js +14 -21
- package/dist/bootstrap/commands/close-prices/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/close-prices/reporter.js +2 -1
- package/dist/bootstrap/commands/compile-proto/cli.d.ts +2 -1
- package/dist/bootstrap/commands/compile-proto/cli.js +2 -1
- package/dist/bootstrap/commands/countries/cli.d.ts +6 -5
- package/dist/bootstrap/commands/countries/cli.js +17 -22
- package/dist/bootstrap/commands/countries/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/countries/reporter.js +2 -1
- package/dist/bootstrap/commands/currencies/cli.d.ts +6 -5
- package/dist/bootstrap/commands/currencies/cli.js +19 -24
- package/dist/bootstrap/commands/currencies/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/currencies/reporter.js +2 -1
- package/dist/bootstrap/commands/currency/cli.d.ts +6 -5
- package/dist/bootstrap/commands/currency/cli.js +19 -24
- package/dist/bootstrap/commands/currency/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/currency/reporter.js +2 -1
- package/dist/bootstrap/commands/dividends/cli.d.ts +16 -15
- package/dist/bootstrap/commands/dividends/cli.js +14 -21
- package/dist/bootstrap/commands/dividends/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/dividends/reporter.js +2 -1
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.d.ts +25 -24
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.js +14 -21
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.js +2 -1
- package/dist/bootstrap/commands/edit-favorites/cli.d.ts +13 -12
- package/dist/bootstrap/commands/edit-favorites/cli.js +16 -22
- package/dist/bootstrap/commands/edit-favorites/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/etf/cli.d.ts +6 -5
- package/dist/bootstrap/commands/etf/cli.js +19 -24
- package/dist/bootstrap/commands/etf/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/etf/reporter.js +5 -2
- package/dist/bootstrap/commands/etfs/cli.d.ts +6 -5
- package/dist/bootstrap/commands/etfs/cli.js +19 -24
- package/dist/bootstrap/commands/etfs/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/etfs/reporter.js +2 -1
- package/dist/bootstrap/commands/favorites/cli.d.ts +6 -5
- package/dist/bootstrap/commands/favorites/cli.js +17 -22
- package/dist/bootstrap/commands/favorites/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/favorites/reporter.js +2 -1
- package/dist/bootstrap/commands/find-instrument/cli.d.ts +22 -21
- package/dist/bootstrap/commands/find-instrument/cli.js +14 -21
- package/dist/bootstrap/commands/find-instrument/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/find-instrument/reporter.js +2 -1
- package/dist/bootstrap/commands/future/cli.d.ts +6 -5
- package/dist/bootstrap/commands/future/cli.js +19 -24
- package/dist/bootstrap/commands/future/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/future/reporter.js +2 -1
- package/dist/bootstrap/commands/futures/cli.d.ts +6 -5
- package/dist/bootstrap/commands/futures/cli.js +19 -24
- package/dist/bootstrap/commands/futures/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/futures/reporter.js +2 -1
- package/dist/bootstrap/commands/futures-margin/cli.d.ts +10 -9
- package/dist/bootstrap/commands/futures-margin/cli.js +14 -21
- package/dist/bootstrap/commands/futures-margin/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/futures-margin/reporter.js +8 -2
- package/dist/bootstrap/commands/help/cli.js +1 -4
- package/dist/bootstrap/commands/instrument/cli.d.ts +6 -5
- package/dist/bootstrap/commands/instrument/cli.js +19 -24
- package/dist/bootstrap/commands/instrument/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/instrument/reporter.js +5 -2
- package/dist/bootstrap/commands/last-prices/cli.d.ts +13 -12
- package/dist/bootstrap/commands/last-prices/cli.js +14 -21
- package/dist/bootstrap/commands/last-prices/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/last-prices/reporter.js +2 -1
- package/dist/bootstrap/commands/last-trades/cli.d.ts +19 -18
- package/dist/bootstrap/commands/last-trades/cli.js +14 -21
- package/dist/bootstrap/commands/last-trades/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/last-trades/reporter.js +2 -1
- package/dist/bootstrap/commands/margin-attributes/cli.d.ts +13 -12
- package/dist/bootstrap/commands/margin-attributes/cli.js +14 -21
- package/dist/bootstrap/commands/margin-attributes/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/margin-attributes/reporter.js +2 -1
- package/dist/bootstrap/commands/operations/cli.d.ts +22 -21
- package/dist/bootstrap/commands/operations/cli.js +42 -47
- package/dist/bootstrap/commands/operations/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/operations/reporter.js +2 -1
- package/dist/bootstrap/commands/operations/request.mapper.d.ts +6 -6
- package/dist/bootstrap/commands/operations-by-cursor/cli.d.ts +44 -43
- package/dist/bootstrap/commands/operations-by-cursor/cli.js +63 -75
- package/dist/bootstrap/commands/operations-by-cursor/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/operations-by-cursor/reporter.js +2 -1
- package/dist/bootstrap/commands/operations-by-cursor/request.mapper.d.ts +8 -7
- package/dist/bootstrap/commands/operations-by-cursor/request.mapper.js +10 -4
- package/dist/bootstrap/commands/option/cli.d.ts +6 -5
- package/dist/bootstrap/commands/option/cli.js +19 -24
- package/dist/bootstrap/commands/option/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/option/reporter.js +2 -1
- package/dist/bootstrap/commands/options-by/cli.d.ts +16 -15
- package/dist/bootstrap/commands/options-by/cli.js +14 -21
- package/dist/bootstrap/commands/options-by/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/options-by/reporter.js +2 -1
- package/dist/bootstrap/commands/order-book/cli.d.ts +22 -21
- package/dist/bootstrap/commands/order-book/cli.js +18 -28
- package/dist/bootstrap/commands/order-book/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/order-book/reporter.js +11 -2
- package/dist/bootstrap/commands/order-state/cli.d.ts +10 -9
- package/dist/bootstrap/commands/order-state/cli.js +26 -34
- package/dist/bootstrap/commands/order-state/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/order-state/reporter.js +2 -1
- package/dist/bootstrap/commands/orders/cli.d.ts +8 -7
- package/dist/bootstrap/commands/orders/cli.js +22 -30
- package/dist/bootstrap/commands/orders/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/orders/reporter.js +2 -1
- package/dist/bootstrap/commands/portfolio/cli.d.ts +12 -11
- package/dist/bootstrap/commands/portfolio/cli.js +27 -35
- package/dist/bootstrap/commands/portfolio/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/portfolio/reporter.js +2 -1
- package/dist/bootstrap/commands/portfolio/request.mapper.d.ts +6 -5
- package/dist/bootstrap/commands/portfolio/request.mapper.js +2 -1
- package/dist/bootstrap/commands/positions/cli.d.ts +8 -7
- package/dist/bootstrap/commands/positions/cli.js +22 -30
- package/dist/bootstrap/commands/positions/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/positions/reporter.js +11 -2
- package/dist/bootstrap/commands/post-order/cli.d.ts +18 -17
- package/dist/bootstrap/commands/post-order/cli.js +49 -56
- package/dist/bootstrap/commands/post-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/post-order/reporter.js +2 -1
- package/dist/bootstrap/commands/post-order/request.mapper.d.ts +9 -9
- package/dist/bootstrap/commands/post-stop-order/cli.d.ts +34 -33
- package/dist/bootstrap/commands/post-stop-order/cli.js +18 -23
- package/dist/bootstrap/commands/post-stop-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/post-stop-order/reporter.js +2 -1
- package/dist/bootstrap/commands/replace-order/cli.d.ts +16 -15
- package/dist/bootstrap/commands/replace-order/cli.js +45 -52
- package/dist/bootstrap/commands/replace-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/replace-order/reporter.js +2 -1
- package/dist/bootstrap/commands/replace-order/request.mapper.d.ts +4 -4
- package/dist/bootstrap/commands/sandbox-accounts/cli.d.ts +6 -6
- package/dist/bootstrap/commands/sandbox-accounts/cli.js +17 -26
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.d.ts +10 -44
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.js +28 -39
- package/dist/bootstrap/commands/sandbox-close-account/cli.d.ts +13 -12
- package/dist/bootstrap/commands/sandbox-close-account/cli.js +16 -22
- package/dist/bootstrap/commands/sandbox-close-account/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/sandbox-close-account/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-open-account/cli.d.ts +6 -6
- package/dist/bootstrap/commands/sandbox-open-account/cli.js +19 -28
- package/dist/bootstrap/commands/sandbox-open-account/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/sandbox-open-account/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-operations/cli.d.ts +18 -64
- package/dist/bootstrap/commands/sandbox-operations/cli.js +36 -48
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.d.ts +32 -94
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.js +57 -69
- package/dist/bootstrap/commands/sandbox-order-state/cli.d.ts +10 -41
- package/dist/bootstrap/commands/sandbox-order-state/cli.js +26 -38
- package/dist/bootstrap/commands/sandbox-orders/cli.d.ts +8 -35
- package/dist/bootstrap/commands/sandbox-orders/cli.js +22 -34
- package/dist/bootstrap/commands/sandbox-pay-in/cli.d.ts +22 -21
- package/dist/bootstrap/commands/sandbox-pay-in/cli.js +16 -22
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-portfolio/cli.d.ts +14 -46
- package/dist/bootstrap/commands/sandbox-portfolio/cli.js +27 -39
- package/dist/bootstrap/commands/sandbox-positions/cli.d.ts +8 -35
- package/dist/bootstrap/commands/sandbox-positions/cli.js +22 -34
- package/dist/bootstrap/commands/sandbox-post-order/cli.d.ts +22 -80
- package/dist/bootstrap/commands/sandbox-post-order/cli.js +49 -60
- package/dist/bootstrap/commands/sandbox-replace-order/cli.d.ts +18 -72
- package/dist/bootstrap/commands/sandbox-replace-order/cli.js +45 -56
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.d.ts +8 -35
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.js +22 -34
- package/dist/bootstrap/commands/share/cli.d.ts +6 -5
- package/dist/bootstrap/commands/share/cli.js +19 -24
- package/dist/bootstrap/commands/share/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/share/reporter.js +5 -2
- package/dist/bootstrap/commands/shares/cli.d.ts +6 -5
- package/dist/bootstrap/commands/shares/cli.js +19 -24
- package/dist/bootstrap/commands/shares/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/shares/reporter.js +2 -1
- package/dist/bootstrap/commands/stop-orders/cli.d.ts +13 -12
- package/dist/bootstrap/commands/stop-orders/cli.js +14 -21
- package/dist/bootstrap/commands/stop-orders/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/stop-orders/reporter.js +2 -1
- package/dist/bootstrap/commands/stream-run/cli.d.ts +6 -4
- package/dist/bootstrap/commands/stream-run/cli.js +7 -7
- package/dist/bootstrap/commands/stream-run/config.d.ts +18 -1
- package/dist/bootstrap/commands/stream-run/config.js +5 -3
- package/dist/bootstrap/commands/stream-run/reporter.d.ts +6 -1
- package/dist/bootstrap/commands/stream-run/request.mapper.js +15 -5
- package/dist/bootstrap/commands/stream-run/stream-session.d.ts +14 -0
- package/dist/bootstrap/commands/stream-run/stream-session.js +7 -2
- package/dist/bootstrap/commands/trading-schedules/cli.d.ts +19 -18
- package/dist/bootstrap/commands/trading-schedules/cli.js +14 -21
- package/dist/bootstrap/commands/trading-schedules/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/trading-schedules/reporter.js +11 -2
- package/dist/bootstrap/commands/trading-status/cli.d.ts +13 -12
- package/dist/bootstrap/commands/trading-status/cli.js +14 -21
- package/dist/bootstrap/commands/trading-status/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/trading-status/reporter.js +2 -1
- package/dist/bootstrap/commands/trading-statuses/cli.d.ts +13 -12
- package/dist/bootstrap/commands/trading-statuses/cli.js +14 -21
- package/dist/bootstrap/commands/trading-statuses/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/trading-statuses/reporter.js +2 -1
- package/dist/bootstrap/commands/user-info/cli.d.ts +6 -5
- package/dist/bootstrap/commands/user-info/cli.js +17 -22
- package/dist/bootstrap/commands/user-info/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/user-info/reporter.js +2 -1
- package/dist/bootstrap/commands/user-tariff/cli.d.ts +6 -5
- package/dist/bootstrap/commands/user-tariff/cli.js +17 -22
- package/dist/bootstrap/commands/user-tariff/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/user-tariff/reporter.js +17 -2
- package/dist/bootstrap/commands/withdraw-limits/cli.d.ts +12 -7
- package/dist/bootstrap/commands/withdraw-limits/cli.js +29 -30
- package/dist/bootstrap/commands/withdraw-limits/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/withdraw-limits/reporter.js +2 -1
- package/dist/bootstrap/generated-exports.d.ts +1 -1
- package/dist/bootstrap/generated-exports.js +14 -11
- package/dist/bootstrap/index.js +5 -2
- package/dist/bootstrap/proto/compile-proto.d.ts +4 -2
- package/dist/bootstrap/proto/compile-proto.js +11 -6
- package/dist/bootstrap/sdk-config.d.ts +9 -7
- package/dist/bootstrap/sdk-config.js +8 -7
- package/dist/bootstrap/t-invest-node-sdk.d.ts +26 -6
- package/dist/bootstrap/t-invest-node-sdk.js +48 -23
- package/dist/bootstrap/unary-limit-config.d.ts +13 -14
- package/dist/bootstrap/unary-limit-config.js +12 -13
- package/dist/config.d.ts +13 -11
- package/dist/config.js +13 -11
- package/dist/config.types.d.ts +18 -19
- package/dist/config.types.js +6 -6
- package/dist/generated/common.d.ts +1 -0
- package/dist/generated/common.js +3 -2
- package/dist/generated/google/api/field_behavior.d.ts +1 -0
- package/dist/generated/google/api/field_behavior.js +3 -2
- package/dist/generated/google/protobuf/descriptor.d.ts +1 -0
- package/dist/generated/google/protobuf/descriptor.js +26 -16
- package/dist/generated/google/protobuf/timestamp.d.ts +1 -0
- package/dist/generated/google/protobuf/timestamp.js +20 -2
- package/dist/generated/instruments.d.ts +1 -0
- package/dist/generated/instruments.js +59 -55
- package/dist/generated/marketdata.d.ts +1 -0
- package/dist/generated/marketdata.js +10 -7
- package/dist/generated/operations.d.ts +1 -0
- package/dist/generated/operations.js +10 -7
- package/dist/generated/orders.d.ts +5 -2
- package/dist/generated/orders.js +29 -7
- package/dist/generated/sandbox.d.ts +1 -0
- package/dist/generated/sandbox.js +3 -2
- package/dist/generated/signals.d.ts +1 -0
- package/dist/generated/signals.js +3 -2
- package/dist/generated/stoporders.d.ts +1 -0
- package/dist/generated/stoporders.js +3 -2
- package/dist/generated/users.d.ts +1 -0
- package/dist/generated/users.js +9 -6
- package/dist/infrastructure/interceptor/warning-interceptor.d.ts +3 -1
- package/dist/infrastructure/interceptor/warning-interceptor.js +4 -3
- package/dist/infrastructure/report-values.js +8 -2
- package/dist/infrastructure/transport/grpc/call-callback-boundary.d.ts +23 -0
- package/dist/infrastructure/transport/grpc/call-callback-boundary.js +56 -0
- package/dist/infrastructure/transport/grpc/sdk-call-error.js +2 -2
- package/dist/infrastructure/transport/grpc/sdk-channel.d.ts +5 -5
- package/dist/infrastructure/transport/grpc/sdk-channel.js +5 -5
- package/dist/infrastructure/transport/grpc/sdk-client.d.ts +4 -3
- package/dist/infrastructure/transport/grpc/sdk-client.js +4 -3
- package/dist/infrastructure/transport/grpc/sdk-middleware.d.ts +20 -11
- package/dist/infrastructure/transport/grpc/sdk-middleware.js +96 -109
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.d.ts +21 -3
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.js +22 -6
- package/docs/architecture.md +93 -116
- package/docs/bundled-ca.md +31 -48
- package/docs/clean-architecture/adapters.md +14 -14
- package/docs/clean-architecture/api-commands.md +106 -102
- package/docs/clean-architecture/application.md +78 -94
- package/docs/clean-architecture/cli-output-boundaries.md +109 -119
- package/docs/clean-architecture/dto.md +18 -18
- package/docs/clean-architecture/index.md +9 -34
- package/docs/cli-reference.md +38 -30
- package/docs/cli-stream-configuration.md +57 -41
- package/docs/cli-stream-reference.md +51 -83
- package/docs/examples/custom-unary-limiter.md +454 -0
- package/docs/examples/deprecated-fields.md +27 -0
- package/docs/examples/errors-and-lifecycle.md +180 -0
- package/docs/examples/getting-started.md +45 -0
- package/docs/examples/index.md +43 -0
- package/docs/examples/instrument-lookup.md +38 -0
- package/docs/examples/market-data-recovery.md +327 -0
- package/docs/examples/operations-pagination.md +47 -0
- package/docs/examples/order-state-stream.md +39 -0
- package/docs/examples/sandbox-orders.md +85 -0
- package/docs/examples/streams-and-cancellation.md +218 -0
- package/docs/examples/testing-with-service-definitions.md +79 -0
- package/docs/examples/unary-calls.md +156 -0
- package/docs/examples/unary-limits.md +96 -0
- package/docs/index.md +23 -48
- package/docs/limits-policy.md +26 -48
- package/docs/roadmap.md +54 -54
- package/docs/tls-policy.md +39 -21
- package/package.json +8 -8
- package/readme.md +29 -214
- package/docs/guides/custom-unary-limiter.md +0 -500
- package/docs/guides/errors-and-lifecycle.md +0 -184
- package/docs/guides/getting-started.md +0 -86
- package/docs/guides/index.md +0 -32
- package/docs/guides/streams-and-cancellation.md +0 -162
- package/docs/guides/testing-with-service-definitions.md +0 -102
- package/docs/guides/unary-calls.md +0 -181
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
export declare const protobufFileName = "google/protobuf/descriptor.proto";
|
|
3
4
|
/** The full set of known editions. */
|
|
4
5
|
export declare enum Edition {
|
|
5
6
|
/** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.18.0
|
|
5
5
|
// protoc v7.36.2
|
|
6
6
|
// source: google/protobuf/descriptor.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = void 0;
|
|
8
|
+
exports.FeatureSet_VisibilityFeature = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_FeatureSupport = exports.FieldOptions_EditionDefault = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.GeneratedCodeInfo_Annotation_Semantic = exports.FeatureSet_VisibilityFeature_DefaultSymbolVisibility = exports.FeatureSet_EnforceNamingStyle = exports.FeatureSet_JsonFormat = exports.FeatureSet_MessageEncoding = exports.FeatureSet_Utf8Validation = exports.FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_EnumType = exports.FeatureSet_FieldPresence = exports.MethodOptions_IdempotencyLevel = exports.FieldOptions_OptionTargetType = exports.FieldOptions_OptionRetention = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FileOptions_OptimizeMode = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.ExtensionRangeOptions_VerificationState = exports.SymbolVisibility = exports.Edition = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
|
+
exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FeatureSetDefaults = void 0;
|
|
10
10
|
exports.editionFromJSON = editionFromJSON;
|
|
11
11
|
exports.editionToJSON = editionToJSON;
|
|
12
12
|
exports.symbolVisibilityFromJSON = symbolVisibilityFromJSON;
|
|
@@ -50,6 +50,7 @@ exports.generatedCodeInfo_Annotation_SemanticToJSON = generatedCodeInfo_Annotati
|
|
|
50
50
|
/* eslint-disable */
|
|
51
51
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
52
52
|
exports.protobufPackage = "google.protobuf";
|
|
53
|
+
exports.protobufFileName = "google/protobuf/descriptor.proto";
|
|
53
54
|
/** The full set of known editions. */
|
|
54
55
|
var Edition;
|
|
55
56
|
(function (Edition) {
|
|
@@ -4969,7 +4970,7 @@ exports.UninterpretedOption = {
|
|
|
4969
4970
|
obj.negativeIntValue = Math.round(message.negativeIntValue);
|
|
4970
4971
|
}
|
|
4971
4972
|
if (message.doubleValue !== undefined && message.doubleValue !== 0) {
|
|
4972
|
-
obj.doubleValue = message.doubleValue;
|
|
4973
|
+
obj.doubleValue = floatToJson(message.doubleValue);
|
|
4973
4974
|
}
|
|
4974
4975
|
if (message.stringValue !== undefined && message.stringValue.length !== 0) {
|
|
4975
4976
|
obj.stringValue = base64FromBytes(message.stringValue);
|
|
@@ -5614,16 +5615,20 @@ function createBaseSourceCodeInfo_Location() {
|
|
|
5614
5615
|
}
|
|
5615
5616
|
exports.SourceCodeInfo_Location = {
|
|
5616
5617
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5618
|
+
if (message.path.length !== 0) {
|
|
5619
|
+
writer.uint32(10).fork();
|
|
5620
|
+
for (const v of message.path) {
|
|
5621
|
+
writer.int32(v);
|
|
5622
|
+
}
|
|
5623
|
+
writer.join();
|
|
5620
5624
|
}
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
+
if (message.span.length !== 0) {
|
|
5626
|
+
writer.uint32(18).fork();
|
|
5627
|
+
for (const v of message.span) {
|
|
5628
|
+
writer.int32(v);
|
|
5629
|
+
}
|
|
5630
|
+
writer.join();
|
|
5625
5631
|
}
|
|
5626
|
-
writer.join();
|
|
5627
5632
|
if (message.leadingComments !== undefined && message.leadingComments !== "") {
|
|
5628
5633
|
writer.uint32(26).string(message.leadingComments);
|
|
5629
5634
|
}
|
|
@@ -5832,11 +5837,13 @@ function createBaseGeneratedCodeInfo_Annotation() {
|
|
|
5832
5837
|
}
|
|
5833
5838
|
exports.GeneratedCodeInfo_Annotation = {
|
|
5834
5839
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5840
|
+
if (message.path.length !== 0) {
|
|
5841
|
+
writer.uint32(10).fork();
|
|
5842
|
+
for (const v of message.path) {
|
|
5843
|
+
writer.int32(v);
|
|
5844
|
+
}
|
|
5845
|
+
writer.join();
|
|
5838
5846
|
}
|
|
5839
|
-
writer.join();
|
|
5840
5847
|
if (message.sourceFile !== undefined && message.sourceFile !== "") {
|
|
5841
5848
|
writer.uint32(18).string(message.sourceFile);
|
|
5842
5849
|
}
|
|
@@ -5969,6 +5976,9 @@ function bytesFromBase64(b64) {
|
|
|
5969
5976
|
function base64FromBytes(arr) {
|
|
5970
5977
|
return globalThis.Buffer.from(arr).toString("base64");
|
|
5971
5978
|
}
|
|
5979
|
+
function floatToJson(value) {
|
|
5980
|
+
return typeof value === "number" && !globalThis.Number.isFinite(value) ? globalThis.String(value) : value;
|
|
5981
|
+
}
|
|
5972
5982
|
function longToNumber(int64) {
|
|
5973
5983
|
const num = globalThis.Number(int64.toString());
|
|
5974
5984
|
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
export declare const protobufFileName = "google/protobuf/timestamp.proto";
|
|
3
4
|
/**
|
|
4
5
|
* A Timestamp represents a point in time independent of any time zone or local
|
|
5
6
|
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.18.0
|
|
5
5
|
// protoc v7.36.2
|
|
6
6
|
// source: google/protobuf/timestamp.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Timestamp = exports.protobufPackage = void 0;
|
|
8
|
+
exports.Timestamp = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
exports.protobufPackage = "google.protobuf";
|
|
12
|
+
exports.protobufFileName = "google/protobuf/timestamp.proto";
|
|
12
13
|
function createBaseTimestamp() {
|
|
13
14
|
return { seconds: 0, nanos: 0 };
|
|
14
15
|
}
|
|
@@ -62,6 +63,9 @@ exports.Timestamp = {
|
|
|
62
63
|
}
|
|
63
64
|
},
|
|
64
65
|
fromJSON(object) {
|
|
66
|
+
if (typeof object === "string") {
|
|
67
|
+
return exports.Timestamp.fromJSON(timestampFromJson(object));
|
|
68
|
+
}
|
|
65
69
|
return {
|
|
66
70
|
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
67
71
|
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
@@ -87,6 +91,20 @@ exports.Timestamp = {
|
|
|
87
91
|
return message;
|
|
88
92
|
},
|
|
89
93
|
};
|
|
94
|
+
const timestampJsonRegex = /^.+T\d{2}:\d{2}:\d{2}(\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
95
|
+
function timestampFromJson(value) {
|
|
96
|
+
const match = timestampJsonRegex.exec(value);
|
|
97
|
+
// Date only keeps milliseconds, so it parses the string without the fractional seconds
|
|
98
|
+
const fraction = match?.[1];
|
|
99
|
+
const millis = match
|
|
100
|
+
? new globalThis.Date(fraction === undefined ? value : value.replace(fraction, "")).getTime()
|
|
101
|
+
: NaN;
|
|
102
|
+
if (!match || globalThis.Number.isNaN(millis)) {
|
|
103
|
+
throw new globalThis.Error(`Invalid timestamp: ${value}`);
|
|
104
|
+
}
|
|
105
|
+
const nanos = fraction === undefined ? 0 : globalThis.Number(fraction.slice(1, 10).padEnd(9, "0"));
|
|
106
|
+
return { seconds: millis / 1_000, nanos };
|
|
107
|
+
}
|
|
90
108
|
function longToNumber(int64) {
|
|
91
109
|
const num = globalThis.Number(int64.toString());
|
|
92
110
|
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
@@ -2,6 +2,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
3
|
import { BrandData, InstrumentStatus, InstrumentType, MoneyValue, Page, PageResponse, Quotation, RealExchange, SecurityTradingStatus } from "./common";
|
|
4
4
|
export declare const protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
5
|
+
export declare const protobufFileName = "instruments.proto";
|
|
5
6
|
/** Тип купонов. */
|
|
6
7
|
export declare enum CouponType {
|
|
7
8
|
/** COUPON_TYPE_UNSPECIFIED - Неопределенное значение. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.18.0
|
|
5
5
|
// protoc v7.36.2
|
|
6
6
|
// source: instruments.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.InstrumentsServiceDefinition = exports.DfasResponse = exports.DfaResponse_ForecastYield = exports.DfaResponse_BasicAsset = exports.DfaResponse = exports.DfasRequest = exports.GetInsiderDealsResponse_InsiderDeal = exports.GetInsiderDealsResponse = exports.GetInsiderDealsRequest = exports.TradingInterval_TimeInterval = exports.TradingInterval = exports.RiskRatesResponse_RiskRate = exports.RiskRatesResponse_RiskRateResult = exports.RiskRatesResponse = exports.RiskRatesRequest = exports.GetForecastResponse_ConsensusItem = exports.GetForecastResponse_TargetItem = exports.GetForecastResponse = exports.GetForecastRequest = exports.GetConsensusForecastsResponse_ConsensusForecastsItem = exports.GetConsensusForecastsResponse = exports.GetConsensusForecastsRequest = exports.GetAssetReportsResponse_GetAssetReportsEvent = exports.GetAssetReportsResponse = exports.GetAssetReportsRequest = exports.GetAssetFundamentalsResponse_StatisticResponse = exports.GetAssetFundamentalsResponse = exports.GetAssetFundamentalsRequest = exports.GetBrandsResponse = exports.GetBrandRequest = exports.GetBrandsRequest = exports.InstrumentShort = exports.FindInstrumentResponse = exports.FindInstrumentRequest = exports.CountryResponse = exports.IndexInstrument = exports.IndicativeResponse = exports.IndicativesResponse = exports.IndicativesRequest = exports.GetCountriesResponse = exports.GetCountriesRequest = exports.GetFavoriteGroupsResponse_FavoriteGroup = exports.GetFavoriteGroupsResponse = exports.GetFavoriteGroupsRequest = void 0;
|
|
8
|
+
exports.StructuredNoteResponse = exports.SharesResponse = exports.ShareResponse = exports.Option = exports.OptionsResponse = exports.OptionResponse = exports.FuturesResponse = exports.FutureResponse = exports.EtfsResponse = exports.EtfResponse = exports.CurrenciesResponse = exports.CurrencyResponse = exports.Coupon = exports.GetBondEventsResponse_BondEvent = exports.GetBondEventsResponse = exports.GetBondEventsRequest = exports.GetBondCouponsResponse = exports.GetBondCouponsRequest = exports.BondsResponse = exports.BondResponse = exports.NewsRequest = exports.FilterOptionsRequest = exports.InstrumentsRequest = exports.InstrumentRequest = exports.TradingDay = exports.TradingSchedule = exports.TradingSchedulesResponse = exports.TradingSchedulesRequest = exports.GetInsiderDealsResponse_TradeDirection = exports.GetAssetReportsResponse_AssetReportPeriodType = exports.StructuredNote_YieldType = exports.StructuredNote_ObservationPrinciple = exports.StructuredNote_LogicPortfolio = exports.GetBondEventsRequest_EventType = exports.InstrumentExchangeType = exports.BondType = exports.RiskLevel = exports.Recommendation = exports.EditFavoritesActionType = exports.StructuredProductType = exports.AssetType = exports.ShareType = exports.InstrumentIdType = exports.OptionSettlementType = exports.OptionStyle = exports.OptionPaymentType = exports.OptionDirection = exports.CouponType = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
|
+
exports.DeleteFavoriteGroupRequest = exports.CreateFavoriteGroupResponse = exports.CreateFavoriteGroupRequest = exports.EditFavoritesResponse = exports.EditFavoritesRequestInstrument = exports.EditFavoritesRequest = exports.FavoriteInstrument = exports.GetFavoritesResponse = exports.GetFavoritesRequest = exports.InstrumentLink = exports.AssetInstrument = exports.Brand = exports.AssetClearingCertificate = exports.AssetEtf = exports.AssetStructuredProduct = exports.AssetBond = exports.AssetShare = exports.AssetSecurity = exports.AssetCurrency = exports.Asset = exports.AssetFull = exports.AssetsResponse = exports.AssetsRequest = exports.AssetResponse = exports.AssetRequest = exports.Dividend = exports.GetDividendsResponse = exports.GetDividendsRequest = exports.Instrument = exports.InstrumentResponse = exports.GetFuturesMarginResponse = exports.GetFuturesMarginRequest = exports.AccruedInterest = exports.GetAccruedInterestsResponse = exports.GetAccruedInterestsRequest = exports.StructuredNote_Yield = exports.StructuredNote_BasicAsset = exports.StructuredNote = exports.Share = exports.Future = exports.Etf = exports.Currency = exports.Rating = exports.Bond = exports.NewsInstrumentInfo = exports.NewsInstrument = exports.Table = exports.NewsItem = exports.NewsResponse = exports.StructuredNotesResponse = void 0;
|
|
10
|
+
exports.InstrumentsServiceDefinition = exports.DfasResponse = exports.DfaResponse_ForecastYield = exports.DfaResponse_BasicAsset = exports.DfaResponse = exports.DfasRequest = exports.GetInsiderDealsResponse_InsiderDeal = exports.GetInsiderDealsResponse = exports.GetInsiderDealsRequest = exports.TradingInterval_TimeInterval = exports.TradingInterval = exports.RiskRatesResponse_RiskRate = exports.RiskRatesResponse_RiskRateResult = exports.RiskRatesResponse = exports.RiskRatesRequest = exports.GetForecastResponse_ConsensusItem = exports.GetForecastResponse_TargetItem = exports.GetForecastResponse = exports.GetForecastRequest = exports.GetConsensusForecastsResponse_ConsensusForecastsItem = exports.GetConsensusForecastsResponse = exports.GetConsensusForecastsRequest = exports.GetAssetReportsResponse_GetAssetReportsEvent = exports.GetAssetReportsResponse = exports.GetAssetReportsRequest = exports.GetAssetFundamentalsResponse_StatisticResponse = exports.GetAssetFundamentalsResponse = exports.GetAssetFundamentalsRequest = exports.GetBrandsResponse = exports.GetBrandRequest = exports.GetBrandsRequest = exports.InstrumentShort = exports.FindInstrumentResponse = exports.FindInstrumentRequest = exports.CountryResponse = exports.IndexInstrument = exports.IndicativeResponse = exports.IndicativesResponse = exports.IndicativesRequest = exports.GetCountriesResponse = exports.GetCountriesRequest = exports.GetFavoriteGroupsResponse_FavoriteGroup = exports.GetFavoriteGroupsResponse = exports.GetFavoriteGroupsRequest = exports.DeleteFavoriteGroupResponse = void 0;
|
|
11
11
|
exports.couponTypeFromJSON = couponTypeFromJSON;
|
|
12
12
|
exports.couponTypeToJSON = couponTypeToJSON;
|
|
13
13
|
exports.optionDirectionFromJSON = optionDirectionFromJSON;
|
|
@@ -53,6 +53,7 @@ const wire_1 = require("@bufbuild/protobuf/wire");
|
|
|
53
53
|
const common_1 = require("./common");
|
|
54
54
|
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
55
55
|
exports.protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
56
|
+
exports.protobufFileName = "instruments.proto";
|
|
56
57
|
/** Тип купонов. */
|
|
57
58
|
var CouponType;
|
|
58
59
|
(function (CouponType) {
|
|
@@ -20501,142 +20502,142 @@ exports.GetAssetFundamentalsResponse_StatisticResponse = {
|
|
|
20501
20502
|
obj.currency = message.currency;
|
|
20502
20503
|
}
|
|
20503
20504
|
if (message.marketCapitalization !== 0) {
|
|
20504
|
-
obj.marketCapitalization = message.marketCapitalization;
|
|
20505
|
+
obj.marketCapitalization = floatToJson(message.marketCapitalization);
|
|
20505
20506
|
}
|
|
20506
20507
|
if (message.highPriceLast52Weeks !== 0) {
|
|
20507
|
-
obj.highPriceLast52Weeks = message.highPriceLast52Weeks;
|
|
20508
|
+
obj.highPriceLast52Weeks = floatToJson(message.highPriceLast52Weeks);
|
|
20508
20509
|
}
|
|
20509
20510
|
if (message.lowPriceLast52Weeks !== 0) {
|
|
20510
|
-
obj.lowPriceLast52Weeks = message.lowPriceLast52Weeks;
|
|
20511
|
+
obj.lowPriceLast52Weeks = floatToJson(message.lowPriceLast52Weeks);
|
|
20511
20512
|
}
|
|
20512
20513
|
if (message.averageDailyVolumeLast10Days !== 0) {
|
|
20513
|
-
obj.averageDailyVolumeLast10Days = message.averageDailyVolumeLast10Days;
|
|
20514
|
+
obj.averageDailyVolumeLast10Days = floatToJson(message.averageDailyVolumeLast10Days);
|
|
20514
20515
|
}
|
|
20515
20516
|
if (message.averageDailyVolumeLast4Weeks !== 0) {
|
|
20516
|
-
obj.averageDailyVolumeLast4Weeks = message.averageDailyVolumeLast4Weeks;
|
|
20517
|
+
obj.averageDailyVolumeLast4Weeks = floatToJson(message.averageDailyVolumeLast4Weeks);
|
|
20517
20518
|
}
|
|
20518
20519
|
if (message.beta !== 0) {
|
|
20519
|
-
obj.beta = message.beta;
|
|
20520
|
+
obj.beta = floatToJson(message.beta);
|
|
20520
20521
|
}
|
|
20521
20522
|
if (message.freeFloat !== 0) {
|
|
20522
|
-
obj.freeFloat = message.freeFloat;
|
|
20523
|
+
obj.freeFloat = floatToJson(message.freeFloat);
|
|
20523
20524
|
}
|
|
20524
20525
|
if (message.forwardAnnualDividendYield !== 0) {
|
|
20525
|
-
obj.forwardAnnualDividendYield = message.forwardAnnualDividendYield;
|
|
20526
|
+
obj.forwardAnnualDividendYield = floatToJson(message.forwardAnnualDividendYield);
|
|
20526
20527
|
}
|
|
20527
20528
|
if (message.sharesOutstanding !== 0) {
|
|
20528
|
-
obj.sharesOutstanding = message.sharesOutstanding;
|
|
20529
|
+
obj.sharesOutstanding = floatToJson(message.sharesOutstanding);
|
|
20529
20530
|
}
|
|
20530
20531
|
if (message.revenueTtm !== 0) {
|
|
20531
|
-
obj.revenueTtm = message.revenueTtm;
|
|
20532
|
+
obj.revenueTtm = floatToJson(message.revenueTtm);
|
|
20532
20533
|
}
|
|
20533
20534
|
if (message.ebitdaTtm !== 0) {
|
|
20534
|
-
obj.ebitdaTtm = message.ebitdaTtm;
|
|
20535
|
+
obj.ebitdaTtm = floatToJson(message.ebitdaTtm);
|
|
20535
20536
|
}
|
|
20536
20537
|
if (message.netIncomeTtm !== 0) {
|
|
20537
|
-
obj.netIncomeTtm = message.netIncomeTtm;
|
|
20538
|
+
obj.netIncomeTtm = floatToJson(message.netIncomeTtm);
|
|
20538
20539
|
}
|
|
20539
20540
|
if (message.epsTtm !== 0) {
|
|
20540
|
-
obj.epsTtm = message.epsTtm;
|
|
20541
|
+
obj.epsTtm = floatToJson(message.epsTtm);
|
|
20541
20542
|
}
|
|
20542
20543
|
if (message.dilutedEpsTtm !== 0) {
|
|
20543
|
-
obj.dilutedEpsTtm = message.dilutedEpsTtm;
|
|
20544
|
+
obj.dilutedEpsTtm = floatToJson(message.dilutedEpsTtm);
|
|
20544
20545
|
}
|
|
20545
20546
|
if (message.freeCashFlowTtm !== 0) {
|
|
20546
|
-
obj.freeCashFlowTtm = message.freeCashFlowTtm;
|
|
20547
|
+
obj.freeCashFlowTtm = floatToJson(message.freeCashFlowTtm);
|
|
20547
20548
|
}
|
|
20548
20549
|
if (message.fiveYearAnnualRevenueGrowthRate !== 0) {
|
|
20549
|
-
obj.fiveYearAnnualRevenueGrowthRate = message.fiveYearAnnualRevenueGrowthRate;
|
|
20550
|
+
obj.fiveYearAnnualRevenueGrowthRate = floatToJson(message.fiveYearAnnualRevenueGrowthRate);
|
|
20550
20551
|
}
|
|
20551
20552
|
if (message.threeYearAnnualRevenueGrowthRate !== 0) {
|
|
20552
|
-
obj.threeYearAnnualRevenueGrowthRate = message.threeYearAnnualRevenueGrowthRate;
|
|
20553
|
+
obj.threeYearAnnualRevenueGrowthRate = floatToJson(message.threeYearAnnualRevenueGrowthRate);
|
|
20553
20554
|
}
|
|
20554
20555
|
if (message.peRatioTtm !== 0) {
|
|
20555
|
-
obj.peRatioTtm = message.peRatioTtm;
|
|
20556
|
+
obj.peRatioTtm = floatToJson(message.peRatioTtm);
|
|
20556
20557
|
}
|
|
20557
20558
|
if (message.priceToSalesTtm !== 0) {
|
|
20558
|
-
obj.priceToSalesTtm = message.priceToSalesTtm;
|
|
20559
|
+
obj.priceToSalesTtm = floatToJson(message.priceToSalesTtm);
|
|
20559
20560
|
}
|
|
20560
20561
|
if (message.priceToBookTtm !== 0) {
|
|
20561
|
-
obj.priceToBookTtm = message.priceToBookTtm;
|
|
20562
|
+
obj.priceToBookTtm = floatToJson(message.priceToBookTtm);
|
|
20562
20563
|
}
|
|
20563
20564
|
if (message.priceToFreeCashFlowTtm !== 0) {
|
|
20564
|
-
obj.priceToFreeCashFlowTtm = message.priceToFreeCashFlowTtm;
|
|
20565
|
+
obj.priceToFreeCashFlowTtm = floatToJson(message.priceToFreeCashFlowTtm);
|
|
20565
20566
|
}
|
|
20566
20567
|
if (message.totalEnterpriseValueMrq !== 0) {
|
|
20567
|
-
obj.totalEnterpriseValueMrq = message.totalEnterpriseValueMrq;
|
|
20568
|
+
obj.totalEnterpriseValueMrq = floatToJson(message.totalEnterpriseValueMrq);
|
|
20568
20569
|
}
|
|
20569
20570
|
if (message.evToEbitdaMrq !== 0) {
|
|
20570
|
-
obj.evToEbitdaMrq = message.evToEbitdaMrq;
|
|
20571
|
+
obj.evToEbitdaMrq = floatToJson(message.evToEbitdaMrq);
|
|
20571
20572
|
}
|
|
20572
20573
|
if (message.netMarginMrq !== 0) {
|
|
20573
|
-
obj.netMarginMrq = message.netMarginMrq;
|
|
20574
|
+
obj.netMarginMrq = floatToJson(message.netMarginMrq);
|
|
20574
20575
|
}
|
|
20575
20576
|
if (message.netInterestMarginMrq !== 0) {
|
|
20576
|
-
obj.netInterestMarginMrq = message.netInterestMarginMrq;
|
|
20577
|
+
obj.netInterestMarginMrq = floatToJson(message.netInterestMarginMrq);
|
|
20577
20578
|
}
|
|
20578
20579
|
if (message.roe !== 0) {
|
|
20579
|
-
obj.roe = message.roe;
|
|
20580
|
+
obj.roe = floatToJson(message.roe);
|
|
20580
20581
|
}
|
|
20581
20582
|
if (message.roa !== 0) {
|
|
20582
|
-
obj.roa = message.roa;
|
|
20583
|
+
obj.roa = floatToJson(message.roa);
|
|
20583
20584
|
}
|
|
20584
20585
|
if (message.roic !== 0) {
|
|
20585
|
-
obj.roic = message.roic;
|
|
20586
|
+
obj.roic = floatToJson(message.roic);
|
|
20586
20587
|
}
|
|
20587
20588
|
if (message.totalDebtMrq !== 0) {
|
|
20588
|
-
obj.totalDebtMrq = message.totalDebtMrq;
|
|
20589
|
+
obj.totalDebtMrq = floatToJson(message.totalDebtMrq);
|
|
20589
20590
|
}
|
|
20590
20591
|
if (message.totalDebtToEquityMrq !== 0) {
|
|
20591
|
-
obj.totalDebtToEquityMrq = message.totalDebtToEquityMrq;
|
|
20592
|
+
obj.totalDebtToEquityMrq = floatToJson(message.totalDebtToEquityMrq);
|
|
20592
20593
|
}
|
|
20593
20594
|
if (message.totalDebtToEbitdaMrq !== 0) {
|
|
20594
|
-
obj.totalDebtToEbitdaMrq = message.totalDebtToEbitdaMrq;
|
|
20595
|
+
obj.totalDebtToEbitdaMrq = floatToJson(message.totalDebtToEbitdaMrq);
|
|
20595
20596
|
}
|
|
20596
20597
|
if (message.freeCashFlowToPrice !== 0) {
|
|
20597
|
-
obj.freeCashFlowToPrice = message.freeCashFlowToPrice;
|
|
20598
|
+
obj.freeCashFlowToPrice = floatToJson(message.freeCashFlowToPrice);
|
|
20598
20599
|
}
|
|
20599
20600
|
if (message.netDebtToEbitda !== 0) {
|
|
20600
|
-
obj.netDebtToEbitda = message.netDebtToEbitda;
|
|
20601
|
+
obj.netDebtToEbitda = floatToJson(message.netDebtToEbitda);
|
|
20601
20602
|
}
|
|
20602
20603
|
if (message.currentRatioMrq !== 0) {
|
|
20603
|
-
obj.currentRatioMrq = message.currentRatioMrq;
|
|
20604
|
+
obj.currentRatioMrq = floatToJson(message.currentRatioMrq);
|
|
20604
20605
|
}
|
|
20605
20606
|
if (message.fixedChargeCoverageRatioFy !== 0) {
|
|
20606
|
-
obj.fixedChargeCoverageRatioFy = message.fixedChargeCoverageRatioFy;
|
|
20607
|
+
obj.fixedChargeCoverageRatioFy = floatToJson(message.fixedChargeCoverageRatioFy);
|
|
20607
20608
|
}
|
|
20608
20609
|
if (message.dividendYieldDailyTtm !== 0) {
|
|
20609
|
-
obj.dividendYieldDailyTtm = message.dividendYieldDailyTtm;
|
|
20610
|
+
obj.dividendYieldDailyTtm = floatToJson(message.dividendYieldDailyTtm);
|
|
20610
20611
|
}
|
|
20611
20612
|
if (message.dividendRateTtm !== 0) {
|
|
20612
|
-
obj.dividendRateTtm = message.dividendRateTtm;
|
|
20613
|
+
obj.dividendRateTtm = floatToJson(message.dividendRateTtm);
|
|
20613
20614
|
}
|
|
20614
20615
|
if (message.dividendsPerShare !== 0) {
|
|
20615
|
-
obj.dividendsPerShare = message.dividendsPerShare;
|
|
20616
|
+
obj.dividendsPerShare = floatToJson(message.dividendsPerShare);
|
|
20616
20617
|
}
|
|
20617
20618
|
if (message.fiveYearsAverageDividendYield !== 0) {
|
|
20618
|
-
obj.fiveYearsAverageDividendYield = message.fiveYearsAverageDividendYield;
|
|
20619
|
+
obj.fiveYearsAverageDividendYield = floatToJson(message.fiveYearsAverageDividendYield);
|
|
20619
20620
|
}
|
|
20620
20621
|
if (message.fiveYearAnnualDividendGrowthRate !== 0) {
|
|
20621
|
-
obj.fiveYearAnnualDividendGrowthRate = message.fiveYearAnnualDividendGrowthRate;
|
|
20622
|
+
obj.fiveYearAnnualDividendGrowthRate = floatToJson(message.fiveYearAnnualDividendGrowthRate);
|
|
20622
20623
|
}
|
|
20623
20624
|
if (message.dividendPayoutRatioFy !== 0) {
|
|
20624
|
-
obj.dividendPayoutRatioFy = message.dividendPayoutRatioFy;
|
|
20625
|
+
obj.dividendPayoutRatioFy = floatToJson(message.dividendPayoutRatioFy);
|
|
20625
20626
|
}
|
|
20626
20627
|
if (message.buyBackTtm !== 0) {
|
|
20627
|
-
obj.buyBackTtm = message.buyBackTtm;
|
|
20628
|
+
obj.buyBackTtm = floatToJson(message.buyBackTtm);
|
|
20628
20629
|
}
|
|
20629
20630
|
if (message.oneYearAnnualRevenueGrowthRate !== 0) {
|
|
20630
|
-
obj.oneYearAnnualRevenueGrowthRate = message.oneYearAnnualRevenueGrowthRate;
|
|
20631
|
+
obj.oneYearAnnualRevenueGrowthRate = floatToJson(message.oneYearAnnualRevenueGrowthRate);
|
|
20631
20632
|
}
|
|
20632
20633
|
if (message.domicileIndicatorCode !== "") {
|
|
20633
20634
|
obj.domicileIndicatorCode = message.domicileIndicatorCode;
|
|
20634
20635
|
}
|
|
20635
20636
|
if (message.adrToCommonShareRatio !== 0) {
|
|
20636
|
-
obj.adrToCommonShareRatio = message.adrToCommonShareRatio;
|
|
20637
|
+
obj.adrToCommonShareRatio = floatToJson(message.adrToCommonShareRatio);
|
|
20637
20638
|
}
|
|
20638
20639
|
if (message.numberOfEmployees !== 0) {
|
|
20639
|
-
obj.numberOfEmployees = message.numberOfEmployees;
|
|
20640
|
+
obj.numberOfEmployees = floatToJson(message.numberOfEmployees);
|
|
20640
20641
|
}
|
|
20641
20642
|
if (message.exDividendDate !== undefined) {
|
|
20642
20643
|
obj.exDividendDate = message.exDividendDate.toISOString();
|
|
@@ -20648,19 +20649,19 @@ exports.GetAssetFundamentalsResponse_StatisticResponse = {
|
|
|
20648
20649
|
obj.fiscalPeriodEndDate = message.fiscalPeriodEndDate.toISOString();
|
|
20649
20650
|
}
|
|
20650
20651
|
if (message.revenueChangeFiveYears !== 0) {
|
|
20651
|
-
obj.revenueChangeFiveYears = message.revenueChangeFiveYears;
|
|
20652
|
+
obj.revenueChangeFiveYears = floatToJson(message.revenueChangeFiveYears);
|
|
20652
20653
|
}
|
|
20653
20654
|
if (message.epsChangeFiveYears !== 0) {
|
|
20654
|
-
obj.epsChangeFiveYears = message.epsChangeFiveYears;
|
|
20655
|
+
obj.epsChangeFiveYears = floatToJson(message.epsChangeFiveYears);
|
|
20655
20656
|
}
|
|
20656
20657
|
if (message.ebitdaChangeFiveYears !== 0) {
|
|
20657
|
-
obj.ebitdaChangeFiveYears = message.ebitdaChangeFiveYears;
|
|
20658
|
+
obj.ebitdaChangeFiveYears = floatToJson(message.ebitdaChangeFiveYears);
|
|
20658
20659
|
}
|
|
20659
20660
|
if (message.totalDebtChangeFiveYears !== 0) {
|
|
20660
|
-
obj.totalDebtChangeFiveYears = message.totalDebtChangeFiveYears;
|
|
20661
|
+
obj.totalDebtChangeFiveYears = floatToJson(message.totalDebtChangeFiveYears);
|
|
20661
20662
|
}
|
|
20662
20663
|
if (message.evToSales !== 0) {
|
|
20663
|
-
obj.evToSales = message.evToSales;
|
|
20664
|
+
obj.evToSales = floatToJson(message.evToSales);
|
|
20664
20665
|
}
|
|
20665
20666
|
return obj;
|
|
20666
20667
|
},
|
|
@@ -23118,7 +23119,7 @@ exports.GetInsiderDealsResponse_InsiderDeal = {
|
|
|
23118
23119
|
obj.investorPosition = message.investorPosition;
|
|
23119
23120
|
}
|
|
23120
23121
|
if (message.percentage !== 0) {
|
|
23121
|
-
obj.percentage = message.percentage;
|
|
23122
|
+
obj.percentage = floatToJson(message.percentage);
|
|
23122
23123
|
}
|
|
23123
23124
|
if (message.isOptionExecution !== false) {
|
|
23124
23125
|
obj.isOptionExecution = message.isOptionExecution;
|
|
@@ -24367,6 +24368,9 @@ exports.InstrumentsServiceDefinition = {
|
|
|
24367
24368
|
},
|
|
24368
24369
|
},
|
|
24369
24370
|
};
|
|
24371
|
+
function floatToJson(value) {
|
|
24372
|
+
return typeof value === "number" && !globalThis.Number.isFinite(value) ? globalThis.String(value) : value;
|
|
24373
|
+
}
|
|
24370
24374
|
function toTimestamp(date) {
|
|
24371
24375
|
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
24372
24376
|
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
@@ -2,6 +2,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
3
|
import { InstrumentStatus, Ping, PingDelaySettings, PingRequest, Quotation, SecurityTradingStatus } from "./common";
|
|
4
4
|
export declare const protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
5
|
+
export declare const protobufFileName = "marketdata.proto";
|
|
5
6
|
/** Тип операции со списком подписок. */
|
|
6
7
|
export declare enum SubscriptionAction {
|
|
7
8
|
/** SUBSCRIPTION_ACTION_UNSPECIFIED - Статус подписки не определен. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.18.0
|
|
5
5
|
// protoc v7.36.2
|
|
6
6
|
// source: marketdata.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.MarketDataStreamServiceDefinition = exports.MarketDataServiceDefinition = exports.MarketValue = exports.MarketValueStatistic = exports.MarketValueInstrument = exports.GetMarketValuesResponse = exports.GetMarketValuesRequest = exports.GetTechAnalysisResponse_TechAnalysisItem = exports.GetTechAnalysisResponse = exports.GetTechAnalysisRequest_Deviation = exports.GetTechAnalysisRequest_Smoothing = exports.GetTechAnalysisRequest = exports.InstrumentClosePriceResponse = exports.GetClosePricesResponse = exports.InstrumentClosePriceRequest = exports.GetClosePricesRequest = exports.GetMySubscriptions = exports.GetLastTradesResponse = exports.GetLastTradesRequest = exports.GetTradingStatusResponse = exports.GetTradingStatusesResponse = exports.GetTradingStatusesRequest = exports.GetTradingStatusRequest = exports.GetOrderBookResponse = exports.GetOrderBookRequest = void 0;
|
|
8
|
+
exports.LastPrice = exports.GetLastPricesResponse = exports.GetLastPricesRequest = exports.HistoricCandle = exports.GetCandlesResponse = exports.GetCandlesRequest = exports.TradingStatus = exports.Trade = exports.Order = exports.OrderBook = exports.Candle = exports.LastPriceSubscription = exports.SubscribeLastPriceResponse = exports.LastPriceInstrument = exports.SubscribeLastPriceRequest = exports.InfoSubscription = exports.SubscribeInfoResponse = exports.InfoInstrument = exports.SubscribeInfoRequest = exports.TradeSubscription = exports.SubscribeTradesResponse = exports.TradeInstrument = exports.SubscribeTradesRequest = exports.OrderBookSubscription = exports.SubscribeOrderBookResponse = exports.OrderBookInstrument = exports.SubscribeOrderBookRequest = exports.CandleSubscription = exports.SubscribeCandlesResponse = exports.CandleInstrument = exports.SubscribeCandlesRequest = exports.MarketDataResponse = exports.MarketDataServerSideStreamRequest = exports.MarketDataRequest = exports.GetTechAnalysisRequest_IndicatorType = exports.GetTechAnalysisRequest_TypeOfPrice = exports.GetTechAnalysisRequest_IndicatorInterval = exports.GetCandlesRequest_CandleSource = exports.LastPriceType = exports.OrderBookType = exports.MarketValueType = exports.CandleSource = exports.CandleInterval = exports.TradeDirection = exports.TradeSourceType = exports.SubscriptionStatus = exports.SubscriptionInterval = exports.SubscriptionAction = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
|
+
exports.MarketDataStreamServiceDefinition = exports.MarketDataServiceDefinition = exports.MarketValue = exports.MarketValueStatistic = exports.MarketValueInstrument = exports.GetMarketValuesResponse = exports.GetMarketValuesRequest = exports.GetTechAnalysisResponse_TechAnalysisItem = exports.GetTechAnalysisResponse = exports.GetTechAnalysisRequest_Deviation = exports.GetTechAnalysisRequest_Smoothing = exports.GetTechAnalysisRequest = exports.InstrumentClosePriceResponse = exports.GetClosePricesResponse = exports.InstrumentClosePriceRequest = exports.GetClosePricesRequest = exports.GetMySubscriptions = exports.GetLastTradesResponse = exports.GetLastTradesRequest = exports.GetTradingStatusResponse = exports.GetTradingStatusesResponse = exports.GetTradingStatusesRequest = exports.GetTradingStatusRequest = exports.GetOrderBookResponse = exports.GetOrderBookRequest = exports.OpenInterest = void 0;
|
|
10
10
|
exports.subscriptionActionFromJSON = subscriptionActionFromJSON;
|
|
11
11
|
exports.subscriptionActionToJSON = subscriptionActionToJSON;
|
|
12
12
|
exports.subscriptionIntervalFromJSON = subscriptionIntervalFromJSON;
|
|
@@ -40,6 +40,7 @@ const wire_1 = require("@bufbuild/protobuf/wire");
|
|
|
40
40
|
const common_1 = require("./common");
|
|
41
41
|
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
42
42
|
exports.protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
43
|
+
exports.protobufFileName = "marketdata.proto";
|
|
43
44
|
/** Тип операции со списком подписок. */
|
|
44
45
|
var SubscriptionAction;
|
|
45
46
|
(function (SubscriptionAction) {
|
|
@@ -8493,11 +8494,13 @@ exports.GetMarketValuesRequest = {
|
|
|
8493
8494
|
for (const v of message.instrumentId) {
|
|
8494
8495
|
writer.uint32(10).string(v);
|
|
8495
8496
|
}
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8497
|
+
if (message.values.length !== 0) {
|
|
8498
|
+
writer.uint32(18).fork();
|
|
8499
|
+
for (const v of message.values) {
|
|
8500
|
+
writer.int32(v);
|
|
8501
|
+
}
|
|
8502
|
+
writer.join();
|
|
8499
8503
|
}
|
|
8500
|
-
writer.join();
|
|
8501
8504
|
return writer;
|
|
8502
8505
|
},
|
|
8503
8506
|
decode(input, length) {
|
|
@@ -2,6 +2,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
3
|
import { InstrumentType, MoneyValue, Ping, PingDelaySettings, Quotation } from "./common";
|
|
4
4
|
export declare const protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
5
|
+
export declare const protobufFileName = "operations.proto";
|
|
5
6
|
/** Статус запрашиваемых операций. */
|
|
6
7
|
export declare enum OperationState {
|
|
7
8
|
/** OPERATION_STATE_UNSPECIFIED - Статус операции не определен. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.18.0
|
|
5
5
|
// protoc v7.36.2
|
|
6
6
|
// source: operations.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.OperationsStreamServiceDefinition = exports.OperationsServiceDefinition = exports.OperationData = exports.OperationsSubscriptionResult = exports.OperationsStreamResponse = exports.OperationsStreamRequest = exports.ChildOperationItem = exports.PositionsMoney = void 0;
|
|
8
|
+
exports.PositionsSubscriptionStatus = exports.PositionsSubscriptionResult = exports.PositionsStreamResponse = exports.PositionsStreamRequest = exports.OperationItemTrade = exports.OperationItemTrades = exports.OperationItem = exports.GetOperationsByCursorResponse = exports.GetOperationsByCursorRequest = exports.AccountSubscriptionStatus = exports.PortfolioSubscriptionResult = exports.PortfolioStreamResponse = exports.PortfolioStreamRequest = exports.DividendsForeignIssuerReport = exports.GetDividendsForeignIssuerReportResponse = exports.GenerateDividendsForeignIssuerReportResponse = exports.GetDividendsForeignIssuerReportRequest = exports.GenerateDividendsForeignIssuerReportRequest = exports.GetDividendsForeignIssuerResponse = exports.GetDividendsForeignIssuerRequest = exports.BrokerReport = exports.GetBrokerReportResponse = exports.GetBrokerReportRequest = exports.GenerateBrokerReportResponse = exports.GenerateBrokerReportRequest = exports.BrokerReportResponse = exports.BrokerReportRequest = exports.PositionsOptions = exports.PositionsFutures = exports.PositionsSecurities = exports.VirtualPortfolioPosition = exports.PortfolioPosition = exports.WithdrawLimitsResponse = exports.WithdrawLimitsRequest = exports.PositionsResponse = exports.PositionsRequest = exports.PortfolioResponse = exports.PortfolioRequest = exports.OperationTrade = exports.Operation = exports.OperationsResponse = exports.OperationsRequest = exports.PortfolioRequest_CurrencyRequest = exports.OperationsAccountSubscriptionStatus = exports.PositionsAccountSubscriptionStatus = exports.PortfolioSubscriptionStatus = exports.OperationType = exports.OperationState = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
|
+
exports.OperationsStreamServiceDefinition = exports.OperationsServiceDefinition = exports.OperationData = exports.OperationsSubscriptionResult = exports.OperationsStreamResponse = exports.OperationsStreamRequest = exports.ChildOperationItem = exports.PositionsMoney = exports.PositionData = void 0;
|
|
10
10
|
exports.operationStateFromJSON = operationStateFromJSON;
|
|
11
11
|
exports.operationStateToJSON = operationStateToJSON;
|
|
12
12
|
exports.operationTypeFromJSON = operationTypeFromJSON;
|
|
@@ -24,6 +24,7 @@ const wire_1 = require("@bufbuild/protobuf/wire");
|
|
|
24
24
|
const common_1 = require("./common");
|
|
25
25
|
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
26
26
|
exports.protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
27
|
+
exports.protobufFileName = "operations.proto";
|
|
27
28
|
/** Статус запрашиваемых операций. */
|
|
28
29
|
var OperationState;
|
|
29
30
|
(function (OperationState) {
|
|
@@ -6026,11 +6027,13 @@ exports.GetOperationsByCursorRequest = {
|
|
|
6026
6027
|
if (message.limit !== undefined) {
|
|
6027
6028
|
writer.uint32(96).int32(message.limit);
|
|
6028
6029
|
}
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6030
|
+
if (message.operationTypes.length !== 0) {
|
|
6031
|
+
writer.uint32(106).fork();
|
|
6032
|
+
for (const v of message.operationTypes) {
|
|
6033
|
+
writer.int32(v);
|
|
6034
|
+
}
|
|
6035
|
+
writer.join();
|
|
6032
6036
|
}
|
|
6033
|
-
writer.join();
|
|
6034
6037
|
if (message.state !== undefined) {
|
|
6035
6038
|
writer.uint32(112).int32(message.state);
|
|
6036
6039
|
}
|
|
@@ -3,6 +3,7 @@ import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
|
3
3
|
import { ErrorDetail, MoneyValue, Ping, PriceType, Quotation, ResponseMetadata, ResultSubscriptionStatus } from "./common";
|
|
4
4
|
import { StopOrderStatusOption } from "./stoporders";
|
|
5
5
|
export declare const protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
6
|
+
export declare const protobufFileName = "orders.proto";
|
|
6
7
|
/** Направление операции. */
|
|
7
8
|
export declare enum OrderDirection {
|
|
8
9
|
/** ORDER_DIRECTION_UNSPECIFIED - Значение не указано */
|
|
@@ -76,7 +77,7 @@ export declare function orderIdTypeToJSON(object: OrderIdType): string;
|
|
|
76
77
|
export interface TradesStreamRequest {
|
|
77
78
|
/** Идентификаторы счетов. */
|
|
78
79
|
accounts: string[];
|
|
79
|
-
/** Задержка (пинг) сообщений: 5000–
|
|
80
|
+
/** Задержка (пинг) сообщений: 5000–60 000 миллисекунд. Значение по умолчанию — 60 000. */
|
|
80
81
|
pingDelayMs?: number | undefined;
|
|
81
82
|
}
|
|
82
83
|
/** Информация о торговых поручениях. */
|
|
@@ -248,6 +249,8 @@ export interface GetOrderStateRequest {
|
|
|
248
249
|
priceType: PriceType;
|
|
249
250
|
/** Тип идентификатора заявки. */
|
|
250
251
|
orderIdType?: OrderIdType | undefined;
|
|
252
|
+
/** Дата выставления заявки в часовом поясе UTC. */
|
|
253
|
+
orderDate?: Date | undefined;
|
|
251
254
|
}
|
|
252
255
|
/** Запрос получения списка активных торговых поручений. */
|
|
253
256
|
export interface GetOrdersRequest {
|
|
@@ -428,7 +431,7 @@ export interface GetOrderPriceResponse_ExtraFuture {
|
|
|
428
431
|
export interface OrderStateStreamRequest {
|
|
429
432
|
/** Идентификаторы счетов. */
|
|
430
433
|
accounts: string[];
|
|
431
|
-
/** Задержка (пинг) сообщений:
|
|
434
|
+
/** Задержка (пинг) сообщений: 5000-60 000 миллисекунд. Значение по умолчанию — 60 000. */
|
|
432
435
|
pingDelayMillis?: number | undefined;
|
|
433
436
|
}
|
|
434
437
|
/** Информация по подпискам */
|