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,203 @@
|
|
|
1
|
+
# Position Management
|
|
2
|
+
|
|
3
|
+
## Collateral Ratio Zones
|
|
4
|
+
|
|
5
|
+
See `claw/docs/POSITION_HEALTH.md` for the full 3-zone CR model, dual-layer action system, and trend alignment logic.
|
|
6
|
+
|
|
7
|
+
The skill-level summary:
|
|
8
|
+
|
|
9
|
+
| Zone | CR Range | Status |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| Red (high) | Above `CR_ZONES.RED_HIGH` (3.0) | Over-collateralized |
|
|
12
|
+
| Green | `CR_ZONES.RED_LOW` (1.7) – `CR_ZONES.RED_HIGH` (3.0) | Safe — operating target |
|
|
13
|
+
| Red (low) | Below `CR_ZONES.RED_LOW` (1.7) | Not acceptable |
|
|
14
|
+
|
|
15
|
+
MCR for HONEST.Assets is 1.4. See `honest-assets.md` for full ecosystem properties.
|
|
16
|
+
|
|
17
|
+
Any position outside the green zone triggers two-layer adjustment (debt first, collateral second). See POSITION_HEALTH.md for full action tables.
|
|
18
|
+
|
|
19
|
+
## Capital Efficiency Principle
|
|
20
|
+
|
|
21
|
+
The goal is to maximize the BTS that is actively working — either as collateral backing a position or as funds on the order book generating volume — while keeping every open position in the green zone.
|
|
22
|
+
|
|
23
|
+
BTS sitting idle in a wallet earns nothing. BTS locked as excess collateral beyond what the green zone requires is also underutilized. The balance:
|
|
24
|
+
|
|
25
|
+
- Enough collateral to stay green (CR >= 1.7, with 2.0+ as a prudent operating target)
|
|
26
|
+
- Remaining BTS deployed as order book liquidity or available for new positions
|
|
27
|
+
|
|
28
|
+
## Maximizing Volume
|
|
29
|
+
|
|
30
|
+
Volume comes from orders being filled. More fills means more volume. What drives fills:
|
|
31
|
+
|
|
32
|
+
- **Orders on the book** — funds not on the book produce zero volume
|
|
33
|
+
- **Maker placement** — 0% maker fee on HONEST.Assets means resting orders cost nothing in market fees
|
|
34
|
+
- **Both sides** — having both buy and sell orders on the book means fills happen regardless of which direction the market moves
|
|
35
|
+
- **Position recycling** — proceeds from a filled order can be redeployed into a new order
|
|
36
|
+
|
|
37
|
+
Idle BTS or idle MPA holdings not placed as orders do not contribute to volume.
|
|
38
|
+
|
|
39
|
+
## Being on the Right Side
|
|
40
|
+
|
|
41
|
+
A position profits when the market moves in the direction the position is exposed to. The two directions:
|
|
42
|
+
|
|
43
|
+
- **Short** profits when the MPA price (in BTS) decreases — the MPA bought back cheaper than it was sold
|
|
44
|
+
- **Long** profits when the MPA price (in BTS) increases — the MPA sold higher than it was bought
|
|
45
|
+
|
|
46
|
+
The shared trend-detection service provides signals based on AMA deviation from the feed price and the instantaneous premium/discount. These signals indicate which direction the smoothed market is moving relative to the feed anchor.
|
|
47
|
+
|
|
48
|
+
Combining position direction with the trend signal:
|
|
49
|
+
|
|
50
|
+
| Trend Signal | Position Aligned | Position Opposed |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| UP | Long | Short |
|
|
53
|
+
| DOWN | Short | Long |
|
|
54
|
+
| NEUTRAL | Either (no directional edge) | Either |
|
|
55
|
+
|
|
56
|
+
Being on the right side means the position direction matches the detected trend. When no trend is confirmed, there is no directional edge — both sides are equivalent.
|
|
57
|
+
|
|
58
|
+
## Shared Trend Service
|
|
59
|
+
|
|
60
|
+
Trend detection, signal monitoring, and signal-driven bot-setting updates are owned by the shared trend-detection skill.
|
|
61
|
+
|
|
62
|
+
- Use `../trend-detection/SKILL.md` for the trend model, tuning workflow, and bot-setting update boundary.
|
|
63
|
+
- Keep this file focused on position health, CR discipline, and how margin positions consume the adaptive settings.
|
|
64
|
+
|
|
65
|
+
## Control Split
|
|
66
|
+
|
|
67
|
+
The bot should be treated as two layers:
|
|
68
|
+
|
|
69
|
+
- a fixed structural grid layer
|
|
70
|
+
- an adaptive trading layer on top of AMA
|
|
71
|
+
|
|
72
|
+
### Fixed Structural Settings
|
|
73
|
+
|
|
74
|
+
These should stay static unless you intentionally retune the bot for a different market regime:
|
|
75
|
+
|
|
76
|
+
- `incrementPercent`
|
|
77
|
+
- `targetSpreadPercent`
|
|
78
|
+
- `activeOrders`
|
|
79
|
+
|
|
80
|
+
These settings define the ladder geometry:
|
|
81
|
+
|
|
82
|
+
- `incrementPercent` sets slot spacing
|
|
83
|
+
- `targetSpreadPercent` sets the empty center buffer
|
|
84
|
+
- spread is coupled to increment in the engine, so changing it changes slot count, order sizes, and gap structure
|
|
85
|
+
|
|
86
|
+
Because of that, increment/spread are not good tactical knobs. They are setup choices.
|
|
87
|
+
|
|
88
|
+
### Adaptive Trading Settings
|
|
89
|
+
|
|
90
|
+
These are the practical knobs for building an advanced margin trader on top of the AMA price adapter:
|
|
91
|
+
|
|
92
|
+
- debt adjustment
|
|
93
|
+
- collateral adjustment
|
|
94
|
+
- `weightDistribution`
|
|
95
|
+
- `minPrice` / `maxPrice` ratio
|
|
96
|
+
|
|
97
|
+
These settings change behavior without redefining the whole ladder:
|
|
98
|
+
|
|
99
|
+
- CR is repaired through debt first, collateral second
|
|
100
|
+
- AMA remains the base anchor
|
|
101
|
+
- `weightDistribution` changes where size is concentrated within the existing ladder
|
|
102
|
+
- the min/max ratio changes the outer operating envelope slowly based on former price action
|
|
103
|
+
|
|
104
|
+
Practical range-ratio bands:
|
|
105
|
+
|
|
106
|
+
- below `2x` = very competitive
|
|
107
|
+
- around `2x` = competitive
|
|
108
|
+
- around `3x` = conservative
|
|
109
|
+
- above `3x` = very conservative
|
|
110
|
+
|
|
111
|
+
### Unified Plan
|
|
112
|
+
|
|
113
|
+
The functions in `claw/modules/position_health.ts` (`assessPosition()`, `computePriceRangeRatioPlan()`, `computeOrderWeightBias()`) should therefore produce a unified plan with:
|
|
114
|
+
|
|
115
|
+
- position assessment
|
|
116
|
+
- target CR resolution
|
|
117
|
+
- debt/collateral action plan
|
|
118
|
+
- final `weightDistribution` bias
|
|
119
|
+
- final min/max price ratio recommendation
|
|
120
|
+
- a structural reset requirement when the CR plan changes debt or collateral
|
|
121
|
+
|
|
122
|
+
This keeps the bot architecture clean:
|
|
123
|
+
|
|
124
|
+
- AMA = anchor
|
|
125
|
+
- weights = deployment bias within the grid
|
|
126
|
+
- range ratio = slow structural width
|
|
127
|
+
- debt/collateral actions = margin-risk control
|
|
128
|
+
- CR execution is not the market-adapter's responsibility; the debt runtime applies the change and then rebuilds the grid from the new capital base
|
|
129
|
+
|
|
130
|
+
Example: weak short, strong DOWN trend
|
|
131
|
+
|
|
132
|
+
- repair the weak short by reducing debt first
|
|
133
|
+
- front-load buys and flatten sells
|
|
134
|
+
|
|
135
|
+
Example: sideways market
|
|
136
|
+
|
|
137
|
+
- `weightDistribution` stays balanced or double-mountain
|
|
138
|
+
- the bot keeps full deployment, centered by AMA, with no strong directional skew beyond the configured price bounds
|
|
139
|
+
|
|
140
|
+
Interpretation:
|
|
141
|
+
|
|
142
|
+
- CR below target → debt reduction first
|
|
143
|
+
- if a CR leg executes, the bot must rebuild the grid before reusing fund assumptions
|
|
144
|
+
- buys are front-loaded when they are the with-trend side
|
|
145
|
+
- sells are flattened when price is moving away from them
|
|
146
|
+
|
|
147
|
+
## Loss Minimization
|
|
148
|
+
|
|
149
|
+
Losses come from:
|
|
150
|
+
|
|
151
|
+
1. **Adverse price movement** — position is on the wrong side
|
|
152
|
+
2. **Margin call** — CR drops below MCR, protocol force-covers at unfavorable price
|
|
153
|
+
3. **Excess fees** — taker fills when maker placement was possible
|
|
154
|
+
4. **Idle capital** — opportunity cost of funds not deployed
|
|
155
|
+
|
|
156
|
+
Controls:
|
|
157
|
+
|
|
158
|
+
- **CR zones** enforce collateral discipline — green zone positions have a buffer that absorbs adverse moves without reaching liquidation
|
|
159
|
+
- **Maker-first placement** eliminates the largest recurring fee (0% vs 0.1%/0.2%)
|
|
160
|
+
- **Trend alignment** reduces the probability of being on the wrong side
|
|
161
|
+
- **Position sizing** relative to available capital — no single position should consume all available BTS as collateral
|
|
162
|
+
|
|
163
|
+
## Profit Maximization
|
|
164
|
+
|
|
165
|
+
Profits come from:
|
|
166
|
+
|
|
167
|
+
1. **Spread capture** — buying at bid, selling at ask
|
|
168
|
+
2. **Directional gain** — position on the right side of a trend
|
|
169
|
+
3. **Fee asymmetry** — earning the spread while paying 0% maker fee
|
|
170
|
+
4. **Capital velocity** — the faster proceeds are redeployed, the more cycles of profit per unit of time
|
|
171
|
+
|
|
172
|
+
The lever is utilization: BTS that is working — on the book or backing a position — has the opportunity to earn. BTS that is idle does not. Maximizing available funds on the book and maintaining position alignment maximizes the rate at which profit accumulates.
|
|
173
|
+
|
|
174
|
+
## Fund Flow
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
Total BTS
|
|
178
|
+
├── Collateral (locked in debt positions)
|
|
179
|
+
│ └── Target: CR in green zone (2.0 – 2.5)
|
|
180
|
+
├── On book (resting limit orders)
|
|
181
|
+
│ └── Target: as much as possible
|
|
182
|
+
├── Pending (proceeds from fills, not yet redeployed)
|
|
183
|
+
│ └── Target: minimize time in this state
|
|
184
|
+
└── Reserve (fee budget for operations)
|
|
185
|
+
└── ~0.1 BTS per order operation
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
MPA holdings follow the same logic — MPA sitting in wallet balance is idle. MPA placed as a sell order or used to repay debt is working.
|
|
189
|
+
|
|
190
|
+
## Decision Loop
|
|
191
|
+
|
|
192
|
+
The evaluation pipeline runs as a cycle:
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
discover → trend → assess → recommend
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
1. **Discover** (`position_discovery.ts`) — scan account's on-chain call orders to find all open debt positions
|
|
199
|
+
2. **Trend** (`feed_price_source.ts`) — fetch feed price and market mid-price per market, update the trend detector (KAMA-based, internal to the price source module)
|
|
200
|
+
3. **Assess** (`position_health.ts`) — classify each position into a CR zone, check trend alignment, generate prioritized actions
|
|
201
|
+
4. **Recommend** (`decision_loop.ts`) — sort actions by priority (immediate → soon → evaluate → fallback), return structured assessment
|
|
202
|
+
|
|
203
|
+
The loop evaluates and recommends. Execution of recommended actions is a separate concern.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Trading Concepts
|
|
2
|
+
|
|
3
|
+
## Positions
|
|
4
|
+
|
|
5
|
+
### Short Position
|
|
6
|
+
|
|
7
|
+
Betting that the MPA price (in BTS terms) will decrease.
|
|
8
|
+
|
|
9
|
+
**Lifecycle:**
|
|
10
|
+
|
|
11
|
+
1. **Borrow** — Issue MPA debt against BTS collateral (`call_order_update` with positive debt and collateral deltas). Collateral ratio must be in the green zone (CR >= 1.7).
|
|
12
|
+
2. **Sell** — Place a limit order selling the borrowed MPA for BTS. As a maker order this incurs 0% fee on HONEST.Assets.
|
|
13
|
+
3. **Cover** — Later, buy back the MPA at a lower price to repay the debt.
|
|
14
|
+
4. **Close** — Repay the debt (`call_order_update` with negative debt delta) and release the collateral.
|
|
15
|
+
|
|
16
|
+
Profit comes from the difference between the sell price and the buyback price, denominated in BTS.
|
|
17
|
+
|
|
18
|
+
**Available operations (claw bridge):**
|
|
19
|
+
|
|
20
|
+
| Step | Command | Broadcast |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| Plan open | `build-open-short-plan` | No |
|
|
23
|
+
| Execute open | `open-short-bts` | Yes — borrows + places sell order |
|
|
24
|
+
| Plan take-profit | `build-take-profit-plan` | No |
|
|
25
|
+
| Execute take-profit | `take-profit-bts` | Yes — places buy order to cover |
|
|
26
|
+
| Plan close | `build-close-short-plan` | No |
|
|
27
|
+
| Execute close | `close-short-bts` | Yes — repays debt, releases collateral |
|
|
28
|
+
|
|
29
|
+
### Long Position
|
|
30
|
+
|
|
31
|
+
Betting that the MPA price (in BTS terms) will increase.
|
|
32
|
+
|
|
33
|
+
**Lifecycle:**
|
|
34
|
+
|
|
35
|
+
1. **Buy** — Place a limit order buying the MPA with BTS. As a maker order this incurs 0% fee on HONEST.Assets.
|
|
36
|
+
2. **Hold** — Wait for price to move in your favor.
|
|
37
|
+
3. **Sell** — Sell the MPA back for BTS at a higher price.
|
|
38
|
+
|
|
39
|
+
No borrowing or collateral is required for a long position — it is a spot buy.
|
|
40
|
+
|
|
41
|
+
**Available operations (claw bridge):**
|
|
42
|
+
|
|
43
|
+
| Step | Command | Broadcast |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| Buy | `create-limit-order` | Yes |
|
|
46
|
+
| Sell | `create-limit-order` | Yes |
|
|
47
|
+
| Modify | `update-limit-order` | Yes |
|
|
48
|
+
| Cancel | `cancel-limit-order` | Yes |
|
|
49
|
+
|
|
50
|
+
## Collateral Management
|
|
51
|
+
|
|
52
|
+
An open debt position can be adjusted without closing it:
|
|
53
|
+
|
|
54
|
+
| Action | Command | Effect |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| Add collateral | `adjust-mpa-collateral` (positive delta) | Increases CR, reduces liquidation risk |
|
|
57
|
+
| Remove collateral | `adjust-mpa-collateral` (negative delta) | Decreases CR, frees BTS |
|
|
58
|
+
| Increase debt | `borrow-mpa` | Issues more MPA, decreases CR |
|
|
59
|
+
| Repay partial | `repay-mpa` | Reduces debt, increases CR |
|
|
60
|
+
|
|
61
|
+
Adjustments change the collateral ratio — the position must remain in the green zone (CR >= 1.7). See `references/position-management.md` for CR zones.
|
|
62
|
+
|
|
63
|
+
## Position Queries
|
|
64
|
+
|
|
65
|
+
| Query | Command | Returns |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| On-chain debt position | `mpa-position` | Debt amount, collateral, CR, feed price |
|
|
68
|
+
| Account balances | `account-snapshot` | All balances and open orders |
|
|
69
|
+
| Open limit orders | `open-orders` | Active orders with amounts and prices |
|
|
70
|
+
| Market state | `market-snapshot` | Order book, ticker, global properties |
|
|
71
|
+
|
|
72
|
+
## Settlement and Margin Calls
|
|
73
|
+
|
|
74
|
+
If the collateral ratio drops below MCR (1.4 for HONEST.Assets), the position becomes subject to a margin call. The protocol will match the position against limit orders to cover the debt.
|
|
75
|
+
|
|
76
|
+
Force settlement allows any holder to settle their MPA at the feed price, subject to settlement delay and offset parameters configured by the asset issuer.
|
|
77
|
+
|
|
78
|
+
## Batch Operations
|
|
79
|
+
|
|
80
|
+
Multiple operations can be combined into a single atomic transaction using `execute-batch`. This is useful for simultaneously opening a position and placing a take-profit order, or adjusting multiple positions at once.
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# memU Proactive Memory for DEXBot2
|
|
2
|
+
|
|
3
|
+
memU provides 24/7 always-on proactive memory for AI agents integrated with DEXBot2. It captures user intent, reduces LLM token costs, and enables context-aware trading assistance.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
memU treats memory like a file system — structured, hierarchical, and instantly accessible:
|
|
8
|
+
|
|
9
|
+
| File System | memU Memory |
|
|
10
|
+
|-------------|-------------|
|
|
11
|
+
| Folders | Categories (auto-organized topics) |
|
|
12
|
+
| Files | Memory Items (extracted facts, preferences, skills) |
|
|
13
|
+
| Symlinks | Cross-references (related memories linked) |
|
|
14
|
+
| Mount points | Resources (conversations, documents, images) |
|
|
15
|
+
|
|
16
|
+
## Memory Hierarchy
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
memory/
|
|
20
|
+
├── preferences/
|
|
21
|
+
│ ├── communication_style.md
|
|
22
|
+
│ └── trading_preferences.md
|
|
23
|
+
├── relationships/
|
|
24
|
+
│ ├── contacts/
|
|
25
|
+
│ └── interaction_history/
|
|
26
|
+
├── knowledge/
|
|
27
|
+
│ ├── domain_expertise/
|
|
28
|
+
│ └── trading_strategies/
|
|
29
|
+
└── context/
|
|
30
|
+
├── recent_conversations/
|
|
31
|
+
└── pending_tasks/
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Prerequisites
|
|
35
|
+
|
|
36
|
+
- Python 3.13+
|
|
37
|
+
- memU package: `pip install memu-py`
|
|
38
|
+
- LLM API key (OpenAI, OpenRouter, etc.)
|
|
39
|
+
|
|
40
|
+
## Available Tools
|
|
41
|
+
|
|
42
|
+
### Core Memory Operations
|
|
43
|
+
|
|
44
|
+
| Tool | Description | Required Args |
|
|
45
|
+
|------|-------------|---------------|
|
|
46
|
+
| `memu_memorize` | Store a resource as memory | `resourceUrl`, `modality` |
|
|
47
|
+
| `memu_retrieve` | Query stored memories | `queries` |
|
|
48
|
+
| `memu_list_categories` | List memory categories | none |
|
|
49
|
+
| `memu_list_items` | List memory items | none |
|
|
50
|
+
| `memu_create_item` | Create a memory item directly | `categoryId` or `categoryName`, `summary` |
|
|
51
|
+
| `memu_status` | Get memU service status | none |
|
|
52
|
+
|
|
53
|
+
### Trading-Specific Operations
|
|
54
|
+
|
|
55
|
+
| Tool | Description | Required Args |
|
|
56
|
+
|------|-------------|---------------|
|
|
57
|
+
| `memu_memorize_conversation` | Memorize a conversation | `messages` |
|
|
58
|
+
| `memu_memorize_trading_context` | Memorize trading context | `context` |
|
|
59
|
+
| `memu_retrieve_trading_context` | Retrieve trading memories | `query` |
|
|
60
|
+
|
|
61
|
+
## Modalities
|
|
62
|
+
|
|
63
|
+
| Modality | Use Case |
|
|
64
|
+
|----------|----------|
|
|
65
|
+
| `conversation` | Chat logs, user-bot interactions |
|
|
66
|
+
| `document` | Trading reports, market analysis, bot configs |
|
|
67
|
+
| `image` | Chart screenshots, price graphs |
|
|
68
|
+
| `video` | Trading tutorials, market commentary |
|
|
69
|
+
| `audio` | Voice notes, trading calls |
|
|
70
|
+
|
|
71
|
+
## Usage Examples
|
|
72
|
+
|
|
73
|
+
### Memorize a Conversation
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"tool": "memu_memorize_conversation",
|
|
78
|
+
"arguments": {
|
|
79
|
+
"messages": [
|
|
80
|
+
{"role": "user", "content": "I prefer BTS/USD grid bots with 2% increment"},
|
|
81
|
+
{"role": "assistant", "content": "I'll configure a grid bot with those settings"}
|
|
82
|
+
],
|
|
83
|
+
"user": {"user_id": "trader-123"}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Memorize Trading Context
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"tool": "memu_memorize_trading_context",
|
|
93
|
+
"arguments": {
|
|
94
|
+
"context": {
|
|
95
|
+
"bot": "BTS/USD-grid",
|
|
96
|
+
"event": "price_dropped_5_percent",
|
|
97
|
+
"action_taken": "rebalanced_grid",
|
|
98
|
+
"timestamp": "2026-05-18T10:30:00Z"
|
|
99
|
+
},
|
|
100
|
+
"user": {"user_id": "trader-123"}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Retrieve Trading Context
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"tool": "memu_retrieve_trading_context",
|
|
110
|
+
"arguments": {
|
|
111
|
+
"query": "What are my preferences for BTS/USD grid bots?",
|
|
112
|
+
"user": {"user_id": "trader-123"}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Retrieve with LLM Deep Reasoning
|
|
118
|
+
|
|
119
|
+
```json
|
|
120
|
+
{
|
|
121
|
+
"tool": "memu_retrieve",
|
|
122
|
+
"arguments": {
|
|
123
|
+
"queries": [
|
|
124
|
+
{"role": "user", "content": {"text": "How should I adjust my grid based on recent market behavior?"}}
|
|
125
|
+
],
|
|
126
|
+
"method": "llm",
|
|
127
|
+
"where": {"user_id": "trader-123"}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Integration with DEXBot2 Claw
|
|
133
|
+
|
|
134
|
+
The memU bridge integrates with the DEXBot2 claw subsystem:
|
|
135
|
+
|
|
136
|
+
### CLI Usage
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# From claw/ directory
|
|
140
|
+
npm run memu:status
|
|
141
|
+
npm run memu:mcp # Start MCP server
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### MCP Server Configuration
|
|
145
|
+
|
|
146
|
+
For Hermes:
|
|
147
|
+
|
|
148
|
+
```yaml
|
|
149
|
+
mcp_servers:
|
|
150
|
+
memu:
|
|
151
|
+
command: "tsx"
|
|
152
|
+
args: ["/path/to/claw/scripts/memu_mcp_server.ts", "--memu-dir", "/path/to/claw/data/memu"]
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
For NanoBot/PicoClaw:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
tsx scripts/memu_mcp_server.ts --memu-dir /path/to/claw/data/memu
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Proactive Memory Patterns
|
|
162
|
+
|
|
163
|
+
### Pattern 1: Learning User Preferences
|
|
164
|
+
|
|
165
|
+
When the user mentions trading preferences:
|
|
166
|
+
|
|
167
|
+
1. Extract the preference from the conversation
|
|
168
|
+
2. Call `memu_memorize_conversation` to store it
|
|
169
|
+
3. On future interactions, call `memu_retrieve_trading_context` to recall preferences
|
|
170
|
+
|
|
171
|
+
### Pattern 2: Trading Event Memory
|
|
172
|
+
|
|
173
|
+
When significant trading events occur:
|
|
174
|
+
|
|
175
|
+
1. Call `memu_memorize_trading_context` with event details
|
|
176
|
+
2. Store bot actions, market conditions, and outcomes
|
|
177
|
+
3. Later, retrieve to inform similar decisions
|
|
178
|
+
|
|
179
|
+
### Pattern 3: Context-Aware Assistance
|
|
180
|
+
|
|
181
|
+
Before responding to trading queries:
|
|
182
|
+
|
|
183
|
+
1. Call `memu_retrieve_trading_context` with the query
|
|
184
|
+
2. Use retrieved context to provide personalized responses
|
|
185
|
+
3. Reference past decisions and preferences
|
|
186
|
+
|
|
187
|
+
## Memory Types
|
|
188
|
+
|
|
189
|
+
| Type | Description |
|
|
190
|
+
|------|-------------|
|
|
191
|
+
| `profile` | User preferences and settings |
|
|
192
|
+
| `knowledge` | Factual information about markets, assets |
|
|
193
|
+
| `skill` | Learned trading strategies and techniques |
|
|
194
|
+
| `behavior` | Interaction patterns and habits |
|
|
195
|
+
| `event` | Specific trading events and outcomes |
|
|
196
|
+
| `tool` | Tool call memory and outcomes |
|
|
197
|
+
|
|
198
|
+
## Best Practices
|
|
199
|
+
|
|
200
|
+
1. **Scope memories to users**: Always pass `user` with `user_id` when multiple users share the system
|
|
201
|
+
2. **Use appropriate modalities**: Choose the right modality for the content type
|
|
202
|
+
3. **Retrieve before acting**: Check existing memories before making recommendations
|
|
203
|
+
4. **Use RAG for speed, LLM for depth**: `method: "rag"` is fast, `method: "llm"` provides deeper reasoning
|
|
204
|
+
5. **Clean up old memories carefully**: Prefer scoped `memu_clear` calls such as `{"where":{"user_id":"trader-123"}}` on shared systems
|
|
205
|
+
|
|
206
|
+
## Environment Variables
|
|
207
|
+
|
|
208
|
+
| Variable | Description |
|
|
209
|
+
|----------|-------------|
|
|
210
|
+
| `OPENAI_API_KEY` | OpenAI API key for LLM operations |
|
|
211
|
+
| `MEMU_PYTHON` | Path to Python interpreter (default: `python3`) |
|
|
212
|
+
|
|
213
|
+
## Notes
|
|
214
|
+
|
|
215
|
+
- memU runs as a Python subprocess bridge from Node.js
|
|
216
|
+
- Memory is persisted to SQLite under `claw/data/memu` by default
|
|
217
|
+
- For production, configure PostgreSQL with pgvector for persistent storage
|
|
218
|
+
- The MCP server uses stdio transport with newline-delimited JSON-RPC
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# BitShares JS Automation Overview
|
|
2
|
+
|
|
3
|
+
Use this reference when the goal is long-running JavaScript automation against BitShares.
|
|
4
|
+
|
|
5
|
+
Focus on the practical module split:
|
|
6
|
+
|
|
7
|
+
- one shared read/subscription client
|
|
8
|
+
- one per-account signing client
|
|
9
|
+
- separate query, action, and state layers
|
|
10
|
+
- local-only signing through the credential path the runtime provides
|
|
11
|
+
|
|
12
|
+
Keep the implementation reference explicit:
|
|
13
|
+
|
|
14
|
+
- DEXBot2 shows a real Node.js/CommonJS bot runtime with shared reads, per-account signing, persistence, and reconciliation
|
|
15
|
+
- AI-Bot should reuse that pattern rather than duplicating it
|
|
16
|
+
|
|
17
|
+
Preferred baseline:
|
|
18
|
+
|
|
19
|
+
- `Node.js` / CommonJS first
|
|
20
|
+
- DEXBot2 native BitShares client for chain connectivity
|
|
21
|
+
- shared read connection for market and account state
|
|
22
|
+
- dedicated account client for signing and broadcast
|
|
23
|
+
|
|
24
|
+
Use this as a practical implementation guide, not as protocol authority.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Safety and Staleness Labels
|
|
2
|
+
|
|
3
|
+
- `current`: primary source surfaces for the current release, when present in the repo.
|
|
4
|
+
- `reference-only`: presentation reference material and any presentation examples derived from it.
|
|
5
|
+
- `historical-only`: legacy archive material or older reference material that should not be treated as current guidance.
|
|
6
|
+
|
|
7
|
+
Rules:
|
|
8
|
+
- Treat `current` files as the only place to make operational claims.
|
|
9
|
+
- Treat `reference-only` material as layout, tone, and framing guidance only.
|
|
10
|
+
- Treat `historical-only` material as stale until explicitly relabeled by the maintainer.
|
|
11
|
+
- If a file mixes current and historical material, split or relabel it before reuse.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Skill Boundaries
|
|
2
|
+
|
|
3
|
+
| Skill | Boundary | Allowed work | Not allowed |
|
|
4
|
+
| --- | --- | --- | --- |
|
|
5
|
+
| `bitshares-guide` | presentation-only | Pack presentation, onboarding copy, and guide structure | Operational instructions or source dumps |
|
|
6
|
+
| `trend-detection` | service-control-plane | Candle-driven signal monitoring, parameter tuning, and bot-setting updates | Order placement or margin-trading policy |
|
|
7
|
+
| `margin-trading` | concept-reference | Trading concepts, HONEST.Asset properties, position lifecycle, available operations | Prescribing specific parameter values as optimal, strategy recommendations, profit/loss predictions |
|
|
8
|
+
| `launcher-ops` | operational-orchestration | PM2 startup, unlock, claw-only mode, Docker-friendly launcher flow, launcher validation | Trading advice, credential disclosure, or bridge internals |
|
|
9
|
+
|
|
10
|
+
## Non-Goals
|
|
11
|
+
|
|
12
|
+
- No secrets or credentials.
|
|
13
|
+
- No unsupported runtime claims.
|
|
14
|
+
- No duplicated canonical source pointers inside individual `SKILL.md` files.
|
|
15
|
+
- No mixing of current, reference-only, and historical-only material without labels.
|
|
16
|
+
- Keep launcher orchestration guidance isolated to `launcher-ops`.
|
|
17
|
+
- No reuse of presentation reference material as an operational source.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: trend-detection
|
|
3
|
+
description: Shared DEXBot/Claw trend-detection service for candle-driven signals, parameter tuning, and bot-setting updates.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Trend Detection
|
|
7
|
+
|
|
8
|
+
Use this skill when the task is about the shared trend service rather than margin-trading specifically.
|
|
9
|
+
|
|
10
|
+
This skill covers:
|
|
11
|
+
|
|
12
|
+
- candle-fed trend detection and signal monitoring
|
|
13
|
+
- tuning trend-detection parameters and general settings
|
|
14
|
+
- applying signal-driven bot-setting updates for `weightDistribution`
|
|
15
|
+
|
|
16
|
+
## Workflow
|
|
17
|
+
|
|
18
|
+
1. Inspect the current trend signal, confidence, and premium/discount state.
|
|
19
|
+
2. Check the candle source and the active bot context.
|
|
20
|
+
3. Adjust trend-detection parameters in the appropriate configuration surface.
|
|
21
|
+
4. Preview the bot-settings patch before applying it.
|
|
22
|
+
5. Apply the update only when the signal and validation agree.
|
|
23
|
+
6. Monitor the next cycle through the adapter state and recalc trigger files.
|
|
24
|
+
|
|
25
|
+
## Boundaries
|
|
26
|
+
|
|
27
|
+
- Keep signal generation in `analysis/trend_detection/` and `market_adapter/`.
|
|
28
|
+
- Keep setting updates in the Claw/Dexbot profile layer.
|
|
29
|
+
- Do not tie the service to margin-trading-only policy or order placement.
|
|
30
|
+
|
|
31
|
+
## Reference
|
|
32
|
+
|
|
33
|
+
See [references/service.md](references/service.md) for the signal model, control surfaces, and tuning boundaries.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Trend Detection Service
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
This is the shared DEXBot/Claw trend service. It is independent of margin-trading and should be used for any bot that needs candle-driven signal generation, parameter tuning, and bot-setting updates.
|
|
6
|
+
|
|
7
|
+
## Signal Flow
|
|
8
|
+
|
|
9
|
+
1. `market_adapter/market_adapter.ts` keeps candles current and emits the per-bot center/state snapshot.
|
|
10
|
+
2. `analysis/trend_detection/kalman_trend_analyzer.ts` turns candle input plus feed price into trend output.
|
|
11
|
+
3. The service monitors the signal output, premium/discount, and price-ratio context.
|
|
12
|
+
4. Claw applies supported setting changes through `bot-settings-preview` and `bot-settings-apply`.
|
|
13
|
+
|
|
14
|
+
## Inputs
|
|
15
|
+
|
|
16
|
+
- Candle history from the market adapter
|
|
17
|
+
- Feed price / settlement reference
|
|
18
|
+
- Trend analyzer parameters:
|
|
19
|
+
- `erPeriod`
|
|
20
|
+
- `fastPeriod`
|
|
21
|
+
- `slowPeriod`
|
|
22
|
+
- `thresholdPercent`
|
|
23
|
+
- `minBarsForConfirmation`
|
|
24
|
+
- `deadZonePercent`
|
|
25
|
+
- Bot settings fields that the signal may update:
|
|
26
|
+
- `weightDistribution`
|
|
27
|
+
## Outputs
|
|
28
|
+
|
|
29
|
+
- `UP`, `DOWN`, or `NEUTRAL`
|
|
30
|
+
- Confidence score
|
|
31
|
+
- Premium / discount signal
|
|
32
|
+
- Oscillation / range context
|
|
33
|
+
- Proposed bot-setting patch for the next cycle
|
|
34
|
+
|
|
35
|
+
## Control Surfaces
|
|
36
|
+
|
|
37
|
+
- General settings: `profiles/general.settings.json`
|
|
38
|
+
- Per-bot settings: `profiles/bots.json`
|
|
39
|
+
- Recalc triggers: `profiles/recalculate.<botKey>.trigger`
|
|
40
|
+
- Signal state: `market_adapter/state/market_adapter_state.json`
|
|
41
|
+
- Center snapshot: `market_adapter/state/market_adapter_centers.json`
|
|
42
|
+
|
|
43
|
+
## Operating Rule
|
|
44
|
+
|
|
45
|
+
Treat the trend signal as configuration input, not as trading logic. The shared service can tune bot settings and trigger recalculation, but it should not own order placement or margin-position policy.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze_ama_price_changes.d.ts","sourceRoot":"","sources":["../../../analysis/ama_fitting/analyze_ama_price_changes.ts"],"names":[],"mappings":""}
|