dexbot 1.3.3 → 1.4.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/dist/analysis/chart_utils.d.ts +11 -9
- package/dist/analysis/chart_utils.d.ts.map +1 -1
- package/dist/analysis/chart_utils.js +21 -16
- package/dist/analysis/chart_utils.js.map +1 -1
- package/dist/analysis/math_utils.d.ts +4 -13
- package/dist/analysis/math_utils.d.ts.map +1 -1
- package/dist/analysis/math_utils.js +16 -18
- package/dist/analysis/math_utils.js.map +1 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts +3 -7
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts.map +1 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js +38 -34
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js.map +1 -1
- package/dist/analysis/trend_detection/hurst_analyzer.d.ts +1 -4
- package/dist/analysis/trend_detection/hurst_analyzer.d.ts.map +1 -1
- package/dist/analysis/trend_detection/hurst_analyzer.js +10 -7
- package/dist/analysis/trend_detection/hurst_analyzer.js.map +1 -1
- package/dist/analysis/trend_detection/kalman_trend_analyzer.d.ts +6 -6
- package/dist/analysis/trend_detection/kalman_trend_analyzer.d.ts.map +1 -1
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js +23 -15
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js.map +1 -1
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.d.ts +12 -13
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.d.ts.map +1 -1
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js +16 -16
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js.map +1 -1
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.d.ts +1 -4
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.d.ts.map +1 -1
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js +10 -7
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js.map +1 -1
- package/dist/bot.d.ts.map +1 -1
- package/dist/bot.js +6 -13
- package/dist/bot.js.map +1 -1
- package/dist/credential-daemon.d.ts.map +1 -1
- package/dist/credential-daemon.js +21 -22
- package/dist/credential-daemon.js.map +1 -1
- package/dist/dexbot.d.ts.map +1 -1
- package/dist/dexbot.js +16 -15
- package/dist/dexbot.js.map +1 -1
- package/dist/market_adapter/ama_signal_runner.d.ts +1 -1
- package/dist/market_adapter/ama_signal_runner.d.ts.map +1 -1
- package/dist/market_adapter/ama_signal_runner.js +8 -20
- package/dist/market_adapter/ama_signal_runner.js.map +1 -1
- package/dist/market_adapter/candle_utils.d.ts +2 -10
- package/dist/market_adapter/candle_utils.d.ts.map +1 -1
- package/dist/market_adapter/candle_utils.js +7 -8
- package/dist/market_adapter/candle_utils.js.map +1 -1
- package/dist/market_adapter/core/asymmetric_bounds.d.ts +12 -7
- package/dist/market_adapter/core/asymmetric_bounds.d.ts.map +1 -1
- package/dist/market_adapter/core/asymmetric_bounds.js +4 -5
- package/dist/market_adapter/core/asymmetric_bounds.js.map +1 -1
- package/dist/market_adapter/core/config_normalizers.d.ts +4 -9
- package/dist/market_adapter/core/config_normalizers.d.ts.map +1 -1
- package/dist/market_adapter/core/config_normalizers.js +9 -9
- package/dist/market_adapter/core/config_normalizers.js.map +1 -1
- package/dist/market_adapter/core/kibana_candles.d.ts +16 -20
- package/dist/market_adapter/core/kibana_candles.d.ts.map +1 -1
- package/dist/market_adapter/core/kibana_candles.js +16 -15
- package/dist/market_adapter/core/kibana_candles.js.map +1 -1
- package/dist/market_adapter/core/kibana_client.d.ts +8 -11
- package/dist/market_adapter/core/kibana_client.d.ts.map +1 -1
- package/dist/market_adapter/core/kibana_client.js +13 -11
- package/dist/market_adapter/core/kibana_client.js.map +1 -1
- package/dist/market_adapter/core/kibana_market_candles.d.ts +5 -12
- package/dist/market_adapter/core/kibana_market_candles.d.ts.map +1 -1
- package/dist/market_adapter/core/kibana_market_candles.js +12 -21
- package/dist/market_adapter/core/kibana_market_candles.js.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.d.ts +75 -53
- package/dist/market_adapter/core/market_adapter_service.d.ts.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.js +102 -98
- package/dist/market_adapter/core/market_adapter_service.js.map +1 -1
- package/dist/market_adapter/core/strategies/ama.d.ts +21 -1
- package/dist/market_adapter/core/strategies/ama.d.ts.map +1 -1
- package/dist/market_adapter/core/strategies/ama.js +10 -10
- package/dist/market_adapter/core/strategies/ama.js.map +1 -1
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts +7 -11
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts.map +1 -1
- package/dist/market_adapter/core/strategies/ama_slope_model.js +23 -30
- package/dist/market_adapter/core/strategies/ama_slope_model.js.map +1 -1
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts +5 -4
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts.map +1 -1
- package/dist/market_adapter/core/strategies/atr/calculator.js +5 -3
- package/dist/market_adapter/core/strategies/atr/calculator.js.map +1 -1
- package/dist/market_adapter/core/strategies/collateral_manager.d.ts +4 -7
- package/dist/market_adapter/core/strategies/collateral_manager.d.ts.map +1 -1
- package/dist/market_adapter/core/strategies/collateral_manager.js +5 -4
- package/dist/market_adapter/core/strategies/collateral_manager.js.map +1 -1
- package/dist/market_adapter/core/strategies/regime_gate.d.ts +11 -19
- package/dist/market_adapter/core/strategies/regime_gate.d.ts.map +1 -1
- package/dist/market_adapter/core/strategies/regime_gate.js +22 -22
- package/dist/market_adapter/core/strategies/regime_gate.js.map +1 -1
- package/dist/market_adapter/index.d.ts +24 -2
- package/dist/market_adapter/index.d.ts.map +1 -1
- package/dist/market_adapter/index.js +82 -56
- package/dist/market_adapter/index.js.map +1 -1
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js +26 -37
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts +4 -12
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.js +100 -66
- package/dist/market_adapter/inputs/fetch_lp_data.js.map +1 -1
- package/dist/market_adapter/inputs/kibana_source.d.ts +4 -9
- package/dist/market_adapter/inputs/kibana_source.d.ts.map +1 -1
- package/dist/market_adapter/inputs/kibana_source.js +17 -18
- package/dist/market_adapter/inputs/kibana_source.js.map +1 -1
- package/dist/market_adapter/interval_utils.d.ts +1 -4
- package/dist/market_adapter/interval_utils.d.ts.map +1 -1
- package/dist/market_adapter/interval_utils.js +2 -3
- package/dist/market_adapter/interval_utils.js.map +1 -1
- package/dist/market_adapter/log_format.d.ts +1 -9
- package/dist/market_adapter/log_format.d.ts.map +1 -1
- package/dist/market_adapter/log_format.js +7 -8
- package/dist/market_adapter/log_format.js.map +1 -1
- package/dist/market_adapter/lp_chart_core.d.ts +1 -4
- package/dist/market_adapter/lp_chart_core.d.ts.map +1 -1
- package/dist/market_adapter/lp_chart_core.js +22 -20
- package/dist/market_adapter/lp_chart_core.js.map +1 -1
- package/dist/market_adapter/lp_chart_runner.d.ts +13 -24
- package/dist/market_adapter/lp_chart_runner.d.ts.map +1 -1
- package/dist/market_adapter/lp_chart_runner.js +58 -56
- package/dist/market_adapter/lp_chart_runner.js.map +1 -1
- package/dist/market_adapter/lp_chart_strategy_loader.d.ts +4 -17
- package/dist/market_adapter/lp_chart_strategy_loader.d.ts.map +1 -1
- package/dist/market_adapter/lp_chart_strategy_loader.js +36 -36
- package/dist/market_adapter/lp_chart_strategy_loader.js.map +1 -1
- package/dist/market_adapter/market_adapter.d.ts +51 -72
- package/dist/market_adapter/market_adapter.d.ts.map +1 -1
- package/dist/market_adapter/market_adapter.js +227 -192
- package/dist/market_adapter/market_adapter.js.map +1 -1
- package/dist/market_adapter/merge_lp_data.js +17 -16
- package/dist/market_adapter/merge_lp_data.js.map +1 -1
- package/dist/market_adapter/test_helpers.d.ts +9 -13
- package/dist/market_adapter/test_helpers.d.ts.map +1 -1
- package/dist/market_adapter/test_helpers.js +14 -14
- package/dist/market_adapter/test_helpers.js.map +1 -1
- package/dist/market_adapter/utils/adapter_client.d.ts +6 -14
- package/dist/market_adapter/utils/adapter_client.d.ts.map +1 -1
- package/dist/market_adapter/utils/adapter_client.js +16 -15
- package/dist/market_adapter/utils/adapter_client.js.map +1 -1
- package/dist/market_adapter/utils/atomic_write.d.ts +2 -5
- package/dist/market_adapter/utils/atomic_write.d.ts.map +1 -1
- package/dist/market_adapter/utils/atomic_write.js +5 -5
- package/dist/market_adapter/utils/atomic_write.js.map +1 -1
- package/dist/market_adapter/utils/chain.d.ts +19 -21
- package/dist/market_adapter/utils/chain.d.ts.map +1 -1
- package/dist/market_adapter/utils/chain.js +15 -16
- package/dist/market_adapter/utils/chain.js.map +1 -1
- package/dist/market_adapter/utils/data_discovery.d.ts +1 -4
- package/dist/market_adapter/utils/data_discovery.d.ts.map +1 -1
- package/dist/market_adapter/utils/data_discovery.js +10 -10
- package/dist/market_adapter/utils/data_discovery.js.map +1 -1
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts +1 -6
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts.map +1 -1
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js +14 -14
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js.map +1 -1
- package/dist/market_adapter/utils/file_lock.d.ts +1 -7
- package/dist/market_adapter/utils/file_lock.d.ts.map +1 -1
- package/dist/market_adapter/utils/file_lock.js +21 -25
- package/dist/market_adapter/utils/file_lock.js.map +1 -1
- package/dist/market_adapter/utils/native_history.d.ts +12 -12
- package/dist/market_adapter/utils/native_history.d.ts.map +1 -1
- package/dist/market_adapter/utils/native_history.js +15 -15
- package/dist/market_adapter/utils/native_history.js.map +1 -1
- package/dist/market_adapter/utils/paths.d.ts +2 -4
- package/dist/market_adapter/utils/paths.d.ts.map +1 -1
- package/dist/market_adapter/utils/paths.js +6 -5
- package/dist/market_adapter/utils/paths.js.map +1 -1
- package/dist/modules/account_bots.d.ts +7 -8
- package/dist/modules/account_bots.d.ts.map +1 -1
- package/dist/modules/account_bots.js +92 -114
- package/dist/modules/account_bots.js.map +1 -1
- package/dist/modules/account_orders.d.ts +5 -9
- package/dist/modules/account_orders.d.ts.map +1 -1
- package/dist/modules/account_orders.js +69 -32
- package/dist/modules/account_orders.js.map +1 -1
- package/dist/modules/authority_resolver.d.ts +32 -1
- package/dist/modules/authority_resolver.d.ts.map +1 -1
- package/dist/modules/authority_resolver.js +18 -12
- package/dist/modules/authority_resolver.js.map +1 -1
- package/dist/modules/bitshares-native/chain_client.d.ts +3 -8
- package/dist/modules/bitshares-native/chain_client.d.ts.map +1 -1
- package/dist/modules/bitshares-native/chain_client.js +21 -16
- package/dist/modules/bitshares-native/chain_client.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts +21 -29
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.browser.js +72 -38
- package/dist/modules/bitshares-native/crypto/ecc.browser.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.d.ts +9 -36
- package/dist/modules/bitshares-native/crypto/ecc.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.js +40 -83
- package/dist/modules/bitshares-native/crypto/ecc.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc_selector.d.ts +14 -1
- package/dist/modules/bitshares-native/crypto/ecc_selector.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc_selector.js +5 -3
- package/dist/modules/bitshares-native/crypto/ecc_selector.js.map +1 -1
- package/dist/modules/bitshares-native/index.d.ts +10 -2
- package/dist/modules/bitshares-native/index.d.ts.map +1 -1
- package/dist/modules/bitshares-native/index.js +68 -31
- package/dist/modules/bitshares-native/index.js.map +1 -1
- package/dist/modules/bitshares-native/lru_cache.d.ts +1 -4
- package/dist/modules/bitshares-native/lru_cache.d.ts.map +1 -1
- package/dist/modules/bitshares-native/lru_cache.js +6 -3
- package/dist/modules/bitshares-native/lru_cache.js.map +1 -1
- package/dist/modules/bitshares-native/resolvers.d.ts +3 -6
- package/dist/modules/bitshares-native/resolvers.d.ts.map +1 -1
- package/dist/modules/bitshares-native/resolvers.js +11 -9
- package/dist/modules/bitshares-native/resolvers.js.map +1 -1
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts +53 -55
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/chain_constants.js +28 -27
- package/dist/modules/bitshares-native/serial/chain_constants.js.map +1 -1
- package/dist/modules/bitshares-native/serial/index.d.ts +5 -9
- package/dist/modules/bitshares-native/serial/index.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/index.js +46 -12
- package/dist/modules/bitshares-native/serial/index.js.map +1 -1
- package/dist/modules/bitshares-native/serial/operations.d.ts +102 -100
- package/dist/modules/bitshares-native/serial/operations.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/operations.js +473 -471
- package/dist/modules/bitshares-native/serial/operations.js.map +1 -1
- package/dist/modules/bitshares-native/serial/serializer.d.ts +2 -7
- package/dist/modules/bitshares-native/serial/serializer.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/serializer.js +8 -3
- package/dist/modules/bitshares-native/serial/serializer.js.map +1 -1
- package/dist/modules/bitshares-native/serial/types.d.ts +26 -41
- package/dist/modules/bitshares-native/serial/types.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/types.js +76 -42
- package/dist/modules/bitshares-native/serial/types.js.map +1 -1
- package/dist/modules/bitshares-native/signing_client.d.ts +1 -5
- package/dist/modules/bitshares-native/signing_client.d.ts.map +1 -1
- package/dist/modules/bitshares-native/signing_client.js +49 -11
- package/dist/modules/bitshares-native/signing_client.js.map +1 -1
- package/dist/modules/bitshares-native/subscriptions.d.ts +1 -4
- package/dist/modules/bitshares-native/subscriptions.d.ts.map +1 -1
- package/dist/modules/bitshares-native/subscriptions.js +47 -84
- package/dist/modules/bitshares-native/subscriptions.js.map +1 -1
- package/dist/modules/bitshares-native/transport.d.ts +1 -8
- package/dist/modules/bitshares-native/transport.d.ts.map +1 -1
- package/dist/modules/bitshares-native/transport.js +22 -15
- package/dist/modules/bitshares-native/transport.js.map +1 -1
- package/dist/modules/bitshares-native/tx/builder.d.ts +3 -8
- package/dist/modules/bitshares-native/tx/builder.d.ts.map +1 -1
- package/dist/modules/bitshares-native/tx/builder.js +61 -23
- package/dist/modules/bitshares-native/tx/builder.js.map +1 -1
- package/dist/modules/bitshares-native/tx/tx_cache.d.ts +1 -8
- package/dist/modules/bitshares-native/tx/tx_cache.d.ts.map +1 -1
- package/dist/modules/bitshares-native/tx/tx_cache.js +21 -17
- package/dist/modules/bitshares-native/tx/tx_cache.js.map +1 -1
- package/dist/modules/bitshares_client.d.ts +12 -23
- package/dist/modules/bitshares_client.d.ts.map +1 -1
- package/dist/modules/bitshares_client.js +109 -56
- package/dist/modules/bitshares_client.js.map +1 -1
- package/dist/modules/bot_settings.d.ts +1 -13
- package/dist/modules/bot_settings.d.ts.map +1 -1
- package/dist/modules/bot_settings.js +34 -34
- package/dist/modules/bot_settings.js.map +1 -1
- package/dist/modules/bots_file_lock.d.ts +3 -9
- package/dist/modules/bots_file_lock.d.ts.map +1 -1
- package/dist/modules/bots_file_lock.js +8 -9
- package/dist/modules/bots_file_lock.js.map +1 -1
- package/dist/modules/chain_keys.d.ts +7 -39
- package/dist/modules/chain_keys.d.ts.map +1 -1
- package/dist/modules/chain_keys.js +126 -90
- package/dist/modules/chain_keys.js.map +1 -1
- package/dist/modules/chain_orders.d.ts +46 -52
- package/dist/modules/chain_orders.d.ts.map +1 -1
- package/dist/modules/chain_orders.js +152 -104
- package/dist/modules/chain_orders.js.map +1 -1
- package/dist/modules/config.d.ts +50 -57
- package/dist/modules/config.d.ts.map +1 -1
- package/dist/modules/config.js +28 -24
- package/dist/modules/config.js.map +1 -1
- package/dist/modules/constants.d.ts +492 -494
- package/dist/modules/constants.d.ts.map +1 -1
- package/dist/modules/constants.js +69 -39
- package/dist/modules/constants.js.map +1 -1
- package/dist/modules/cr_planner.d.ts +1 -13
- package/dist/modules/cr_planner.d.ts.map +1 -1
- package/dist/modules/cr_planner.js +28 -28
- package/dist/modules/cr_planner.js.map +1 -1
- package/dist/modules/credential_policy.d.ts +18 -33
- package/dist/modules/credential_policy.d.ts.map +1 -1
- package/dist/modules/credential_policy.js +114 -87
- package/dist/modules/credential_policy.js.map +1 -1
- package/dist/modules/credential_runtime.d.ts +11 -21
- package/dist/modules/credential_runtime.d.ts.map +1 -1
- package/dist/modules/credential_runtime.js +40 -40
- package/dist/modules/credential_runtime.js.map +1 -1
- package/dist/modules/credential_session_cache.d.ts +8 -8
- package/dist/modules/credential_session_cache.d.ts.map +1 -1
- package/dist/modules/credential_session_cache.js +41 -8
- package/dist/modules/credential_session_cache.js.map +1 -1
- package/dist/modules/credit_runtime.d.ts +51 -316
- package/dist/modules/credit_runtime.d.ts.map +1 -1
- package/dist/modules/credit_runtime.js +257 -183
- package/dist/modules/credit_runtime.js.map +1 -1
- package/dist/modules/crypto/browser_provider.js +6 -6
- package/dist/modules/crypto/browser_provider.js.map +1 -1
- package/dist/modules/crypto/index.d.ts.map +1 -1
- package/dist/modules/crypto/index.js +2 -0
- package/dist/modules/crypto/index.js.map +1 -1
- package/dist/modules/crypto/sync.js +3 -3
- package/dist/modules/crypto/sync.js.map +1 -1
- package/dist/modules/dexbot_class.d.ts +262 -81
- package/dist/modules/dexbot_class.d.ts.map +1 -1
- package/dist/modules/dexbot_class.js +156 -123
- package/dist/modules/dexbot_class.js.map +1 -1
- package/dist/modules/dexbot_cow_runtime.d.ts +12 -9
- package/dist/modules/dexbot_cow_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_cow_runtime.js +144 -63
- package/dist/modules/dexbot_cow_runtime.js.map +1 -1
- package/dist/modules/dexbot_credential_client.d.ts +5 -11
- package/dist/modules/dexbot_credential_client.d.ts.map +1 -1
- package/dist/modules/dexbot_credential_client.js +32 -30
- package/dist/modules/dexbot_credential_client.js.map +1 -1
- package/dist/modules/dexbot_fill_runtime.d.ts +5 -20
- package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_fill_runtime.js +55 -116
- package/dist/modules/dexbot_fill_runtime.js.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.d.ts +12 -12
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.js +55 -45
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
- package/dist/modules/dexbot_startup_runtime.d.ts +2 -6
- package/dist/modules/dexbot_startup_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_startup_runtime.js +122 -91
- package/dist/modules/dexbot_startup_runtime.js.map +1 -1
- package/dist/modules/dexbot_state_recovery.d.ts +11 -24
- package/dist/modules/dexbot_state_recovery.d.ts.map +1 -1
- package/dist/modules/dexbot_state_recovery.js +62 -28
- package/dist/modules/dexbot_state_recovery.js.map +1 -1
- package/dist/modules/fund_registry.d.ts +1 -13
- package/dist/modules/fund_registry.d.ts.map +1 -1
- package/dist/modules/fund_registry.js +23 -21
- package/dist/modules/fund_registry.js.map +1 -1
- package/dist/modules/general_settings.d.ts +3 -7
- package/dist/modules/general_settings.d.ts.map +1 -1
- package/dist/modules/general_settings.js +15 -14
- package/dist/modules/general_settings.js.map +1 -1
- package/dist/modules/graceful_shutdown.d.ts +1 -6
- package/dist/modules/graceful_shutdown.d.ts.map +1 -1
- package/dist/modules/graceful_shutdown.js +19 -16
- package/dist/modules/graceful_shutdown.js.map +1 -1
- package/dist/modules/key_store.d.ts.map +1 -1
- package/dist/modules/key_store.js +53 -19
- package/dist/modules/key_store.js.map +1 -1
- package/dist/modules/launcher/bot_supervisor.d.ts +23 -66
- package/dist/modules/launcher/bot_supervisor.d.ts.map +1 -1
- package/dist/modules/launcher/bot_supervisor.js +115 -107
- package/dist/modules/launcher/bot_supervisor.js.map +1 -1
- package/dist/modules/launcher/child_env.d.ts +2 -5
- package/dist/modules/launcher/child_env.d.ts.map +1 -1
- package/dist/modules/launcher/child_env.js +4 -4
- package/dist/modules/launcher/child_env.js.map +1 -1
- package/dist/modules/launcher/credential_bootstrap.d.ts +4 -8
- package/dist/modules/launcher/credential_bootstrap.d.ts.map +1 -1
- package/dist/modules/launcher/credential_bootstrap.js +30 -26
- package/dist/modules/launcher/credential_bootstrap.js.map +1 -1
- package/dist/modules/launcher/credential_daemon.d.ts +8 -15
- package/dist/modules/launcher/credential_daemon.d.ts.map +1 -1
- package/dist/modules/launcher/credential_daemon.js +72 -41
- package/dist/modules/launcher/credential_daemon.js.map +1 -1
- package/dist/modules/launcher/credential_secret.d.ts +1 -4
- package/dist/modules/launcher/credential_secret.d.ts.map +1 -1
- package/dist/modules/launcher/credential_secret.js +36 -4
- package/dist/modules/launcher/credential_secret.js.map +1 -1
- package/dist/modules/launcher/foreign_cred_daemon.d.ts +32 -1
- package/dist/modules/launcher/foreign_cred_daemon.d.ts.map +1 -1
- package/dist/modules/launcher/foreign_cred_daemon.js +25 -28
- package/dist/modules/launcher/foreign_cred_daemon.js.map +1 -1
- package/dist/modules/launcher/headless_password.d.ts +1 -4
- package/dist/modules/launcher/headless_password.d.ts.map +1 -1
- package/dist/modules/launcher/headless_password.js +11 -11
- package/dist/modules/launcher/headless_password.js.map +1 -1
- package/dist/modules/launcher/launch_modes.d.ts +15 -14
- package/dist/modules/launcher/launch_modes.d.ts.map +1 -1
- package/dist/modules/launcher/launch_modes.js +8 -8
- package/dist/modules/launcher/launch_modes.js.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.d.ts +10 -19
- package/dist/modules/launcher/market_adapter_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.js +33 -33
- package/dist/modules/launcher/market_adapter_runtime.js.map +1 -1
- package/dist/modules/launcher/market_adapter_watchdog.d.ts +10 -17
- package/dist/modules/launcher/market_adapter_watchdog.d.ts.map +1 -1
- package/dist/modules/launcher/market_adapter_watchdog.js +42 -38
- package/dist/modules/launcher/market_adapter_watchdog.js.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.d.ts +28 -57
- package/dist/modules/launcher/monolithic_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.js +135 -108
- package/dist/modules/launcher/monolithic_runtime.js.map +1 -1
- package/dist/modules/launcher/runtime_entry.d.ts +5 -10
- package/dist/modules/launcher/runtime_entry.d.ts.map +1 -1
- package/dist/modules/launcher/runtime_entry.js +14 -14
- package/dist/modules/launcher/runtime_entry.js.map +1 -1
- package/dist/modules/launcher/status_reporting.d.ts +17 -37
- package/dist/modules/launcher/status_reporting.d.ts.map +1 -1
- package/dist/modules/launcher/status_reporting.js +35 -34
- package/dist/modules/launcher/status_reporting.js.map +1 -1
- package/dist/modules/launcher/supervisor_control.d.ts +1 -4
- package/dist/modules/launcher/supervisor_control.d.ts.map +1 -1
- package/dist/modules/launcher/supervisor_control.js +9 -4
- package/dist/modules/launcher/supervisor_control.js.map +1 -1
- package/dist/modules/logger.d.ts +3 -1
- package/dist/modules/logger.d.ts.map +1 -1
- package/dist/modules/logger.js +38 -28
- package/dist/modules/logger.js.map +1 -1
- package/dist/modules/market_adapter_whitelist.d.ts +2 -10
- package/dist/modules/market_adapter_whitelist.d.ts.map +1 -1
- package/dist/modules/market_adapter_whitelist.js +18 -16
- package/dist/modules/market_adapter_whitelist.js.map +1 -1
- package/dist/modules/node_health_cache.d.ts +2 -12
- package/dist/modules/node_health_cache.d.ts.map +1 -1
- package/dist/modules/node_health_cache.js +24 -24
- package/dist/modules/node_health_cache.js.map +1 -1
- package/dist/modules/node_manager.d.ts +1 -1
- package/dist/modules/node_manager.d.ts.map +1 -1
- package/dist/modules/node_manager.js +44 -38
- package/dist/modules/node_manager.js.map +1 -1
- package/dist/modules/order/accounting.d.ts +12 -12
- package/dist/modules/order/accounting.d.ts.map +1 -1
- package/dist/modules/order/accounting.js +111 -76
- package/dist/modules/order/accounting.js.map +1 -1
- package/dist/modules/order/async_lock.d.ts +1 -2
- package/dist/modules/order/async_lock.d.ts.map +1 -1
- package/dist/modules/order/async_lock.js +4 -4
- package/dist/modules/order/async_lock.js.map +1 -1
- package/dist/modules/order/export.d.ts +8 -14
- package/dist/modules/order/export.d.ts.map +1 -1
- package/dist/modules/order/export.js +77 -42
- package/dist/modules/order/export.js.map +1 -1
- package/dist/modules/order/format.d.ts +17 -22
- package/dist/modules/order/format.d.ts.map +1 -1
- package/dist/modules/order/format.js +25 -31
- package/dist/modules/order/format.js.map +1 -1
- package/dist/modules/order/grid.d.ts +18 -104
- package/dist/modules/order/grid.d.ts.map +1 -1
- package/dist/modules/order/grid.js +346 -212
- package/dist/modules/order/grid.js.map +1 -1
- package/dist/modules/order/grid_reconcile.d.ts +8 -8
- package/dist/modules/order/grid_reconcile.d.ts.map +1 -1
- package/dist/modules/order/grid_reconcile.js +80 -23
- package/dist/modules/order/grid_reconcile.js.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.d.ts +224 -1
- package/dist/modules/order/grid_reconcile_internal.d.ts.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.js +159 -73
- package/dist/modules/order/grid_reconcile_internal.js.map +1 -1
- package/dist/modules/order/index.d.ts +1 -1
- package/dist/modules/order/index.d.ts.map +1 -1
- package/dist/modules/order/index.js +42 -7
- package/dist/modules/order/index.js.map +1 -1
- package/dist/modules/order/logger.d.ts +6 -16
- package/dist/modules/order/logger.d.ts.map +1 -1
- package/dist/modules/order/logger.js +76 -53
- package/dist/modules/order/logger.js.map +1 -1
- package/dist/modules/order/logger_state.d.ts +4 -4
- package/dist/modules/order/logger_state.d.ts.map +1 -1
- package/dist/modules/order/logger_state.js +3 -1
- package/dist/modules/order/logger_state.js.map +1 -1
- package/dist/modules/order/manager.d.ts +160 -37
- package/dist/modules/order/manager.d.ts.map +1 -1
- package/dist/modules/order/manager.js +166 -128
- package/dist/modules/order/manager.js.map +1 -1
- package/dist/modules/order/processed_fill_store.d.ts +6 -10
- package/dist/modules/order/processed_fill_store.d.ts.map +1 -1
- package/dist/modules/order/processed_fill_store.js +10 -9
- package/dist/modules/order/processed_fill_store.js.map +1 -1
- package/dist/modules/order/strategy.d.ts +3 -3
- package/dist/modules/order/strategy.d.ts.map +1 -1
- package/dist/modules/order/strategy.js +29 -27
- package/dist/modules/order/strategy.js.map +1 -1
- package/dist/modules/order/sync_engine.d.ts +9 -19
- package/dist/modules/order/sync_engine.d.ts.map +1 -1
- package/dist/modules/order/sync_engine.js +176 -126
- package/dist/modules/order/sync_engine.js.map +1 -1
- package/dist/modules/order/utils/math.d.ts +55 -85
- package/dist/modules/order/utils/math.d.ts.map +1 -1
- package/dist/modules/order/utils/math.js +155 -88
- package/dist/modules/order/utils/math.js.map +1 -1
- package/dist/modules/order/utils/order.d.ts +27 -72
- package/dist/modules/order/utils/order.d.ts.map +1 -1
- package/dist/modules/order/utils/order.js +144 -105
- package/dist/modules/order/utils/order.js.map +1 -1
- package/dist/modules/order/utils/system.d.ts +103 -45
- package/dist/modules/order/utils/system.d.ts.map +1 -1
- package/dist/modules/order/utils/system.js +271 -150
- package/dist/modules/order/utils/system.js.map +1 -1
- package/dist/modules/order/utils/validate.d.ts +35 -47
- package/dist/modules/order/utils/validate.d.ts.map +1 -1
- package/dist/modules/order/utils/validate.js +233 -116
- package/dist/modules/order/utils/validate.js.map +1 -1
- package/dist/modules/order/working_grid.d.ts +1 -4
- package/dist/modules/order/working_grid.d.ts.map +1 -1
- package/dist/modules/order/working_grid.js +9 -7
- package/dist/modules/order/working_grid.js.map +1 -1
- package/dist/modules/path_api.js +2 -2
- package/dist/modules/path_api.js.map +1 -1
- package/dist/modules/paths.d.ts +50 -56
- package/dist/modules/paths.d.ts.map +1 -1
- package/dist/modules/paths.js +66 -57
- package/dist/modules/paths.js.map +1 -1
- package/dist/modules/process_discovery.d.ts +1 -1
- package/dist/modules/process_discovery.d.ts.map +1 -1
- package/dist/modules/process_discovery.js +7 -7
- package/dist/modules/process_discovery.js.map +1 -1
- package/dist/modules/runtime.d.ts +1 -1
- package/dist/modules/runtime.d.ts.map +1 -1
- package/dist/modules/runtime.js +4 -4
- package/dist/modules/runtime.js.map +1 -1
- package/dist/modules/runtime_settings.d.ts +1 -0
- package/dist/modules/runtime_settings.d.ts.map +1 -1
- package/dist/modules/runtime_settings.js +15 -10
- package/dist/modules/runtime_settings.js.map +1 -1
- package/dist/modules/settings_merge.d.ts +1 -4
- package/dist/modules/settings_merge.d.ts.map +1 -1
- package/dist/modules/settings_merge.js +2 -1
- package/dist/modules/settings_merge.js.map +1 -1
- package/dist/modules/storage/browser_adapter.d.ts +7 -3
- package/dist/modules/storage/browser_adapter.d.ts.map +1 -1
- package/dist/modules/storage/browser_adapter.js +2 -0
- package/dist/modules/storage/browser_adapter.js.map +1 -1
- package/dist/modules/storage/index.d.ts +2 -2
- package/dist/modules/storage/index.d.ts.map +1 -1
- package/dist/modules/storage/index.js +2 -5
- package/dist/modules/storage/index.js.map +1 -1
- package/dist/modules/storage/node_adapter.d.ts +3 -3
- package/dist/modules/storage/node_adapter.d.ts.map +1 -1
- package/dist/modules/storage/node_adapter.js +9 -7
- package/dist/modules/storage/node_adapter.js.map +1 -1
- package/dist/modules/storage/types.d.ts +13 -10
- package/dist/modules/storage/types.d.ts.map +1 -1
- package/dist/modules/types.d.ts +0 -2
- package/dist/modules/types.d.ts.map +1 -1
- package/dist/modules/utils/base58check.d.ts +1 -9
- package/dist/modules/utils/base58check.d.ts.map +1 -1
- package/dist/modules/utils/base58check.js +14 -16
- package/dist/modules/utils/base58check.js.map +1 -1
- package/dist/modules/utils/build_dir.d.ts +2 -5
- package/dist/modules/utils/build_dir.d.ts.map +1 -1
- package/dist/modules/utils/build_dir.js +6 -3
- package/dist/modules/utils/build_dir.js.map +1 -1
- package/dist/modules/utils/errors.d.ts +2 -0
- package/dist/modules/utils/errors.d.ts.map +1 -0
- package/dist/modules/utils/errors.js +12 -0
- package/dist/modules/utils/errors.js.map +1 -0
- package/dist/modules/utils/fs_utils.d.ts +1 -8
- package/dist/modules/utils/fs_utils.d.ts.map +1 -1
- package/dist/modules/utils/fs_utils.js +8 -3
- package/dist/modules/utils/fs_utils.js.map +1 -1
- package/dist/modules/utils/math_utils.d.ts +2 -6
- package/dist/modules/utils/math_utils.d.ts.map +1 -1
- package/dist/modules/utils/math_utils.js +6 -2
- package/dist/modules/utils/math_utils.js.map +1 -1
- package/dist/modules/validate_profiles.d.ts +1 -11
- package/dist/modules/validate_profiles.d.ts.map +1 -1
- package/dist/modules/validate_profiles.js +25 -27
- package/dist/modules/validate_profiles.js.map +1 -1
- package/dist/pm2.d.ts +7 -6
- package/dist/pm2.d.ts.map +1 -1
- package/dist/pm2.js +132 -106
- package/dist/pm2.js.map +1 -1
- package/dist/scripts/analyze-git.d.ts.map +1 -1
- package/dist/scripts/analyze-git.js +15 -11
- package/dist/scripts/analyze-git.js.map +1 -1
- package/dist/scripts/analyze-orders.d.ts +146 -1
- package/dist/scripts/analyze-orders.d.ts.map +1 -1
- package/dist/scripts/analyze-orders.js +81 -105
- package/dist/scripts/analyze-orders.js.map +1 -1
- package/dist/scripts/diagnose-pool-history.d.ts.map +1 -1
- package/dist/scripts/diagnose-pool-history.js +9 -8
- package/dist/scripts/diagnose-pool-history.js.map +1 -1
- package/dist/scripts/divergence-calc.d.ts.map +1 -1
- package/dist/scripts/divergence-calc.js +11 -8
- package/dist/scripts/divergence-calc.js.map +1 -1
- package/dist/scripts/fix-err-message.d.ts +3 -0
- package/dist/scripts/fix-err-message.d.ts.map +1 -0
- package/dist/scripts/fix-err-message.js +198 -0
- package/dist/scripts/fix-err-message.js.map +1 -0
- package/dist/scripts/generate_lp_chart.d.ts +2 -9
- package/dist/scripts/generate_lp_chart.d.ts.map +1 -1
- package/dist/scripts/generate_lp_chart.js +14 -10
- package/dist/scripts/generate_lp_chart.js.map +1 -1
- package/dist/scripts/generate_mainnet_corpus_report.js +4 -4
- package/dist/scripts/generate_mainnet_corpus_report.js.map +1 -1
- package/dist/scripts/generate_market_adapter_whitelist.d.ts +17 -1
- package/dist/scripts/generate_market_adapter_whitelist.d.ts.map +1 -1
- package/dist/scripts/generate_market_adapter_whitelist.js +23 -20
- package/dist/scripts/generate_market_adapter_whitelist.js.map +1 -1
- package/dist/scripts/migrate_bot_keys.d.ts +1 -4
- package/dist/scripts/migrate_bot_keys.d.ts.map +1 -1
- package/dist/scripts/migrate_bot_keys.js +48 -124
- package/dist/scripts/migrate_bot_keys.js.map +1 -1
- package/dist/scripts/native_release_gates.d.ts.map +1 -1
- package/dist/scripts/native_release_gates.js +18 -14
- package/dist/scripts/native_release_gates.js.map +1 -1
- package/dist/scripts/print_grid.js +1 -1
- package/dist/scripts/print_grid.js.map +1 -1
- package/dist/scripts/run-tests.js +1 -0
- package/dist/scripts/run-tests.js.map +1 -1
- package/dist/scripts/runner.d.ts +1 -11
- package/dist/scripts/runner.d.ts.map +1 -1
- package/dist/scripts/runner.js +21 -19
- package/dist/scripts/runner.js.map +1 -1
- package/dist/scripts/test-credit-renewal.d.ts.map +1 -1
- package/dist/scripts/test-credit-renewal.js +2 -1
- package/dist/scripts/test-credit-renewal.js.map +1 -1
- package/dist/scripts/update.d.ts.map +1 -1
- package/dist/scripts/update.js +85 -79
- package/dist/scripts/update.js.map +1 -1
- package/dist/scripts/validate_bots.js +2 -2
- package/dist/scripts/validate_bots.js.map +1 -1
- package/dist/unlock.d.ts +4 -17
- package/dist/unlock.d.ts.map +1 -1
- package/dist/unlock.js +141 -108
- package/dist/unlock.js.map +1 -1
- package/package.json +1 -1
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.d.ts +0 -3
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.d.ts.map +0 -1
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.js +0 -149
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.js.map +0 -1
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.d.ts +0 -3
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.d.ts.map +0 -1
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js +0 -387
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js.map +0 -1
- package/dist/analysis/ama_fitting/calibrate_convergence_er.d.ts +0 -3
- package/dist/analysis/ama_fitting/calibrate_convergence_er.d.ts.map +0 -1
- package/dist/analysis/ama_fitting/calibrate_convergence_er.js +0 -200
- package/dist/analysis/ama_fitting/calibrate_convergence_er.js.map +0 -1
- package/dist/analysis/ama_fitting/fetch_lp_candles.d.ts +0 -3
- package/dist/analysis/ama_fitting/fetch_lp_candles.d.ts.map +0 -1
- package/dist/analysis/ama_fitting/fetch_lp_candles.js +0 -212
- package/dist/analysis/ama_fitting/fetch_lp_candles.js.map +0 -1
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.d.ts +0 -31
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.d.ts.map +0 -1
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.js +0 -249
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.js.map +0 -1
- package/dist/analysis/ama_fitting/optimizer_high_resolution.d.ts +0 -2
- package/dist/analysis/ama_fitting/optimizer_high_resolution.d.ts.map +0 -1
- package/dist/analysis/ama_fitting/optimizer_high_resolution.js +0 -782
- package/dist/analysis/ama_fitting/optimizer_high_resolution.js.map +0 -1
- package/dist/analysis/analyze_derivatives.d.ts +0 -95
- package/dist/analysis/analyze_derivatives.d.ts.map +0 -1
- package/dist/analysis/analyze_derivatives.js +0 -295
- package/dist/analysis/analyze_derivatives.js.map +0 -1
- package/dist/analysis/analyze_dynamic_weight.d.ts +0 -14
- package/dist/analysis/analyze_dynamic_weight.d.ts.map +0 -1
- package/dist/analysis/analyze_dynamic_weight.js +0 -207
- package/dist/analysis/analyze_dynamic_weight.js.map +0 -1
- package/dist/analysis/analyze_kalman.d.ts +0 -13
- package/dist/analysis/analyze_kalman.d.ts.map +0 -1
- package/dist/analysis/analyze_kalman.js +0 -123
- package/dist/analysis/analyze_kalman.js.map +0 -1
- package/dist/analysis/analyze_regime.d.ts +0 -20
- package/dist/analysis/analyze_regime.d.ts.map +0 -1
- package/dist/analysis/analyze_regime.js +0 -139
- package/dist/analysis/analyze_regime.js.map +0 -1
- package/dist/analysis/analyze_regime_windows.d.ts +0 -19
- package/dist/analysis/analyze_regime_windows.d.ts.map +0 -1
- package/dist/analysis/analyze_regime_windows.js +0 -413
- package/dist/analysis/analyze_regime_windows.js.map +0 -1
- package/dist/analysis/analyze_risk_profile.d.ts +0 -3
- package/dist/analysis/analyze_risk_profile.d.ts.map +0 -1
- package/dist/analysis/analyze_risk_profile.js +0 -159
- package/dist/analysis/analyze_risk_profile.js.map +0 -1
- package/dist/analysis/analyze_trade_heatmap.d.ts +0 -3
- package/dist/analysis/analyze_trade_heatmap.d.ts.map +0 -1
- package/dist/analysis/analyze_trade_heatmap.js +0 -367
- package/dist/analysis/analyze_trade_heatmap.js.map +0 -1
- package/dist/analysis/analyze_volatility.d.ts +0 -22
- package/dist/analysis/analyze_volatility.d.ts.map +0 -1
- package/dist/analysis/analyze_volatility.js +0 -172
- package/dist/analysis/analyze_volatility.js.map +0 -1
- package/dist/analysis/bot_fitting/backtest_ama_sweep.d.ts +0 -99
- package/dist/analysis/bot_fitting/backtest_ama_sweep.d.ts.map +0 -1
- package/dist/analysis/bot_fitting/backtest_ama_sweep.js +0 -804
- package/dist/analysis/bot_fitting/backtest_ama_sweep.js.map +0 -1
- package/dist/analysis/bot_fitting/backtest_bot_fitting.d.ts +0 -2
- package/dist/analysis/bot_fitting/backtest_bot_fitting.d.ts.map +0 -1
- package/dist/analysis/bot_fitting/backtest_bot_fitting.js +0 -347
- package/dist/analysis/bot_fitting/backtest_bot_fitting.js.map +0 -1
- package/dist/analysis/bot_fitting/shared_utils.d.ts +0 -15
- package/dist/analysis/bot_fitting/shared_utils.d.ts.map +0 -1
- package/dist/analysis/bot_fitting/shared_utils.js +0 -48
- package/dist/analysis/bot_fitting/shared_utils.js.map +0 -1
- package/dist/analysis/bot_key_utils.d.ts +0 -22
- package/dist/analysis/bot_key_utils.d.ts.map +0 -1
- package/dist/analysis/bot_key_utils.js +0 -162
- package/dist/analysis/bot_key_utils.js.map +0 -1
- package/dist/analysis/bot_usage/discover_bot_accounts.d.ts +0 -3
- package/dist/analysis/bot_usage/discover_bot_accounts.d.ts.map +0 -1
- package/dist/analysis/bot_usage/discover_bot_accounts.js +0 -498
- package/dist/analysis/bot_usage/discover_bot_accounts.js.map +0 -1
- package/dist/analysis/bot_usage/kibana_bot_queries.d.ts +0 -546
- package/dist/analysis/bot_usage/kibana_bot_queries.d.ts.map +0 -1
- package/dist/analysis/bot_usage/kibana_bot_queries.js +0 -427
- package/dist/analysis/bot_usage/kibana_bot_queries.js.map +0 -1
- package/dist/analysis/derivative_chart_generator.d.ts +0 -18
- package/dist/analysis/derivative_chart_generator.d.ts.map +0 -1
- package/dist/analysis/derivative_chart_generator.js +0 -896
- package/dist/analysis/derivative_chart_generator.js.map +0 -1
- package/dist/analysis/price_sources.d.ts +0 -34
- package/dist/analysis/price_sources.d.ts.map +0 -1
- package/dist/analysis/price_sources.js +0 -103
- package/dist/analysis/price_sources.js.map +0 -1
- package/dist/analysis/trade_profitability.d.ts +0 -115
- package/dist/analysis/trade_profitability.d.ts.map +0 -1
- package/dist/analysis/trade_profitability.js +0 -1247
- package/dist/analysis/trade_profitability.js.map +0 -1
- package/dist/analysis/tradingview/analyze_tradingview.d.ts +0 -36
- package/dist/analysis/tradingview/analyze_tradingview.d.ts.map +0 -1
- package/dist/analysis/tradingview/analyze_tradingview.js +0 -172
- package/dist/analysis/tradingview/analyze_tradingview.js.map +0 -1
- package/dist/analysis/trend_detection/derivative_analyzer.d.ts +0 -250
- package/dist/analysis/trend_detection/derivative_analyzer.d.ts.map +0 -1
- package/dist/analysis/trend_detection/derivative_analyzer.js +0 -903
- package/dist/analysis/trend_detection/derivative_analyzer.js.map +0 -1
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.d.ts +0 -6
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.d.ts.map +0 -1
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js +0 -1450
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js.map +0 -1
- package/dist/analysis/trend_detection/kalman_chart_generator.d.ts +0 -6
- package/dist/analysis/trend_detection/kalman_chart_generator.d.ts.map +0 -1
- package/dist/analysis/trend_detection/kalman_chart_generator.js +0 -408
- package/dist/analysis/trend_detection/kalman_chart_generator.js.map +0 -1
- package/dist/analysis/trend_detection/regime_chart_generator.d.ts +0 -6
- package/dist/analysis/trend_detection/regime_chart_generator.d.ts.map +0 -1
- package/dist/analysis/trend_detection/regime_chart_generator.js +0 -345
- package/dist/analysis/trend_detection/regime_chart_generator.js.map +0 -1
- package/dist/analysis/trend_detection/tests/test_kalman_trend.d.ts +0 -2
- package/dist/analysis/trend_detection/tests/test_kalman_trend.d.ts.map +0 -1
- package/dist/analysis/trend_detection/tests/test_kalman_trend.js +0 -130
- package/dist/analysis/trend_detection/tests/test_kalman_trend.js.map +0 -1
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.d.ts +0 -2
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.d.ts.map +0 -1
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.js +0 -38
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.js.map +0 -1
- package/dist/analysis/trend_detection/volatility_chart_generator.d.ts +0 -6
- package/dist/analysis/trend_detection/volatility_chart_generator.d.ts.map +0 -1
- package/dist/analysis/trend_detection/volatility_chart_generator.js +0 -732
- package/dist/analysis/trend_detection/volatility_chart_generator.js.map +0 -1
|
@@ -112,7 +112,6 @@ declare class DEXBot {
|
|
|
112
112
|
_credentialRecoveryDeferredTimer: any;
|
|
113
113
|
_structuralGridResyncTimer: any;
|
|
114
114
|
_structuralGridResyncRunning: boolean;
|
|
115
|
-
_ghostOrderCancelAttempted: Set<string> | null;
|
|
116
115
|
_dustHealthCheckTimer: any;
|
|
117
116
|
_lastBroadcastHeartbeatAt: number | undefined;
|
|
118
117
|
_lastDeferredDustCount: number;
|
|
@@ -140,7 +139,7 @@ declare class DEXBot {
|
|
|
140
139
|
* @param {string} [level='info'] - The log level ('debug', 'info', 'warn', 'error').
|
|
141
140
|
* @private
|
|
142
141
|
*/
|
|
143
|
-
_log(msg: any, level?:
|
|
142
|
+
_log(msg: any, level?: any): void;
|
|
144
143
|
/**
|
|
145
144
|
* Log a warning message to the console with the bot's prefix.
|
|
146
145
|
* @param {string} msg - The message to log.
|
|
@@ -152,7 +151,7 @@ declare class DEXBot {
|
|
|
152
151
|
* Used during startup to ensure bot begins in a stable state.
|
|
153
152
|
* @private
|
|
154
153
|
*/
|
|
155
|
-
_persistAndRecoverIfNeeded(): Promise<
|
|
154
|
+
_persistAndRecoverIfNeeded(): Promise<void>;
|
|
156
155
|
/**
|
|
157
156
|
* Snapshot the recently queued fill keys as a plain object for crash-durable persistence.
|
|
158
157
|
* Merges with any existing snapshot to avoid losing keys that were evicted from the
|
|
@@ -160,30 +159,36 @@ declare class DEXBot {
|
|
|
160
159
|
* Only includes entries within the dedup window to avoid writing stale keys.
|
|
161
160
|
* @returns {Record<string, number>}
|
|
162
161
|
*/
|
|
163
|
-
_getRecentFillKeysSnapshot():
|
|
162
|
+
_getRecentFillKeysSnapshot(): Record<string, number>;
|
|
164
163
|
/**
|
|
165
164
|
* Get current pipeline signal state for congestion checks.
|
|
166
165
|
* @returns {{incomingFillQueueLength: number, shadowLocks: number, batchInFlight: boolean, recoveryInFlight: boolean, broadcasting: boolean}}
|
|
167
166
|
*/
|
|
168
|
-
_getPipelineSignals():
|
|
167
|
+
_getPipelineSignals(): {
|
|
168
|
+
incomingFillQueueLength: any;
|
|
169
|
+
shadowLocks: any;
|
|
170
|
+
batchInFlight: any;
|
|
171
|
+
recoveryInFlight: any;
|
|
172
|
+
broadcasting: any;
|
|
173
|
+
};
|
|
169
174
|
/**
|
|
170
175
|
* Mark that grid activity occurred (updates idle timer).
|
|
171
176
|
* @param {string} [reason='activity'] - Reason for activity
|
|
172
177
|
* @returns {void}
|
|
173
178
|
*/
|
|
174
|
-
_markGridActivity(reason?:
|
|
179
|
+
_markGridActivity(reason?: any): void;
|
|
175
180
|
/**
|
|
176
181
|
* Trigger a full state recovery sync (fetch chain + sync from open orders + persist).
|
|
177
182
|
* @param {string} [reason='state recovery sync'] - Reason for recovery
|
|
178
183
|
* @returns {Promise<void>}
|
|
179
184
|
*/
|
|
180
|
-
_triggerStateRecoverySync(reason?:
|
|
185
|
+
_triggerStateRecoverySync(reason?: any): Promise<void>;
|
|
181
186
|
/**
|
|
182
187
|
* Abort the current flow if an illegal state signal was raised.
|
|
183
188
|
* @param {string} flowContext - Description of the flow being aborted
|
|
184
189
|
* @returns {Promise<boolean>} True if flow was aborted
|
|
185
190
|
*/
|
|
186
|
-
_abortFlowIfIllegalState(flowContext: any): Promise<
|
|
191
|
+
_abortFlowIfIllegalState(flowContext: any): Promise<boolean>;
|
|
187
192
|
/**
|
|
188
193
|
* Handle a hard abort from batch processing due to illegal state or accounting failure.
|
|
189
194
|
* @param {Error} err - The error that triggered the abort
|
|
@@ -191,34 +196,57 @@ declare class DEXBot {
|
|
|
191
196
|
* @param {number} [opsCount=0] - Number of operations in the batch
|
|
192
197
|
* @returns {Promise<Object>} Abort result object
|
|
193
198
|
*/
|
|
194
|
-
_handleBatchHardAbort(err: any, phase?:
|
|
199
|
+
_handleBatchHardAbort(err: any, phase?: any, opsCount?: any): Promise<{
|
|
200
|
+
abortedForIllegalState: boolean;
|
|
201
|
+
executed: boolean;
|
|
202
|
+
hadRotation: boolean;
|
|
203
|
+
} | {
|
|
204
|
+
abortedForAccountingFailure: boolean;
|
|
205
|
+
executed: boolean;
|
|
206
|
+
hadRotation: boolean;
|
|
207
|
+
} | null>;
|
|
195
208
|
/**
|
|
196
209
|
* Apply recoverable grid updates (order virtualisation) after a batch failure.
|
|
197
210
|
* @param {Array<Object>} updates - Array of order update objects
|
|
198
211
|
* @param {string} [context='recoverable-grid-update'] - Context label for logging
|
|
199
212
|
* @returns {Promise<number>} Number of updates applied
|
|
200
213
|
*/
|
|
201
|
-
_applyRecoverableGridUpdates(updates: any, context?:
|
|
214
|
+
_applyRecoverableGridUpdates(updates: any, context?: any): Promise<number>;
|
|
202
215
|
/**
|
|
203
216
|
* Recover from explicit stale order errors by virtualizing affected grid slots.
|
|
204
217
|
* @param {Set<string>|string[]} staleOrderIds - Set or array of stale chain order IDs
|
|
205
218
|
* @param {string} [reason='stale order cleanup'] - Reason for cleanup
|
|
206
219
|
* @returns {Promise<{executed: boolean, hadRotation: boolean, stale: boolean, recoveredByVirtualization?: boolean}>}
|
|
207
220
|
*/
|
|
208
|
-
_recoverExplicitStaleOrders(staleOrderIds: any, reason?:
|
|
221
|
+
_recoverExplicitStaleOrders(staleOrderIds: any, reason?: any): Promise<{
|
|
222
|
+
executed: boolean;
|
|
223
|
+
hadRotation: boolean;
|
|
224
|
+
stale: boolean;
|
|
225
|
+
recoveredByVirtualization?: undefined;
|
|
226
|
+
} | {
|
|
227
|
+
executed: boolean;
|
|
228
|
+
hadRotation: boolean;
|
|
229
|
+
stale: boolean;
|
|
230
|
+
recoveredByVirtualization: boolean;
|
|
231
|
+
}>;
|
|
209
232
|
/**
|
|
210
233
|
* Recover from on-chain size drift detected during batch broadcast.
|
|
211
234
|
* @param {Error} err - The size drift error
|
|
212
235
|
* @returns {Promise<{executed: boolean, hadRotation: boolean, recoveredBySync: boolean, reason: string}>}
|
|
213
236
|
*/
|
|
214
|
-
_recoverBatchSizeDrift(err: any, opContexts?: any
|
|
237
|
+
_recoverBatchSizeDrift(err: any, opContexts?: any): Promise<{
|
|
238
|
+
executed: boolean;
|
|
239
|
+
hadRotation: boolean;
|
|
240
|
+
recoveredBySync: boolean;
|
|
241
|
+
reason: string;
|
|
242
|
+
}>;
|
|
215
243
|
/**
|
|
216
244
|
* Extract chain order IDs from opContexts for operations that could
|
|
217
245
|
* trigger a size-drift error (size-update and rotation update).
|
|
218
246
|
* @param {Array<Object>} opContexts
|
|
219
247
|
* @returns {string[]} Unique chain order IDs
|
|
220
248
|
*/
|
|
221
|
-
_extractSizeDriftOrderIds(opContexts: any):
|
|
249
|
+
_extractSizeDriftOrderIds(opContexts: any): unknown[];
|
|
222
250
|
/**
|
|
223
251
|
* Reload the entire grid from the persisted on-disk snapshot and reconcile
|
|
224
252
|
* with current chain state. Mirrors the startup recovery path.
|
|
@@ -229,7 +257,13 @@ declare class DEXBot {
|
|
|
229
257
|
*
|
|
230
258
|
* @returns {Promise<{success: boolean, reason?: string}>}
|
|
231
259
|
*/
|
|
232
|
-
_recoverFromPersistedGrid(): Promise<
|
|
260
|
+
_recoverFromPersistedGrid(): Promise<{
|
|
261
|
+
success: boolean;
|
|
262
|
+
reason: string;
|
|
263
|
+
} | {
|
|
264
|
+
success: boolean;
|
|
265
|
+
reason?: undefined;
|
|
266
|
+
}>;
|
|
233
267
|
/**
|
|
234
268
|
* Reject a corrupted grid snapshot when catastrophic fund drift is detected.
|
|
235
269
|
* Shared between startup and recovery paths to avoid duplicating the
|
|
@@ -238,7 +272,7 @@ declare class DEXBot {
|
|
|
238
272
|
* @param {'startup'|'recovery'} context - Controls log prefix.
|
|
239
273
|
* @returns {Promise<boolean>} True if the snapshot was rejected (cleared).
|
|
240
274
|
*/
|
|
241
|
-
_rejectCorruptedGridSnapshot(context: any): Promise<
|
|
275
|
+
_rejectCorruptedGridSnapshot(context: any): Promise<boolean>;
|
|
242
276
|
/**
|
|
243
277
|
* Attempt to repair size-drift for specific order IDs by reading their
|
|
244
278
|
* current on-chain state and correcting the local grid directly.
|
|
@@ -246,26 +280,32 @@ declare class DEXBot {
|
|
|
246
280
|
* @param {string[]} orderIds
|
|
247
281
|
* @returns {Promise<boolean>} True if all affected orders were repaired
|
|
248
282
|
*/
|
|
249
|
-
_targetedOrderRepair(orderIds: any): Promise<
|
|
283
|
+
_targetedOrderRepair(orderIds: any): Promise<boolean>;
|
|
250
284
|
/**
|
|
251
285
|
* Initialize bot state from storage and blockchain.
|
|
252
286
|
* Consolidates common initialization logic for start() and startWithPrivateKey().
|
|
253
287
|
* @returns {{persistedGrid: Object, persistedBtsFeesOwed: number, persistedBoundaryIdx: number, persistedBtsBalance: number, persistedRecentFillKeys: Object}}
|
|
254
288
|
* @private
|
|
255
289
|
*/
|
|
256
|
-
_initializeStartupState(): Promise<
|
|
290
|
+
_initializeStartupState(): Promise<{
|
|
291
|
+
persistedGrid: any;
|
|
292
|
+
persistedBtsFeesOwed: any;
|
|
293
|
+
persistedBoundaryIdx: any;
|
|
294
|
+
persistedBtsBalance: any;
|
|
295
|
+
persistedRecentFillKeys: any;
|
|
296
|
+
}>;
|
|
257
297
|
/**
|
|
258
298
|
* Wire processed fill tracking into the manager.
|
|
259
299
|
* @returns {void}
|
|
260
300
|
*/
|
|
261
|
-
_wireProcessedFillTracking():
|
|
301
|
+
_wireProcessedFillTracking(): void;
|
|
262
302
|
/**
|
|
263
303
|
* Flush pending processed fill persistence to disk.
|
|
264
304
|
* @param {string} [reason='manual'] - Reason for flushing
|
|
265
305
|
* @param {Object} [options={}] - Flush options
|
|
266
306
|
* @returns {Promise<void>}
|
|
267
307
|
*/
|
|
268
|
-
_flushProcessedFillPersistence(reason?:
|
|
308
|
+
_flushProcessedFillPersistence(reason?: any, options?: any): Promise<void>;
|
|
269
309
|
/**
|
|
270
310
|
* Flush persistence for specific fill keys.
|
|
271
311
|
* @param {Set<string>|string[]} fillKeys - Fill keys to persist
|
|
@@ -273,20 +313,20 @@ declare class DEXBot {
|
|
|
273
313
|
* @param {Object} [options={}] - Flush options
|
|
274
314
|
* @returns {Promise<void>}
|
|
275
315
|
*/
|
|
276
|
-
_flushProcessedFillPersistenceForKeys(fillKeys: any, reason?:
|
|
316
|
+
_flushProcessedFillPersistenceForKeys(fillKeys: any, reason?: any, options?: any): Promise<void>;
|
|
277
317
|
/**
|
|
278
318
|
* Discard pending persistence for specific fill keys.
|
|
279
319
|
* @param {string[]|Set<string>} fillKeys - Fill keys to discard
|
|
280
320
|
* @returns {void}
|
|
281
321
|
*/
|
|
282
|
-
_discardPendingProcessedFillPersistence(fillKeys: any):
|
|
322
|
+
_discardPendingProcessedFillPersistence(fillKeys: any): void;
|
|
283
323
|
/**
|
|
284
324
|
* Build a fallback deduplication key for an orphan fill (when standard keys are unavailable).
|
|
285
325
|
* @param {Object} fill - Fill event object
|
|
286
326
|
* @returns {string|null} Fallback key or null
|
|
287
327
|
*/
|
|
288
|
-
_buildOrphanFillFallbackKey(fill: any):
|
|
289
|
-
_isNewFillKey(fillKey: any, processedFillKeys: any, label?:
|
|
328
|
+
_buildOrphanFillFallbackKey(fill: any): string | null;
|
|
329
|
+
_isNewFillKey(fillKey: any, processedFillKeys: any, label?: any, orderId?: any): boolean;
|
|
290
330
|
/**
|
|
291
331
|
* Apply replay-safe fill accounting using a provided fill key.
|
|
292
332
|
* @param {Object} fill - Fill event object
|
|
@@ -315,7 +355,22 @@ declare class DEXBot {
|
|
|
315
355
|
replayLevel?: string;
|
|
316
356
|
persistenceMode?: any;
|
|
317
357
|
allowOrphanFallbackKey?: boolean;
|
|
318
|
-
}): Promise<
|
|
358
|
+
}): Promise<{
|
|
359
|
+
status: string;
|
|
360
|
+
fillKey: any;
|
|
361
|
+
usedFallbackKey?: undefined;
|
|
362
|
+
error?: undefined;
|
|
363
|
+
} | {
|
|
364
|
+
status: string;
|
|
365
|
+
fillKey: any;
|
|
366
|
+
usedFallbackKey: boolean;
|
|
367
|
+
error?: undefined;
|
|
368
|
+
} | {
|
|
369
|
+
status: string;
|
|
370
|
+
fillKey: any;
|
|
371
|
+
error: any;
|
|
372
|
+
usedFallbackKey?: undefined;
|
|
373
|
+
}>;
|
|
319
374
|
/**
|
|
320
375
|
* Apply replay-safe fill accounting for tracked fills (those with a valid grid order).
|
|
321
376
|
* @param {Object} fill - Fill event object
|
|
@@ -332,7 +387,22 @@ declare class DEXBot {
|
|
|
332
387
|
logger?: any;
|
|
333
388
|
replayMessage?: any;
|
|
334
389
|
persistenceMode?: any;
|
|
335
|
-
}): Promise<
|
|
390
|
+
}): Promise<{
|
|
391
|
+
status: string;
|
|
392
|
+
fillKey: any;
|
|
393
|
+
usedFallbackKey?: undefined;
|
|
394
|
+
error?: undefined;
|
|
395
|
+
} | {
|
|
396
|
+
status: string;
|
|
397
|
+
fillKey: any;
|
|
398
|
+
usedFallbackKey: boolean;
|
|
399
|
+
error?: undefined;
|
|
400
|
+
} | {
|
|
401
|
+
status: string;
|
|
402
|
+
fillKey: any;
|
|
403
|
+
error: any;
|
|
404
|
+
usedFallbackKey?: undefined;
|
|
405
|
+
}>;
|
|
336
406
|
/**
|
|
337
407
|
* Apply replay-safe fill accounting for orphan fills (grid order not found).
|
|
338
408
|
* @param {Object} fill - Fill event object
|
|
@@ -349,20 +419,45 @@ declare class DEXBot {
|
|
|
349
419
|
logger?: any;
|
|
350
420
|
replayMessage?: any;
|
|
351
421
|
persistenceMode?: any;
|
|
352
|
-
}): Promise<
|
|
422
|
+
}): Promise<{
|
|
423
|
+
status: string;
|
|
424
|
+
fillKey: any;
|
|
425
|
+
usedFallbackKey?: undefined;
|
|
426
|
+
error?: undefined;
|
|
427
|
+
} | {
|
|
428
|
+
status: string;
|
|
429
|
+
fillKey: any;
|
|
430
|
+
usedFallbackKey: boolean;
|
|
431
|
+
error?: undefined;
|
|
432
|
+
} | {
|
|
433
|
+
status: string;
|
|
434
|
+
fillKey: any;
|
|
435
|
+
error: any;
|
|
436
|
+
usedFallbackKey?: undefined;
|
|
437
|
+
}>;
|
|
353
438
|
/**
|
|
354
439
|
* Refresh dynamic weight distribution from market adapter.
|
|
355
440
|
* @param {string} [context='runtime'] - Context label for logging
|
|
356
441
|
* @returns {import('./types').DynamicWeightRefreshResult|null}
|
|
357
442
|
*/
|
|
358
|
-
_refreshDynamicWeightDistribution(context?:
|
|
443
|
+
_refreshDynamicWeightDistribution(context?: any): {
|
|
444
|
+
applied: boolean;
|
|
445
|
+
source: string;
|
|
446
|
+
weightDistribution: any;
|
|
447
|
+
snapshotUpdatedAt?: undefined;
|
|
448
|
+
} | {
|
|
449
|
+
applied: boolean;
|
|
450
|
+
source: string;
|
|
451
|
+
weightDistribution: any;
|
|
452
|
+
snapshotUpdatedAt: any;
|
|
453
|
+
};
|
|
359
454
|
/**
|
|
360
455
|
* Finalize the bot startup after account and initial grid sync are complete.
|
|
361
456
|
* Consolidates common logic for start() and startWithPrivateKey().
|
|
362
457
|
* @param {Object} startupState - The startup state from _initializeStartupState.
|
|
363
458
|
* @private
|
|
364
459
|
*/
|
|
365
|
-
_finishStartupSequence(startupState: any): Promise<
|
|
460
|
+
_finishStartupSequence(startupState: any): Promise<void>;
|
|
366
461
|
/**
|
|
367
462
|
* Create the fill callback for listenForFills.
|
|
368
463
|
* Separated from start() to allow deferred activation after startup completes.
|
|
@@ -370,14 +465,19 @@ declare class DEXBot {
|
|
|
370
465
|
* @returns {Function} Async callback for processing fills
|
|
371
466
|
* @private
|
|
372
467
|
*/
|
|
373
|
-
_createFillCallback(chainOrders: any): any
|
|
468
|
+
_createFillCallback(chainOrders: any): (fills: any) => Promise<void>;
|
|
374
469
|
/**
|
|
375
470
|
* Read open orders from chain, sync with local state, and process any fills found.
|
|
376
471
|
* Shared helper used by post-reset spread check and targeted drift reconciliation.
|
|
377
472
|
* @param {string} tag - Context label for logging
|
|
378
473
|
* @returns {Promise<{syncResult: Object|null, aborted: boolean, hasUnmatched: number, openOrders: Array|null}>}
|
|
379
474
|
*/
|
|
380
|
-
_syncOpenOrdersAndProcessFills(tag: any): Promise<
|
|
475
|
+
_syncOpenOrdersAndProcessFills(tag: any): Promise<{
|
|
476
|
+
syncResult: any;
|
|
477
|
+
aborted: boolean;
|
|
478
|
+
hasUnmatched: any;
|
|
479
|
+
openOrders: any;
|
|
480
|
+
}>;
|
|
381
481
|
_maxConsecutiveFillConsumerFailures(): any;
|
|
382
482
|
/**
|
|
383
483
|
* Compute the backoff delay for fill-consumer retries after the failure
|
|
@@ -388,7 +488,7 @@ declare class DEXBot {
|
|
|
388
488
|
* @returns {number} Delay in milliseconds before the next retry.
|
|
389
489
|
* @private
|
|
390
490
|
*/
|
|
391
|
-
_computeFillConsumerBackoffMs(failures: any):
|
|
491
|
+
_computeFillConsumerBackoffMs(failures: any): number;
|
|
392
492
|
_scheduleFillConsumerRestart(chainOrders: any): void;
|
|
393
493
|
/**
|
|
394
494
|
* Consume queued fills from incomingFillQueue and rebalance.
|
|
@@ -403,7 +503,7 @@ declare class DEXBot {
|
|
|
403
503
|
* @param {Object} chainOrders - Chain orders module for blockchain operations
|
|
404
504
|
* @private
|
|
405
505
|
*/
|
|
406
|
-
_consumeFillQueue(chainOrders: any): Promise<
|
|
506
|
+
_consumeFillQueue(chainOrders: any): Promise<void>;
|
|
407
507
|
/**
|
|
408
508
|
* Process fills during bootstrap phase using the standard fill pipeline.
|
|
409
509
|
*
|
|
@@ -421,7 +521,7 @@ declare class DEXBot {
|
|
|
421
521
|
* @param {Object} chainOrders - Chain orders instance for broadcasting
|
|
422
522
|
* @returns {Promise<void>}
|
|
423
523
|
*/
|
|
424
|
-
_processFillsWithBootstrapMode(chainOrders: any): Promise<
|
|
524
|
+
_processFillsWithBootstrapMode(chainOrders: any): Promise<void>;
|
|
425
525
|
/**
|
|
426
526
|
* Set up account identifier and configure global context.
|
|
427
527
|
* @param {string} accountName - The name of the account to set up
|
|
@@ -439,7 +539,7 @@ declare class DEXBot {
|
|
|
439
539
|
* Places initial orders on the blockchain.
|
|
440
540
|
* @returns {Promise<void>}
|
|
441
541
|
*/
|
|
442
|
-
placeInitialOrders(): Promise<
|
|
542
|
+
placeInitialOrders(): Promise<void>;
|
|
443
543
|
/**
|
|
444
544
|
* Build outside-in pair groups for initial order placement.
|
|
445
545
|
* @param {Array<Object>} orders - Array of order objects
|
|
@@ -463,7 +563,7 @@ declare class DEXBot {
|
|
|
463
563
|
* @param {string} [warnContext=''] - Context for warning messages
|
|
464
564
|
* @returns {Array} Array of operation result entries
|
|
465
565
|
*/
|
|
466
|
-
_extractOperationResults(result: any, warnContext?:
|
|
566
|
+
_extractOperationResults(result: any, warnContext?: any): any[];
|
|
467
567
|
/**
|
|
468
568
|
* Find CREATE operation contexts whose broadcast result did not include a chain order id.
|
|
469
569
|
*
|
|
@@ -471,7 +571,10 @@ declare class DEXBot {
|
|
|
471
571
|
* @param {Array<Object>} opContexts - Operation context metadata aligned with operations.
|
|
472
572
|
* @returns {Array<{index:number, ctx:Object}>} Missing create result contexts.
|
|
473
573
|
*/
|
|
474
|
-
_findMissingCreateResultContexts(operationResults: any, opContexts: any):
|
|
574
|
+
_findMissingCreateResultContexts(operationResults: any, opContexts: any): {
|
|
575
|
+
index: number;
|
|
576
|
+
ctx: any;
|
|
577
|
+
}[];
|
|
475
578
|
/**
|
|
476
579
|
* Run an immediate chain sync after a successful CREATE broadcast returned incomplete ids.
|
|
477
580
|
*
|
|
@@ -483,7 +586,7 @@ declare class DEXBot {
|
|
|
483
586
|
* @param {string} [reason] - Human-readable recovery context for logs.
|
|
484
587
|
* @returns {Promise<void>}
|
|
485
588
|
*/
|
|
486
|
-
_recoverAfterMissingCreateResults(reason?:
|
|
589
|
+
_recoverAfterMissingCreateResults(reason?: any): Promise<void>;
|
|
487
590
|
/**
|
|
488
591
|
* Restore unresolved missing-create blockers after recovery if sync did not adopt them.
|
|
489
592
|
*
|
|
@@ -491,7 +594,7 @@ declare class DEXBot {
|
|
|
491
594
|
* @param {Object} recoveryResult - Result returned by manager.syncFromOpenOrders.
|
|
492
595
|
* @returns {void}
|
|
493
596
|
*/
|
|
494
|
-
_preserveMissingCreateBlockersAfterRecovery(blockers: any, recoveryResult: any):
|
|
597
|
+
_preserveMissingCreateBlockersAfterRecovery(blockers: any, recoveryResult: any): void;
|
|
495
598
|
/**
|
|
496
599
|
* Merge missing CREATE result contexts into manager._lastUnmatchedChainOrders.
|
|
497
600
|
*
|
|
@@ -503,7 +606,7 @@ declare class DEXBot {
|
|
|
503
606
|
* @param {Array<{index:number, ctx:Object}>} missingCreateResults - Missing CREATE results.
|
|
504
607
|
* @returns {void}
|
|
505
608
|
*/
|
|
506
|
-
_markMissingCreateResultsAsStructuralBlocker(missingCreateResults: any):
|
|
609
|
+
_markMissingCreateResultsAsStructuralBlocker(missingCreateResults: any): void;
|
|
507
610
|
/**
|
|
508
611
|
* Format an unmatched chain order/blocker for COW logs.
|
|
509
612
|
*
|
|
@@ -531,7 +634,7 @@ declare class DEXBot {
|
|
|
531
634
|
* @param {Object} entry.finalInts - { amountToSell, minToReceive, ... } blockchain integers
|
|
532
635
|
* @returns {void}
|
|
533
636
|
*/
|
|
534
|
-
_recordPendingBroadcast(entry: any):
|
|
637
|
+
_recordPendingBroadcast(entry: any): void;
|
|
535
638
|
/**
|
|
536
639
|
* Clear the pending-broadcast cache.
|
|
537
640
|
*
|
|
@@ -540,7 +643,7 @@ declare class DEXBot {
|
|
|
540
643
|
* recovery adoption (matched entries are explicitly removed by
|
|
541
644
|
* _reconcileAfterUncertainBroadcast before calling this).
|
|
542
645
|
*/
|
|
543
|
-
_clearPendingBroadcasts():
|
|
646
|
+
_clearPendingBroadcasts(): void;
|
|
544
647
|
/**
|
|
545
648
|
* Build a fingerprint for an on-chain order so it can be matched against
|
|
546
649
|
* the pending-broadcast cache.
|
|
@@ -561,7 +664,13 @@ declare class DEXBot {
|
|
|
561
664
|
* @param {Object} chainOrder
|
|
562
665
|
* @returns {{side: string, assetA: string, assetB: string, sellInt: number, receiveInt: number}|null}
|
|
563
666
|
*/
|
|
564
|
-
_normalizeChainOrderForPendingMatch(chainOrder: any):
|
|
667
|
+
_normalizeChainOrderForPendingMatch(chainOrder: any): {
|
|
668
|
+
side: any;
|
|
669
|
+
assetA: any;
|
|
670
|
+
assetB: any;
|
|
671
|
+
sellInt: number;
|
|
672
|
+
receiveInt: number;
|
|
673
|
+
} | null;
|
|
565
674
|
/**
|
|
566
675
|
* Find a chain order that matches a planned slot using price+size proximity.
|
|
567
676
|
*
|
|
@@ -605,7 +714,19 @@ declare class DEXBot {
|
|
|
605
714
|
* @returns {Promise<Object>} Result object compatible with batch return shape
|
|
606
715
|
*/
|
|
607
716
|
_reconcileAfterUncertainBroadcast(err: any, opContexts: any, options?: Record<string, any>): Promise<any>;
|
|
608
|
-
_reconcileAfterUncertainBroadcastImpl(err: any, opContexts: any, options: any): Promise<
|
|
717
|
+
_reconcileAfterUncertainBroadcastImpl(err: any, opContexts: any, options: any): Promise<{
|
|
718
|
+
executed: boolean;
|
|
719
|
+
hadRotation: boolean;
|
|
720
|
+
uncertain: boolean;
|
|
721
|
+
adoptedCount?: undefined;
|
|
722
|
+
discardedCount?: undefined;
|
|
723
|
+
} | {
|
|
724
|
+
executed: boolean;
|
|
725
|
+
hadRotation: boolean;
|
|
726
|
+
uncertain: boolean;
|
|
727
|
+
adoptedCount: number;
|
|
728
|
+
discardedCount: number;
|
|
729
|
+
}>;
|
|
609
730
|
/**
|
|
610
731
|
* Auto-cancel a price-drift orphan from the unmatched-order snapshot.
|
|
611
732
|
*
|
|
@@ -631,13 +752,48 @@ declare class DEXBot {
|
|
|
631
752
|
*
|
|
632
753
|
* @returns {Promise<{cancelled: boolean, orderId?: string, reason?: string}>}
|
|
633
754
|
*/
|
|
634
|
-
_autoCancelOneUnmatchedOrphan(): Promise<
|
|
755
|
+
_autoCancelOneUnmatchedOrphan(): Promise<{
|
|
756
|
+
cancelled: boolean;
|
|
757
|
+
reason: string;
|
|
758
|
+
subCount: any;
|
|
759
|
+
message?: undefined;
|
|
760
|
+
orderId?: undefined;
|
|
761
|
+
error?: undefined;
|
|
762
|
+
} | {
|
|
763
|
+
cancelled: boolean;
|
|
764
|
+
reason: string;
|
|
765
|
+
subCount?: undefined;
|
|
766
|
+
message?: undefined;
|
|
767
|
+
orderId?: undefined;
|
|
768
|
+
error?: undefined;
|
|
769
|
+
} | {
|
|
770
|
+
cancelled: boolean;
|
|
771
|
+
reason: string;
|
|
772
|
+
message: string;
|
|
773
|
+
subCount?: undefined;
|
|
774
|
+
orderId?: undefined;
|
|
775
|
+
error?: undefined;
|
|
776
|
+
} | {
|
|
777
|
+
cancelled: boolean;
|
|
778
|
+
orderId: any;
|
|
779
|
+
reason?: undefined;
|
|
780
|
+
subCount?: undefined;
|
|
781
|
+
message?: undefined;
|
|
782
|
+
error?: undefined;
|
|
783
|
+
} | {
|
|
784
|
+
cancelled: boolean;
|
|
785
|
+
reason: string;
|
|
786
|
+
error: any;
|
|
787
|
+
subCount?: undefined;
|
|
788
|
+
message?: undefined;
|
|
789
|
+
orderId?: undefined;
|
|
790
|
+
}>;
|
|
635
791
|
/**
|
|
636
792
|
* Check whether to execute creates in outside-in pair mode (mixed BUY/SELL operations).
|
|
637
793
|
* @param {Array<Object>} opContexts - Operation contexts array
|
|
638
794
|
* @returns {boolean} True if pair mode should be used
|
|
639
795
|
*/
|
|
640
|
-
_shouldExecuteCreatePairMode(opContexts: any):
|
|
796
|
+
_shouldExecuteCreatePairMode(opContexts: any): boolean;
|
|
641
797
|
/**
|
|
642
798
|
* Execute operations with retry on BroadcastUncertainError.
|
|
643
799
|
* The daemon already retries internally against a 25s deadline.
|
|
@@ -647,14 +803,20 @@ declare class DEXBot {
|
|
|
647
803
|
* execution where earlier groups already committed). Re-broadcasting
|
|
648
804
|
* the full operations array would duplicate those creates on chain.
|
|
649
805
|
*/
|
|
650
|
-
_executeWithRetryOnUncertain(operations: any, opContexts: any): Promise<
|
|
806
|
+
_executeWithRetryOnUncertain(operations: any, opContexts: any): Promise<{
|
|
807
|
+
result: any;
|
|
808
|
+
opContexts: any;
|
|
809
|
+
}>;
|
|
651
810
|
/**
|
|
652
811
|
* Execute blockchain operations with appropriate strategy (single batch or pair mode).
|
|
653
812
|
* @param {Array<import('./types').CreatedOperation>} operations - Array of operation objects
|
|
654
813
|
* @param {Array<Object>} opContexts - Array of operation context metadata (1:1 with operations)
|
|
655
814
|
* @returns {Promise<{result: Object, opContexts: Array}>} Execution result with contexts
|
|
656
815
|
*/
|
|
657
|
-
_executeOperationsWithStrategy(operations: any, opContexts: any): Promise<
|
|
816
|
+
_executeOperationsWithStrategy(operations: any, opContexts: any): Promise<{
|
|
817
|
+
result: any;
|
|
818
|
+
opContexts: any;
|
|
819
|
+
}>;
|
|
658
820
|
/**
|
|
659
821
|
* Validate that operations can be executed with available funds before broadcasting.
|
|
660
822
|
* Checks sufficient available funds for all operations.
|
|
@@ -664,14 +826,22 @@ declare class DEXBot {
|
|
|
664
826
|
* @returns {Object} { isValid: boolean, summary: string }
|
|
665
827
|
* @private
|
|
666
828
|
*/
|
|
667
|
-
_validateOperationFunds(operations: any, assetA: any, assetB: any):
|
|
829
|
+
_validateOperationFunds(operations: any, assetA: any, assetB: any): {
|
|
830
|
+
isValid: boolean;
|
|
831
|
+
summary: string;
|
|
832
|
+
violations?: undefined;
|
|
833
|
+
} | {
|
|
834
|
+
isValid: boolean;
|
|
835
|
+
summary: string;
|
|
836
|
+
violations: any[];
|
|
837
|
+
};
|
|
668
838
|
/**
|
|
669
839
|
* Resolve the ideal size from an order-like object with fallback.
|
|
670
840
|
* @param {Object|null} orderLike - Order-like object with optional idealSize/size nested properties
|
|
671
841
|
* @param {number|null} [fallbackSize=null] - Fallback size if none found
|
|
672
842
|
* @returns {number|null} Resolved size or null
|
|
673
843
|
*/
|
|
674
|
-
_resolveIdealSizeForValidation(orderLike: any, fallbackSize?: any):
|
|
844
|
+
_resolveIdealSizeForValidation(orderLike: any, fallbackSize?: any): number | null;
|
|
675
845
|
/**
|
|
676
846
|
* Validate that an order size is safe to execute (above minimum dust thresholds).
|
|
677
847
|
* @param {number} size - Order size to validate
|
|
@@ -687,7 +857,7 @@ declare class DEXBot {
|
|
|
687
857
|
* @param {string} [contextLabel='rebalance'] - Context label for logging
|
|
688
858
|
* @returns {Promise<Object>} Batch execution result
|
|
689
859
|
*/
|
|
690
|
-
_executeBatchIfNeeded(rebalanceResult: any, contextLabel?:
|
|
860
|
+
_executeBatchIfNeeded(rebalanceResult: any, contextLabel?: any): Promise<any>;
|
|
691
861
|
/**
|
|
692
862
|
* Process filled orders in capped batches per FILL_PROCESSING.MAX_FILL_BATCH_SIZE.
|
|
693
863
|
* Each chunk triggers its own processFilledOrders → COW plan → broadcast cycle.
|
|
@@ -698,7 +868,7 @@ declare class DEXBot {
|
|
|
698
868
|
* @param {Object} [options={}] - Passed through to processFilledOrders
|
|
699
869
|
* @returns {{aborted: boolean}}
|
|
700
870
|
*/
|
|
701
|
-
_processFillsWithBatching(fills: any, excl: any, contextLabel: any, options?:
|
|
871
|
+
_processFillsWithBatching(fills: any, excl: any, contextLabel: any, options?: any): Promise<{
|
|
702
872
|
aborted: boolean;
|
|
703
873
|
}>;
|
|
704
874
|
/**
|
|
@@ -724,7 +894,7 @@ declare class DEXBot {
|
|
|
724
894
|
* @returns {Promise<void>}
|
|
725
895
|
* @throws {Error} With code CREDENTIAL_DAEMON_UNAVAILABLE if daemon is down
|
|
726
896
|
*/
|
|
727
|
-
_ensureCredentialDaemonWritable(contextLabel?:
|
|
897
|
+
_ensureCredentialDaemonWritable(contextLabel?: any): Promise<void>;
|
|
728
898
|
/**
|
|
729
899
|
* Check if an error is related to credential daemon unavailability.
|
|
730
900
|
* @param {Error|*} err - Error to check
|
|
@@ -765,13 +935,18 @@ declare class DEXBot {
|
|
|
765
935
|
* @param {Object|Array} plan - Plan object with ordersToPlace/ordersToRotate/ordersToUpdate/ordersToCancel, or array of ordersToPlace
|
|
766
936
|
* @returns {Array<{type: string, id: string, order?: Object, orderId?: string, newSize?: number, newPrice?: number, newGridId?: string}>}
|
|
767
937
|
*/
|
|
768
|
-
_buildActionsFromPlan(plan: any): any;
|
|
938
|
+
_buildActionsFromPlan(plan: any): any[];
|
|
769
939
|
/**
|
|
770
940
|
* Build a COW result object (workingGrid + actions) from a simple plan.
|
|
771
941
|
* @param {Object|Array} plan - Plan object or array of ordersToPlace
|
|
772
942
|
* @returns {{workingGrid: import('./types').WorkingGrid, workingIndexes: Object, workingBoundary: number, actions: Array}}
|
|
773
943
|
*/
|
|
774
|
-
_buildCowResultFromPlan(plan: any):
|
|
944
|
+
_buildCowResultFromPlan(plan: any): {
|
|
945
|
+
workingGrid: any;
|
|
946
|
+
workingIndexes: any;
|
|
947
|
+
workingBoundary: any;
|
|
948
|
+
actions: any[];
|
|
949
|
+
};
|
|
775
950
|
/**
|
|
776
951
|
* Restore skipped update slots in the working grid to master state.
|
|
777
952
|
* @param {import('./types').WorkingGrid} workingGrid - Working grid to restore slots into
|
|
@@ -779,7 +954,7 @@ declare class DEXBot {
|
|
|
779
954
|
* @param {number} [skippedCount=0] - Count of skipped actions for logging
|
|
780
955
|
* @returns {void}
|
|
781
956
|
*/
|
|
782
|
-
_restoreSkippedUpdateSlotsInWorkingGrid(workingGrid: any, skippedSlotIds: any, skippedCount?:
|
|
957
|
+
_restoreSkippedUpdateSlotsInWorkingGrid(workingGrid: any, skippedSlotIds: any, skippedCount?: any): void;
|
|
783
958
|
/**
|
|
784
959
|
* COW broadcast: Execute blockchain operations and commit working grid on success.
|
|
785
960
|
* Master grid is ONLY updated after successful blockchain confirmation.
|
|
@@ -788,7 +963,11 @@ declare class DEXBot {
|
|
|
788
963
|
* @private
|
|
789
964
|
*/
|
|
790
965
|
_updateOrdersOnChainBatchCOW(cowResult: any): Promise<any>;
|
|
791
|
-
_processBatchResults(result: any, opContexts: any): Promise<
|
|
966
|
+
_processBatchResults(result: any, opContexts: any): Promise<{
|
|
967
|
+
executed: boolean;
|
|
968
|
+
hadRotation: boolean;
|
|
969
|
+
updateOperationCount: number;
|
|
970
|
+
}>;
|
|
792
971
|
/**
|
|
793
972
|
* Perform grid recalculation triggered by trigger file.
|
|
794
973
|
* Reloads config from disk, recalculates grid, resets funds, and removes trigger file.
|
|
@@ -797,20 +976,20 @@ declare class DEXBot {
|
|
|
797
976
|
* @returns {Promise<boolean>} True if resync succeeded
|
|
798
977
|
* @private
|
|
799
978
|
*/
|
|
800
|
-
_performGridResync(options?:
|
|
979
|
+
_performGridResync(options?: any): Promise<boolean>;
|
|
801
980
|
/**
|
|
802
981
|
* Handle any pending trigger file reset at startup.
|
|
803
982
|
* This is called FIRST during startup before any grid operations.
|
|
804
983
|
* @returns {Promise<boolean>} True if trigger reset completed successfully, false otherwise
|
|
805
984
|
* @private
|
|
806
985
|
*/
|
|
807
|
-
_handlePendingTriggerReset(): Promise<
|
|
986
|
+
_handlePendingTriggerReset(): Promise<boolean>;
|
|
808
987
|
/**
|
|
809
988
|
* Setup trigger file detection for grid reset.
|
|
810
989
|
* Monitors the trigger file and performs grid resync when it's created.
|
|
811
990
|
* @private
|
|
812
991
|
*/
|
|
813
|
-
_setupTriggerFileDetection(): Promise<
|
|
992
|
+
_setupTriggerFileDetection(): Promise<void>;
|
|
814
993
|
/**
|
|
815
994
|
* Starts the bot's operation.
|
|
816
995
|
* @param {string|Object|Buffer} [vaultSecret=null] - The unlock secret.
|
|
@@ -839,31 +1018,31 @@ declare class DEXBot {
|
|
|
839
1018
|
*
|
|
840
1019
|
* @private
|
|
841
1020
|
*/
|
|
842
|
-
_performPeriodicGridChecks(): Promise<
|
|
843
|
-
_isOpenOrdersSyncLoopEnabled():
|
|
1021
|
+
_performPeriodicGridChecks(): Promise<void>;
|
|
1022
|
+
_isOpenOrdersSyncLoopEnabled(): boolean;
|
|
844
1023
|
/**
|
|
845
1024
|
* Start the open-orders watchdog sync loop.
|
|
846
1025
|
* Uses fill lock contention checks to avoid competing with fill processing.
|
|
847
1026
|
* @private
|
|
848
1027
|
*/
|
|
849
|
-
_startOpenOrdersSyncLoop():
|
|
1028
|
+
_startOpenOrdersSyncLoop(): void;
|
|
850
1029
|
/**
|
|
851
1030
|
* Stop the open-orders watchdog sync loop.
|
|
852
1031
|
* @private
|
|
853
1032
|
*/
|
|
854
|
-
_stopOpenOrdersSyncLoop(): Promise<
|
|
1033
|
+
_stopOpenOrdersSyncLoop(): Promise<void>;
|
|
855
1034
|
/**
|
|
856
1035
|
* Set up periodic blockchain account balance fetch interval.
|
|
857
1036
|
* Fetches available funds at regular intervals to keep blockchain variables up-to-date.
|
|
858
1037
|
* @private
|
|
859
1038
|
*/
|
|
860
|
-
_setupBlockchainFetchInterval():
|
|
1039
|
+
_setupBlockchainFetchInterval(): void;
|
|
861
1040
|
/**
|
|
862
1041
|
* Stop the periodic blockchain fetch interval.
|
|
863
1042
|
* @private
|
|
864
1043
|
*/
|
|
865
|
-
_stopBlockchainFetchInterval():
|
|
866
|
-
_releaseMarketAdapterRuntime(context?:
|
|
1044
|
+
_stopBlockchainFetchInterval(): void;
|
|
1045
|
+
_releaseMarketAdapterRuntime(context?: any): Promise<any>;
|
|
867
1046
|
/**
|
|
868
1047
|
* Get or create the credit runtime for debt policy management.
|
|
869
1048
|
* @returns {import('./credit_runtime').CreditRuntime|null}
|
|
@@ -885,7 +1064,7 @@ declare class DEXBot {
|
|
|
885
1064
|
* @param {Object} [options={}] - Maintenance options
|
|
886
1065
|
* @returns {Promise<*>} Maintenance result from runtime
|
|
887
1066
|
*/
|
|
888
|
-
_runCreditRuntimeMaintenance(context?:
|
|
1067
|
+
_runCreditRuntimeMaintenance(context?: any, options?: any): Promise<any>;
|
|
889
1068
|
/**
|
|
890
1069
|
* Start the credit deal watchdog interval.
|
|
891
1070
|
* @returns {void}
|
|
@@ -896,11 +1075,11 @@ declare class DEXBot {
|
|
|
896
1075
|
* @returns {void}
|
|
897
1076
|
*/
|
|
898
1077
|
_stopCreditWatchdogInterval(): void;
|
|
899
|
-
requestGridReset(reason?:
|
|
1078
|
+
requestGridReset(reason?: any, options?: {
|
|
900
1079
|
refreshCenterPrice?: boolean;
|
|
901
1080
|
[key: string]: any;
|
|
902
1081
|
}): Promise<any>;
|
|
903
|
-
_wireStructuralGridResyncRequest():
|
|
1082
|
+
_wireStructuralGridResyncRequest(): void;
|
|
904
1083
|
/**
|
|
905
1084
|
* Get current metrics for monitoring and debugging.
|
|
906
1085
|
* @returns {Object} Metrics snapshot
|
|
@@ -937,7 +1116,7 @@ declare class DEXBot {
|
|
|
937
1116
|
* @param {Object} context - Maintenance context for logging.
|
|
938
1117
|
* @private
|
|
939
1118
|
*/
|
|
940
|
-
_executeMaintenanceLogic(context: any): Promise<
|
|
1119
|
+
_executeMaintenanceLogic(context: any): Promise<void>;
|
|
941
1120
|
/**
|
|
942
1121
|
* Cancel dust partial orders immediately — no maps, no timers, no delay.
|
|
943
1122
|
* Each dust order is cancelled on chain and its slot rotated through the
|
|
@@ -946,10 +1125,15 @@ declare class DEXBot {
|
|
|
946
1125
|
* @returns {Promise<{cancelledCount: number, batchResult: {aborted: boolean}|null}>}
|
|
947
1126
|
* @private
|
|
948
1127
|
*/
|
|
949
|
-
_cancelDustOrders({ buy: buyDust, sell: sellDust }?: {
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
}
|
|
1128
|
+
_cancelDustOrders({ buy: buyDust, sell: sellDust }?: any): Promise<{
|
|
1129
|
+
cancelledCount: number;
|
|
1130
|
+
batchResult: null;
|
|
1131
|
+
} | {
|
|
1132
|
+
cancelledCount: number;
|
|
1133
|
+
batchResult: {
|
|
1134
|
+
aborted: any;
|
|
1135
|
+
};
|
|
1136
|
+
}>;
|
|
953
1137
|
/**
|
|
954
1138
|
* Run a single dust health check cycle: inspect grid for partials below the
|
|
955
1139
|
* configured dust threshold and cancel them immediately inside the fill-
|
|
@@ -957,7 +1141,7 @@ declare class DEXBot {
|
|
|
957
1141
|
* once at startup.
|
|
958
1142
|
* @private
|
|
959
1143
|
*/
|
|
960
|
-
_runDustHealthCheck(): Promise<
|
|
1144
|
+
_runDustHealthCheck(): Promise<void>;
|
|
961
1145
|
/**
|
|
962
1146
|
* Set up the periodic dust health check interval.
|
|
963
1147
|
* Catches partials below the dust threshold that were missed by the post-fill
|
|
@@ -965,7 +1149,7 @@ declare class DEXBot {
|
|
|
965
1149
|
* Calls _runDustHealthCheck on each tick.
|
|
966
1150
|
* @private
|
|
967
1151
|
*/
|
|
968
|
-
_setupDustHealthCheckInterval():
|
|
1152
|
+
_setupDustHealthCheckInterval(): void;
|
|
969
1153
|
/**
|
|
970
1154
|
* Perform grid maintenance: fund thresholds, spread condition, grid health, divergence.
|
|
971
1155
|
* Consolidates maintenance checks used during startup, periodic updates, and post-fill.
|
|
@@ -990,7 +1174,7 @@ declare class DEXBot {
|
|
|
990
1174
|
* @param {Object} options - Maintenance options
|
|
991
1175
|
* @private
|
|
992
1176
|
*/
|
|
993
|
-
_runGridMaintenance(context?:
|
|
1177
|
+
_runGridMaintenance(context?: any, options?: any): Promise<void>;
|
|
994
1178
|
/**
|
|
995
1179
|
* Gracefully shutdown the bot.
|
|
996
1180
|
* Waits for current fill processing to complete, persists state, and stops intervals.
|
|
@@ -1001,8 +1185,5 @@ declare class DEXBot {
|
|
|
1001
1185
|
shutdown(): Promise<void>;
|
|
1002
1186
|
_shutdownImpl(): Promise<void>;
|
|
1003
1187
|
}
|
|
1004
|
-
|
|
1005
|
-
normalizeBotEntry: any;
|
|
1006
|
-
};
|
|
1007
|
-
export = _default;
|
|
1188
|
+
export default DEXBot;
|
|
1008
1189
|
//# sourceMappingURL=dexbot_class.d.ts.map
|