dexbot 1.3.3 → 1.4.0
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 +132 -60
- 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 +115 -79
- 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 +246 -188
- 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 +24 -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 +145 -72
- 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 +74 -44
- package/dist/modules/order/utils/system.d.ts.map +1 -1
- package/dist/modules/order/utils/system.js +188 -149
- package/dist/modules/order/utils/system.js.map +1 -1
- package/dist/modules/order/utils/validate.d.ts +21 -43
- package/dist/modules/order/utils/validate.d.ts.map +1 -1
- package/dist/modules/order/utils/validate.js +140 -109
- 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
|
@@ -17,22 +17,22 @@ declare class CreditRuntime {
|
|
|
17
17
|
_watchdogInFlight: boolean;
|
|
18
18
|
_reborrowsInFlight: boolean;
|
|
19
19
|
_splitInFlight: boolean;
|
|
20
|
-
constructor(bot: any, options?:
|
|
20
|
+
constructor(bot: any, options?: any);
|
|
21
21
|
_createDefaultState(): {
|
|
22
22
|
botKey: string;
|
|
23
|
-
updatedAt:
|
|
24
|
-
mpaCallOrders:
|
|
25
|
-
activeDealIds:
|
|
26
|
-
activeOfferIds:
|
|
27
|
-
ownedCreditOffers:
|
|
28
|
-
creditDeals:
|
|
29
|
-
debtSnapshot:
|
|
30
|
-
lastBorrowRequest:
|
|
31
|
-
lastRepayAt:
|
|
32
|
-
lastGridResetAt:
|
|
33
|
-
lastCrAdjustment:
|
|
23
|
+
updatedAt: null;
|
|
24
|
+
mpaCallOrders: never[];
|
|
25
|
+
activeDealIds: never[];
|
|
26
|
+
activeOfferIds: never[];
|
|
27
|
+
ownedCreditOffers: never[];
|
|
28
|
+
creditDeals: never[];
|
|
29
|
+
debtSnapshot: null;
|
|
30
|
+
lastBorrowRequest: null;
|
|
31
|
+
lastRepayAt: null;
|
|
32
|
+
lastGridResetAt: null;
|
|
33
|
+
lastCrAdjustment: null;
|
|
34
34
|
reborrowPending: boolean;
|
|
35
|
-
pendingReborrows:
|
|
35
|
+
pendingReborrows: never[];
|
|
36
36
|
positions: {};
|
|
37
37
|
};
|
|
38
38
|
get debtPolicy(): any;
|
|
@@ -40,11 +40,9 @@ declare class CreditRuntime {
|
|
|
40
40
|
_positionKey(debtAssetId: any, collateralAssetId: any): string;
|
|
41
41
|
_findLendingItemByType(type: any): any;
|
|
42
42
|
_findLendingItemForAsset(assetId: any, typeFilter: any): Promise<any>;
|
|
43
|
-
_stateWithDefaults(state?:
|
|
44
|
-
loadState({ forceReload }?:
|
|
45
|
-
|
|
46
|
-
}): Promise<any>;
|
|
47
|
-
persistState(reason?: string): Promise<any>;
|
|
43
|
+
_stateWithDefaults(state?: any): any;
|
|
44
|
+
loadState({ forceReload }?: any): Promise<any>;
|
|
45
|
+
persistState(reason?: any): Promise<any>;
|
|
48
46
|
shutdown(): Promise<void>;
|
|
49
47
|
_dbCall(method: any, args?: any[]): Promise<any>;
|
|
50
48
|
_resolveAccountId(accountRef: any): Promise<any>;
|
|
@@ -52,15 +50,11 @@ declare class CreditRuntime {
|
|
|
52
50
|
_getFullAccount(accountRef: any): Promise<any>;
|
|
53
51
|
_resolveAsset(assetRef: any): Promise<any>;
|
|
54
52
|
_resolveBitassetData(assetRef: any): Promise<any>;
|
|
55
|
-
_computeBtsPerDebt(settlementPrice: any, debtAsset: any, backingAsset: any): number;
|
|
53
|
+
_computeBtsPerDebt(settlementPrice: any, debtAsset: any, backingAsset: any): number | null;
|
|
56
54
|
_normalizePolicyList(value: any): string[];
|
|
57
55
|
_rebuildCreditTrackingFromPositions(): void;
|
|
58
56
|
_pruneCreditStateForPolicy(lendingItems?: any[]): Promise<void>;
|
|
59
|
-
_resolveAmountToBlockchainInt(spec: any, asset: any, accountRef: any, { balanceField, referenceAmount, referenceLabel }?:
|
|
60
|
-
balanceField?: string;
|
|
61
|
-
referenceAmount?: any;
|
|
62
|
-
referenceLabel?: string;
|
|
63
|
-
}): Promise<any>;
|
|
57
|
+
_resolveAmountToBlockchainInt(spec: any, asset: any, accountRef: any, { balanceField, referenceAmount, referenceLabel }?: any): Promise<any>;
|
|
64
58
|
_resolveLendingPolicyForOffer(offer: any): Promise<any>;
|
|
65
59
|
/**
|
|
66
60
|
* Resolve the MPA feed price for a given debt/collateral pair.
|
|
@@ -88,84 +82,27 @@ declare class CreditRuntime {
|
|
|
88
82
|
includeSource?: boolean;
|
|
89
83
|
}): Promise<any>;
|
|
90
84
|
_calculateCollateralDistribution(): Promise<void>;
|
|
91
|
-
_creditPriceOrientation(collateralPrice: any, debtAsset: any, collateralAsset: any):
|
|
92
|
-
|
|
85
|
+
_creditPriceOrientation(collateralPrice: any, debtAsset: any, collateralAsset: any): string;
|
|
86
|
+
_extractRateFromCollateralMap(collateralMap: Map<string, any>, collateralAssetId: string, debtAsset: any, collateralAsset: any): number | null;
|
|
87
|
+
_calculateBorrowAmountFromCollateral(collateralAmountInt: any, collateralPrice: any, debtAsset?: any, collateralAsset?: any): number | null;
|
|
93
88
|
_enforceMaxBorrowAmount(policy: any, borrowInt: any, debtAsset: any, options?: Record<string, any>): void;
|
|
94
|
-
_getCreditDebtForAsset(asset: any):
|
|
95
|
-
_getCreditCollateralForAsset(asset: any):
|
|
89
|
+
_getCreditDebtForAsset(asset: any): number;
|
|
90
|
+
_getCreditCollateralForAsset(asset: any): number;
|
|
96
91
|
_getCollateralPercentageBase(accountId: any, assetId: any): Promise<any>;
|
|
97
92
|
_enforceMaxCollateralAmount(policy: any, collateralInt: any, collateralAsset: any, accountId: any, options?: Record<string, any>): Promise<void>;
|
|
98
93
|
_calculateDailyFeeRate(offer: any): number;
|
|
99
|
-
_getDefaultMaxFeeRatePerDay():
|
|
100
|
-
_validateCreditPolicy(policy: any, offer: any, deal?: any):
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
id: any;
|
|
109
|
-
ownerAccount: any;
|
|
110
|
-
assetType: any;
|
|
111
|
-
totalBalance: any;
|
|
112
|
-
currentBalance: any;
|
|
113
|
-
feeRate: any;
|
|
114
|
-
maxDurationSeconds: any;
|
|
115
|
-
minDealAmount: any;
|
|
116
|
-
enabled: boolean;
|
|
117
|
-
acceptableCollateral: any;
|
|
118
|
-
}[]>;
|
|
119
|
-
_buildDebtSnapshot(): Promise<Record<string, any>>;
|
|
120
|
-
refreshMpaState(lendingItem: any): Promise<{
|
|
121
|
-
activeCallOrderId: any;
|
|
122
|
-
mpaSelectionConflict: any;
|
|
123
|
-
debtAssetId: string;
|
|
124
|
-
currentCollateralAssetId: any;
|
|
125
|
-
currentDebtAmount: number;
|
|
126
|
-
currentCollateralAmount: number;
|
|
127
|
-
currentCollateralFundsTotal: any;
|
|
128
|
-
currentCollateralRatio: any;
|
|
129
|
-
feedPrice: any;
|
|
130
|
-
targetCollateralRatio: any;
|
|
131
|
-
minCollateralRatio: any;
|
|
132
|
-
maxCollateralRatio: any;
|
|
133
|
-
} | {
|
|
134
|
-
activeCallOrderId: any;
|
|
135
|
-
debtAssetId: string;
|
|
136
|
-
currentCollateralAssetId: any;
|
|
137
|
-
currentDebtAmount: any;
|
|
138
|
-
currentCollateralAmount: any;
|
|
139
|
-
currentCollateralFundsTotal: any;
|
|
140
|
-
currentCollateralRatio: number;
|
|
141
|
-
feedPrice: number;
|
|
142
|
-
targetCollateralRatio: any;
|
|
143
|
-
minCollateralRatio: any;
|
|
144
|
-
maxCollateralRatio: any;
|
|
145
|
-
mpaSelectionConflict: any;
|
|
146
|
-
}>;
|
|
147
|
-
refreshCreditState(options: Record<string, any>, lendingItem: any): Promise<any>;
|
|
94
|
+
_getDefaultMaxFeeRatePerDay(): number;
|
|
95
|
+
_validateCreditPolicy(policy: any, offer: any, deal?: any): any;
|
|
96
|
+
_calculateCollateralValueInDebtAsset(collateralAmountInt: any, collateralAsset: any, debtAsset: any, collateralPrice: any): Promise<any>;
|
|
97
|
+
_calculateCreditOfferCollateralValueInDebtAsset(collateralAmountInt: any, collateralAsset: any, debtAsset: any, collateralPrice: any): number | null;
|
|
98
|
+
_fetchBorrowerDeals(): Promise<any[]>;
|
|
99
|
+
_fetchOwnedCreditOffers(): Promise<any[]>;
|
|
100
|
+
_buildDebtSnapshot(): Promise<any>;
|
|
101
|
+
refreshMpaState(lendingItem: any): Promise<any>;
|
|
102
|
+
refreshCreditState(options: Record<string, any> | undefined, lendingItem: any): Promise<any>;
|
|
148
103
|
refreshState(): Promise<any>;
|
|
149
104
|
_buildMpaPlanFromState(lendingItem: any, assetId: any): Promise<any>;
|
|
150
|
-
buildMpaUpdateOperation(plan: any, options: Record<string, any
|
|
151
|
-
op_name: string;
|
|
152
|
-
op_data: {
|
|
153
|
-
fee: {
|
|
154
|
-
amount: number;
|
|
155
|
-
asset_id: string;
|
|
156
|
-
};
|
|
157
|
-
funding_account: any;
|
|
158
|
-
delta_collateral: {
|
|
159
|
-
amount: any;
|
|
160
|
-
asset_id: any;
|
|
161
|
-
};
|
|
162
|
-
delta_debt: {
|
|
163
|
-
amount: any;
|
|
164
|
-
asset_id: any;
|
|
165
|
-
};
|
|
166
|
-
extensions: Record<string, any>;
|
|
167
|
-
};
|
|
168
|
-
}>;
|
|
105
|
+
buildMpaUpdateOperation(plan: any, options: Record<string, any> | undefined, lendingItem: any, assetId: any): Promise<any>;
|
|
169
106
|
buildCreditOfferAcceptOperation({ offer, borrowAmount, collateralAmount, autoRepay, specificPolicy, pendingRepayAmount, pendingReleaseCollateralAmount }?: {
|
|
170
107
|
offer?: any;
|
|
171
108
|
borrowAmount?: any;
|
|
@@ -174,81 +111,20 @@ declare class CreditRuntime {
|
|
|
174
111
|
specificPolicy?: any;
|
|
175
112
|
pendingRepayAmount?: any;
|
|
176
113
|
pendingReleaseCollateralAmount?: any;
|
|
177
|
-
}): Promise<{
|
|
178
|
-
op_name: string;
|
|
179
|
-
op_data: {
|
|
180
|
-
fee: {
|
|
181
|
-
amount: number;
|
|
182
|
-
asset_id: string;
|
|
183
|
-
};
|
|
184
|
-
borrower: any;
|
|
185
|
-
offer_id: any;
|
|
186
|
-
borrow_amount: {
|
|
187
|
-
amount: any;
|
|
188
|
-
asset_id: any;
|
|
189
|
-
};
|
|
190
|
-
collateral: {
|
|
191
|
-
amount: any;
|
|
192
|
-
asset_id: any;
|
|
193
|
-
};
|
|
194
|
-
max_fee_rate: any;
|
|
195
|
-
min_duration_seconds: any;
|
|
196
|
-
extensions: Record<string, any>;
|
|
197
|
-
};
|
|
198
|
-
}>;
|
|
199
|
-
_calculateRequiredCollateral(borrowAmountInt: any, collateralPrice: any, debtAsset?: any, collateralAsset?: any): number;
|
|
200
|
-
_calculateCreditFee(repayAmountInt: any, feeRate: any): number;
|
|
201
|
-
buildCreditDealRepayOperation(deal: any, repayAmount: any): Promise<{
|
|
202
|
-
op_name: string;
|
|
203
|
-
op_data: {
|
|
204
|
-
fee: {
|
|
205
|
-
amount: number;
|
|
206
|
-
asset_id: string;
|
|
207
|
-
};
|
|
208
|
-
account: any;
|
|
209
|
-
deal_id: any;
|
|
210
|
-
repay_amount: {
|
|
211
|
-
amount: any;
|
|
212
|
-
asset_id: any;
|
|
213
|
-
};
|
|
214
|
-
credit_fee: {
|
|
215
|
-
amount: any;
|
|
216
|
-
asset_id: any;
|
|
217
|
-
};
|
|
218
|
-
extensions: any;
|
|
219
|
-
};
|
|
220
|
-
}>;
|
|
221
|
-
buildCreditDealUpdateOperation(deal: any, autoRepay: any): Promise<{
|
|
222
|
-
op_name: string;
|
|
223
|
-
op_data: {
|
|
224
|
-
fee: {
|
|
225
|
-
amount: number;
|
|
226
|
-
asset_id: string;
|
|
227
|
-
};
|
|
228
|
-
account: any;
|
|
229
|
-
deal_id: any;
|
|
230
|
-
auto_repay: number;
|
|
231
|
-
extensions: any;
|
|
232
|
-
};
|
|
233
|
-
}>;
|
|
234
|
-
executeOperations(operations: any, reason?: string): Promise<any>;
|
|
235
|
-
_checkGridMaintenanceAfterCreditUpdate(context?: string, options?: Record<string, any>): Promise<any>;
|
|
236
|
-
openCreditPosition({ offer, borrowAmount, collateralAmount, autoRepay, reason }: {
|
|
237
|
-
offer: any;
|
|
238
|
-
borrowAmount: any;
|
|
239
|
-
collateralAmount: any;
|
|
240
|
-
autoRepay?: boolean;
|
|
241
|
-
reason?: string;
|
|
242
114
|
}): Promise<any>;
|
|
115
|
+
_calculateRequiredCollateral(borrowAmountInt: any, collateralPrice: any, debtAsset?: any, collateralAsset?: any): number | null;
|
|
116
|
+
_calculateCreditFee(repayAmountInt: any, feeRate: any): number;
|
|
117
|
+
buildCreditDealRepayOperation(deal: any, repayAmount: any): Promise<any>;
|
|
118
|
+
buildCreditDealUpdateOperation(deal: any, autoRepay: any): Promise<any>;
|
|
119
|
+
executeOperations(operations: any, reason?: any): Promise<any>;
|
|
120
|
+
_checkGridMaintenanceAfterCreditUpdate(context?: any, options?: Record<string, any>): Promise<any>;
|
|
121
|
+
openCreditPosition({ offer, borrowAmount, collateralAmount, autoRepay, reason }?: any): Promise<any>;
|
|
243
122
|
repayCreditDeal(deal: any, repayAmount: any, options?: Record<string, any>): Promise<any>;
|
|
244
123
|
queueReborrow(request: any): void;
|
|
245
124
|
_extractDealNumericId(id: any): number;
|
|
246
125
|
_getOfferById(offerId: any): Promise<any>;
|
|
247
126
|
_fetchCreditOffersByAsset(assetId: any): Promise<any[]>;
|
|
248
|
-
_resolveFallbackAssetIds(policy: any, offer?: any): Promise<
|
|
249
|
-
debtAssetId: string;
|
|
250
|
-
collateralAssetId: string;
|
|
251
|
-
}>;
|
|
127
|
+
_resolveFallbackAssetIds(policy: any, offer?: any): Promise<any>;
|
|
252
128
|
_selectFallbackCreditOffer({ debtAssetId, collateralAssetId, policy, borrowAmount, collateralAmount, autoRepay, pendingRepayAmount, pendingReleaseCollateralAmount, excludeOfferId }?: {
|
|
253
129
|
debtAssetId?: any;
|
|
254
130
|
collateralAssetId?: any;
|
|
@@ -269,163 +145,22 @@ declare class CreditRuntime {
|
|
|
269
145
|
remainingBorrowCapacity?: any;
|
|
270
146
|
autoRepay?: any;
|
|
271
147
|
}): Promise<any>;
|
|
272
|
-
_buildCreditIncreasePlan(lendingItem: any, assetId: any, posState: any): Promise<
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
collateralIncreaseAmount: any;
|
|
276
|
-
minCollateralIncrease: any;
|
|
277
|
-
currentDebtAmount: any;
|
|
278
|
-
maxBorrowAmount: any;
|
|
279
|
-
remainingBorrowCapacity: any;
|
|
280
|
-
assignedCollateralBudget: any;
|
|
281
|
-
}>;
|
|
282
|
-
_splitOversizedCreditDeals(lendingItem: any, assetId: any, posState: any, runtimeContext?: Record<string, any>): Promise<{
|
|
283
|
-
action: string;
|
|
284
|
-
gridMaintenanceResult: any;
|
|
285
|
-
} | {
|
|
286
|
-
skipped: boolean;
|
|
287
|
-
reason: string;
|
|
288
|
-
}>;
|
|
289
|
-
_doSplitOversizedCreditDeals(lendingItem: any, assetId: any, posState: any, runtimeContext?: Record<string, any>): Promise<{
|
|
290
|
-
action: string;
|
|
291
|
-
gridMaintenanceResult: any;
|
|
292
|
-
}>;
|
|
148
|
+
_buildCreditIncreasePlan(lendingItem: any, assetId: any, posState: any): Promise<any>;
|
|
149
|
+
_splitOversizedCreditDeals(lendingItem: any, assetId: any, posState: any, runtimeContext?: Record<string, any>): Promise<any>;
|
|
150
|
+
_doSplitOversizedCreditDeals(lendingItem: any, assetId: any, posState: any, _runtimeContext?: Record<string, any>): Promise<any>;
|
|
293
151
|
_getDealById(dealId: any): Promise<any>;
|
|
294
|
-
processPendingReborrows(): Promise<
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
gridMaintenanceResult?: undefined;
|
|
300
|
-
} | {
|
|
301
|
-
skipped: boolean;
|
|
302
|
-
reason: string;
|
|
303
|
-
processed?: undefined;
|
|
304
|
-
remaining?: undefined;
|
|
305
|
-
gridMaintenanceResult?: undefined;
|
|
306
|
-
} | {
|
|
307
|
-
processed: number;
|
|
308
|
-
remaining: number;
|
|
309
|
-
gridMaintenanceResult: any;
|
|
310
|
-
skipped?: undefined;
|
|
311
|
-
reason?: undefined;
|
|
312
|
-
}>;
|
|
313
|
-
_runMpaMaintenance(context: any, options: Record<string, any>, lendingItem: any, assetId: any): Promise<{
|
|
314
|
-
blocked: boolean;
|
|
315
|
-
reason: any;
|
|
316
|
-
plan?: undefined;
|
|
317
|
-
executed?: undefined;
|
|
318
|
-
resetResult?: undefined;
|
|
319
|
-
resetError?: undefined;
|
|
320
|
-
} | {
|
|
321
|
-
plan: any;
|
|
322
|
-
executed: any[];
|
|
323
|
-
resetResult: any;
|
|
324
|
-
blocked?: undefined;
|
|
325
|
-
reason?: undefined;
|
|
326
|
-
resetError?: undefined;
|
|
327
|
-
} | {
|
|
328
|
-
plan: any;
|
|
329
|
-
executed: any[];
|
|
330
|
-
resetError: any;
|
|
331
|
-
blocked?: undefined;
|
|
332
|
-
reason?: undefined;
|
|
333
|
-
resetResult?: undefined;
|
|
334
|
-
} | {
|
|
335
|
-
plan: any;
|
|
336
|
-
executed: any[];
|
|
337
|
-
blocked?: undefined;
|
|
338
|
-
reason?: undefined;
|
|
339
|
-
resetResult?: undefined;
|
|
340
|
-
resetError?: undefined;
|
|
341
|
-
}>;
|
|
342
|
-
_runCreditMaintenance(lendingItem: any, assetId: any, runtimeContext?: Record<string, any>): Promise<{
|
|
343
|
-
plan: {
|
|
344
|
-
action: string;
|
|
345
|
-
currentCollateralAmount: any;
|
|
346
|
-
collateralIncreaseAmount: any;
|
|
347
|
-
minCollateralIncrease: any;
|
|
348
|
-
currentDebtAmount: any;
|
|
349
|
-
maxBorrowAmount: any;
|
|
350
|
-
remainingBorrowCapacity: any;
|
|
351
|
-
assignedCollateralBudget: any;
|
|
352
|
-
};
|
|
353
|
-
offer: any;
|
|
354
|
-
cappedByBorrowCapacity: boolean;
|
|
355
|
-
collateralAmount: any;
|
|
356
|
-
borrowAmount: any;
|
|
357
|
-
gridMaintenanceResult: any;
|
|
358
|
-
result: any;
|
|
359
|
-
}>;
|
|
360
|
-
runMaintenance(context?: string, options?: Record<string, any>): Promise<{
|
|
361
|
-
skipped: boolean;
|
|
362
|
-
reason: string;
|
|
363
|
-
} | {
|
|
364
|
-
reborrows: {
|
|
365
|
-
processed: number;
|
|
366
|
-
remaining: number;
|
|
367
|
-
skipped?: undefined;
|
|
368
|
-
reason?: undefined;
|
|
369
|
-
gridMaintenanceResult?: undefined;
|
|
370
|
-
} | {
|
|
371
|
-
skipped: boolean;
|
|
372
|
-
reason: string;
|
|
373
|
-
processed?: undefined;
|
|
374
|
-
remaining?: undefined;
|
|
375
|
-
gridMaintenanceResult?: undefined;
|
|
376
|
-
} | {
|
|
377
|
-
processed: number;
|
|
378
|
-
remaining: number;
|
|
379
|
-
gridMaintenanceResult: any;
|
|
380
|
-
skipped?: undefined;
|
|
381
|
-
reason?: undefined;
|
|
382
|
-
};
|
|
383
|
-
context: string;
|
|
384
|
-
mpa: any[];
|
|
385
|
-
credit: any[];
|
|
386
|
-
skipped?: undefined;
|
|
387
|
-
reason?: undefined;
|
|
388
|
-
}>;
|
|
389
|
-
runCreditWatchdog(): Promise<{
|
|
390
|
-
mpa: any[];
|
|
391
|
-
credit: any[];
|
|
392
|
-
reborrows: {
|
|
393
|
-
processed: number;
|
|
394
|
-
remaining: number;
|
|
395
|
-
skipped?: undefined;
|
|
396
|
-
reason?: undefined;
|
|
397
|
-
gridMaintenanceResult?: undefined;
|
|
398
|
-
} | {
|
|
399
|
-
skipped: boolean;
|
|
400
|
-
reason: string;
|
|
401
|
-
processed?: undefined;
|
|
402
|
-
remaining?: undefined;
|
|
403
|
-
gridMaintenanceResult?: undefined;
|
|
404
|
-
} | {
|
|
405
|
-
processed: number;
|
|
406
|
-
remaining: number;
|
|
407
|
-
gridMaintenanceResult: any;
|
|
408
|
-
skipped?: undefined;
|
|
409
|
-
reason?: undefined;
|
|
410
|
-
};
|
|
411
|
-
remainingDeals: any;
|
|
412
|
-
skipped?: undefined;
|
|
413
|
-
reason?: undefined;
|
|
414
|
-
} | {
|
|
415
|
-
skipped: boolean;
|
|
416
|
-
reason: any;
|
|
417
|
-
mpa?: undefined;
|
|
418
|
-
credit?: undefined;
|
|
419
|
-
reborrows?: undefined;
|
|
420
|
-
remainingDeals?: undefined;
|
|
421
|
-
}>;
|
|
152
|
+
processPendingReborrows(): Promise<any>;
|
|
153
|
+
_runMpaMaintenance(context: any, _options: Record<string, any>, lendingItem: any, assetId: any): Promise<any>;
|
|
154
|
+
_runCreditMaintenance(lendingItem: any, assetId: any, runtimeContext?: Record<string, any>): Promise<any>;
|
|
155
|
+
runMaintenance(context?: any, options?: Record<string, any>): Promise<any>;
|
|
156
|
+
runCreditWatchdog(): Promise<any>;
|
|
422
157
|
/**
|
|
423
158
|
* Get total collateral (MPA + credit deals) per asset from the debt snapshot.
|
|
424
159
|
* @param {Array<string>} assetIds - Asset IDs to look up
|
|
425
160
|
* @returns {Object} mapping assetId -> total collateral float
|
|
426
161
|
*/
|
|
427
|
-
getCollateralOffsets(assetIds: any):
|
|
162
|
+
getCollateralOffsets(assetIds: any): Record<string, any>;
|
|
428
163
|
getStateSnapshot(): any;
|
|
429
164
|
}
|
|
430
|
-
export
|
|
165
|
+
export default CreditRuntime;
|
|
431
166
|
//# sourceMappingURL=credit_runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit_runtime.d.ts","sourceRoot":"","sources":["../../modules/credit_runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credit_runtime.d.ts","sourceRoot":"","sources":["../../modules/credit_runtime.ts"],"names":[],"mappings":"AAyQA,cAAM,aAAa;IACf,GAAG,EAAE,GAAG,CAAC;IACT,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC3B,YAAY,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5B,iBAAiB,EAAE,GAAG,CAAC;IACvB,mBAAmB,EAAE,GAAG,CAAC;IACzB,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;gBAEZ,GAAG,EAAE,GAAG,EAAE,OAAO,GAAE,GAAQ;IAuBvC,mBAAmB;;;;;;;;;;;;;;;;;IAoBnB,IAAI,UAAU,QAIb;IAED,SAAS;IAST,YAAY,CAAC,WAAW,EAAE,GA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