dexbot 1.1.10
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/LICENSE +21 -0
- package/README.md +287 -0
- package/claw/README.md +513 -0
- package/claw/scripts/memu_runner.py +385 -0
- package/claw/skills/bitshares-guide/SKILL.md +14 -0
- package/claw/skills/bitshares-guide/references/example-skill-shells.md +18 -0
- package/claw/skills/bitshares-guide/references/presentation-patterns.md +19 -0
- package/claw/skills/bitshares-guide/references/scope-guardrails.md +9 -0
- package/claw/skills/launcher-ops/SKILL.md +18 -0
- package/claw/skills/launcher-ops/references/launcher-workflow.md +23 -0
- package/claw/skills/margin-trading/SKILL.md +23 -0
- package/claw/skills/margin-trading/references/honest-asset-list.md +74 -0
- package/claw/skills/margin-trading/references/honest-assets.md +44 -0
- package/claw/skills/margin-trading/references/position-management.md +203 -0
- package/claw/skills/margin-trading/references/trading-concepts.md +80 -0
- package/claw/skills/memu-memory/SKILL.md +218 -0
- package/claw/skills/shared/references/js-automation-overview.md +24 -0
- package/claw/skills/shared/references/safety-and-staleness.md +11 -0
- package/claw/skills/shared/references/skill-boundaries.md +17 -0
- package/claw/skills/trend-detection/SKILL.md +33 -0
- package/claw/skills/trend-detection/agents/openai.yaml +3 -0
- package/claw/skills/trend-detection/references/service.md +45 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.d.ts +3 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.js +149 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.js.map +1 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.d.ts +3 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js +387 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js.map +1 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.d.ts +3 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.js +200 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.js.map +1 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.d.ts +3 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.js +212 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.js.map +1 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.d.ts +31 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.js +249 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.js.map +1 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.d.ts +2 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.js +782 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.js.map +1 -0
- package/dist/analysis/analyze_derivatives.d.ts +95 -0
- package/dist/analysis/analyze_derivatives.d.ts.map +1 -0
- package/dist/analysis/analyze_derivatives.js +295 -0
- package/dist/analysis/analyze_derivatives.js.map +1 -0
- package/dist/analysis/analyze_dynamic_weight.d.ts +14 -0
- package/dist/analysis/analyze_dynamic_weight.d.ts.map +1 -0
- package/dist/analysis/analyze_dynamic_weight.js +208 -0
- package/dist/analysis/analyze_dynamic_weight.js.map +1 -0
- package/dist/analysis/analyze_kalman.d.ts +13 -0
- package/dist/analysis/analyze_kalman.d.ts.map +1 -0
- package/dist/analysis/analyze_kalman.js +123 -0
- package/dist/analysis/analyze_kalman.js.map +1 -0
- package/dist/analysis/analyze_regime.d.ts +20 -0
- package/dist/analysis/analyze_regime.d.ts.map +1 -0
- package/dist/analysis/analyze_regime.js +139 -0
- package/dist/analysis/analyze_regime.js.map +1 -0
- package/dist/analysis/analyze_regime_windows.d.ts +19 -0
- package/dist/analysis/analyze_regime_windows.d.ts.map +1 -0
- package/dist/analysis/analyze_regime_windows.js +413 -0
- package/dist/analysis/analyze_regime_windows.js.map +1 -0
- package/dist/analysis/analyze_risk_profile.d.ts +3 -0
- package/dist/analysis/analyze_risk_profile.d.ts.map +1 -0
- package/dist/analysis/analyze_risk_profile.js +159 -0
- package/dist/analysis/analyze_risk_profile.js.map +1 -0
- package/dist/analysis/analyze_trade_heatmap.d.ts +3 -0
- package/dist/analysis/analyze_trade_heatmap.d.ts.map +1 -0
- package/dist/analysis/analyze_trade_heatmap.js +367 -0
- package/dist/analysis/analyze_trade_heatmap.js.map +1 -0
- package/dist/analysis/analyze_volatility.d.ts +22 -0
- package/dist/analysis/analyze_volatility.d.ts.map +1 -0
- package/dist/analysis/analyze_volatility.js +172 -0
- package/dist/analysis/analyze_volatility.js.map +1 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.d.ts +99 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.d.ts.map +1 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.js +804 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.js.map +1 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.d.ts +2 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.d.ts.map +1 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.js +347 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.js.map +1 -0
- package/dist/analysis/bot_fitting/shared_utils.d.ts +15 -0
- package/dist/analysis/bot_fitting/shared_utils.d.ts.map +1 -0
- package/dist/analysis/bot_fitting/shared_utils.js +48 -0
- package/dist/analysis/bot_fitting/shared_utils.js.map +1 -0
- package/dist/analysis/bot_key_utils.d.ts +16 -0
- package/dist/analysis/bot_key_utils.d.ts.map +1 -0
- package/dist/analysis/bot_key_utils.js +61 -0
- package/dist/analysis/bot_key_utils.js.map +1 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.d.ts +3 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.d.ts.map +1 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.js +498 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.js.map +1 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.d.ts +546 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.d.ts.map +1 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.js +427 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.js.map +1 -0
- package/dist/analysis/chart_utils.d.ts +13 -0
- package/dist/analysis/chart_utils.d.ts.map +1 -0
- package/dist/analysis/chart_utils.js +142 -0
- package/dist/analysis/chart_utils.js.map +1 -0
- package/dist/analysis/derivative_chart_generator.d.ts +18 -0
- package/dist/analysis/derivative_chart_generator.d.ts.map +1 -0
- package/dist/analysis/derivative_chart_generator.js +896 -0
- package/dist/analysis/derivative_chart_generator.js.map +1 -0
- package/dist/analysis/math_utils.d.ts +35 -0
- package/dist/analysis/math_utils.d.ts.map +1 -0
- package/dist/analysis/math_utils.js +121 -0
- package/dist/analysis/math_utils.js.map +1 -0
- package/dist/analysis/price_sources.d.ts +34 -0
- package/dist/analysis/price_sources.d.ts.map +1 -0
- package/dist/analysis/price_sources.js +103 -0
- package/dist/analysis/price_sources.js.map +1 -0
- package/dist/analysis/trade_profitability.d.ts +115 -0
- package/dist/analysis/trade_profitability.d.ts.map +1 -0
- package/dist/analysis/trade_profitability.js +1247 -0
- package/dist/analysis/trade_profitability.js.map +1 -0
- package/dist/analysis/tradingview/analyze_tradingview.d.ts +38 -0
- package/dist/analysis/tradingview/analyze_tradingview.d.ts.map +1 -0
- package/dist/analysis/tradingview/analyze_tradingview.js +212 -0
- package/dist/analysis/tradingview/analyze_tradingview.js.map +1 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts +9 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts.map +1 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js +1717 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/derivative_analyzer.d.ts +250 -0
- package/dist/analysis/trend_detection/derivative_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/derivative_analyzer.js +903 -0
- package/dist/analysis/trend_detection/derivative_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js +1449 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/hurst_analyzer.d.ts +42 -0
- package/dist/analysis/trend_detection/hurst_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/hurst_analyzer.js +159 -0
- package/dist/analysis/trend_detection/hurst_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.js +408 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.d.ts +103 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js +229 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.d.ts +34 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.d.ts.map +1 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js +89 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js.map +1 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.d.ts +39 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js +132 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/regime_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/regime_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/regime_chart_generator.js +345 -0
- package/dist/analysis/trend_detection/regime_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.d.ts +2 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.d.ts.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.js +130 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.js.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.d.ts +2 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.d.ts.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.js +38 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.js.map +1 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.js +732 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.js.map +1 -0
- package/dist/bot.d.ts +49 -0
- package/dist/bot.d.ts.map +1 -0
- package/dist/bot.js +221 -0
- package/dist/bot.js.map +1 -0
- package/dist/credential-daemon.d.ts +64 -0
- package/dist/credential-daemon.d.ts.map +1 -0
- package/dist/credential-daemon.js +987 -0
- package/dist/credential-daemon.js.map +1 -0
- package/dist/dexbot.d.ts +87 -0
- package/dist/dexbot.d.ts.map +1 -0
- package/dist/dexbot.js +1222 -0
- package/dist/dexbot.js.map +1 -0
- package/dist/market_adapter/ama_signal_runner.d.ts +3 -0
- package/dist/market_adapter/ama_signal_runner.d.ts.map +1 -0
- package/dist/market_adapter/ama_signal_runner.js +175 -0
- package/dist/market_adapter/ama_signal_runner.js.map +1 -0
- package/dist/market_adapter/candle_utils.d.ts +57 -0
- package/dist/market_adapter/candle_utils.d.ts.map +1 -0
- package/dist/market_adapter/candle_utils.js +252 -0
- package/dist/market_adapter/candle_utils.js.map +1 -0
- package/dist/market_adapter/core/asymmetric_bounds.d.ts +20 -0
- package/dist/market_adapter/core/asymmetric_bounds.d.ts.map +1 -0
- package/dist/market_adapter/core/asymmetric_bounds.js +88 -0
- package/dist/market_adapter/core/asymmetric_bounds.js.map +1 -0
- package/dist/market_adapter/core/config_normalizers.d.ts +10 -0
- package/dist/market_adapter/core/config_normalizers.d.ts.map +1 -0
- package/dist/market_adapter/core/config_normalizers.js +24 -0
- package/dist/market_adapter/core/config_normalizers.js.map +1 -0
- package/dist/market_adapter/core/kibana_candles.d.ts +74 -0
- package/dist/market_adapter/core/kibana_candles.d.ts.map +1 -0
- package/dist/market_adapter/core/kibana_candles.js +249 -0
- package/dist/market_adapter/core/kibana_candles.js.map +1 -0
- package/dist/market_adapter/core/kibana_client.d.ts +27 -0
- package/dist/market_adapter/core/kibana_client.d.ts.map +1 -0
- package/dist/market_adapter/core/kibana_client.js +120 -0
- package/dist/market_adapter/core/kibana_client.js.map +1 -0
- package/dist/market_adapter/core/kibana_market_candles.d.ts +143 -0
- package/dist/market_adapter/core/kibana_market_candles.d.ts.map +1 -0
- package/dist/market_adapter/core/kibana_market_candles.js +170 -0
- package/dist/market_adapter/core/kibana_market_candles.js.map +1 -0
- package/dist/market_adapter/core/market_adapter_service.d.ts +210 -0
- package/dist/market_adapter/core/market_adapter_service.d.ts.map +1 -0
- package/dist/market_adapter/core/market_adapter_service.js +2328 -0
- package/dist/market_adapter/core/market_adapter_service.js.map +1 -0
- package/dist/market_adapter/core/strategies/ama.d.ts +2 -0
- package/dist/market_adapter/core/strategies/ama.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/ama.js +138 -0
- package/dist/market_adapter/core/strategies/ama.js.map +1 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts +50 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.js +143 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.js.map +1 -0
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts +12 -0
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/atr/calculator.js +47 -0
- package/dist/market_adapter/core/strategies/atr/calculator.js.map +1 -0
- package/dist/market_adapter/core/strategies/collateral_manager.d.ts +32 -0
- package/dist/market_adapter/core/strategies/collateral_manager.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/collateral_manager.js +68 -0
- package/dist/market_adapter/core/strategies/collateral_manager.js.map +1 -0
- package/dist/market_adapter/core/strategies/regime_gate.d.ts +66 -0
- package/dist/market_adapter/core/strategies/regime_gate.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/regime_gate.js +189 -0
- package/dist/market_adapter/core/strategies/regime_gate.js.map +1 -0
- package/dist/market_adapter/index.d.ts +10 -0
- package/dist/market_adapter/index.d.ts.map +1 -0
- package/dist/market_adapter/index.js +71 -0
- package/dist/market_adapter/index.js.map +1 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.d.ts +3 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.d.ts.map +1 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js +1165 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js.map +1 -0
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts +54 -0
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts.map +1 -0
- package/dist/market_adapter/inputs/fetch_lp_data.js +743 -0
- package/dist/market_adapter/inputs/fetch_lp_data.js.map +1 -0
- package/dist/market_adapter/inputs/kibana_source.d.ts +68 -0
- package/dist/market_adapter/inputs/kibana_source.d.ts.map +1 -0
- package/dist/market_adapter/inputs/kibana_source.js +143 -0
- package/dist/market_adapter/inputs/kibana_source.js.map +1 -0
- package/dist/market_adapter/interval_utils.d.ts +6 -0
- package/dist/market_adapter/interval_utils.d.ts.map +1 -0
- package/dist/market_adapter/interval_utils.js +14 -0
- package/dist/market_adapter/interval_utils.js.map +1 -0
- package/dist/market_adapter/log_format.d.ts +16 -0
- package/dist/market_adapter/log_format.d.ts.map +1 -0
- package/dist/market_adapter/log_format.js +72 -0
- package/dist/market_adapter/log_format.js.map +1 -0
- package/dist/market_adapter/lp_chart_core.d.ts +6 -0
- package/dist/market_adapter/lp_chart_core.d.ts.map +1 -0
- package/dist/market_adapter/lp_chart_core.js +874 -0
- package/dist/market_adapter/lp_chart_core.js.map +1 -0
- package/dist/market_adapter/lp_chart_runner.d.ts +135 -0
- package/dist/market_adapter/lp_chart_runner.d.ts.map +1 -0
- package/dist/market_adapter/lp_chart_runner.js +337 -0
- package/dist/market_adapter/lp_chart_runner.js.map +1 -0
- package/dist/market_adapter/lp_chart_strategy_loader.d.ts +23 -0
- package/dist/market_adapter/lp_chart_strategy_loader.d.ts.map +1 -0
- package/dist/market_adapter/lp_chart_strategy_loader.js +169 -0
- package/dist/market_adapter/lp_chart_strategy_loader.js.map +1 -0
- package/dist/market_adapter/market_adapter.d.ts +133 -0
- package/dist/market_adapter/market_adapter.d.ts.map +1 -0
- package/dist/market_adapter/market_adapter.js +1331 -0
- package/dist/market_adapter/market_adapter.js.map +1 -0
- package/dist/market_adapter/merge_lp_data.d.ts +3 -0
- package/dist/market_adapter/merge_lp_data.d.ts.map +1 -0
- package/dist/market_adapter/merge_lp_data.js +125 -0
- package/dist/market_adapter/merge_lp_data.js.map +1 -0
- package/dist/market_adapter/test_helpers.d.ts +14 -0
- package/dist/market_adapter/test_helpers.d.ts.map +1 -0
- package/dist/market_adapter/test_helpers.js +22 -0
- package/dist/market_adapter/test_helpers.js.map +1 -0
- package/dist/market_adapter/utils/adapter_client.d.ts +20 -0
- package/dist/market_adapter/utils/adapter_client.d.ts.map +1 -0
- package/dist/market_adapter/utils/adapter_client.js +88 -0
- package/dist/market_adapter/utils/adapter_client.js.map +1 -0
- package/dist/market_adapter/utils/atomic_write.d.ts +9 -0
- package/dist/market_adapter/utils/atomic_write.d.ts.map +1 -0
- package/dist/market_adapter/utils/atomic_write.js +13 -0
- package/dist/market_adapter/utils/atomic_write.js.map +1 -0
- package/dist/market_adapter/utils/chain.d.ts +50 -0
- package/dist/market_adapter/utils/chain.d.ts.map +1 -0
- package/dist/market_adapter/utils/chain.js +196 -0
- package/dist/market_adapter/utils/chain.js.map +1 -0
- package/dist/market_adapter/utils/data_discovery.d.ts +6 -0
- package/dist/market_adapter/utils/data_discovery.d.ts.map +1 -0
- package/dist/market_adapter/utils/data_discovery.js +35 -0
- package/dist/market_adapter/utils/data_discovery.js.map +1 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts +15 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts.map +1 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js +60 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js.map +1 -0
- package/dist/market_adapter/utils/file_lock.d.ts +19 -0
- package/dist/market_adapter/utils/file_lock.d.ts.map +1 -0
- package/dist/market_adapter/utils/file_lock.js +191 -0
- package/dist/market_adapter/utils/file_lock.js.map +1 -0
- package/dist/market_adapter/utils/native_history.d.ts +19 -0
- package/dist/market_adapter/utils/native_history.d.ts.map +1 -0
- package/dist/market_adapter/utils/native_history.js +172 -0
- package/dist/market_adapter/utils/native_history.js.map +1 -0
- package/dist/market_adapter/utils/paths.d.ts +5 -0
- package/dist/market_adapter/utils/paths.d.ts.map +1 -0
- package/dist/market_adapter/utils/paths.js +7 -0
- package/dist/market_adapter/utils/paths.js.map +1 -0
- package/dist/modules/account_bots.d.ts +112 -0
- package/dist/modules/account_bots.d.ts.map +1 -0
- package/dist/modules/account_bots.js +1259 -0
- package/dist/modules/account_bots.js.map +1 -0
- package/dist/modules/account_orders.d.ts +273 -0
- package/dist/modules/account_orders.d.ts.map +1 -0
- package/dist/modules/account_orders.js +662 -0
- package/dist/modules/account_orders.js.map +1 -0
- package/dist/modules/authority_resolver.d.ts +2 -0
- package/dist/modules/authority_resolver.d.ts.map +1 -0
- package/dist/modules/authority_resolver.js +231 -0
- package/dist/modules/authority_resolver.js.map +1 -0
- package/dist/modules/bitshares-native/chain_client.d.ts +38 -0
- package/dist/modules/bitshares-native/chain_client.d.ts.map +1 -0
- package/dist/modules/bitshares-native/chain_client.js +322 -0
- package/dist/modules/bitshares-native/chain_client.js.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts +59 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.js +456 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.js.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.d.ts +66 -0
- package/dist/modules/bitshares-native/crypto/ecc.d.ts.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.js +557 -0
- package/dist/modules/bitshares-native/crypto/ecc.js.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.d.ts +2 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.d.ts.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.js +20 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.js.map +1 -0
- package/dist/modules/bitshares-native/index.d.ts +3 -0
- package/dist/modules/bitshares-native/index.d.ts.map +1 -0
- package/dist/modules/bitshares-native/index.js +32 -0
- package/dist/modules/bitshares-native/index.js.map +1 -0
- package/dist/modules/bitshares-native/resolvers.d.ts +40 -0
- package/dist/modules/bitshares-native/resolvers.d.ts.map +1 -0
- package/dist/modules/bitshares-native/resolvers.js +161 -0
- package/dist/modules/bitshares-native/resolvers.js.map +1 -0
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts +56 -0
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/chain_constants.js +92 -0
- package/dist/modules/bitshares-native/serial/chain_constants.js.map +1 -0
- package/dist/modules/bitshares-native/serial/index.d.ts +10 -0
- package/dist/modules/bitshares-native/serial/index.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/index.js +14 -0
- package/dist/modules/bitshares-native/serial/index.js.map +1 -0
- package/dist/modules/bitshares-native/serial/operations.d.ts +102 -0
- package/dist/modules/bitshares-native/serial/operations.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/operations.js +615 -0
- package/dist/modules/bitshares-native/serial/operations.js.map +1 -0
- package/dist/modules/bitshares-native/serial/serializer.d.ts +64 -0
- package/dist/modules/bitshares-native/serial/serializer.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/serializer.js +252 -0
- package/dist/modules/bitshares-native/serial/serializer.js.map +1 -0
- package/dist/modules/bitshares-native/serial/types.d.ts +120 -0
- package/dist/modules/bitshares-native/serial/types.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/types.js +837 -0
- package/dist/modules/bitshares-native/serial/types.js.map +1 -0
- package/dist/modules/bitshares-native/signing_client.d.ts +6 -0
- package/dist/modules/bitshares-native/signing_client.d.ts.map +1 -0
- package/dist/modules/bitshares-native/signing_client.js +141 -0
- package/dist/modules/bitshares-native/signing_client.js.map +1 -0
- package/dist/modules/bitshares-native/subscriptions.d.ts +6 -0
- package/dist/modules/bitshares-native/subscriptions.d.ts.map +1 -0
- package/dist/modules/bitshares-native/subscriptions.js +865 -0
- package/dist/modules/bitshares-native/subscriptions.js.map +1 -0
- package/dist/modules/bitshares-native/transport.d.ts +51 -0
- package/dist/modules/bitshares-native/transport.d.ts.map +1 -0
- package/dist/modules/bitshares-native/transport.js +447 -0
- package/dist/modules/bitshares-native/transport.js.map +1 -0
- package/dist/modules/bitshares-native/tx/builder.d.ts +30 -0
- package/dist/modules/bitshares-native/tx/builder.d.ts.map +1 -0
- package/dist/modules/bitshares-native/tx/builder.js +262 -0
- package/dist/modules/bitshares-native/tx/builder.js.map +1 -0
- package/dist/modules/bitshares_client.d.ts +129 -0
- package/dist/modules/bitshares_client.d.ts.map +1 -0
- package/dist/modules/bitshares_client.js +627 -0
- package/dist/modules/bitshares_client.js.map +1 -0
- package/dist/modules/bot_settings.d.ts +33 -0
- package/dist/modules/bot_settings.d.ts.map +1 -0
- package/dist/modules/bot_settings.js +328 -0
- package/dist/modules/bot_settings.js.map +1 -0
- package/dist/modules/bots_file_lock.d.ts +88 -0
- package/dist/modules/bots_file_lock.d.ts.map +1 -0
- package/dist/modules/bots_file_lock.js +161 -0
- package/dist/modules/bots_file_lock.js.map +1 -0
- package/dist/modules/chain_keys.d.ts +302 -0
- package/dist/modules/chain_keys.d.ts.map +1 -0
- package/dist/modules/chain_keys.js +1095 -0
- package/dist/modules/chain_keys.js.map +1 -0
- package/dist/modules/chain_orders.d.ts +423 -0
- package/dist/modules/chain_orders.d.ts.map +1 -0
- package/dist/modules/chain_orders.js +1201 -0
- package/dist/modules/chain_orders.js.map +1 -0
- package/dist/modules/cli_whitelist_args.d.ts +6 -0
- package/dist/modules/cli_whitelist_args.d.ts.map +1 -0
- package/dist/modules/cli_whitelist_args.js +13 -0
- package/dist/modules/cli_whitelist_args.js.map +1 -0
- package/dist/modules/config.d.ts +57 -0
- package/dist/modules/config.d.ts.map +1 -0
- package/dist/modules/config.js +107 -0
- package/dist/modules/config.js.map +1 -0
- package/dist/modules/constants.d.ts +635 -0
- package/dist/modules/constants.d.ts.map +1 -0
- package/dist/modules/constants.js +1464 -0
- package/dist/modules/constants.js.map +1 -0
- package/dist/modules/cr_planner.d.ts +51 -0
- package/dist/modules/cr_planner.d.ts.map +1 -0
- package/dist/modules/cr_planner.js +299 -0
- package/dist/modules/cr_planner.js.map +1 -0
- package/dist/modules/credential_policy.d.ts +188 -0
- package/dist/modules/credential_policy.d.ts.map +1 -0
- package/dist/modules/credential_policy.js +1452 -0
- package/dist/modules/credential_policy.js.map +1 -0
- package/dist/modules/credential_runtime.d.ts +42 -0
- package/dist/modules/credential_runtime.d.ts.map +1 -0
- package/dist/modules/credential_runtime.js +148 -0
- package/dist/modules/credential_runtime.js.map +1 -0
- package/dist/modules/credential_session_cache.d.ts +36 -0
- package/dist/modules/credential_session_cache.d.ts.map +1 -0
- package/dist/modules/credential_session_cache.js +106 -0
- package/dist/modules/credential_session_cache.js.map +1 -0
- package/dist/modules/credit_runtime.d.ts +412 -0
- package/dist/modules/credit_runtime.d.ts.map +1 -0
- package/dist/modules/credit_runtime.js +2866 -0
- package/dist/modules/credit_runtime.js.map +1 -0
- package/dist/modules/crypto/browser_provider.d.ts +15 -0
- package/dist/modules/crypto/browser_provider.d.ts.map +1 -0
- package/dist/modules/crypto/browser_provider.js +113 -0
- package/dist/modules/crypto/browser_provider.js.map +1 -0
- package/dist/modules/crypto/index.d.ts +9 -0
- package/dist/modules/crypto/index.d.ts.map +1 -0
- package/dist/modules/crypto/index.js +44 -0
- package/dist/modules/crypto/index.js.map +1 -0
- package/dist/modules/crypto/node_provider.d.ts +15 -0
- package/dist/modules/crypto/node_provider.d.ts.map +1 -0
- package/dist/modules/crypto/node_provider.js +74 -0
- package/dist/modules/crypto/node_provider.js.map +1 -0
- package/dist/modules/crypto/provider.d.ts +34 -0
- package/dist/modules/crypto/provider.d.ts.map +1 -0
- package/dist/modules/crypto/provider.js +3 -0
- package/dist/modules/crypto/provider.js.map +1 -0
- package/dist/modules/crypto/pure_ripemd160.d.ts +8 -0
- package/dist/modules/crypto/pure_ripemd160.d.ts.map +1 -0
- package/dist/modules/crypto/pure_ripemd160.js +142 -0
- package/dist/modules/crypto/pure_ripemd160.js.map +1 -0
- package/dist/modules/crypto/pure_scrypt.d.ts +23 -0
- package/dist/modules/crypto/pure_scrypt.d.ts.map +1 -0
- package/dist/modules/crypto/pure_scrypt.js +161 -0
- package/dist/modules/crypto/pure_scrypt.js.map +1 -0
- package/dist/modules/crypto/pure_secp256k1.d.ts +29 -0
- package/dist/modules/crypto/pure_secp256k1.d.ts.map +1 -0
- package/dist/modules/crypto/pure_secp256k1.js +195 -0
- package/dist/modules/crypto/pure_secp256k1.js.map +1 -0
- package/dist/modules/crypto/sync.d.ts +13 -0
- package/dist/modules/crypto/sync.d.ts.map +1 -0
- package/dist/modules/crypto/sync.js +37 -0
- package/dist/modules/crypto/sync.js.map +1 -0
- package/dist/modules/dexbot_class.d.ts +1074 -0
- package/dist/modules/dexbot_class.d.ts.map +1 -0
- package/dist/modules/dexbot_class.js +4613 -0
- package/dist/modules/dexbot_class.js.map +1 -0
- package/dist/modules/dexbot_credential_client.d.ts +71 -0
- package/dist/modules/dexbot_credential_client.d.ts.map +1 -0
- package/dist/modules/dexbot_credential_client.js +224 -0
- package/dist/modules/dexbot_credential_client.js.map +1 -0
- package/dist/modules/dexbot_fill_runtime.d.ts +173 -0
- package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -0
- package/dist/modules/dexbot_fill_runtime.js +217 -0
- package/dist/modules/dexbot_fill_runtime.js.map +1 -0
- package/dist/modules/dexbot_maintenance_runtime.d.ts +279 -0
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -0
- package/dist/modules/dexbot_maintenance_runtime.js +1613 -0
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -0
- package/dist/modules/env.d.ts +12 -0
- package/dist/modules/env.d.ts.map +1 -0
- package/dist/modules/env.js +57 -0
- package/dist/modules/env.js.map +1 -0
- package/dist/modules/fund_registry.d.ts +96 -0
- package/dist/modules/fund_registry.d.ts.map +1 -0
- package/dist/modules/fund_registry.js +261 -0
- package/dist/modules/fund_registry.js.map +1 -0
- package/dist/modules/general_settings.d.ts +36 -0
- package/dist/modules/general_settings.d.ts.map +1 -0
- package/dist/modules/general_settings.js +63 -0
- package/dist/modules/general_settings.js.map +1 -0
- package/dist/modules/graceful_shutdown.d.ts +86 -0
- package/dist/modules/graceful_shutdown.d.ts.map +1 -0
- package/dist/modules/graceful_shutdown.js +164 -0
- package/dist/modules/graceful_shutdown.js.map +1 -0
- package/dist/modules/key_store.d.ts +60 -0
- package/dist/modules/key_store.d.ts.map +1 -0
- package/dist/modules/key_store.js +215 -0
- package/dist/modules/key_store.js.map +1 -0
- package/dist/modules/launcher/bot_supervisor.d.ts +84 -0
- package/dist/modules/launcher/bot_supervisor.d.ts.map +1 -0
- package/dist/modules/launcher/bot_supervisor.js +1067 -0
- package/dist/modules/launcher/bot_supervisor.js.map +1 -0
- package/dist/modules/launcher/child_env.d.ts +9 -0
- package/dist/modules/launcher/child_env.d.ts.map +1 -0
- package/dist/modules/launcher/child_env.js +78 -0
- package/dist/modules/launcher/child_env.js.map +1 -0
- package/dist/modules/launcher/credential_bootstrap.d.ts +22 -0
- package/dist/modules/launcher/credential_bootstrap.d.ts.map +1 -0
- package/dist/modules/launcher/credential_bootstrap.js +303 -0
- package/dist/modules/launcher/credential_bootstrap.js.map +1 -0
- package/dist/modules/launcher/credential_daemon.d.ts +32 -0
- package/dist/modules/launcher/credential_daemon.d.ts.map +1 -0
- package/dist/modules/launcher/credential_daemon.js +173 -0
- package/dist/modules/launcher/credential_daemon.js.map +1 -0
- package/dist/modules/launcher/credential_secret.d.ts +6 -0
- package/dist/modules/launcher/credential_secret.d.ts.map +1 -0
- package/dist/modules/launcher/credential_secret.js +15 -0
- package/dist/modules/launcher/credential_secret.js.map +1 -0
- package/dist/modules/launcher/foreign_cred_daemon.d.ts +2 -0
- package/dist/modules/launcher/foreign_cred_daemon.d.ts.map +1 -0
- package/dist/modules/launcher/foreign_cred_daemon.js +166 -0
- package/dist/modules/launcher/foreign_cred_daemon.js.map +1 -0
- package/dist/modules/launcher/headless_password.d.ts +8 -0
- package/dist/modules/launcher/headless_password.d.ts.map +1 -0
- package/dist/modules/launcher/headless_password.js +33 -0
- package/dist/modules/launcher/headless_password.js.map +1 -0
- package/dist/modules/launcher/launch_modes.d.ts +36 -0
- package/dist/modules/launcher/launch_modes.d.ts.map +1 -0
- package/dist/modules/launcher/launch_modes.js +129 -0
- package/dist/modules/launcher/launch_modes.js.map +1 -0
- package/dist/modules/launcher/market_adapter_runtime.d.ts +43 -0
- package/dist/modules/launcher/market_adapter_runtime.d.ts.map +1 -0
- package/dist/modules/launcher/market_adapter_runtime.js +217 -0
- package/dist/modules/launcher/market_adapter_runtime.js.map +1 -0
- package/dist/modules/launcher/market_adapter_watchdog.d.ts +26 -0
- package/dist/modules/launcher/market_adapter_watchdog.d.ts.map +1 -0
- package/dist/modules/launcher/market_adapter_watchdog.js +214 -0
- package/dist/modules/launcher/market_adapter_watchdog.js.map +1 -0
- package/dist/modules/launcher/monolithic_runtime.d.ts +89 -0
- package/dist/modules/launcher/monolithic_runtime.d.ts.map +1 -0
- package/dist/modules/launcher/monolithic_runtime.js +425 -0
- package/dist/modules/launcher/monolithic_runtime.js.map +1 -0
- package/dist/modules/launcher/runtime_entry.d.ts +26 -0
- package/dist/modules/launcher/runtime_entry.d.ts.map +1 -0
- package/dist/modules/launcher/runtime_entry.js +49 -0
- package/dist/modules/launcher/runtime_entry.js.map +1 -0
- package/dist/modules/launcher/status_reporting.d.ts +48 -0
- package/dist/modules/launcher/status_reporting.d.ts.map +1 -0
- package/dist/modules/launcher/status_reporting.js +113 -0
- package/dist/modules/launcher/status_reporting.js.map +1 -0
- package/dist/modules/launcher/supervisor_control.d.ts +6 -0
- package/dist/modules/launcher/supervisor_control.d.ts.map +1 -0
- package/dist/modules/launcher/supervisor_control.js +59 -0
- package/dist/modules/launcher/supervisor_control.js.map +1 -0
- package/dist/modules/logger.d.ts +2 -0
- package/dist/modules/logger.d.ts.map +1 -0
- package/dist/modules/logger.js +71 -0
- package/dist/modules/logger.js.map +1 -0
- package/dist/modules/market_adapter_whitelist.d.ts +22 -0
- package/dist/modules/market_adapter_whitelist.d.ts.map +1 -0
- package/dist/modules/market_adapter_whitelist.js +82 -0
- package/dist/modules/market_adapter_whitelist.js.map +1 -0
- package/dist/modules/node_health_cache.d.ts +55 -0
- package/dist/modules/node_health_cache.d.ts.map +1 -0
- package/dist/modules/node_health_cache.js +134 -0
- package/dist/modules/node_health_cache.js.map +1 -0
- package/dist/modules/node_manager.d.ts +215 -0
- package/dist/modules/node_manager.d.ts.map +1 -0
- package/dist/modules/node_manager.js +628 -0
- package/dist/modules/node_manager.js.map +1 -0
- package/dist/modules/order/accounting.d.ts +349 -0
- package/dist/modules/order/accounting.d.ts.map +1 -0
- package/dist/modules/order/accounting.js +1191 -0
- package/dist/modules/order/accounting.js.map +1 -0
- package/dist/modules/order/async_lock.d.ts +126 -0
- package/dist/modules/order/async_lock.d.ts.map +1 -0
- package/dist/modules/order/async_lock.js +195 -0
- package/dist/modules/order/async_lock.js.map +1 -0
- package/dist/modules/order/export.d.ts +129 -0
- package/dist/modules/order/export.d.ts.map +1 -0
- package/dist/modules/order/export.js +316 -0
- package/dist/modules/order/export.js.map +1 -0
- package/dist/modules/order/format.d.ts +158 -0
- package/dist/modules/order/format.d.ts.map +1 -0
- package/dist/modules/order/format.js +232 -0
- package/dist/modules/order/format.js.map +1 -0
- package/dist/modules/order/grid.d.ts +549 -0
- package/dist/modules/order/grid.d.ts.map +1 -0
- package/dist/modules/order/grid.js +1746 -0
- package/dist/modules/order/grid.js.map +1 -0
- package/dist/modules/order/grid_reconcile.d.ts +154 -0
- package/dist/modules/order/grid_reconcile.d.ts.map +1 -0
- package/dist/modules/order/grid_reconcile.js +1192 -0
- package/dist/modules/order/grid_reconcile.js.map +1 -0
- package/dist/modules/order/index.d.ts +55 -0
- package/dist/modules/order/index.d.ts.map +1 -0
- package/dist/modules/order/index.js +79 -0
- package/dist/modules/order/index.js.map +1 -0
- package/dist/modules/order/logger.d.ts +136 -0
- package/dist/modules/order/logger.d.ts.map +1 -0
- package/dist/modules/order/logger.js +614 -0
- package/dist/modules/order/logger.js.map +1 -0
- package/dist/modules/order/logger_state.d.ts +133 -0
- package/dist/modules/order/logger_state.d.ts.map +1 -0
- package/dist/modules/order/logger_state.js +170 -0
- package/dist/modules/order/logger_state.js.map +1 -0
- package/dist/modules/order/manager.d.ts +413 -0
- package/dist/modules/order/manager.d.ts.map +1 -0
- package/dist/modules/order/manager.js +1605 -0
- package/dist/modules/order/manager.js.map +1 -0
- package/dist/modules/order/processed_fill_store.d.ts +135 -0
- package/dist/modules/order/processed_fill_store.d.ts.map +1 -0
- package/dist/modules/order/processed_fill_store.js +288 -0
- package/dist/modules/order/processed_fill_store.js.map +1 -0
- package/dist/modules/order/runner.d.ts +70 -0
- package/dist/modules/order/runner.d.ts.map +1 -0
- package/dist/modules/order/runner.js +140 -0
- package/dist/modules/order/runner.js.map +1 -0
- package/dist/modules/order/strategy.d.ts +196 -0
- package/dist/modules/order/strategy.d.ts.map +1 -0
- package/dist/modules/order/strategy.js +398 -0
- package/dist/modules/order/strategy.js.map +1 -0
- package/dist/modules/order/sync_engine.d.ts +386 -0
- package/dist/modules/order/sync_engine.d.ts.map +1 -0
- package/dist/modules/order/sync_engine.js +1459 -0
- package/dist/modules/order/sync_engine.js.map +1 -0
- package/dist/modules/order/utils/math.d.ts +677 -0
- package/dist/modules/order/utils/math.d.ts.map +1 -0
- package/dist/modules/order/utils/math.js +1172 -0
- package/dist/modules/order/utils/math.js.map +1 -0
- package/dist/modules/order/utils/order.d.ts +572 -0
- package/dist/modules/order/utils/order.d.ts.map +1 -0
- package/dist/modules/order/utils/order.js +1145 -0
- package/dist/modules/order/utils/order.js.map +1 -0
- package/dist/modules/order/utils/system.d.ts +268 -0
- package/dist/modules/order/utils/system.d.ts.map +1 -0
- package/dist/modules/order/utils/system.js +1261 -0
- package/dist/modules/order/utils/system.js.map +1 -0
- package/dist/modules/order/utils/validate.d.ts +280 -0
- package/dist/modules/order/utils/validate.d.ts.map +1 -0
- package/dist/modules/order/utils/validate.js +918 -0
- package/dist/modules/order/utils/validate.js.map +1 -0
- package/dist/modules/order/working_grid.d.ts +212 -0
- package/dist/modules/order/working_grid.d.ts.map +1 -0
- package/dist/modules/order/working_grid.js +279 -0
- package/dist/modules/order/working_grid.js.map +1 -0
- package/dist/modules/path_api.d.ts +32 -0
- package/dist/modules/path_api.d.ts.map +1 -0
- package/dist/modules/path_api.js +148 -0
- package/dist/modules/path_api.js.map +1 -0
- package/dist/modules/paths.d.ts +58 -0
- package/dist/modules/paths.d.ts.map +1 -0
- package/dist/modules/paths.js +82 -0
- package/dist/modules/paths.js.map +1 -0
- package/dist/modules/process_discovery.d.ts +58 -0
- package/dist/modules/process_discovery.d.ts.map +1 -0
- package/dist/modules/process_discovery.js +265 -0
- package/dist/modules/process_discovery.js.map +1 -0
- package/dist/modules/runtime.d.ts +34 -0
- package/dist/modules/runtime.d.ts.map +1 -0
- package/dist/modules/runtime.js +98 -0
- package/dist/modules/runtime.js.map +1 -0
- package/dist/modules/runtime_settings.d.ts +12 -0
- package/dist/modules/runtime_settings.d.ts.map +1 -0
- package/dist/modules/runtime_settings.js +122 -0
- package/dist/modules/runtime_settings.js.map +1 -0
- package/dist/modules/settings_merge.d.ts +38 -0
- package/dist/modules/settings_merge.d.ts.map +1 -0
- package/dist/modules/settings_merge.js +246 -0
- package/dist/modules/settings_merge.js.map +1 -0
- package/dist/modules/storage/browser_adapter.d.ts +56 -0
- package/dist/modules/storage/browser_adapter.d.ts.map +1 -0
- package/dist/modules/storage/browser_adapter.js +231 -0
- package/dist/modules/storage/browser_adapter.js.map +1 -0
- package/dist/modules/storage/index.d.ts +28 -0
- package/dist/modules/storage/index.d.ts.map +1 -0
- package/dist/modules/storage/index.js +52 -0
- package/dist/modules/storage/index.js.map +1 -0
- package/dist/modules/storage/node_adapter.d.ts +49 -0
- package/dist/modules/storage/node_adapter.d.ts.map +1 -0
- package/dist/modules/storage/node_adapter.js +167 -0
- package/dist/modules/storage/node_adapter.js.map +1 -0
- package/dist/modules/storage/types.d.ts +92 -0
- package/dist/modules/storage/types.d.ts.map +1 -0
- package/dist/modules/storage/types.js +3 -0
- package/dist/modules/storage/types.js.map +1 -0
- package/dist/modules/types.d.ts +1382 -0
- package/dist/modules/types.d.ts.map +1 -0
- package/dist/modules/types.js +11 -0
- package/dist/modules/types.js.map +1 -0
- package/dist/modules/utils/base58check.d.ts +12 -0
- package/dist/modules/utils/base58check.d.ts.map +1 -0
- package/dist/modules/utils/base58check.js +112 -0
- package/dist/modules/utils/base58check.js.map +1 -0
- package/dist/modules/utils/build_dir.d.ts +7 -0
- package/dist/modules/utils/build_dir.d.ts.map +1 -0
- package/dist/modules/utils/build_dir.js +8 -0
- package/dist/modules/utils/build_dir.js.map +1 -0
- package/dist/modules/utils/fs_utils.d.ts +25 -0
- package/dist/modules/utils/fs_utils.d.ts.map +1 -0
- package/dist/modules/utils/fs_utils.js +27 -0
- package/dist/modules/utils/fs_utils.js.map +1 -0
- package/dist/modules/utils/math_utils.d.ts +10 -0
- package/dist/modules/utils/math_utils.d.ts.map +1 -0
- package/dist/modules/utils/math_utils.js +17 -0
- package/dist/modules/utils/math_utils.js.map +1 -0
- package/dist/modules/validate_profiles.d.ts +37 -0
- package/dist/modules/validate_profiles.d.ts.map +1 -0
- package/dist/modules/validate_profiles.js +369 -0
- package/dist/modules/validate_profiles.js.map +1 -0
- package/dist/pm2.d.ts +167 -0
- package/dist/pm2.d.ts.map +1 -0
- package/dist/pm2.js +998 -0
- package/dist/pm2.js.map +1 -0
- package/dist/scripts/analyze-git.d.ts +11 -0
- package/dist/scripts/analyze-git.d.ts.map +1 -0
- package/dist/scripts/analyze-git.js +851 -0
- package/dist/scripts/analyze-git.js.map +1 -0
- package/dist/scripts/analyze-orders.d.ts +17 -0
- package/dist/scripts/analyze-orders.d.ts.map +1 -0
- package/dist/scripts/analyze-orders.js +1568 -0
- package/dist/scripts/analyze-orders.js.map +1 -0
- package/dist/scripts/diagnose-kibana-candles.d.ts +3 -0
- package/dist/scripts/diagnose-kibana-candles.d.ts.map +1 -0
- package/dist/scripts/diagnose-kibana-candles.js +82 -0
- package/dist/scripts/diagnose-kibana-candles.js.map +1 -0
- package/dist/scripts/diagnose-pool-history.d.ts +3 -0
- package/dist/scripts/diagnose-pool-history.d.ts.map +1 -0
- package/dist/scripts/diagnose-pool-history.js +296 -0
- package/dist/scripts/diagnose-pool-history.js.map +1 -0
- package/dist/scripts/divergence-calc.d.ts +26 -0
- package/dist/scripts/divergence-calc.d.ts.map +1 -0
- package/dist/scripts/divergence-calc.js +119 -0
- package/dist/scripts/divergence-calc.js.map +1 -0
- package/dist/scripts/generate_lp_chart.d.ts +31 -0
- package/dist/scripts/generate_lp_chart.d.ts.map +1 -0
- package/dist/scripts/generate_lp_chart.js +92 -0
- package/dist/scripts/generate_lp_chart.js.map +1 -0
- package/dist/scripts/generate_mainnet_corpus_report.d.ts +24 -0
- package/dist/scripts/generate_mainnet_corpus_report.d.ts.map +1 -0
- package/dist/scripts/generate_mainnet_corpus_report.js +237 -0
- package/dist/scripts/generate_mainnet_corpus_report.js.map +1 -0
- package/dist/scripts/generate_market_adapter_whitelist.d.ts +2 -0
- package/dist/scripts/generate_market_adapter_whitelist.d.ts.map +1 -0
- package/dist/scripts/generate_market_adapter_whitelist.js +111 -0
- package/dist/scripts/generate_market_adapter_whitelist.js.map +1 -0
- package/dist/scripts/migrate_bot_keys.d.ts +6 -0
- package/dist/scripts/migrate_bot_keys.d.ts.map +1 -0
- package/dist/scripts/migrate_bot_keys.js +301 -0
- package/dist/scripts/migrate_bot_keys.js.map +1 -0
- package/dist/scripts/native_release_gates.d.ts +3 -0
- package/dist/scripts/native_release_gates.d.ts.map +1 -0
- package/dist/scripts/native_release_gates.js +52 -0
- package/dist/scripts/native_release_gates.js.map +1 -0
- package/dist/scripts/print_grid.d.ts +16 -0
- package/dist/scripts/print_grid.d.ts.map +1 -0
- package/dist/scripts/print_grid.js +80 -0
- package/dist/scripts/print_grid.js.map +1 -0
- package/dist/scripts/run-tests.d.ts +2 -0
- package/dist/scripts/run-tests.d.ts.map +1 -0
- package/dist/scripts/run-tests.js +49 -0
- package/dist/scripts/run-tests.js.map +1 -0
- package/dist/scripts/sync-version.d.ts +14 -0
- package/dist/scripts/sync-version.d.ts.map +1 -0
- package/dist/scripts/sync-version.js +158 -0
- package/dist/scripts/sync-version.js.map +1 -0
- package/dist/scripts/test-credit-renewal.d.ts +2 -0
- package/dist/scripts/test-credit-renewal.d.ts.map +1 -0
- package/dist/scripts/test-credit-renewal.js +329 -0
- package/dist/scripts/test-credit-renewal.js.map +1 -0
- package/dist/scripts/update.d.ts +24 -0
- package/dist/scripts/update.d.ts.map +1 -0
- package/dist/scripts/update.js +650 -0
- package/dist/scripts/update.js.map +1 -0
- package/dist/scripts/validate_bots.d.ts +16 -0
- package/dist/scripts/validate_bots.d.ts.map +1 -0
- package/dist/scripts/validate_bots.js +106 -0
- package/dist/scripts/validate_bots.js.map +1 -0
- package/dist/scripts/verify-browser-bundle.d.ts +22 -0
- package/dist/scripts/verify-browser-bundle.d.ts.map +1 -0
- package/dist/scripts/verify-browser-bundle.js +339 -0
- package/dist/scripts/verify-browser-bundle.js.map +1 -0
- package/dist/unlock.d.ts +48 -0
- package/dist/unlock.d.ts.map +1 -0
- package/dist/unlock.js +925 -0
- package/dist/unlock.js.map +1 -0
- package/package.json +112 -0
- package/scripts/README.md +356 -0
- package/scripts/clear-all.sh +195 -0
- package/scripts/clear-logs.sh +95 -0
- package/scripts/clear-market-adapter.sh +196 -0
- package/scripts/clear-orders.sh +113 -0
- package/scripts/create-bot-symlinks.sh +51 -0
- package/scripts/postinstall.js +9 -0
- package/scripts/reset-settings.sh +118 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Clear persisted order, log, and market adapter files in one operation.
|
|
3
|
+
#
|
|
4
|
+
# This combines the behavior of clear-orders.sh, clear-logs.sh, and
|
|
5
|
+
# clear-market-adapter.sh while using a single confirmation prompt.
|
|
6
|
+
# Usage: ./scripts/clear-all.sh or bash scripts/clear-all.sh
|
|
7
|
+
|
|
8
|
+
set -e
|
|
9
|
+
|
|
10
|
+
# Colors for output
|
|
11
|
+
RED='\033[0;31m'
|
|
12
|
+
GREEN='\033[0;32m'
|
|
13
|
+
YELLOW='\033[1;33m'
|
|
14
|
+
BLUE='\033[0;34m'
|
|
15
|
+
NC='\033[0m' # No Color
|
|
16
|
+
|
|
17
|
+
# Configuration
|
|
18
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
19
|
+
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
20
|
+
PROFILE_ROOT="${DEXBOT_PROFILE_ROOT:-${PROJECT_ROOT}/profiles}"
|
|
21
|
+
ORDERS_DIR="${PROFILE_ROOT}/orders"
|
|
22
|
+
LOGS_DIR="${PROFILE_ROOT}/logs"
|
|
23
|
+
MA_DATA_DIR="${PROJECT_ROOT}/market_adapter/data"
|
|
24
|
+
MA_STATE_DIR="${PROJECT_ROOT}/market_adapter/state"
|
|
25
|
+
|
|
26
|
+
# Functions
|
|
27
|
+
log_info() {
|
|
28
|
+
echo -e "${BLUE}[INFO]${NC} $1"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
log_success() {
|
|
32
|
+
echo -e "${GREEN}[SUCCESS]${NC} $1"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
log_warning() {
|
|
36
|
+
echo -e "${YELLOW}[WARNING]${NC} $1"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
log_error() {
|
|
40
|
+
echo -e "${RED}[ERROR]${NC} $1"
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
log_info "=========================================="
|
|
44
|
+
log_info "DEXBot2 Clear All Script"
|
|
45
|
+
log_info "=========================================="
|
|
46
|
+
log_info "Orders directory: $ORDERS_DIR"
|
|
47
|
+
log_info "Logs directory: $LOGS_DIR"
|
|
48
|
+
log_info "Market adapter data directory: $MA_DATA_DIR"
|
|
49
|
+
log_info "Market adapter state directory: $MA_STATE_DIR"
|
|
50
|
+
log_info ""
|
|
51
|
+
log_warning "WARNING: This will delete all persisted order, log, and market adapter files!"
|
|
52
|
+
log_warning "Bots will regenerate grids and market adapter will re-bootstrap from Kibana."
|
|
53
|
+
log_info ""
|
|
54
|
+
|
|
55
|
+
# Check directories and count files
|
|
56
|
+
ORDER_COUNT=0
|
|
57
|
+
LOG_COUNT=0
|
|
58
|
+
MA_DATA_COUNT=0
|
|
59
|
+
MA_STATE_COUNT=0
|
|
60
|
+
|
|
61
|
+
if [ -d "$ORDERS_DIR" ]; then
|
|
62
|
+
ORDER_COUNT=$(find "$ORDERS_DIR" -type f 2>/dev/null | wc -l)
|
|
63
|
+
else
|
|
64
|
+
log_warning "Orders directory does not exist: $ORDERS_DIR"
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
if [ -d "$LOGS_DIR" ]; then
|
|
68
|
+
LOG_COUNT=$(find "$LOGS_DIR" -type f \( -name "*.log" -o -name "*.jsonl" \) 2>/dev/null | wc -l)
|
|
69
|
+
else
|
|
70
|
+
log_warning "Logs directory does not exist: $LOGS_DIR"
|
|
71
|
+
fi
|
|
72
|
+
|
|
73
|
+
if [ -d "$MA_DATA_DIR" ]; then
|
|
74
|
+
MA_DATA_COUNT=$(find "$MA_DATA_DIR" -type f 2>/dev/null | wc -l)
|
|
75
|
+
else
|
|
76
|
+
log_warning "Market adapter data directory does not exist: $MA_DATA_DIR"
|
|
77
|
+
fi
|
|
78
|
+
|
|
79
|
+
if [ -d "$MA_STATE_DIR" ]; then
|
|
80
|
+
MA_STATE_COUNT=$(find "$MA_STATE_DIR" -type f 2>/dev/null | wc -l)
|
|
81
|
+
else
|
|
82
|
+
log_warning "Market adapter state directory does not exist: $MA_STATE_DIR"
|
|
83
|
+
fi
|
|
84
|
+
|
|
85
|
+
TOTAL_COUNT=$((ORDER_COUNT + LOG_COUNT + MA_DATA_COUNT + MA_STATE_COUNT))
|
|
86
|
+
|
|
87
|
+
if [ "$TOTAL_COUNT" -eq 0 ]; then
|
|
88
|
+
log_info "No matching files found to delete."
|
|
89
|
+
exit 0
|
|
90
|
+
fi
|
|
91
|
+
|
|
92
|
+
log_info "Found $ORDER_COUNT order, $LOG_COUNT log, $MA_DATA_COUNT data, and $MA_STATE_COUNT state file(s) to delete"
|
|
93
|
+
log_info ""
|
|
94
|
+
|
|
95
|
+
# Show what will be deleted
|
|
96
|
+
if [ "$ORDER_COUNT" -gt 0 ]; then
|
|
97
|
+
log_info "Order files to be deleted:"
|
|
98
|
+
find "$ORDERS_DIR" -type f 2>/dev/null | while read -r file; do
|
|
99
|
+
SIZE=$(du -h "$file" | cut -f1)
|
|
100
|
+
echo -e "${BLUE} -${NC} $(realpath --relative-to="$PROJECT_ROOT" "$file") ($SIZE)"
|
|
101
|
+
done
|
|
102
|
+
log_info ""
|
|
103
|
+
fi
|
|
104
|
+
|
|
105
|
+
if [ "$LOG_COUNT" -gt 0 ]; then
|
|
106
|
+
log_info "Log files to be deleted:"
|
|
107
|
+
find "$LOGS_DIR" -type f \( -name "*.log" -o -name "*.jsonl" \) 2>/dev/null | while read -r file; do
|
|
108
|
+
SIZE=$(du -h "$file" | cut -f1)
|
|
109
|
+
echo -e "${BLUE} -${NC} $(realpath --relative-to="$PROJECT_ROOT" "$file") ($SIZE)"
|
|
110
|
+
done
|
|
111
|
+
log_info ""
|
|
112
|
+
fi
|
|
113
|
+
|
|
114
|
+
if [ "$MA_DATA_COUNT" -gt 0 ]; then
|
|
115
|
+
log_info "Market adapter data files to be deleted:"
|
|
116
|
+
find "$MA_DATA_DIR" -type f 2>/dev/null | while read -r file; do
|
|
117
|
+
SIZE=$(du -h "$file" | cut -f1)
|
|
118
|
+
echo -e "${BLUE} -${NC} $(realpath --relative-to="$PROJECT_ROOT" "$file") ($SIZE)"
|
|
119
|
+
done
|
|
120
|
+
log_info ""
|
|
121
|
+
fi
|
|
122
|
+
|
|
123
|
+
if [ "$MA_STATE_COUNT" -gt 0 ]; then
|
|
124
|
+
log_info "Market adapter state files to be deleted:"
|
|
125
|
+
find "$MA_STATE_DIR" -type f 2>/dev/null | while read -r file; do
|
|
126
|
+
SIZE=$(du -h "$file" | cut -f1)
|
|
127
|
+
echo -e "${BLUE} -${NC} $(realpath --relative-to="$PROJECT_ROOT" "$file") ($SIZE)"
|
|
128
|
+
done
|
|
129
|
+
log_info ""
|
|
130
|
+
fi
|
|
131
|
+
|
|
132
|
+
# Ask for confirmation
|
|
133
|
+
read -p "Delete all listed files? (y/n): " -r CONFIRM
|
|
134
|
+
|
|
135
|
+
if [ "$CONFIRM" != "y" ] && [ "$CONFIRM" != "Y" ]; then
|
|
136
|
+
log_warning "Cancelled"
|
|
137
|
+
exit 0
|
|
138
|
+
fi
|
|
139
|
+
|
|
140
|
+
# Delete files
|
|
141
|
+
if [ "$ORDER_COUNT" -gt 0 ]; then
|
|
142
|
+
find "$ORDERS_DIR" -type f 2>/dev/null -delete
|
|
143
|
+
fi
|
|
144
|
+
|
|
145
|
+
if [ "$LOG_COUNT" -gt 0 ]; then
|
|
146
|
+
find "$LOGS_DIR" -type f \( -name "*.log" -o -name "*.jsonl" \) 2>/dev/null -delete
|
|
147
|
+
fi
|
|
148
|
+
|
|
149
|
+
if [ "$MA_DATA_COUNT" -gt 0 ]; then
|
|
150
|
+
find "$MA_DATA_DIR" -type f 2>/dev/null -delete
|
|
151
|
+
find "$MA_DATA_DIR" -type d -empty 2>/dev/null -delete
|
|
152
|
+
fi
|
|
153
|
+
|
|
154
|
+
if [ "$MA_STATE_COUNT" -gt 0 ]; then
|
|
155
|
+
find "$MA_STATE_DIR" -type f 2>/dev/null -delete
|
|
156
|
+
fi
|
|
157
|
+
|
|
158
|
+
# Re-count to confirm
|
|
159
|
+
REMAINING_ORDERS=0
|
|
160
|
+
REMAINING_LOGS=0
|
|
161
|
+
REMAINING_MA_DATA=0
|
|
162
|
+
REMAINING_MA_STATE=0
|
|
163
|
+
|
|
164
|
+
if [ -d "$ORDERS_DIR" ]; then
|
|
165
|
+
REMAINING_ORDERS=$(find "$ORDERS_DIR" -type f 2>/dev/null | wc -l)
|
|
166
|
+
fi
|
|
167
|
+
|
|
168
|
+
if [ -d "$LOGS_DIR" ]; then
|
|
169
|
+
REMAINING_LOGS=$(find "$LOGS_DIR" -type f \( -name "*.log" -o -name "*.jsonl" \) 2>/dev/null | wc -l)
|
|
170
|
+
fi
|
|
171
|
+
|
|
172
|
+
if [ -d "$MA_DATA_DIR" ]; then
|
|
173
|
+
REMAINING_MA_DATA=$(find "$MA_DATA_DIR" -type f 2>/dev/null | wc -l)
|
|
174
|
+
fi
|
|
175
|
+
|
|
176
|
+
if [ -d "$MA_STATE_DIR" ]; then
|
|
177
|
+
REMAINING_MA_STATE=$(find "$MA_STATE_DIR" -type f 2>/dev/null | wc -l)
|
|
178
|
+
fi
|
|
179
|
+
|
|
180
|
+
log_info "=========================================="
|
|
181
|
+
if [ "$REMAINING_ORDERS" -eq 0 ] && [ "$REMAINING_LOGS" -eq 0 ] && [ "$REMAINING_MA_DATA" -eq 0 ] && [ "$REMAINING_MA_STATE" -eq 0 ]; then
|
|
182
|
+
log_success "All files cleared!"
|
|
183
|
+
log_info "Total deleted: $TOTAL_COUNT (orders: $ORDER_COUNT, logs: $LOG_COUNT, ma_data: $MA_DATA_COUNT, ma_state: $MA_STATE_COUNT)"
|
|
184
|
+
log_info ""
|
|
185
|
+
log_info "Next steps:"
|
|
186
|
+
log_info "- Bots will regenerate their grids on next run"
|
|
187
|
+
log_info "- Market adapter will re-bootstrap candle data from Kibana on next run"
|
|
188
|
+
log_info "- Start bots normally: pm2 start all (or specific bot name)"
|
|
189
|
+
log_info "- Monitor startup with: pm2 logs"
|
|
190
|
+
else
|
|
191
|
+
log_warning "Cleanup incomplete — remaining: orders=$REMAINING_ORDERS logs=$REMAINING_LOGS ma_data=$REMAINING_MA_DATA ma_state=$REMAINING_MA_STATE"
|
|
192
|
+
fi
|
|
193
|
+
log_info "=========================================="
|
|
194
|
+
|
|
195
|
+
exit 0
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Clear all log files from profiles/logs directory
|
|
3
|
+
#
|
|
4
|
+
# This script safely removes all log files while preserving the logs directory structure.
|
|
5
|
+
# Usage: ./scripts/clear-logs.sh or bash scripts/clear-logs.sh
|
|
6
|
+
|
|
7
|
+
set -e
|
|
8
|
+
|
|
9
|
+
# Colors for output
|
|
10
|
+
RED='\033[0;31m'
|
|
11
|
+
GREEN='\033[0;32m'
|
|
12
|
+
YELLOW='\033[1;33m'
|
|
13
|
+
BLUE='\033[0;34m'
|
|
14
|
+
NC='\033[0m' # No Color
|
|
15
|
+
|
|
16
|
+
# Configuration
|
|
17
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
18
|
+
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
19
|
+
PROFILE_ROOT="${DEXBOT_PROFILE_ROOT:-${PROJECT_ROOT}/profiles}"
|
|
20
|
+
LOGS_DIR="${PROFILE_ROOT}/logs"
|
|
21
|
+
|
|
22
|
+
# Functions
|
|
23
|
+
log_info() {
|
|
24
|
+
echo -e "${BLUE}[INFO]${NC} $1"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
log_success() {
|
|
28
|
+
echo -e "${GREEN}[SUCCESS]${NC} $1"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
log_warning() {
|
|
32
|
+
echo -e "${YELLOW}[WARNING]${NC} $1"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
log_error() {
|
|
36
|
+
echo -e "${RED}[ERROR]${NC} $1"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
log_info "=========================================="
|
|
40
|
+
log_info "DEXBot2 Clear Logs Script"
|
|
41
|
+
log_info "=========================================="
|
|
42
|
+
log_info "Logs Directory: $LOGS_DIR"
|
|
43
|
+
|
|
44
|
+
# Check if logs directory exists
|
|
45
|
+
if [ ! -d "$LOGS_DIR" ]; then
|
|
46
|
+
log_warning "Logs directory does not exist: $LOGS_DIR"
|
|
47
|
+
log_info "Nothing to clean"
|
|
48
|
+
exit 0
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
# Count log files
|
|
52
|
+
LOG_COUNT=$(find "$LOGS_DIR" -type f \( -name "*.log" -o -name "*.jsonl" \) 2>/dev/null | wc -l)
|
|
53
|
+
|
|
54
|
+
if [ "$LOG_COUNT" -eq 0 ]; then
|
|
55
|
+
log_info "No log files found in $LOGS_DIR"
|
|
56
|
+
exit 0
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
log_info "Found $LOG_COUNT log file(s) to delete"
|
|
60
|
+
log_info ""
|
|
61
|
+
|
|
62
|
+
# Show what will be deleted
|
|
63
|
+
log_info "Log files to be deleted:"
|
|
64
|
+
find "$LOGS_DIR" -type f \( -name "*.log" -o -name "*.jsonl" \) 2>/dev/null | while read file; do
|
|
65
|
+
SIZE=$(du -h "$file" | cut -f1)
|
|
66
|
+
echo -e "${BLUE} -${NC} $(basename "$file") ($SIZE)"
|
|
67
|
+
done
|
|
68
|
+
|
|
69
|
+
log_info ""
|
|
70
|
+
|
|
71
|
+
# Ask for confirmation
|
|
72
|
+
read -p "Delete these log files? (y/n): " -r CONFIRM
|
|
73
|
+
|
|
74
|
+
if [ "$CONFIRM" != "y" ] && [ "$CONFIRM" != "Y" ]; then
|
|
75
|
+
log_warning "Cancelled"
|
|
76
|
+
exit 0
|
|
77
|
+
fi
|
|
78
|
+
|
|
79
|
+
# Delete log files
|
|
80
|
+
find "$LOGS_DIR" -type f \( -name "*.log" -o -name "*.jsonl" \) 2>/dev/null -delete
|
|
81
|
+
DELETED=$?
|
|
82
|
+
|
|
83
|
+
# Re-count to confirm
|
|
84
|
+
REMAINING=$(find "$LOGS_DIR" -type f \( -name "*.log" -o -name "*.jsonl" \) 2>/dev/null | wc -l)
|
|
85
|
+
|
|
86
|
+
log_info "=========================================="
|
|
87
|
+
if [ "$REMAINING" -eq 0 ]; then
|
|
88
|
+
log_success "All log files cleared!"
|
|
89
|
+
log_info "Total deleted: $LOG_COUNT"
|
|
90
|
+
else
|
|
91
|
+
log_warning "Cleanup incomplete. Remaining log files: $REMAINING"
|
|
92
|
+
fi
|
|
93
|
+
log_info "=========================================="
|
|
94
|
+
|
|
95
|
+
exit 0
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Clear market adapter data, state files, and runtime log.
|
|
3
|
+
#
|
|
4
|
+
# Removes all persisted candle data and state files from market_adapter/data/
|
|
5
|
+
# and market_adapter/state/, plus profiles/logs/market_adapter.log,
|
|
6
|
+
# dexbot-adapter.log, and dexbot-adapter-error.log. The market
|
|
7
|
+
# adapter will bootstrap fresh from Kibana and regenerate state on next run.
|
|
8
|
+
#
|
|
9
|
+
# Usage: ./scripts/clear-market-adapter.sh or bash scripts/clear-market-adapter.sh
|
|
10
|
+
|
|
11
|
+
set -e
|
|
12
|
+
|
|
13
|
+
# Colors for output
|
|
14
|
+
RED='\033[0;31m'
|
|
15
|
+
GREEN='\033[0;32m'
|
|
16
|
+
YELLOW='\033[1;33m'
|
|
17
|
+
BLUE='\033[0;34m'
|
|
18
|
+
NC='\033[0m' # No Color
|
|
19
|
+
|
|
20
|
+
# Configuration
|
|
21
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
22
|
+
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
23
|
+
PROFILE_ROOT="${DEXBOT_PROFILE_ROOT:-${PROJECT_ROOT}/profiles}"
|
|
24
|
+
DATA_DIR="${PROJECT_ROOT}/market_adapter/data"
|
|
25
|
+
STATE_DIR="${PROJECT_ROOT}/market_adapter/state"
|
|
26
|
+
MARKET_ADAPTER_LOG="${PROFILE_ROOT}/logs/market_adapter.log"
|
|
27
|
+
ADAPTER_OUT_LOG="${PROFILE_ROOT}/logs/dexbot-adapter.log"
|
|
28
|
+
ADAPTER_ERR_LOG="${PROFILE_ROOT}/logs/dexbot-adapter-error.log"
|
|
29
|
+
|
|
30
|
+
# Functions
|
|
31
|
+
log_info() {
|
|
32
|
+
echo -e "${BLUE}[INFO]${NC} $1"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
log_success() {
|
|
36
|
+
echo -e "${GREEN}[SUCCESS]${NC} $1"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
log_warning() {
|
|
40
|
+
echo -e "${YELLOW}[WARNING]${NC} $1"
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
log_error() {
|
|
44
|
+
echo -e "${RED}[ERROR]${NC} $1"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
log_info "=========================================="
|
|
48
|
+
log_info "DEXBot2 Clear Market Adapter Script"
|
|
49
|
+
log_info "=========================================="
|
|
50
|
+
log_info "Data directory: $DATA_DIR"
|
|
51
|
+
log_info "State directory: $STATE_DIR"
|
|
52
|
+
log_info "Log file: $MARKET_ADAPTER_LOG"
|
|
53
|
+
log_info "Adapter out log: $ADAPTER_OUT_LOG"
|
|
54
|
+
log_info "Adapter err log: $ADAPTER_ERR_LOG"
|
|
55
|
+
log_info ""
|
|
56
|
+
log_warning "WARNING: This will delete all persisted candle data and state files!"
|
|
57
|
+
log_warning "This also deletes the market adapter runtime log."
|
|
58
|
+
log_warning "The market adapter will bootstrap fresh from Kibana on next run."
|
|
59
|
+
log_info ""
|
|
60
|
+
|
|
61
|
+
# Count files
|
|
62
|
+
DATA_COUNT=0
|
|
63
|
+
STATE_COUNT=0
|
|
64
|
+
LOG_COUNT=0
|
|
65
|
+
|
|
66
|
+
if [ -d "$DATA_DIR" ]; then
|
|
67
|
+
DATA_COUNT=$(find "$DATA_DIR" -type f 2>/dev/null | wc -l)
|
|
68
|
+
else
|
|
69
|
+
log_warning "Data directory does not exist: $DATA_DIR"
|
|
70
|
+
fi
|
|
71
|
+
|
|
72
|
+
if [ -d "$STATE_DIR" ]; then
|
|
73
|
+
STATE_COUNT=$(find "$STATE_DIR" -type f 2>/dev/null | wc -l)
|
|
74
|
+
else
|
|
75
|
+
log_warning "State directory does not exist: $STATE_DIR"
|
|
76
|
+
fi
|
|
77
|
+
|
|
78
|
+
if [ -f "$MARKET_ADAPTER_LOG" ]; then
|
|
79
|
+
LOG_COUNT=$((LOG_COUNT + 1))
|
|
80
|
+
fi
|
|
81
|
+
|
|
82
|
+
if [ -f "$ADAPTER_OUT_LOG" ]; then
|
|
83
|
+
LOG_COUNT=$((LOG_COUNT + 1))
|
|
84
|
+
fi
|
|
85
|
+
|
|
86
|
+
if [ -f "$ADAPTER_ERR_LOG" ]; then
|
|
87
|
+
LOG_COUNT=$((LOG_COUNT + 1))
|
|
88
|
+
fi
|
|
89
|
+
|
|
90
|
+
TOTAL_COUNT=$((DATA_COUNT + STATE_COUNT + LOG_COUNT))
|
|
91
|
+
|
|
92
|
+
if [ "$TOTAL_COUNT" -eq 0 ]; then
|
|
93
|
+
log_info "No files found to delete."
|
|
94
|
+
exit 0
|
|
95
|
+
fi
|
|
96
|
+
|
|
97
|
+
log_info "Found $DATA_COUNT data file(s), $STATE_COUNT state file(s), and $LOG_COUNT log file(s) to delete"
|
|
98
|
+
log_info ""
|
|
99
|
+
|
|
100
|
+
# Show what will be deleted
|
|
101
|
+
if [ "$DATA_COUNT" -gt 0 ]; then
|
|
102
|
+
log_info "Data files to be deleted:"
|
|
103
|
+
find "$DATA_DIR" -type f 2>/dev/null | while read -r file; do
|
|
104
|
+
SIZE=$(du -h "$file" | cut -f1)
|
|
105
|
+
echo -e "${BLUE} -${NC} $(realpath --relative-to="$PROJECT_ROOT" "$file") ($SIZE)"
|
|
106
|
+
done
|
|
107
|
+
log_info ""
|
|
108
|
+
fi
|
|
109
|
+
|
|
110
|
+
if [ "$STATE_COUNT" -gt 0 ]; then
|
|
111
|
+
log_info "State files to be deleted:"
|
|
112
|
+
find "$STATE_DIR" -type f 2>/dev/null | while read -r file; do
|
|
113
|
+
SIZE=$(du -h "$file" | cut -f1)
|
|
114
|
+
echo -e "${BLUE} -${NC} $(realpath --relative-to="$PROJECT_ROOT" "$file") ($SIZE)"
|
|
115
|
+
done
|
|
116
|
+
log_info ""
|
|
117
|
+
fi
|
|
118
|
+
|
|
119
|
+
if [ "$LOG_COUNT" -gt 0 ]; then
|
|
120
|
+
log_info "Log files to be deleted:"
|
|
121
|
+
for logfile in "$MARKET_ADAPTER_LOG" "$ADAPTER_OUT_LOG" "$ADAPTER_ERR_LOG"; do
|
|
122
|
+
if [ -f "$logfile" ]; then
|
|
123
|
+
SIZE=$(du -h "$logfile" | cut -f1)
|
|
124
|
+
echo -e "${BLUE} -${NC} $(realpath --relative-to="$PROJECT_ROOT" "$logfile") ($SIZE)"
|
|
125
|
+
fi
|
|
126
|
+
done
|
|
127
|
+
log_info ""
|
|
128
|
+
fi
|
|
129
|
+
|
|
130
|
+
# Ask for confirmation
|
|
131
|
+
read -p "Delete all listed market adapter files? (y/n): " -r CONFIRM
|
|
132
|
+
|
|
133
|
+
if [ "$CONFIRM" != "y" ] && [ "$CONFIRM" != "Y" ]; then
|
|
134
|
+
log_warning "Cancelled"
|
|
135
|
+
exit 0
|
|
136
|
+
fi
|
|
137
|
+
|
|
138
|
+
# Delete data files
|
|
139
|
+
if [ "$DATA_COUNT" -gt 0 ]; then
|
|
140
|
+
log_info "Deleting data files..."
|
|
141
|
+
find "$DATA_DIR" -type f 2>/dev/null -delete
|
|
142
|
+
# Clean up empty subdirectories
|
|
143
|
+
find "$DATA_DIR" -type d -empty 2>/dev/null -delete
|
|
144
|
+
fi
|
|
145
|
+
|
|
146
|
+
# Delete state files
|
|
147
|
+
if [ "$STATE_COUNT" -gt 0 ]; then
|
|
148
|
+
log_info "Deleting state files..."
|
|
149
|
+
find "$STATE_DIR" -type f 2>/dev/null -delete
|
|
150
|
+
fi
|
|
151
|
+
|
|
152
|
+
if [ "$LOG_COUNT" -gt 0 ]; then
|
|
153
|
+
log_info "Deleting market adapter logs..."
|
|
154
|
+
rm -f "$MARKET_ADAPTER_LOG" "$ADAPTER_OUT_LOG" "$ADAPTER_ERR_LOG"
|
|
155
|
+
fi
|
|
156
|
+
|
|
157
|
+
# Re-count to confirm
|
|
158
|
+
REMAINING_DATA=0
|
|
159
|
+
REMAINING_STATE=0
|
|
160
|
+
REMAINING_LOG=0
|
|
161
|
+
|
|
162
|
+
if [ -d "$DATA_DIR" ]; then
|
|
163
|
+
REMAINING_DATA=$(find "$DATA_DIR" -type f 2>/dev/null | wc -l)
|
|
164
|
+
fi
|
|
165
|
+
|
|
166
|
+
if [ -d "$STATE_DIR" ]; then
|
|
167
|
+
REMAINING_STATE=$(find "$STATE_DIR" -type f 2>/dev/null | wc -l)
|
|
168
|
+
fi
|
|
169
|
+
|
|
170
|
+
if [ -f "$MARKET_ADAPTER_LOG" ]; then
|
|
171
|
+
REMAINING_LOG=$((REMAINING_LOG + 1))
|
|
172
|
+
fi
|
|
173
|
+
|
|
174
|
+
if [ -f "$ADAPTER_OUT_LOG" ]; then
|
|
175
|
+
REMAINING_LOG=$((REMAINING_LOG + 1))
|
|
176
|
+
fi
|
|
177
|
+
|
|
178
|
+
if [ -f "$ADAPTER_ERR_LOG" ]; then
|
|
179
|
+
REMAINING_LOG=$((REMAINING_LOG + 1))
|
|
180
|
+
fi
|
|
181
|
+
|
|
182
|
+
log_info "=========================================="
|
|
183
|
+
if [ "$REMAINING_DATA" -eq 0 ] && [ "$REMAINING_STATE" -eq 0 ] && [ "$REMAINING_LOG" -eq 0 ]; then
|
|
184
|
+
log_success "All market adapter files cleared!"
|
|
185
|
+
log_info "Total deleted: $TOTAL_COUNT (data: $DATA_COUNT, state: $STATE_COUNT, log: $LOG_COUNT)"
|
|
186
|
+
log_info ""
|
|
187
|
+
log_info "Next steps:"
|
|
188
|
+
log_info "- The market adapter will bootstrap fresh candle data from Kibana on next run"
|
|
189
|
+
log_info "- All bot center prices and AMA state will be recomputed"
|
|
190
|
+
log_info "- Start market adapter: tsx market_adapter/market_adapter.ts"
|
|
191
|
+
else
|
|
192
|
+
log_warning "Cleanup incomplete. Remaining data files: $REMAINING_DATA, remaining state files: $REMAINING_STATE, remaining logs: $REMAINING_LOG"
|
|
193
|
+
fi
|
|
194
|
+
log_info "=========================================="
|
|
195
|
+
|
|
196
|
+
exit 0
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Clear all persisted order files from profiles/orders directory
|
|
3
|
+
#
|
|
4
|
+
# This script safely removes all bot order state files while preserving the orders directory.
|
|
5
|
+
# Use this to reset bot order grids and start fresh (clears cached order data).
|
|
6
|
+
# WARNING: This will lose all persisted grid information. Bots will regenerate grids on next run.
|
|
7
|
+
# Usage: ./scripts/clear-orders.sh or bash scripts/clear-orders.sh
|
|
8
|
+
|
|
9
|
+
set -e
|
|
10
|
+
|
|
11
|
+
# Colors for output
|
|
12
|
+
RED='\033[0;31m'
|
|
13
|
+
GREEN='\033[0;32m'
|
|
14
|
+
YELLOW='\033[1;33m'
|
|
15
|
+
BLUE='\033[0;34m'
|
|
16
|
+
NC='\033[0m' # No Color
|
|
17
|
+
|
|
18
|
+
# Configuration
|
|
19
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
20
|
+
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
21
|
+
PROFILE_ROOT="${DEXBOT_PROFILE_ROOT:-${PROJECT_ROOT}/profiles}"
|
|
22
|
+
ORDERS_DIR="${PROFILE_ROOT}/orders"
|
|
23
|
+
|
|
24
|
+
# Functions
|
|
25
|
+
log_info() {
|
|
26
|
+
echo -e "${BLUE}[INFO]${NC} $1"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
log_success() {
|
|
30
|
+
echo -e "${GREEN}[SUCCESS]${NC} $1"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
log_warning() {
|
|
34
|
+
echo -e "${YELLOW}[WARNING]${NC} $1"
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
log_error() {
|
|
38
|
+
echo -e "${RED}[ERROR]${NC} $1"
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
log_info "=========================================="
|
|
42
|
+
log_info "DEXBot2 Clear Orders Script"
|
|
43
|
+
log_info "=========================================="
|
|
44
|
+
log_info "Orders Directory: $ORDERS_DIR"
|
|
45
|
+
log_info ""
|
|
46
|
+
log_warning "WARNING: This will delete all persisted order state files!"
|
|
47
|
+
log_warning "Bots will regenerate their grids on the next run."
|
|
48
|
+
log_info ""
|
|
49
|
+
|
|
50
|
+
# Check if orders directory exists
|
|
51
|
+
if [ ! -d "$ORDERS_DIR" ]; then
|
|
52
|
+
log_warning "Orders directory does not exist: $ORDERS_DIR"
|
|
53
|
+
log_info "Nothing to clean"
|
|
54
|
+
exit 0
|
|
55
|
+
fi
|
|
56
|
+
|
|
57
|
+
# Count order files
|
|
58
|
+
FILE_COUNT=$(find "$ORDERS_DIR" -type f 2>/dev/null | wc -l)
|
|
59
|
+
|
|
60
|
+
if [ "$FILE_COUNT" -eq 0 ]; then
|
|
61
|
+
log_info "No order files found in $ORDERS_DIR"
|
|
62
|
+
exit 0
|
|
63
|
+
fi
|
|
64
|
+
|
|
65
|
+
log_info "Found $FILE_COUNT file(s) to delete"
|
|
66
|
+
log_info ""
|
|
67
|
+
|
|
68
|
+
# Show what will be deleted
|
|
69
|
+
log_info "Files to be deleted:"
|
|
70
|
+
find "$ORDERS_DIR" -type f 2>/dev/null | while read file; do
|
|
71
|
+
SIZE=$(du -h "$file" | cut -f1)
|
|
72
|
+
echo -e "${BLUE} -${NC} $(basename "$file") ($SIZE)"
|
|
73
|
+
done
|
|
74
|
+
|
|
75
|
+
log_info ""
|
|
76
|
+
|
|
77
|
+
# Ask for confirmation
|
|
78
|
+
read -p "Delete these order files? (y/n): " -r CONFIRM
|
|
79
|
+
|
|
80
|
+
if [ "$CONFIRM" != "y" ] && [ "$CONFIRM" != "Y" ]; then
|
|
81
|
+
log_warning "Cancelled"
|
|
82
|
+
exit 0
|
|
83
|
+
fi
|
|
84
|
+
|
|
85
|
+
# Delete order files
|
|
86
|
+
log_info "Deleting files..."
|
|
87
|
+
find "$ORDERS_DIR" -type f 2>/dev/null -delete
|
|
88
|
+
DELETE_STATUS=$?
|
|
89
|
+
|
|
90
|
+
if [ $DELETE_STATUS -eq 0 ]; then
|
|
91
|
+
log_success "Delete operation completed"
|
|
92
|
+
else
|
|
93
|
+
log_warning "Delete operation encountered issues (exit code: $DELETE_STATUS)"
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
# Re-count to confirm
|
|
97
|
+
REMAINING=$(find "$ORDERS_DIR" -type f 2>/dev/null | wc -l)
|
|
98
|
+
|
|
99
|
+
log_info "=========================================="
|
|
100
|
+
if [ "$REMAINING" -eq 0 ]; then
|
|
101
|
+
log_success "All order files cleared!"
|
|
102
|
+
log_info "Total deleted: $FILE_COUNT"
|
|
103
|
+
log_info ""
|
|
104
|
+
log_info "Next steps:"
|
|
105
|
+
log_info "- Bots will regenerate their grids on next run"
|
|
106
|
+
log_info "- Start bots normally: pm2 start all (or specific bot name)"
|
|
107
|
+
log_info "- Monitor the startup with: pm2 logs"
|
|
108
|
+
else
|
|
109
|
+
log_warning "Cleanup incomplete. Remaining files: $REMAINING"
|
|
110
|
+
fi
|
|
111
|
+
log_info "=========================================="
|
|
112
|
+
|
|
113
|
+
exit 0
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# create-bot-symlinks.sh - Create ecosystem config symlinks for each bot
|
|
3
|
+
#
|
|
4
|
+
# This allows: pm2 start bot-name (or: pm2 start bot-name.config.js)
|
|
5
|
+
#
|
|
6
|
+
# Usage: ./scripts/create-bot-symlinks.sh
|
|
7
|
+
|
|
8
|
+
REPO_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
|
9
|
+
PROFILE_ROOT="${DEXBOT_PROFILE_ROOT:-${REPO_ROOT}/profiles}"
|
|
10
|
+
BOTS_CONFIG="${PROFILE_ROOT}/bots.json"
|
|
11
|
+
ECOSYSTEM_CONFIG="${PROFILE_ROOT}/ecosystem.config.js"
|
|
12
|
+
PROFILES_DIR="${PROFILE_ROOT}"
|
|
13
|
+
|
|
14
|
+
if [ ! -f "$BOTS_CONFIG" ]; then
|
|
15
|
+
echo "Error: $BOTS_CONFIG not found"
|
|
16
|
+
exit 1
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
if [ ! -f "$ECOSYSTEM_CONFIG" ]; then
|
|
20
|
+
echo "Error: $ECOSYSTEM_CONFIG not found"
|
|
21
|
+
exit 1
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
echo "Creating PM2 bot symlinks in profiles directory..."
|
|
25
|
+
|
|
26
|
+
# Parse bots.json and create symlinks
|
|
27
|
+
node -e "
|
|
28
|
+
const fs = require('fs');
|
|
29
|
+
const path = require('path');
|
|
30
|
+
const botsConfig = JSON.parse(fs.readFileSync('$BOTS_CONFIG', 'utf8'));
|
|
31
|
+
const profilesDir = '$PROFILES_DIR';
|
|
32
|
+
const ecoConfig = '$ECOSYSTEM_CONFIG';
|
|
33
|
+
|
|
34
|
+
(botsConfig.bots || []).forEach(bot => {
|
|
35
|
+
const botName = bot.name;
|
|
36
|
+
const symlink = path.join(profilesDir, botName + '.config.js');
|
|
37
|
+
|
|
38
|
+
// Remove old symlink if exists
|
|
39
|
+
if (fs.existsSync(symlink)) {
|
|
40
|
+
fs.unlinkSync(symlink);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Create symlink
|
|
44
|
+
try {
|
|
45
|
+
fs.symlinkSync(ecoConfig, symlink);
|
|
46
|
+
console.log('✓ Created symlink: profiles/' + botName + '.config.js -> ecosystem.config.js');
|
|
47
|
+
} catch (err) {
|
|
48
|
+
console.error('✗ Error creating symlink for ' + botName + ':', err.message);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
if (process.env.npm_config_global !== 'true') process.exit(0);
|
|
3
|
+
console.log('');
|
|
4
|
+
console.log('DEXBot2 installed! To get started:');
|
|
5
|
+
console.log(' dexbot keys Set up master password');
|
|
6
|
+
console.log(' dexbot bots Create and manage bots');
|
|
7
|
+
console.log(' dexbot unlock Run credential daemon + bot');
|
|
8
|
+
console.log(' dexbot help Show all commands');
|
|
9
|
+
console.log('');
|