dexbot 1.4.15 → 1.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5013 -0
- package/README.md +18 -14
- package/analysis/README.md +468 -0
- package/analysis/ama_fitting/README.md +258 -0
- package/analysis/ama_fitting/analyze_ama_price_changes.ts +151 -0
- package/analysis/ama_fitting/analyze_lambda_vs_slow.ts +407 -0
- package/analysis/ama_fitting/calibrate_convergence_er.ts +199 -0
- package/analysis/ama_fitting/fetch_lp_candles.ts +187 -0
- package/analysis/ama_fitting/generate_unified_comparison_chart.ts +269 -0
- package/analysis/ama_fitting/optimizer_high_resolution.ts +792 -0
- package/analysis/ama_fitting/package.json +12 -0
- package/analysis/analyze_derivatives.ts +318 -0
- package/analysis/analyze_dynamic_weight.ts +219 -0
- package/analysis/analyze_kalman.ts +126 -0
- package/analysis/analyze_regime.ts +156 -0
- package/analysis/analyze_regime_windows.ts +460 -0
- package/analysis/analyze_risk_profile.ts +199 -0
- package/analysis/analyze_trade_heatmap.ts +362 -0
- package/analysis/analyze_volatility.ts +182 -0
- package/analysis/bot_fitting/README.md +124 -0
- package/analysis/bot_fitting/backtest_ama_sweep.ts +816 -0
- package/analysis/bot_fitting/backtest_bot_fitting.ts +421 -0
- package/analysis/bot_fitting/shared_utils.ts +46 -0
- package/analysis/bot_key_utils.ts +154 -0
- package/analysis/bot_usage/discover_bot_accounts.ts +579 -0
- package/analysis/bot_usage/kibana_bot_queries.ts +427 -0
- package/analysis/chart_css.ts +60 -0
- package/analysis/chart_ui.ts +106 -0
- package/{dist/analysis/chart_utils.js → analysis/chart_utils.ts} +21 -13
- package/analysis/derivative_chart_generator.ts +874 -0
- package/analysis/math_utils.ts +60 -0
- package/analysis/price_sources.ts +130 -0
- package/analysis/resolve_source.ts +89 -0
- package/analysis/trade_profitability.ts +1412 -0
- package/analysis/tradingview/README.md +161 -0
- package/analysis/tradingview/analyze_tradingview.ts +160 -0
- package/{dist/analysis/tradingview/tradingview_uplot_chart_generator.js → analysis/tradingview/tradingview_uplot_chart_generator.ts} +40 -36
- package/analysis/trend_detection/DYNAMIC_WEIGHT_RESEARCH.md +437 -0
- package/analysis/trend_detection/README.md +27 -0
- package/analysis/trend_detection/SIGNAL_DOCUMENTATION.md +403 -0
- package/analysis/trend_detection/derivative_analyzer.ts +1050 -0
- package/analysis/trend_detection/dynamic_weight_chart_generator.ts +1376 -0
- package/analysis/trend_detection/hurst_analyzer.ts +7 -0
- package/analysis/trend_detection/kalman_chart_generator.ts +371 -0
- package/analysis/trend_detection/kalman_trend_analyzer.ts +9 -0
- package/analysis/trend_detection/kalman_velocity_smoothing.ts +7 -0
- package/analysis/trend_detection/package.json +23 -0
- package/analysis/trend_detection/permutation_entropy_analyzer.ts +7 -0
- package/analysis/trend_detection/regime_chart_generator.ts +319 -0
- package/analysis/trend_detection/tests/test_kalman_trend.ts +153 -0
- package/analysis/trend_detection/tests/test_kalman_velocity_smoothing.ts +64 -0
- package/analysis/trend_detection/volatility_chart_generator.ts +655 -0
- package/analysis/tsconfig.json +29 -0
- package/analysis/uplot/index.d.ts +128 -0
- package/analysis/uplot/uPlot.iife.min.js +2 -0
- package/analysis/uplot/uPlot.min.css +1 -0
- package/claw/README.md +4 -0
- package/claw/examples/claw_profiles_example.ts +1 -1
- package/claw/examples/memu_integration_example.ts +1 -1
- package/claw/modules/bitshares_client.ts +47 -7
- package/claw/modules/chain_actions.ts +10 -1
- package/claw/modules/chain_broadcast.ts +4 -5
- package/claw/modules/claw_infra.ts +13 -3
- package/claw/modules/claw_launcher.ts +41 -7
- package/claw/modules/claw_manifest.ts +9 -1
- package/claw/modules/claw_skill_md.ts +34 -13
- package/claw/modules/credit_runtime_adapter.ts +30 -12
- package/claw/modules/decision_loop.ts +10 -2
- package/claw/modules/dexbot_profiles.ts +5 -25
- package/claw/modules/feed_price_source.ts +1 -1
- package/claw/modules/honest_ecosystem.ts +32 -8
- package/claw/modules/kibana_price_source.ts +6 -2
- package/claw/modules/launcher_mode_detector.ts +10 -13
- package/claw/modules/launcher_paths.ts +4 -1
- package/claw/modules/liquidity_pools.ts +2 -2
- package/claw/modules/mcp_utils.ts +46 -5
- package/claw/modules/memu_bridge.ts +17 -1
- package/claw/modules/position_discovery.ts +1 -1
- package/claw/modules/position_health.ts +1 -1
- package/claw/modules/position_manager.ts +39 -13
- package/claw/modules/skill_utils.ts +4 -8
- package/claw/modules/types.ts +20 -1
- package/claw/package.json +1 -1
- package/claw/runtimes/openclaw-plugin/openclaw.plugin.json +1 -1
- package/claw/runtimes/openclaw-plugin/package.json +1 -1
- package/claw/scripts/claw_bridge.ts +22 -3
- package/claw/scripts/claw_mcp_server.ts +28 -13
- package/claw/scripts/honest_assets_report.ts +3 -1
- package/claw/scripts/memu_mcp_server.ts +15 -4
- package/claw/tests/test_claw_data_flow.ts +4 -2
- package/claw/tests/test_claw_mcp_transport.ts +2 -2
- package/claw/tests/test_claw_regressions.ts +5 -0
- package/claw/tests/test_claw_skill_generation.ts +3 -3
- package/claw/tests/test_nullclaw_tmp_integration.ts +1 -1
- package/claw/tsconfig.json +1 -2
- package/dist/bot.js +1 -1
- package/dist/bot.js.map +1 -1
- package/dist/credential-daemon.js +8 -8
- package/dist/credential-daemon.js.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.d.ts.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.js +9 -3
- package/dist/market_adapter/core/market_adapter_service.js.map +1 -1
- package/dist/market_adapter/core/signals/hurst_analyzer.js +1 -1
- package/dist/market_adapter/core/signals/kalman_trend_analyzer.js +1 -1
- package/dist/market_adapter/core/signals/permutation_entropy_analyzer.js +1 -1
- package/dist/market_adapter/core/strategies/ama_slope_model.js +1 -1
- package/dist/market_adapter/core/strategies/collateral_manager.js +1 -1
- package/dist/market_adapter/core/strategies/regime_gate.js +1 -1
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js +1 -2
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.js +2 -3
- package/dist/market_adapter/inputs/fetch_lp_data.js.map +1 -1
- package/dist/market_adapter/lp_chart_core.js +1 -1
- package/dist/market_adapter/market_adapter.d.ts.map +1 -1
- package/dist/market_adapter/market_adapter.js +3 -2
- package/dist/market_adapter/market_adapter.js.map +1 -1
- package/dist/market_adapter/utils/data_discovery.js +2 -2
- package/dist/market_adapter/utils/data_discovery.js.map +1 -1
- package/dist/modules/account_bots.d.ts.map +1 -1
- package/dist/modules/account_bots.js +7 -17
- package/dist/modules/account_bots.js.map +1 -1
- package/dist/modules/account_orders.d.ts +8 -1
- package/dist/modules/account_orders.d.ts.map +1 -1
- package/dist/modules/account_orders.js +3 -11
- package/dist/modules/account_orders.js.map +1 -1
- package/dist/modules/authority_resolver.js +1 -1
- package/dist/modules/authority_resolver.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts +1 -2
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.browser.js +19 -58
- package/dist/modules/bitshares-native/crypto/ecc.browser.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.d.ts +2 -9
- package/dist/modules/bitshares-native/crypto/ecc.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.js +6 -145
- package/dist/modules/bitshares-native/crypto/ecc.js.map +1 -1
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts +1 -17
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/chain_constants.js +1 -30
- package/dist/modules/bitshares-native/serial/chain_constants.js.map +1 -1
- package/dist/modules/bitshares-native/serial/types.d.ts +1 -30
- package/dist/modules/bitshares-native/serial/types.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/types.js +1 -169
- package/dist/modules/bitshares-native/serial/types.js.map +1 -1
- package/dist/modules/bitshares-native/signing_client.js +1 -1
- package/dist/modules/bitshares-native/signing_client.js.map +1 -1
- package/dist/modules/bitshares-native/subscriptions.js +7 -7
- package/dist/modules/bitshares-native/subscriptions.js.map +1 -1
- package/dist/modules/bitshares-native/transport.js +1 -1
- package/dist/modules/bitshares-native/transport.js.map +1 -1
- package/dist/modules/bitshares-native/tx/builder.d.ts +1 -6
- package/dist/modules/bitshares-native/tx/builder.d.ts.map +1 -1
- package/dist/modules/bitshares-native/tx/builder.js +2 -11
- package/dist/modules/bitshares-native/tx/builder.js.map +1 -1
- package/dist/modules/bitshares-native/tx/tx_cache.js +1 -1
- package/dist/modules/bitshares-native/tx/tx_cache.js.map +1 -1
- package/dist/modules/bitshares_client.js +1 -1
- package/dist/modules/bitshares_client.js.map +1 -1
- package/dist/modules/bot_settings.js +1 -1
- package/dist/modules/bot_settings.js.map +1 -1
- package/dist/modules/chain_keys.d.ts +2 -2
- package/dist/modules/chain_keys.d.ts.map +1 -1
- package/dist/modules/chain_keys.js +9 -3
- package/dist/modules/chain_keys.js.map +1 -1
- package/dist/modules/chain_orders.d.ts.map +1 -1
- package/dist/modules/chain_orders.js +7 -23
- package/dist/modules/chain_orders.js.map +1 -1
- package/dist/modules/constants.js +1 -1
- package/dist/modules/constants.js.map +1 -1
- package/dist/modules/cr_planner.js +3 -3
- package/dist/modules/cr_planner.js.map +1 -1
- package/dist/modules/credential_policy.d.ts.map +1 -1
- package/dist/modules/credential_policy.js +6 -12
- package/dist/modules/credential_policy.js.map +1 -1
- package/dist/modules/credential_runtime.d.ts +0 -3
- package/dist/modules/credential_runtime.d.ts.map +1 -1
- package/dist/modules/credential_runtime.js +5 -27
- package/dist/modules/credential_runtime.js.map +1 -1
- package/dist/modules/credit_runtime.d.ts.map +1 -1
- package/dist/modules/credit_runtime.js +18 -27
- package/dist/modules/credit_runtime.js.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.d.ts +4 -1
- package/dist/modules/crypto/pure_secp256k1.d.ts.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.js +1 -1
- package/dist/modules/crypto/pure_secp256k1.js.map +1 -1
- package/dist/modules/crypto/sync.d.ts +0 -3
- package/dist/modules/crypto/sync.d.ts.map +1 -1
- package/dist/modules/crypto/sync.js +0 -3
- package/dist/modules/crypto/sync.js.map +1 -1
- package/dist/modules/dexbot_class.d.ts +9 -9
- package/dist/modules/dexbot_class.js +9 -9
- package/dist/modules/dexbot_cow_runtime.d.ts +3 -3
- package/dist/modules/dexbot_cow_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_cow_runtime.js +4 -9
- package/dist/modules/dexbot_cow_runtime.js.map +1 -1
- package/dist/modules/dexbot_fill_runtime.d.ts +10 -10
- package/dist/modules/dexbot_fill_runtime.js +10 -10
- package/dist/modules/dexbot_maintenance_runtime.d.ts +7 -7
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.js +16 -15
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
- package/dist/modules/env.d.ts +0 -1
- package/dist/modules/env.d.ts.map +1 -1
- package/dist/modules/env.js +0 -34
- package/dist/modules/env.js.map +1 -1
- package/dist/modules/graceful_shutdown.js +1 -1
- package/dist/modules/graceful_shutdown.js.map +1 -1
- package/dist/modules/key_store.js +1 -1
- package/dist/modules/key_store.js.map +1 -1
- package/dist/modules/launcher/credential_daemon.d.ts.map +1 -1
- package/dist/modules/launcher/credential_daemon.js +3 -3
- package/dist/modules/launcher/credential_daemon.js.map +1 -1
- package/dist/modules/launcher/launch_modes.d.ts +1 -2
- package/dist/modules/launcher/launch_modes.d.ts.map +1 -1
- package/dist/modules/launcher/launch_modes.js +1 -2
- package/dist/modules/launcher/launch_modes.js.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.d.ts +1 -2
- package/dist/modules/launcher/market_adapter_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.js +1 -4
- package/dist/modules/launcher/market_adapter_runtime.js.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.d.ts +1 -2
- package/dist/modules/launcher/monolithic_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.js +3 -17
- package/dist/modules/launcher/monolithic_runtime.js.map +1 -1
- package/dist/modules/launcher/runtime_entry.d.ts +1 -2
- package/dist/modules/launcher/runtime_entry.d.ts.map +1 -1
- package/dist/modules/launcher/runtime_entry.js +1 -14
- package/dist/modules/launcher/runtime_entry.js.map +1 -1
- package/dist/modules/launcher/status_reporting.d.ts +1 -3
- package/dist/modules/launcher/status_reporting.d.ts.map +1 -1
- package/dist/modules/launcher/status_reporting.js +1 -10
- package/dist/modules/launcher/status_reporting.js.map +1 -1
- package/dist/modules/node_manager.d.ts.map +1 -1
- package/dist/modules/node_manager.js +4 -3
- package/dist/modules/node_manager.js.map +1 -1
- package/dist/modules/order/export.d.ts.map +1 -1
- package/dist/modules/order/export.js +4 -3
- package/dist/modules/order/export.js.map +1 -1
- package/dist/modules/order/format.d.ts +1 -10
- package/dist/modules/order/format.d.ts.map +1 -1
- package/dist/modules/order/format.js +1 -22
- package/dist/modules/order/format.js.map +1 -1
- package/dist/modules/order/grid.d.ts +19 -19
- package/dist/modules/order/grid.d.ts.map +1 -1
- package/dist/modules/order/grid.js +25 -25
- package/dist/modules/order/grid.js.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.d.ts +1 -83
- package/dist/modules/order/grid_reconcile_internal.d.ts.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.js +1 -1
- package/dist/modules/order/grid_reconcile_internal.js.map +1 -1
- package/dist/modules/order/manager.d.ts +15 -15
- package/dist/modules/order/manager.js +15 -15
- package/dist/modules/order/processed_fill_store.d.ts +1 -1
- package/dist/modules/order/processed_fill_store.js +1 -1
- package/dist/modules/order/sync_engine.d.ts +4 -4
- package/dist/modules/order/sync_engine.js +4 -4
- package/dist/modules/order/utils/math.d.ts +7 -2
- package/dist/modules/order/utils/math.d.ts.map +1 -1
- package/dist/modules/order/utils/math.js +10 -3
- package/dist/modules/order/utils/math.js.map +1 -1
- package/dist/modules/order/utils/order.js +3 -3
- package/dist/modules/order/utils/order.js.map +1 -1
- package/dist/modules/order/utils/system.d.ts +17 -1
- package/dist/modules/order/utils/system.d.ts.map +1 -1
- package/dist/modules/order/utils/system.js +56 -4
- package/dist/modules/order/utils/system.js.map +1 -1
- package/dist/modules/order/utils/validate.d.ts +3 -3
- package/dist/modules/order/utils/validate.d.ts.map +1 -1
- package/dist/modules/order/utils/validate.js +5 -5
- package/dist/modules/order/utils/validate.js.map +1 -1
- package/dist/modules/order/utils/withPoolRef.js +1 -1
- package/dist/modules/order/utils/withPoolRef.js.map +1 -1
- package/dist/modules/paths.d.ts +46 -15
- package/dist/modules/paths.d.ts.map +1 -1
- package/dist/modules/paths.js +145 -33
- package/dist/modules/paths.js.map +1 -1
- package/dist/modules/runtime.d.ts +1 -0
- package/dist/modules/runtime.d.ts.map +1 -1
- package/dist/modules/runtime_settings.d.ts.map +1 -1
- package/dist/modules/runtime_settings.js +26 -30
- package/dist/modules/runtime_settings.js.map +1 -1
- package/dist/modules/settings_merge.d.ts +7 -1
- package/dist/modules/settings_merge.d.ts.map +1 -1
- package/dist/modules/settings_merge.js +10 -6
- package/dist/modules/settings_merge.js.map +1 -1
- package/dist/modules/types.d.ts +0 -753
- package/dist/modules/types.d.ts.map +1 -1
- package/dist/modules/types.js +0 -15
- package/dist/modules/types.js.map +1 -1
- package/dist/modules/utils/base58check.js +4 -4
- package/dist/modules/utils/base58check.js.map +1 -1
- package/dist/modules/validate_profiles.d.ts +1 -11
- package/dist/modules/validate_profiles.d.ts.map +1 -1
- package/dist/modules/validate_profiles.js +1 -1
- package/dist/modules/validate_profiles.js.map +1 -1
- package/dist/pm2.js +3 -3
- package/dist/pm2.js.map +1 -1
- package/dist/scripts/update.d.ts +17 -5
- package/dist/scripts/update.d.ts.map +1 -1
- package/dist/scripts/update.js +420 -172
- package/dist/scripts/update.js.map +1 -1
- package/docs/BITSHARES_ONBOARDING.md +435 -0
- package/docs/COPY_ON_WRITE_MASTER_PLAN.md +514 -0
- package/docs/COW_INVARIANTS.md +309 -0
- package/docs/CREDENTIAL_SECURITY.md +450 -0
- package/docs/DEXBOT_COMPARISON.md +922 -0
- package/docs/EVOLUTION.md +210 -0
- package/docs/FUND_MOVEMENT_AND_ACCOUNTING.md +851 -0
- package/docs/GRID_RECALCULATION.md +624 -0
- package/docs/GRID_RECONCILE.md +259 -0
- package/docs/LOGGING.md +318 -0
- package/docs/MPA_CREDIT_USAGE.md +353 -0
- package/docs/README.md +199 -0
- package/docs/WORKFLOW.md +369 -0
- package/docs/architecture.md +1466 -0
- package/docs/developer_guide.md +1929 -0
- package/docs/docker.md +141 -0
- package/market_adapter/README.md +1003 -0
- package/modules/README.md +176 -0
- package/package.json +40 -5
- package/scripts/README.md +55 -32
- package/scripts/bots +18 -0
- package/scripts/clean-dist.js +9 -0
- package/scripts/create-bot-symlinks.sh +3 -3
- package/scripts/dexbot +17 -0
- package/scripts/git-viewer.sh +489 -0
- package/scripts/keys +18 -0
- package/scripts/lib/dexbot-paths.sh +71 -20
- package/scripts/pdev.sh +38 -0
- package/scripts/pm2 +17 -0
- package/scripts/pmain.sh +45 -0
- package/scripts/ptest.sh +26 -0
- package/scripts/repo-stats.html +480 -0
- package/scripts/unlock +17 -0
- package/scripts/update.js +13 -0
- package/tests/README.md +135 -0
- package/claw/data/positions.json +0 -148036
- package/claw/node_modules/.package-lock.json +0 -935
- package/claw/node_modules/@babel/runtime/LICENSE +0 -22
- package/claw/node_modules/@babel/runtime/README.md +0 -19
- package/claw/node_modules/@babel/runtime/helpers/AwaitValue.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/OverloadYield.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/applyDecs.js +0 -236
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2203.js +0 -184
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2203R.js +0 -191
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2301.js +0 -222
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2305.js +0 -133
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2311.js +0 -124
- package/claw/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/assertClassBrand.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +0 -24
- package/claw/node_modules/@babel/runtime/helpers/asyncIterator.js +0 -45
- package/claw/node_modules/@babel/runtime/helpers/asyncToGenerator.js +0 -26
- package/claw/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/callSuper.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/checkInRHS.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classNameTDZError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateGetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classPrivateSetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/construct.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/createClass.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +0 -50
- package/claw/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/createSuper.js +0 -16
- package/claw/node_modules/@babel/runtime/helpers/decorate.js +0 -250
- package/claw/node_modules/@babel/runtime/helpers/defaults.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/defineAccessor.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/defineProperty.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/dispose.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs.js +0 -236
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +0 -184
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +0 -191
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +0 -222
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +0 -133
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +0 -124
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -24
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +0 -45
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +0 -26
- package/claw/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/callSuper.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/construct.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +0 -50
- package/claw/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -16
- package/claw/node_modules/@babel/runtime/helpers/esm/decorate.js +0 -250
- package/claw/node_modules/@babel/runtime/helpers/esm/defaults.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/dispose.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/esm/extends.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/get.js +0 -11
- package/claw/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/identity.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/instanceof.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/esm/jsx.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/objectSpread.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -23
- package/claw/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/package.json +0 -3
- package/claw/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/regenerator.js +0 -89
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -33
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +0 -77
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/esm/set.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropBase.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropGet.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropSet.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/tdz.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/temporalRef.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +0 -2
- package/claw/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/toSetter.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/using.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/usingCtx.js +0 -59
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +0 -56
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +0 -52
- package/claw/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/extends.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/get.js +0 -11
- package/claw/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/identity.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/importDeferProxy.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/inherits.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/inheritsLoose.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/instanceof.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/isNativeFunction.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/jsx.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/maybeArrayLike.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/newArrowCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/nullishReceiverError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/objectSpread.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -23
- package/claw/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/readOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/regenerator.js +0 -89
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsync.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +0 -33
- package/claw/node_modules/@babel/runtime/helpers/regeneratorDefine.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/regeneratorKeys.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +0 -77
- package/claw/node_modules/@babel/runtime/helpers/regeneratorValues.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/set.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/setFunctionName.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/superPropBase.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/superPropGet.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/superPropSet.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/tdz.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/temporalRef.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/temporalUndefined.js +0 -2
- package/claw/node_modules/@babel/runtime/helpers/toArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/toSetter.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/typeof.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/using.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/usingCtx.js +0 -59
- package/claw/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +0 -56
- package/claw/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/wrapRegExp.js +0 -52
- package/claw/node_modules/@babel/runtime/helpers/writeOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/package.json +0 -1107
- package/claw/node_modules/@babel/runtime/regenerator/index.js +0 -15
- package/claw/node_modules/assert/.github/FUNDING.yml +0 -12
- package/claw/node_modules/assert/.github/SECURITY.md +0 -10
- package/claw/node_modules/assert/.travis.yml +0 -30
- package/claw/node_modules/assert/.zuul.yml +0 -13
- package/claw/node_modules/assert/CHANGELOG.md +0 -11
- package/claw/node_modules/assert/LICENSE +0 -18
- package/claw/node_modules/assert/README.md +0 -105
- package/claw/node_modules/assert/assert.js +0 -506
- package/claw/node_modules/assert/package.json +0 -32
- package/claw/node_modules/assert/test.js +0 -360
- package/claw/node_modules/async-limiter/.eslintignore +0 -2
- package/claw/node_modules/async-limiter/.nycrc +0 -10
- package/claw/node_modules/async-limiter/.travis.yml +0 -9
- package/claw/node_modules/async-limiter/LICENSE +0 -8
- package/claw/node_modules/async-limiter/index.js +0 -67
- package/claw/node_modules/async-limiter/package.json +0 -35
- package/claw/node_modules/async-limiter/readme.md +0 -132
- package/claw/node_modules/available-typed-arrays/.eslintrc +0 -5
- package/claw/node_modules/available-typed-arrays/.github/FUNDING.yml +0 -12
- package/claw/node_modules/available-typed-arrays/.nycrc +0 -9
- package/claw/node_modules/available-typed-arrays/CHANGELOG.md +0 -100
- package/claw/node_modules/available-typed-arrays/LICENSE +0 -21
- package/claw/node_modules/available-typed-arrays/README.md +0 -55
- package/claw/node_modules/available-typed-arrays/index.d.ts +0 -8
- package/claw/node_modules/available-typed-arrays/index.js +0 -17
- package/claw/node_modules/available-typed-arrays/package.json +0 -93
- package/claw/node_modules/available-typed-arrays/test/index.js +0 -18
- package/claw/node_modules/available-typed-arrays/tsconfig.json +0 -49
- package/claw/node_modules/base-x/LICENSE.md +0 -22
- package/claw/node_modules/base-x/README.md +0 -67
- package/claw/node_modules/base-x/package.json +0 -49
- package/claw/node_modules/base-x/src/index.d.ts +0 -10
- package/claw/node_modules/base-x/src/index.js +0 -123
- package/claw/node_modules/bigi/CHANGELOG.md +0 -85
- package/claw/node_modules/bigi/LICENSE.md +0 -30
- package/claw/node_modules/bigi/README.md +0 -14
- package/claw/node_modules/bigi/lib/bigi.js +0 -1509
- package/claw/node_modules/bigi/lib/convert.js +0 -91
- package/claw/node_modules/bigi/lib/index.js +0 -6
- package/claw/node_modules/bigi/package.json +0 -55
- package/claw/node_modules/bignumber.js/CHANGELOG.md +0 -222
- package/claw/node_modules/bignumber.js/LICENCE +0 -23
- package/claw/node_modules/bignumber.js/README.md +0 -266
- package/claw/node_modules/bignumber.js/bignumber.d.ts +0 -1797
- package/claw/node_modules/bignumber.js/bignumber.js +0 -2814
- package/claw/node_modules/bignumber.js/bignumber.js.map +0 -1
- package/claw/node_modules/bignumber.js/bignumber.min.js +0 -3
- package/claw/node_modules/bignumber.js/bignumber.mjs +0 -2793
- package/claw/node_modules/bignumber.js/bower.json +0 -36
- package/claw/node_modules/bignumber.js/doc/API.html +0 -2118
- package/claw/node_modules/bignumber.js/package.json +0 -39
- package/claw/node_modules/bs58/CHANGELOG.md +0 -61
- package/claw/node_modules/bs58/README.md +0 -71
- package/claw/node_modules/bs58/index.js +0 -4
- package/claw/node_modules/bs58/package.json +0 -37
- package/claw/node_modules/btsdex/.babelrc +0 -17
- package/claw/node_modules/btsdex/.github/workflows/check-style.yml +0 -16
- package/claw/node_modules/btsdex/LICENSE +0 -21
- package/claw/node_modules/btsdex/README.md +0 -467
- package/claw/node_modules/btsdex/cli.js +0 -165
- package/claw/node_modules/btsdex/lib/account.js +0 -60
- package/claw/node_modules/btsdex/lib/asset.js +0 -78
- package/claw/node_modules/btsdex/lib/bitshares.js +0 -363
- package/claw/node_modules/btsdex/lib/event.js +0 -137
- package/claw/node_modules/btsdex/lib/fees.js +0 -34
- package/claw/node_modules/btsdex/lib/index.js +0 -3
- package/claw/node_modules/btsdex/lib/transaction/TransactionBuilder.js +0 -797
- package/claw/node_modules/btsdex/lib/transaction/index.js +0 -64
- package/claw/node_modules/btsdex/package.json +0 -54
- package/claw/node_modules/btsdex/yarn-error.log +0 -3483
- package/claw/node_modules/btsdex-api/.babelrc +0 -14
- package/claw/node_modules/btsdex-api/README.md +0 -3
- package/claw/node_modules/btsdex-api/lib/apis.js +0 -59
- package/claw/node_modules/btsdex-api/lib/config.js +0 -39
- package/claw/node_modules/btsdex-api/lib/connection.js +0 -188
- package/claw/node_modules/btsdex-api/lib/index.js +0 -86
- package/claw/node_modules/btsdex-api/lib/logger.js +0 -45
- package/claw/node_modules/btsdex-api/lib/servers.js +0 -30
- package/claw/node_modules/btsdex-api/package.json +0 -29
- package/claw/node_modules/btsdex-ecc/.babelrc +0 -13
- package/claw/node_modules/btsdex-ecc/lib/BrainKey.js +0 -15
- package/claw/node_modules/btsdex-ecc/lib/KeyUtils.js +0 -205
- package/claw/node_modules/btsdex-ecc/lib/PrivateKey.js +0 -198
- package/claw/node_modules/btsdex-ecc/lib/PublicKey.js +0 -197
- package/claw/node_modules/btsdex-ecc/lib/address.js +0 -84
- package/claw/node_modules/btsdex-ecc/lib/addressPrefix.js +0 -15
- package/claw/node_modules/btsdex-ecc/lib/aes.js +0 -294
- package/claw/node_modules/btsdex-ecc/lib/ecdsa.js +0 -194
- package/claw/node_modules/btsdex-ecc/lib/ecsignature.js +0 -131
- package/claw/node_modules/btsdex-ecc/lib/enforce_types.js +0 -54
- package/claw/node_modules/btsdex-ecc/lib/hash.js +0 -60
- package/claw/node_modules/btsdex-ecc/lib/index.js +0 -84
- package/claw/node_modules/btsdex-ecc/lib/signature.js +0 -185
- package/claw/node_modules/btsdex-ecc/package.json +0 -37
- package/claw/node_modules/btsdex-serializer/.babelrc +0 -13
- package/claw/node_modules/btsdex-serializer/lib/ChainTypes.js +0 -154
- package/claw/node_modules/btsdex-serializer/lib/FastParser.js +0 -75
- package/claw/node_modules/btsdex-serializer/lib/ObjectId.js +0 -65
- package/claw/node_modules/btsdex-serializer/lib/SerializerValidation.js +0 -377
- package/claw/node_modules/btsdex-serializer/lib/convert.js +0 -54
- package/claw/node_modules/btsdex-serializer/lib/error_with_cause.js +0 -43
- package/claw/node_modules/btsdex-serializer/lib/index.js +0 -72
- package/claw/node_modules/btsdex-serializer/lib/operations.js +0 -1359
- package/claw/node_modules/btsdex-serializer/lib/precision.js +0 -108
- package/claw/node_modules/btsdex-serializer/lib/serializer.js +0 -205
- package/claw/node_modules/btsdex-serializer/lib/template.js +0 -23
- package/claw/node_modules/btsdex-serializer/lib/types.js +0 -1209
- package/claw/node_modules/btsdex-serializer/package-lock.json +0 -238
- package/claw/node_modules/btsdex-serializer/package.json +0 -32
- package/claw/node_modules/bytebuffer/.travis.yml +0 -5
- package/claw/node_modules/bytebuffer/LICENSE +0 -202
- package/claw/node_modules/bytebuffer/README.md +0 -64
- package/claw/node_modules/bytebuffer/bower.json +0 -12
- package/claw/node_modules/bytebuffer/bytebuffer.png +0 -0
- package/claw/node_modules/bytebuffer/dist/README.md +0 -47
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.js +0 -3461
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.js +0 -88
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.js.gz +0 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.map +0 -8
- package/claw/node_modules/bytebuffer/dist/bytebuffer-node.js +0 -3454
- package/claw/node_modules/bytebuffer/dist/bytebuffer.js +0 -3746
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.js +0 -93
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.js.gz +0 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.map +0 -8
- package/claw/node_modules/bytebuffer/donate.png +0 -0
- package/claw/node_modules/bytebuffer/externs/bytebuffer.js +0 -862
- package/claw/node_modules/bytebuffer/externs/minimal-env.js +0 -52
- package/claw/node_modules/bytebuffer/index.js +0 -1
- package/claw/node_modules/bytebuffer/jsdoc.json +0 -13
- package/claw/node_modules/bytebuffer/package.json +0 -51
- package/claw/node_modules/bytebuffer/scripts/build.js +0 -113
- package/claw/node_modules/bytebuffer/src/bower.json +0 -12
- package/claw/node_modules/bytebuffer/src/bytebuffer.js +0 -220
- package/claw/node_modules/bytebuffer/src/encodings/base64.js +0 -88
- package/claw/node_modules/bytebuffer/src/encodings/binary.js +0 -74
- package/claw/node_modules/bytebuffer/src/encodings/debug.js +0 -211
- package/claw/node_modules/bytebuffer/src/encodings/hex.js +0 -75
- package/claw/node_modules/bytebuffer/src/encodings/impl/base64.js +0 -3
- package/claw/node_modules/bytebuffer/src/encodings/impl/binary.js +0 -65
- package/claw/node_modules/bytebuffer/src/encodings/impl/debug.js +0 -3
- package/claw/node_modules/bytebuffer/src/encodings/impl/hex.js +0 -101
- package/claw/node_modules/bytebuffer/src/encodings/impl/utf8.js +0 -126
- package/claw/node_modules/bytebuffer/src/encodings/utf8.js +0 -71
- package/claw/node_modules/bytebuffer/src/helpers.js +0 -143
- package/claw/node_modules/bytebuffer/src/macros.js +0 -222
- package/claw/node_modules/bytebuffer/src/methods/append.js +0 -58
- package/claw/node_modules/bytebuffer/src/methods/assert.js +0 -12
- package/claw/node_modules/bytebuffer/src/methods/capacity.js +0 -8
- package/claw/node_modules/bytebuffer/src/methods/clear.js +0 -13
- package/claw/node_modules/bytebuffer/src/methods/clone.js +0 -34
- package/claw/node_modules/bytebuffer/src/methods/compact.js +0 -49
- package/claw/node_modules/bytebuffer/src/methods/copy.js +0 -73
- package/claw/node_modules/bytebuffer/src/methods/ensureCapacity.js +0 -15
- package/claw/node_modules/bytebuffer/src/methods/fill.js +0 -35
- package/claw/node_modules/bytebuffer/src/methods/flip.js +0 -11
- package/claw/node_modules/bytebuffer/src/methods/mark.js +0 -17
- package/claw/node_modules/bytebuffer/src/methods/order.js +0 -36
- package/claw/node_modules/bytebuffer/src/methods/prepend.js +0 -87
- package/claw/node_modules/bytebuffer/src/methods/printDebug.js +0 -16
- package/claw/node_modules/bytebuffer/src/methods/remaining.js +0 -9
- package/claw/node_modules/bytebuffer/src/methods/reset.js +0 -17
- package/claw/node_modules/bytebuffer/src/methods/resize.js +0 -39
- package/claw/node_modules/bytebuffer/src/methods/reverse.js +0 -25
- package/claw/node_modules/bytebuffer/src/methods/skip.js +0 -19
- package/claw/node_modules/bytebuffer/src/methods/slice.js +0 -18
- package/claw/node_modules/bytebuffer/src/methods/static/accessor.js +0 -13
- package/claw/node_modules/bytebuffer/src/methods/static/allocate.js +0 -14
- package/claw/node_modules/bytebuffer/src/methods/static/concat.js +0 -55
- package/claw/node_modules/bytebuffer/src/methods/static/isByteBuffer.js +0 -9
- package/claw/node_modules/bytebuffer/src/methods/static/type.js +0 -11
- package/claw/node_modules/bytebuffer/src/methods/static/wrap.js +0 -125
- package/claw/node_modules/bytebuffer/src/methods/toBuffer.js +0 -77
- package/claw/node_modules/bytebuffer/src/methods/toString.js +0 -43
- package/claw/node_modules/bytebuffer/src/types/bytes/bitset.js +0 -89
- package/claw/node_modules/bytebuffer/src/types/bytes/bytes.js +0 -34
- package/claw/node_modules/bytebuffer/src/types/floats/float32.js +0 -81
- package/claw/node_modules/bytebuffer/src/types/floats/float64.js +0 -77
- package/claw/node_modules/bytebuffer/src/types/floats/ieee754.js +0 -130
- package/claw/node_modules/bytebuffer/src/types/ints/int16.js +0 -167
- package/claw/node_modules/bytebuffer/src/types/ints/int32.js +0 -125
- package/claw/node_modules/bytebuffer/src/types/ints/int64.js +0 -194
- package/claw/node_modules/bytebuffer/src/types/ints/int8.js +0 -137
- package/claw/node_modules/bytebuffer/src/types/strings/cstring.js +0 -110
- package/claw/node_modules/bytebuffer/src/types/strings/istring.js +0 -81
- package/claw/node_modules/bytebuffer/src/types/strings/utf8string.js +0 -214
- package/claw/node_modules/bytebuffer/src/types/strings/vstring.js +0 -78
- package/claw/node_modules/bytebuffer/src/types/varints/varint32.js +0 -164
- package/claw/node_modules/bytebuffer/src/types/varints/varint64.js +0 -208
- package/claw/node_modules/bytebuffer/src/wrap-node.js +0 -50
- package/claw/node_modules/bytebuffer/src/wrap.js +0 -43
- package/claw/node_modules/bytebuffer/tests/bench.js +0 -99
- package/claw/node_modules/bytebuffer/tests/suite.js +0 -1005
- package/claw/node_modules/call-bind/.eslintignore +0 -1
- package/claw/node_modules/call-bind/.eslintrc +0 -16
- package/claw/node_modules/call-bind/.github/FUNDING.yml +0 -12
- package/claw/node_modules/call-bind/.nycrc +0 -9
- package/claw/node_modules/call-bind/CHANGELOG.md +0 -106
- package/claw/node_modules/call-bind/LICENSE +0 -21
- package/claw/node_modules/call-bind/README.md +0 -64
- package/claw/node_modules/call-bind/callBound.js +0 -15
- package/claw/node_modules/call-bind/index.js +0 -24
- package/claw/node_modules/call-bind/package.json +0 -93
- package/claw/node_modules/call-bind/test/callBound.js +0 -54
- package/claw/node_modules/call-bind/test/index.js +0 -74
- package/claw/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
- package/claw/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
- package/claw/node_modules/call-bind-apply-helpers/.nycrc +0 -9
- package/claw/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
- package/claw/node_modules/call-bind-apply-helpers/LICENSE +0 -21
- package/claw/node_modules/call-bind-apply-helpers/README.md +0 -62
- package/claw/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
- package/claw/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/claw/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
- package/claw/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/claw/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
- package/claw/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/claw/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
- package/claw/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/claw/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
- package/claw/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/claw/node_modules/call-bind-apply-helpers/package.json +0 -85
- package/claw/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
- package/claw/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/claw/node_modules/call-bind-apply-helpers/test/index.js +0 -63
- package/claw/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
- package/claw/node_modules/call-bound/.eslintrc +0 -13
- package/claw/node_modules/call-bound/.github/FUNDING.yml +0 -12
- package/claw/node_modules/call-bound/.nycrc +0 -9
- package/claw/node_modules/call-bound/CHANGELOG.md +0 -42
- package/claw/node_modules/call-bound/LICENSE +0 -21
- package/claw/node_modules/call-bound/README.md +0 -53
- package/claw/node_modules/call-bound/index.d.ts +0 -94
- package/claw/node_modules/call-bound/index.js +0 -19
- package/claw/node_modules/call-bound/package.json +0 -99
- package/claw/node_modules/call-bound/test/index.js +0 -61
- package/claw/node_modules/call-bound/tsconfig.json +0 -10
- package/claw/node_modules/cipher-base/.eslintrc +0 -26
- package/claw/node_modules/cipher-base/.github/FUNDING.yml +0 -12
- package/claw/node_modules/cipher-base/CHANGELOG.md +0 -73
- package/claw/node_modules/cipher-base/LICENSE +0 -21
- package/claw/node_modules/cipher-base/README.md +0 -17
- package/claw/node_modules/cipher-base/index.js +0 -103
- package/claw/node_modules/cipher-base/package.json +0 -63
- package/claw/node_modules/cipher-base/test/index.js +0 -221
- package/claw/node_modules/core-util-is/LICENSE +0 -19
- package/claw/node_modules/core-util-is/README.md +0 -3
- package/claw/node_modules/core-util-is/lib/util.js +0 -107
- package/claw/node_modules/core-util-is/package.json +0 -38
- package/claw/node_modules/create-hash/.travis.yml +0 -17
- package/claw/node_modules/create-hash/LICENSE +0 -21
- package/claw/node_modules/create-hash/README.md +0 -19
- package/claw/node_modules/create-hash/browser.js +0 -30
- package/claw/node_modules/create-hash/index.js +0 -1
- package/claw/node_modules/create-hash/md5.js +0 -5
- package/claw/node_modules/create-hash/package.json +0 -39
- package/claw/node_modules/create-hash/test.js +0 -41
- package/claw/node_modules/create-hmac/LICENSE +0 -21
- package/claw/node_modules/create-hmac/README.md +0 -20
- package/claw/node_modules/create-hmac/browser.js +0 -62
- package/claw/node_modules/create-hmac/index.js +0 -1
- package/claw/node_modules/create-hmac/legacy.js +0 -46
- package/claw/node_modules/create-hmac/package.json +0 -45
- package/claw/node_modules/crypto-js/CONTRIBUTING.md +0 -28
- package/claw/node_modules/crypto-js/LICENSE +0 -24
- package/claw/node_modules/crypto-js/README.md +0 -241
- package/claw/node_modules/crypto-js/aes.js +0 -232
- package/claw/node_modules/crypto-js/bower.json +0 -35
- package/claw/node_modules/crypto-js/cipher-core.js +0 -880
- package/claw/node_modules/crypto-js/core.js +0 -760
- package/claw/node_modules/crypto-js/crypto-js.js +0 -5988
- package/claw/node_modules/crypto-js/docs/QuickStartGuide.wiki +0 -470
- package/claw/node_modules/crypto-js/enc-base64.js +0 -135
- package/claw/node_modules/crypto-js/enc-hex.js +0 -18
- package/claw/node_modules/crypto-js/enc-latin1.js +0 -18
- package/claw/node_modules/crypto-js/enc-utf16.js +0 -149
- package/claw/node_modules/crypto-js/enc-utf8.js +0 -18
- package/claw/node_modules/crypto-js/evpkdf.js +0 -132
- package/claw/node_modules/crypto-js/format-hex.js +0 -66
- package/claw/node_modules/crypto-js/format-openssl.js +0 -18
- package/claw/node_modules/crypto-js/hmac-md5.js +0 -18
- package/claw/node_modules/crypto-js/hmac-ripemd160.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha1.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha224.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha256.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha3.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha384.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha512.js +0 -18
- package/claw/node_modules/crypto-js/hmac.js +0 -143
- package/claw/node_modules/crypto-js/index.js +0 -18
- package/claw/node_modules/crypto-js/lib-typedarrays.js +0 -76
- package/claw/node_modules/crypto-js/md5.js +0 -268
- package/claw/node_modules/crypto-js/mode-cfb.js +0 -78
- package/claw/node_modules/crypto-js/mode-ctr-gladman.js +0 -116
- package/claw/node_modules/crypto-js/mode-ctr.js +0 -58
- package/claw/node_modules/crypto-js/mode-ecb.js +0 -40
- package/claw/node_modules/crypto-js/mode-ofb.js +0 -54
- package/claw/node_modules/crypto-js/package.json +0 -38
- package/claw/node_modules/crypto-js/pad-ansix923.js +0 -49
- package/claw/node_modules/crypto-js/pad-iso10126.js +0 -44
- package/claw/node_modules/crypto-js/pad-iso97971.js +0 -40
- package/claw/node_modules/crypto-js/pad-nopadding.js +0 -30
- package/claw/node_modules/crypto-js/pad-pkcs7.js +0 -18
- package/claw/node_modules/crypto-js/pad-zeropadding.js +0 -45
- package/claw/node_modules/crypto-js/pbkdf2.js +0 -145
- package/claw/node_modules/crypto-js/rabbit-legacy.js +0 -190
- package/claw/node_modules/crypto-js/rabbit.js +0 -192
- package/claw/node_modules/crypto-js/rc4.js +0 -139
- package/claw/node_modules/crypto-js/ripemd160.js +0 -267
- package/claw/node_modules/crypto-js/sha1.js +0 -150
- package/claw/node_modules/crypto-js/sha224.js +0 -80
- package/claw/node_modules/crypto-js/sha256.js +0 -199
- package/claw/node_modules/crypto-js/sha3.js +0 -323
- package/claw/node_modules/crypto-js/sha384.js +0 -83
- package/claw/node_modules/crypto-js/sha512.js +0 -323
- package/claw/node_modules/crypto-js/tripledes.js +0 -770
- package/claw/node_modules/crypto-js/x64-core.js +0 -304
- package/claw/node_modules/deep-equal/.editorconfig +0 -20
- package/claw/node_modules/deep-equal/.eslintrc +0 -28
- package/claw/node_modules/deep-equal/.nycrc +0 -17
- package/claw/node_modules/deep-equal/.travis.yml +0 -12
- package/claw/node_modules/deep-equal/CHANGELOG.md +0 -320
- package/claw/node_modules/deep-equal/LICENSE +0 -21
- package/claw/node_modules/deep-equal/assert.js +0 -3
- package/claw/node_modules/deep-equal/example/cmp.js +0 -11
- package/claw/node_modules/deep-equal/index.js +0 -112
- package/claw/node_modules/deep-equal/lib/is_arguments.js +0 -1
- package/claw/node_modules/deep-equal/lib/keys.js +0 -1
- package/claw/node_modules/deep-equal/package.json +0 -109
- package/claw/node_modules/deep-equal/readme.markdown +0 -73
- package/claw/node_modules/deep-equal/test/_tape.js +0 -42
- package/claw/node_modules/deep-equal/test/cmp.js +0 -1343
- package/claw/node_modules/define-data-property/.eslintrc +0 -24
- package/claw/node_modules/define-data-property/.github/FUNDING.yml +0 -12
- package/claw/node_modules/define-data-property/.nycrc +0 -13
- package/claw/node_modules/define-data-property/CHANGELOG.md +0 -70
- package/claw/node_modules/define-data-property/LICENSE +0 -21
- package/claw/node_modules/define-data-property/README.md +0 -67
- package/claw/node_modules/define-data-property/index.d.ts +0 -12
- package/claw/node_modules/define-data-property/index.js +0 -56
- package/claw/node_modules/define-data-property/package.json +0 -106
- package/claw/node_modules/define-data-property/test/index.js +0 -392
- package/claw/node_modules/define-data-property/tsconfig.json +0 -59
- package/claw/node_modules/define-properties/.editorconfig +0 -13
- package/claw/node_modules/define-properties/.eslintrc +0 -19
- package/claw/node_modules/define-properties/.github/FUNDING.yml +0 -12
- package/claw/node_modules/define-properties/.nycrc +0 -9
- package/claw/node_modules/define-properties/CHANGELOG.md +0 -91
- package/claw/node_modules/define-properties/LICENSE +0 -21
- package/claw/node_modules/define-properties/README.md +0 -84
- package/claw/node_modules/define-properties/index.js +0 -47
- package/claw/node_modules/define-properties/package.json +0 -88
- package/claw/node_modules/dunder-proto/.eslintrc +0 -5
- package/claw/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
- package/claw/node_modules/dunder-proto/.nycrc +0 -13
- package/claw/node_modules/dunder-proto/CHANGELOG.md +0 -24
- package/claw/node_modules/dunder-proto/LICENSE +0 -21
- package/claw/node_modules/dunder-proto/README.md +0 -54
- package/claw/node_modules/dunder-proto/get.d.ts +0 -5
- package/claw/node_modules/dunder-proto/get.js +0 -30
- package/claw/node_modules/dunder-proto/package.json +0 -76
- package/claw/node_modules/dunder-proto/set.d.ts +0 -5
- package/claw/node_modules/dunder-proto/set.js +0 -35
- package/claw/node_modules/dunder-proto/test/get.js +0 -34
- package/claw/node_modules/dunder-proto/test/index.js +0 -4
- package/claw/node_modules/dunder-proto/test/set.js +0 -50
- package/claw/node_modules/dunder-proto/tsconfig.json +0 -9
- package/claw/node_modules/ecurve/.min-wd +0 -7
- package/claw/node_modules/ecurve/.travis.yml +0 -14
- package/claw/node_modules/ecurve/CHANGELOG.md +0 -154
- package/claw/node_modules/ecurve/README.md +0 -11
- package/claw/node_modules/ecurve/lib/curve.js +0 -77
- package/claw/node_modules/ecurve/lib/curves.json +0 -65
- package/claw/node_modules/ecurve/lib/index.js +0 -10
- package/claw/node_modules/ecurve/lib/names.js +0 -21
- package/claw/node_modules/ecurve/lib/point.js +0 -244
- package/claw/node_modules/ecurve/package.json +0 -32
- package/claw/node_modules/es-define-property/.eslintrc +0 -13
- package/claw/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/claw/node_modules/es-define-property/.nycrc +0 -9
- package/claw/node_modules/es-define-property/CHANGELOG.md +0 -29
- package/claw/node_modules/es-define-property/LICENSE +0 -21
- package/claw/node_modules/es-define-property/README.md +0 -49
- package/claw/node_modules/es-define-property/index.d.ts +0 -3
- package/claw/node_modules/es-define-property/index.js +0 -14
- package/claw/node_modules/es-define-property/package.json +0 -81
- package/claw/node_modules/es-define-property/test/index.js +0 -56
- package/claw/node_modules/es-define-property/tsconfig.json +0 -10
- package/claw/node_modules/es-errors/.eslintrc +0 -5
- package/claw/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/claw/node_modules/es-errors/CHANGELOG.md +0 -40
- package/claw/node_modules/es-errors/LICENSE +0 -21
- package/claw/node_modules/es-errors/README.md +0 -55
- package/claw/node_modules/es-errors/eval.d.ts +0 -3
- package/claw/node_modules/es-errors/eval.js +0 -4
- package/claw/node_modules/es-errors/index.d.ts +0 -3
- package/claw/node_modules/es-errors/index.js +0 -4
- package/claw/node_modules/es-errors/package.json +0 -80
- package/claw/node_modules/es-errors/range.d.ts +0 -3
- package/claw/node_modules/es-errors/range.js +0 -4
- package/claw/node_modules/es-errors/ref.d.ts +0 -3
- package/claw/node_modules/es-errors/ref.js +0 -4
- package/claw/node_modules/es-errors/syntax.d.ts +0 -3
- package/claw/node_modules/es-errors/syntax.js +0 -4
- package/claw/node_modules/es-errors/test/index.js +0 -19
- package/claw/node_modules/es-errors/tsconfig.json +0 -49
- package/claw/node_modules/es-errors/type.d.ts +0 -3
- package/claw/node_modules/es-errors/type.js +0 -4
- package/claw/node_modules/es-errors/uri.d.ts +0 -3
- package/claw/node_modules/es-errors/uri.js +0 -4
- package/claw/node_modules/es-object-atoms/.eslintrc +0 -16
- package/claw/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/claw/node_modules/es-object-atoms/CHANGELOG.md +0 -37
- package/claw/node_modules/es-object-atoms/LICENSE +0 -21
- package/claw/node_modules/es-object-atoms/README.md +0 -63
- package/claw/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/claw/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/claw/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/claw/node_modules/es-object-atoms/ToObject.js +0 -10
- package/claw/node_modules/es-object-atoms/index.d.ts +0 -3
- package/claw/node_modules/es-object-atoms/index.js +0 -4
- package/claw/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/claw/node_modules/es-object-atoms/isObject.js +0 -6
- package/claw/node_modules/es-object-atoms/package.json +0 -80
- package/claw/node_modules/es-object-atoms/test/index.js +0 -38
- package/claw/node_modules/es-object-atoms/tsconfig.json +0 -6
- package/claw/node_modules/for-each/.editorconfig +0 -20
- package/claw/node_modules/for-each/.eslintrc +0 -30
- package/claw/node_modules/for-each/.github/FUNDING.yml +0 -12
- package/claw/node_modules/for-each/.github/SECURITY.md +0 -3
- package/claw/node_modules/for-each/.nycrc +0 -8
- package/claw/node_modules/for-each/CHANGELOG.md +0 -107
- package/claw/node_modules/for-each/LICENSE +0 -22
- package/claw/node_modules/for-each/README.md +0 -39
- package/claw/node_modules/for-each/index.d.ts +0 -35
- package/claw/node_modules/for-each/index.js +0 -69
- package/claw/node_modules/for-each/package.json +0 -76
- package/claw/node_modules/for-each/test/test.js +0 -224
- package/claw/node_modules/for-each/tsconfig.json +0 -8
- package/claw/node_modules/function-bind/.eslintrc +0 -21
- package/claw/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/claw/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/claw/node_modules/function-bind/.nycrc +0 -13
- package/claw/node_modules/function-bind/CHANGELOG.md +0 -136
- package/claw/node_modules/function-bind/LICENSE +0 -20
- package/claw/node_modules/function-bind/README.md +0 -46
- package/claw/node_modules/function-bind/implementation.js +0 -84
- package/claw/node_modules/function-bind/index.js +0 -5
- package/claw/node_modules/function-bind/package.json +0 -87
- package/claw/node_modules/function-bind/test/.eslintrc +0 -9
- package/claw/node_modules/function-bind/test/index.js +0 -252
- package/claw/node_modules/functions-have-names/.editorconfig +0 -20
- package/claw/node_modules/functions-have-names/.eslintrc +0 -19
- package/claw/node_modules/functions-have-names/.github/FUNDING.yml +0 -12
- package/claw/node_modules/functions-have-names/.nycrc +0 -9
- package/claw/node_modules/functions-have-names/CHANGELOG.md +0 -89
- package/claw/node_modules/functions-have-names/LICENSE +0 -21
- package/claw/node_modules/functions-have-names/README.md +0 -40
- package/claw/node_modules/functions-have-names/index.js +0 -31
- package/claw/node_modules/functions-have-names/package.json +0 -55
- package/claw/node_modules/functions-have-names/test/index.js +0 -65
- package/claw/node_modules/get-intrinsic/.eslintrc +0 -42
- package/claw/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/claw/node_modules/get-intrinsic/.nycrc +0 -9
- package/claw/node_modules/get-intrinsic/CHANGELOG.md +0 -186
- package/claw/node_modules/get-intrinsic/LICENSE +0 -21
- package/claw/node_modules/get-intrinsic/README.md +0 -71
- package/claw/node_modules/get-intrinsic/index.js +0 -378
- package/claw/node_modules/get-intrinsic/package.json +0 -97
- package/claw/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/claw/node_modules/get-proto/.eslintrc +0 -10
- package/claw/node_modules/get-proto/.github/FUNDING.yml +0 -12
- package/claw/node_modules/get-proto/.nycrc +0 -9
- package/claw/node_modules/get-proto/CHANGELOG.md +0 -21
- package/claw/node_modules/get-proto/LICENSE +0 -21
- package/claw/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
- package/claw/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/claw/node_modules/get-proto/README.md +0 -50
- package/claw/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
- package/claw/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/claw/node_modules/get-proto/index.d.ts +0 -5
- package/claw/node_modules/get-proto/index.js +0 -27
- package/claw/node_modules/get-proto/package.json +0 -81
- package/claw/node_modules/get-proto/test/index.js +0 -68
- package/claw/node_modules/get-proto/tsconfig.json +0 -9
- package/claw/node_modules/gopd/.eslintrc +0 -16
- package/claw/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/claw/node_modules/gopd/CHANGELOG.md +0 -45
- package/claw/node_modules/gopd/LICENSE +0 -21
- package/claw/node_modules/gopd/README.md +0 -40
- package/claw/node_modules/gopd/gOPD.d.ts +0 -1
- package/claw/node_modules/gopd/gOPD.js +0 -4
- package/claw/node_modules/gopd/index.d.ts +0 -5
- package/claw/node_modules/gopd/index.js +0 -15
- package/claw/node_modules/gopd/package.json +0 -77
- package/claw/node_modules/gopd/test/index.js +0 -36
- package/claw/node_modules/gopd/tsconfig.json +0 -9
- package/claw/node_modules/has-property-descriptors/.eslintrc +0 -13
- package/claw/node_modules/has-property-descriptors/.github/FUNDING.yml +0 -12
- package/claw/node_modules/has-property-descriptors/.nycrc +0 -9
- package/claw/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
- package/claw/node_modules/has-property-descriptors/LICENSE +0 -21
- package/claw/node_modules/has-property-descriptors/README.md +0 -43
- package/claw/node_modules/has-property-descriptors/index.js +0 -22
- package/claw/node_modules/has-property-descriptors/package.json +0 -77
- package/claw/node_modules/has-property-descriptors/test/index.js +0 -57
- package/claw/node_modules/has-symbols/.eslintrc +0 -11
- package/claw/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/claw/node_modules/has-symbols/.nycrc +0 -9
- package/claw/node_modules/has-symbols/CHANGELOG.md +0 -91
- package/claw/node_modules/has-symbols/LICENSE +0 -21
- package/claw/node_modules/has-symbols/README.md +0 -46
- package/claw/node_modules/has-symbols/index.d.ts +0 -3
- package/claw/node_modules/has-symbols/index.js +0 -14
- package/claw/node_modules/has-symbols/package.json +0 -111
- package/claw/node_modules/has-symbols/shams.d.ts +0 -3
- package/claw/node_modules/has-symbols/shams.js +0 -45
- package/claw/node_modules/has-symbols/test/index.js +0 -22
- package/claw/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/claw/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/claw/node_modules/has-symbols/test/tests.js +0 -58
- package/claw/node_modules/has-symbols/tsconfig.json +0 -10
- package/claw/node_modules/has-tostringtag/.eslintrc +0 -5
- package/claw/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
- package/claw/node_modules/has-tostringtag/.nycrc +0 -13
- package/claw/node_modules/has-tostringtag/CHANGELOG.md +0 -42
- package/claw/node_modules/has-tostringtag/LICENSE +0 -21
- package/claw/node_modules/has-tostringtag/README.md +0 -46
- package/claw/node_modules/has-tostringtag/index.d.ts +0 -3
- package/claw/node_modules/has-tostringtag/index.js +0 -8
- package/claw/node_modules/has-tostringtag/package.json +0 -108
- package/claw/node_modules/has-tostringtag/shams.d.ts +0 -3
- package/claw/node_modules/has-tostringtag/shams.js +0 -8
- package/claw/node_modules/has-tostringtag/test/index.js +0 -21
- package/claw/node_modules/has-tostringtag/test/shams/core-js.js +0 -31
- package/claw/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -30
- package/claw/node_modules/has-tostringtag/test/tests.js +0 -15
- package/claw/node_modules/has-tostringtag/tsconfig.json +0 -49
- package/claw/node_modules/hash-base/.github/FUNDING.yml +0 -12
- package/claw/node_modules/hash-base/CHANGELOG.md +0 -166
- package/claw/node_modules/hash-base/LICENSE +0 -21
- package/claw/node_modules/hash-base/README.md +0 -48
- package/claw/node_modules/hash-base/index.js +0 -109
- package/claw/node_modules/hash-base/package.json +0 -64
- package/claw/node_modules/hash-base/to-buffer.js +0 -20
- package/claw/node_modules/hasown/.eslintrc +0 -5
- package/claw/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/claw/node_modules/hasown/.nycrc +0 -13
- package/claw/node_modules/hasown/CHANGELOG.md +0 -40
- package/claw/node_modules/hasown/LICENSE +0 -21
- package/claw/node_modules/hasown/README.md +0 -40
- package/claw/node_modules/hasown/index.d.ts +0 -3
- package/claw/node_modules/hasown/index.js +0 -8
- package/claw/node_modules/hasown/package.json +0 -92
- package/claw/node_modules/hasown/tsconfig.json +0 -6
- package/claw/node_modules/inherits/LICENSE +0 -16
- package/claw/node_modules/inherits/README.md +0 -42
- package/claw/node_modules/inherits/inherits.js +0 -9
- package/claw/node_modules/inherits/inherits_browser.js +0 -27
- package/claw/node_modules/inherits/package.json +0 -29
- package/claw/node_modules/is-arguments/.editorconfig +0 -20
- package/claw/node_modules/is-arguments/.eslintrc +0 -9
- package/claw/node_modules/is-arguments/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-arguments/.nycrc +0 -9
- package/claw/node_modules/is-arguments/CHANGELOG.md +0 -201
- package/claw/node_modules/is-arguments/LICENSE +0 -20
- package/claw/node_modules/is-arguments/README.md +0 -47
- package/claw/node_modules/is-arguments/index.d.ts +0 -6
- package/claw/node_modules/is-arguments/index.js +0 -44
- package/claw/node_modules/is-arguments/package.json +0 -105
- package/claw/node_modules/is-arguments/test/index.js +0 -47
- package/claw/node_modules/is-arguments/tsconfig.json +0 -9
- package/claw/node_modules/is-callable/.editorconfig +0 -31
- package/claw/node_modules/is-callable/.eslintrc +0 -10
- package/claw/node_modules/is-callable/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-callable/.nycrc +0 -9
- package/claw/node_modules/is-callable/CHANGELOG.md +0 -158
- package/claw/node_modules/is-callable/LICENSE +0 -22
- package/claw/node_modules/is-callable/README.md +0 -83
- package/claw/node_modules/is-callable/index.js +0 -101
- package/claw/node_modules/is-callable/package.json +0 -106
- package/claw/node_modules/is-callable/test/index.js +0 -244
- package/claw/node_modules/is-date-object/.editorconfig +0 -20
- package/claw/node_modules/is-date-object/.eslintrc +0 -9
- package/claw/node_modules/is-date-object/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-date-object/.nycrc +0 -10
- package/claw/node_modules/is-date-object/CHANGELOG.md +0 -134
- package/claw/node_modules/is-date-object/LICENSE +0 -22
- package/claw/node_modules/is-date-object/README.md +0 -52
- package/claw/node_modules/is-date-object/index.d.ts +0 -3
- package/claw/node_modules/is-date-object/index.js +0 -27
- package/claw/node_modules/is-date-object/package.json +0 -99
- package/claw/node_modules/is-date-object/test/index.js +0 -38
- package/claw/node_modules/is-date-object/tsconfig.json +0 -6
- package/claw/node_modules/is-regex/.editorconfig +0 -23
- package/claw/node_modules/is-regex/.eslintrc +0 -10
- package/claw/node_modules/is-regex/.nycrc +0 -10
- package/claw/node_modules/is-regex/CHANGELOG.md +0 -233
- package/claw/node_modules/is-regex/LICENSE +0 -20
- package/claw/node_modules/is-regex/README.md +0 -52
- package/claw/node_modules/is-regex/index.d.ts +0 -3
- package/claw/node_modules/is-regex/index.js +0 -69
- package/claw/node_modules/is-regex/package.json +0 -104
- package/claw/node_modules/is-regex/test/index.js +0 -121
- package/claw/node_modules/is-regex/tsconfig.json +0 -9
- package/claw/node_modules/is-typed-array/.editorconfig +0 -20
- package/claw/node_modules/is-typed-array/.eslintrc +0 -13
- package/claw/node_modules/is-typed-array/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-typed-array/.nycrc +0 -9
- package/claw/node_modules/is-typed-array/CHANGELOG.md +0 -166
- package/claw/node_modules/is-typed-array/LICENSE +0 -22
- package/claw/node_modules/is-typed-array/README.md +0 -70
- package/claw/node_modules/is-typed-array/index.d.ts +0 -9
- package/claw/node_modules/is-typed-array/index.js +0 -8
- package/claw/node_modules/is-typed-array/package.json +0 -129
- package/claw/node_modules/is-typed-array/test/index.js +0 -111
- package/claw/node_modules/is-typed-array/tsconfig.json +0 -6
- package/claw/node_modules/isarray/.travis.yml +0 -4
- package/claw/node_modules/isarray/Makefile +0 -6
- package/claw/node_modules/isarray/README.md +0 -60
- package/claw/node_modules/isarray/component.json +0 -19
- package/claw/node_modules/isarray/index.js +0 -5
- package/claw/node_modules/isarray/package.json +0 -45
- package/claw/node_modules/isarray/test.js +0 -20
- package/claw/node_modules/isomorphic-ws/LICENSE +0 -21
- package/claw/node_modules/isomorphic-ws/README.md +0 -58
- package/claw/node_modules/isomorphic-ws/browser.js +0 -17
- package/claw/node_modules/isomorphic-ws/index.d.ts +0 -8
- package/claw/node_modules/isomorphic-ws/node.js +0 -3
- package/claw/node_modules/isomorphic-ws/package.json +0 -34
- package/claw/node_modules/long/.travis.yml +0 -5
- package/claw/node_modules/long/LICENSE +0 -202
- package/claw/node_modules/long/README.md +0 -513
- package/claw/node_modules/long/bower.json +0 -9
- package/claw/node_modules/long/dist/README.md +0 -16
- package/claw/node_modules/long/dist/long.js +0 -1209
- package/claw/node_modules/long/dist/long.min.js +0 -20
- package/claw/node_modules/long/dist/long.min.js.gz +0 -0
- package/claw/node_modules/long/dist/long.min.map +0 -8
- package/claw/node_modules/long/doco/INDEX.md +0 -6
- package/claw/node_modules/long/doco/Long.md +0 -473
- package/claw/node_modules/long/donate.png +0 -0
- package/claw/node_modules/long/externs/long.js +0 -416
- package/claw/node_modules/long/index.js +0 -1
- package/claw/node_modules/long/jsdoc.json +0 -13
- package/claw/node_modules/long/long.png +0 -0
- package/claw/node_modules/long/package.json +0 -33
- package/claw/node_modules/long/scripts/build.js +0 -28
- package/claw/node_modules/long/src/bower.json +0 -9
- package/claw/node_modules/long/src/long.js +0 -1172
- package/claw/node_modules/long/src/wrap.js +0 -38
- package/claw/node_modules/long/tests/goog.math.long.js +0 -807
- package/claw/node_modules/long/tests/suite.js +0 -195
- package/claw/node_modules/lzma/.travis.yml +0 -9
- package/claw/node_modules/lzma/LICENSE +0 -20
- package/claw/node_modules/lzma/THANKS +0 -7
- package/claw/node_modules/lzma/bin/lzma.js +0 -362
- package/claw/node_modules/lzma/index.js +0 -19
- package/claw/node_modules/lzma/package.json +0 -30
- package/claw/node_modules/lzma/readme.md +0 -149
- package/claw/node_modules/lzma/src/lzma-c-min.js +0 -1
- package/claw/node_modules/lzma/src/lzma-c.js +0 -2021
- package/claw/node_modules/lzma/src/lzma-d-min.js +0 -1
- package/claw/node_modules/lzma/src/lzma-d.js +0 -878
- package/claw/node_modules/lzma/src/lzma-min.js +0 -2
- package/claw/node_modules/lzma/src/lzma.js +0 -153
- package/claw/node_modules/lzma/src/lzma_worker-min.js +0 -2
- package/claw/node_modules/lzma/src/lzma_worker.js +0 -2668
- package/claw/node_modules/math-intrinsics/.eslintrc +0 -16
- package/claw/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
- package/claw/node_modules/math-intrinsics/CHANGELOG.md +0 -24
- package/claw/node_modules/math-intrinsics/LICENSE +0 -21
- package/claw/node_modules/math-intrinsics/README.md +0 -50
- package/claw/node_modules/math-intrinsics/abs.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/abs.js +0 -4
- package/claw/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
- package/claw/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
- package/claw/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/constants/maxValue.js +0 -5
- package/claw/node_modules/math-intrinsics/floor.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/floor.js +0 -4
- package/claw/node_modules/math-intrinsics/isFinite.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/isFinite.js +0 -12
- package/claw/node_modules/math-intrinsics/isInteger.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/isInteger.js +0 -16
- package/claw/node_modules/math-intrinsics/isNaN.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/isNaN.js +0 -6
- package/claw/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/isNegativeZero.js +0 -6
- package/claw/node_modules/math-intrinsics/max.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/max.js +0 -4
- package/claw/node_modules/math-intrinsics/min.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/min.js +0 -4
- package/claw/node_modules/math-intrinsics/mod.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/mod.js +0 -9
- package/claw/node_modules/math-intrinsics/package.json +0 -86
- package/claw/node_modules/math-intrinsics/pow.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/pow.js +0 -4
- package/claw/node_modules/math-intrinsics/round.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/round.js +0 -4
- package/claw/node_modules/math-intrinsics/sign.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/sign.js +0 -11
- package/claw/node_modules/math-intrinsics/test/index.js +0 -192
- package/claw/node_modules/math-intrinsics/tsconfig.json +0 -3
- package/claw/node_modules/md5.js/LICENSE +0 -21
- package/claw/node_modules/md5.js/README.md +0 -29
- package/claw/node_modules/md5.js/index.js +0 -146
- package/claw/node_modules/md5.js/package.json +0 -38
- package/claw/node_modules/object-is/.eslintrc +0 -5
- package/claw/node_modules/object-is/.nycrc +0 -9
- package/claw/node_modules/object-is/CHANGELOG.md +0 -175
- package/claw/node_modules/object-is/LICENSE +0 -20
- package/claw/node_modules/object-is/README.md +0 -60
- package/claw/node_modules/object-is/auto.js +0 -3
- package/claw/node_modules/object-is/implementation.js +0 -19
- package/claw/node_modules/object-is/index.js +0 -18
- package/claw/node_modules/object-is/package.json +0 -96
- package/claw/node_modules/object-is/polyfill.js +0 -7
- package/claw/node_modules/object-is/shim.js +0 -14
- package/claw/node_modules/object-is/test/implementation.js +0 -12
- package/claw/node_modules/object-is/test/index.js +0 -12
- package/claw/node_modules/object-is/test/shimmed.js +0 -28
- package/claw/node_modules/object-is/test/tests.js +0 -57
- package/claw/node_modules/object-keys/.editorconfig +0 -13
- package/claw/node_modules/object-keys/.eslintrc +0 -17
- package/claw/node_modules/object-keys/.travis.yml +0 -277
- package/claw/node_modules/object-keys/CHANGELOG.md +0 -232
- package/claw/node_modules/object-keys/LICENSE +0 -21
- package/claw/node_modules/object-keys/README.md +0 -76
- package/claw/node_modules/object-keys/implementation.js +0 -122
- package/claw/node_modules/object-keys/index.js +0 -32
- package/claw/node_modules/object-keys/isArguments.js +0 -17
- package/claw/node_modules/object-keys/package.json +0 -88
- package/claw/node_modules/object-keys/test/index.js +0 -5
- package/claw/node_modules/object.assign/.editorconfig +0 -20
- package/claw/node_modules/object.assign/.eslintrc +0 -28
- package/claw/node_modules/object.assign/.github/FUNDING.yml +0 -12
- package/claw/node_modules/object.assign/.nycrc +0 -9
- package/claw/node_modules/object.assign/CHANGELOG.md +0 -246
- package/claw/node_modules/object.assign/LICENSE +0 -21
- package/claw/node_modules/object.assign/README.md +0 -136
- package/claw/node_modules/object.assign/auto.js +0 -3
- package/claw/node_modules/object.assign/dist/browser.js +0 -1304
- package/claw/node_modules/object.assign/hasSymbols.js +0 -43
- package/claw/node_modules/object.assign/implementation.js +0 -46
- package/claw/node_modules/object.assign/index.js +0 -22
- package/claw/node_modules/object.assign/package.json +0 -96
- package/claw/node_modules/object.assign/polyfill.js +0 -55
- package/claw/node_modules/object.assign/shim.js +0 -14
- package/claw/node_modules/object.assign/test/implementation.js +0 -19
- package/claw/node_modules/object.assign/test/index.js +0 -17
- package/claw/node_modules/object.assign/test/native.js +0 -49
- package/claw/node_modules/object.assign/test/ses-compat.js +0 -12
- package/claw/node_modules/object.assign/test/shimmed.js +0 -52
- package/claw/node_modules/object.assign/test/tests.js +0 -232
- package/claw/node_modules/possible-typed-array-names/.eslintrc +0 -5
- package/claw/node_modules/possible-typed-array-names/.github/FUNDING.yml +0 -12
- package/claw/node_modules/possible-typed-array-names/CHANGELOG.md +0 -29
- package/claw/node_modules/possible-typed-array-names/LICENSE +0 -21
- package/claw/node_modules/possible-typed-array-names/README.md +0 -50
- package/claw/node_modules/possible-typed-array-names/index.d.ts +0 -16
- package/claw/node_modules/possible-typed-array-names/index.js +0 -17
- package/claw/node_modules/possible-typed-array-names/package.json +0 -84
- package/claw/node_modules/possible-typed-array-names/test/index.js +0 -19
- package/claw/node_modules/possible-typed-array-names/tsconfig.json +0 -9
- package/claw/node_modules/process-nextick-args/index.js +0 -45
- package/claw/node_modules/process-nextick-args/license.md +0 -19
- package/claw/node_modules/process-nextick-args/package.json +0 -25
- package/claw/node_modules/process-nextick-args/readme.md +0 -18
- package/claw/node_modules/readable-stream/.travis.yml +0 -34
- package/claw/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/claw/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/claw/node_modules/readable-stream/LICENSE +0 -47
- package/claw/node_modules/readable-stream/README.md +0 -58
- package/claw/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/claw/node_modules/readable-stream/duplex-browser.js +0 -1
- package/claw/node_modules/readable-stream/duplex.js +0 -1
- package/claw/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/claw/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/claw/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/claw/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/claw/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/claw/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/claw/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/claw/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/claw/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +0 -21
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/README.md +0 -584
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +0 -187
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/index.js +0 -62
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/package.json +0 -37
- package/claw/node_modules/readable-stream/package.json +0 -52
- package/claw/node_modules/readable-stream/passthrough.js +0 -1
- package/claw/node_modules/readable-stream/readable-browser.js +0 -7
- package/claw/node_modules/readable-stream/readable.js +0 -19
- package/claw/node_modules/readable-stream/transform.js +0 -1
- package/claw/node_modules/readable-stream/writable-browser.js +0 -1
- package/claw/node_modules/readable-stream/writable.js +0 -8
- package/claw/node_modules/regexp.prototype.flags/.editorconfig +0 -13
- package/claw/node_modules/regexp.prototype.flags/.eslintrc +0 -20
- package/claw/node_modules/regexp.prototype.flags/.nycrc +0 -9
- package/claw/node_modules/regexp.prototype.flags/CHANGELOG.md +0 -249
- package/claw/node_modules/regexp.prototype.flags/LICENSE +0 -22
- package/claw/node_modules/regexp.prototype.flags/README.md +0 -55
- package/claw/node_modules/regexp.prototype.flags/auto.js +0 -3
- package/claw/node_modules/regexp.prototype.flags/implementation.js +0 -39
- package/claw/node_modules/regexp.prototype.flags/index.js +0 -18
- package/claw/node_modules/regexp.prototype.flags/package.json +0 -105
- package/claw/node_modules/regexp.prototype.flags/polyfill.js +0 -39
- package/claw/node_modules/regexp.prototype.flags/shim.js +0 -26
- package/claw/node_modules/regexp.prototype.flags/test/builtin.js +0 -46
- package/claw/node_modules/regexp.prototype.flags/test/implementation.js +0 -20
- package/claw/node_modules/regexp.prototype.flags/test/index.js +0 -17
- package/claw/node_modules/regexp.prototype.flags/test/shimmed.js +0 -48
- package/claw/node_modules/regexp.prototype.flags/test/tests.js +0 -143
- package/claw/node_modules/ripemd160/.github/FUNDING.yml +0 -12
- package/claw/node_modules/ripemd160/CHANGELOG.md +0 -109
- package/claw/node_modules/ripemd160/LICENSE +0 -21
- package/claw/node_modules/ripemd160/README.md +0 -27
- package/claw/node_modules/ripemd160/index.js +0 -167
- package/claw/node_modules/ripemd160/package.json +0 -64
- package/claw/node_modules/safe-buffer/LICENSE +0 -21
- package/claw/node_modules/safe-buffer/README.md +0 -584
- package/claw/node_modules/safe-buffer/index.d.ts +0 -187
- package/claw/node_modules/safe-buffer/index.js +0 -65
- package/claw/node_modules/safe-buffer/package.json +0 -51
- package/claw/node_modules/secure-random/CHANGELOG.md +0 -51
- package/claw/node_modules/secure-random/Makefile +0 -8
- package/claw/node_modules/secure-random/README.md +0 -133
- package/claw/node_modules/secure-random/lib/secure-random.js +0 -83
- package/claw/node_modules/secure-random/package.json +0 -45
- package/claw/node_modules/set-function-length/.eslintrc +0 -27
- package/claw/node_modules/set-function-length/.github/FUNDING.yml +0 -12
- package/claw/node_modules/set-function-length/.nycrc +0 -13
- package/claw/node_modules/set-function-length/CHANGELOG.md +0 -70
- package/claw/node_modules/set-function-length/LICENSE +0 -21
- package/claw/node_modules/set-function-length/README.md +0 -56
- package/claw/node_modules/set-function-length/env.d.ts +0 -9
- package/claw/node_modules/set-function-length/env.js +0 -25
- package/claw/node_modules/set-function-length/index.d.ts +0 -7
- package/claw/node_modules/set-function-length/index.js +0 -42
- package/claw/node_modules/set-function-length/package.json +0 -102
- package/claw/node_modules/set-function-length/tsconfig.json +0 -9
- package/claw/node_modules/set-function-name/.eslintrc +0 -21
- package/claw/node_modules/set-function-name/.github/FUNDING.yml +0 -12
- package/claw/node_modules/set-function-name/CHANGELOG.md +0 -48
- package/claw/node_modules/set-function-name/LICENSE +0 -21
- package/claw/node_modules/set-function-name/README.md +0 -61
- package/claw/node_modules/set-function-name/index.d.ts +0 -5
- package/claw/node_modules/set-function-name/index.js +0 -23
- package/claw/node_modules/set-function-name/package.json +0 -99
- package/claw/node_modules/set-function-name/tsconfig.json +0 -59
- package/claw/node_modules/sha.js/.eslintrc +0 -76
- package/claw/node_modules/sha.js/CHANGELOG.md +0 -423
- package/claw/node_modules/sha.js/LICENSE +0 -49
- package/claw/node_modules/sha.js/README.md +0 -44
- package/claw/node_modules/sha.js/bin.js +0 -44
- package/claw/node_modules/sha.js/hash.js +0 -84
- package/claw/node_modules/sha.js/index.js +0 -19
- package/claw/node_modules/sha.js/package.json +0 -58
- package/claw/node_modules/sha.js/sha.js +0 -104
- package/claw/node_modules/sha.js/sha1.js +0 -109
- package/claw/node_modules/sha.js/sha224.js +0 -55
- package/claw/node_modules/sha.js/sha256.js +0 -189
- package/claw/node_modules/sha.js/sha384.js +0 -59
- package/claw/node_modules/sha.js/sha512.js +0 -382
- package/claw/node_modules/sha.js/test/hash.js +0 -80
- package/claw/node_modules/sha.js/test/test.js +0 -138
- package/claw/node_modules/sha.js/test/vectors.js +0 -72
- package/claw/node_modules/string_decoder/.travis.yml +0 -50
- package/claw/node_modules/string_decoder/LICENSE +0 -48
- package/claw/node_modules/string_decoder/README.md +0 -47
- package/claw/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +0 -21
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/README.md +0 -584
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +0 -187
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/index.js +0 -62
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/package.json +0 -37
- package/claw/node_modules/string_decoder/package.json +0 -31
- package/claw/node_modules/to-buffer/.github/FUNDING.yml +0 -12
- package/claw/node_modules/to-buffer/CHANGELOG.md +0 -81
- package/claw/node_modules/to-buffer/LICENSE +0 -21
- package/claw/node_modules/to-buffer/README.md +0 -44
- package/claw/node_modules/to-buffer/index.js +0 -109
- package/claw/node_modules/to-buffer/node_modules/isarray/LICENSE +0 -21
- package/claw/node_modules/to-buffer/node_modules/isarray/README.md +0 -38
- package/claw/node_modules/to-buffer/node_modules/isarray/index.js +0 -5
- package/claw/node_modules/to-buffer/node_modules/isarray/package.json +0 -48
- package/claw/node_modules/to-buffer/package.json +0 -62
- package/claw/node_modules/typed-array-buffer/.eslintrc +0 -13
- package/claw/node_modules/typed-array-buffer/.github/FUNDING.yml +0 -12
- package/claw/node_modules/typed-array-buffer/.nycrc +0 -13
- package/claw/node_modules/typed-array-buffer/CHANGELOG.md +0 -50
- package/claw/node_modules/typed-array-buffer/LICENSE +0 -21
- package/claw/node_modules/typed-array-buffer/README.md +0 -42
- package/claw/node_modules/typed-array-buffer/index.d.ts +0 -9
- package/claw/node_modules/typed-array-buffer/index.js +0 -19
- package/claw/node_modules/typed-array-buffer/package.json +0 -82
- package/claw/node_modules/typed-array-buffer/test/index.js +0 -23
- package/claw/node_modules/typed-array-buffer/tsconfig.json +0 -9
- package/claw/node_modules/util/LICENSE +0 -18
- package/claw/node_modules/util/README.md +0 -15
- package/claw/node_modules/util/node_modules/inherits/LICENSE +0 -16
- package/claw/node_modules/util/node_modules/inherits/README.md +0 -42
- package/claw/node_modules/util/node_modules/inherits/inherits.js +0 -7
- package/claw/node_modules/util/node_modules/inherits/inherits_browser.js +0 -23
- package/claw/node_modules/util/node_modules/inherits/package.json +0 -29
- package/claw/node_modules/util/package.json +0 -35
- package/claw/node_modules/util/support/isBuffer.js +0 -3
- package/claw/node_modules/util/support/isBufferBrowser.js +0 -6
- package/claw/node_modules/util/util.js +0 -586
- package/claw/node_modules/util-deprecate/History.md +0 -16
- package/claw/node_modules/util-deprecate/LICENSE +0 -24
- package/claw/node_modules/util-deprecate/README.md +0 -53
- package/claw/node_modules/util-deprecate/browser.js +0 -67
- package/claw/node_modules/util-deprecate/node.js +0 -6
- package/claw/node_modules/util-deprecate/package.json +0 -27
- package/claw/node_modules/which-typed-array/.editorconfig +0 -20
- package/claw/node_modules/which-typed-array/.eslintrc +0 -10
- package/claw/node_modules/which-typed-array/.github/FUNDING.yml +0 -12
- package/claw/node_modules/which-typed-array/.nycrc +0 -13
- package/claw/node_modules/which-typed-array/CHANGELOG.md +0 -269
- package/claw/node_modules/which-typed-array/LICENSE +0 -22
- package/claw/node_modules/which-typed-array/README.md +0 -70
- package/claw/node_modules/which-typed-array/index.d.ts +0 -66
- package/claw/node_modules/which-typed-array/index.js +0 -122
- package/claw/node_modules/which-typed-array/package.json +0 -130
- package/claw/node_modules/which-typed-array/test/index.js +0 -105
- package/claw/node_modules/which-typed-array/tsconfig.json +0 -9
- package/claw/node_modules/ws/LICENSE +0 -21
- package/claw/node_modules/ws/README.md +0 -449
- package/claw/node_modules/ws/browser.js +0 -8
- package/claw/node_modules/ws/index.js +0 -9
- package/claw/node_modules/ws/lib/buffer-util.js +0 -144
- package/claw/node_modules/ws/lib/constants.js +0 -10
- package/claw/node_modules/ws/lib/event-target.js +0 -170
- package/claw/node_modules/ws/lib/extension.js +0 -222
- package/claw/node_modules/ws/lib/permessage-deflate.js +0 -502
- package/claw/node_modules/ws/lib/receiver.js +0 -492
- package/claw/node_modules/ws/lib/sender.js +0 -358
- package/claw/node_modules/ws/lib/validation.js +0 -30
- package/claw/node_modules/ws/lib/websocket-server.js +0 -415
- package/claw/node_modules/ws/lib/websocket.js +0 -895
- package/claw/node_modules/ws/package.json +0 -45
- package/dist/analysis/chart_utils.d.ts +0 -27
- package/dist/analysis/chart_utils.d.ts.map +0 -1
- package/dist/analysis/chart_utils.js.map +0 -1
- package/dist/analysis/math_utils.d.ts +0 -22
- package/dist/analysis/math_utils.d.ts.map +0 -1
- package/dist/analysis/math_utils.js +0 -43
- package/dist/analysis/math_utils.js.map +0 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts +0 -5
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts.map +0 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js.map +0 -1
- package/dist/modules/logger.d.ts +0 -4
- package/dist/modules/logger.d.ts.map +0 -1
- package/dist/modules/logger.js +0 -5
- package/dist/modules/logger.js.map +0 -1
- package/dist/modules/utils/math_utils.d.ts +0 -3
- package/dist/modules/utils/math_utils.d.ts.map +0 -1
- package/dist/modules/utils/math_utils.js +0 -3
- package/dist/modules/utils/math_utils.js.map +0 -1
|
@@ -0,0 +1,1003 @@
|
|
|
1
|
+
# Market Adapter
|
|
2
|
+
|
|
3
|
+
The live signal layer for AMA-priced bots. It reads candles, computes the AMA center price, optionally writes dynamic weights, and creates recalc triggers when a bot accepts its first center, when the center moves far enough, or when whitelisted range-scaling slope drift requires a grid-bound reset. DEXBot2 starts and stops the adapter automatically when active AMA bots exist.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- [Big Picture](#big-picture)
|
|
8
|
+
- [Quick Start](#quick-start)
|
|
9
|
+
- [Grid Price](#grid-price)
|
|
10
|
+
- [Grid Range Scaling](#grid-range-scaling)
|
|
11
|
+
- [Asymmetric Weight Shift](#asymmetric-weight-shift)
|
|
12
|
+
- [Symmetric Weight Shift](#symmetric-weight-shift)
|
|
13
|
+
- [Trigger Threshold](#trigger-threshold)
|
|
14
|
+
- [Settings and Overrides](#settings-and-overrides)
|
|
15
|
+
- [Live Writes and Dry-Run](#live-writes-and-dry-run)
|
|
16
|
+
- [Useful Commands](#useful-commands)
|
|
17
|
+
- [Troubleshooting](#troubleshooting)
|
|
18
|
+
- [Technical Reference](#technical-reference)
|
|
19
|
+
|
|
20
|
+
## Which section do I need?
|
|
21
|
+
|
|
22
|
+
| If you want to… | Read this | Key command |
|
|
23
|
+
|-----------------|-----------|-------------|
|
|
24
|
+
| Enable AMA pricing for a bot | [Quick Start](#quick-start) | `dexbot white` |
|
|
25
|
+
| Change how often the grid rebuilds | [Trigger Threshold](#trigger-threshold) | edit `AMA_DELTA_THRESHOLD_PERCENT` |
|
|
26
|
+
| Tune buy/sell weight bias | [Asymmetric Weight Shift](#asymmetric-weight-shift) | whitelist `dynamicWeight: true` |
|
|
27
|
+
| Widen/tighten grid bounds by trend | [Grid Range Scaling](#grid-range-scaling) | whitelist `asymmetricBounds: true` |
|
|
28
|
+
| Override settings for one pair or bot | [Settings and Overrides](#settings-and-overrides) | edit `profiles/market_adapter_settings.json` |
|
|
29
|
+
| Run the adapter standalone or test dry-run | [Live Writes and Dry-Run](#live-writes-and-dry-run) | `tsx market_adapter/market_adapter.ts --dryRun` |
|
|
30
|
+
| Debug a bot not being processed | [Troubleshooting](#troubleshooting) | `dexbot white` |
|
|
31
|
+
| Understand the signal pipeline or module layout | [Technical Reference](#technical-reference) | — |
|
|
32
|
+
|
|
33
|
+
## Big Picture
|
|
34
|
+
|
|
35
|
+
The adapter feeds five separate grid controls from the same candle/AMA pipeline:
|
|
36
|
+
|
|
37
|
+
| Control | Signal | Effect |
|
|
38
|
+
|---------|--------|--------|
|
|
39
|
+
| Grid price | AMA price | Moves the grid center through bootstrap and delta reset triggers |
|
|
40
|
+
| Grid range scaling | AMA slope | Widens the trend side, tightens the opposite bound through whitelisted slope reset triggers |
|
|
41
|
+
| Market price offset | AMA slope | Offsets the live market/start price through whitelisted slope reset triggers |
|
|
42
|
+
| Asymmetric weight shift | AMA slope + Kalman filter | Biases buy/sell allocation in the trend direction |
|
|
43
|
+
| Symmetric weight shift | Volatility | Reduces both buy and sell weights during noisy periods |
|
|
44
|
+
|
|
45
|
+
In short: AMA price sets the center; AMA slope scales the range and derives the
|
|
46
|
+
market price offset; AMA plus Kalman drives directional weight bias; volatility
|
|
47
|
+
applies the symmetric penalty.
|
|
48
|
+
|
|
49
|
+
## Quick Start
|
|
50
|
+
|
|
51
|
+
### 1. Enable AMA
|
|
52
|
+
|
|
53
|
+
Set `gridPrice` to `ama`, `ama1`, `ama2`, `ama3`, or `ama4` in
|
|
54
|
+
`profiles/bots.json` or through `tsx dexbot.ts bot`. Use `ama` for the pair's
|
|
55
|
+
default preset.
|
|
56
|
+
|
|
57
|
+
`startPrice` selects the candle source:
|
|
58
|
+
|
|
59
|
+
| `startPrice` | Adapter source |
|
|
60
|
+
|--------------|----------------|
|
|
61
|
+
| `pool` | Liquidity pool price |
|
|
62
|
+
| `book` | Order book mid price (best bid/ask) |
|
|
63
|
+
| numeric value | Fixed anchor (skips candle fetching and SMA warmup); used directly as the static seed price |
|
|
64
|
+
|
|
65
|
+
When fetching candles (`pool` or `book`), the adapter requires a full historical window. The oldest `erPeriod` candles are used for an initial SMA (Simple Moving Average) warmup phase to seed the AMA and establish the first Efficiency Ratio (ER) calculation. See [AMA Warmup Window](#ama-warmup-window--why-candle-length-matters) for technical details.
|
|
66
|
+
|
|
67
|
+
### 2. Whitelist Live Writes
|
|
68
|
+
|
|
69
|
+
Generate the whitelist from AMA-enabled bots. Without a whitelist entry, the
|
|
70
|
+
adapter still computes state, but live grid snapshots and recalc triggers stay
|
|
71
|
+
in dry-run mode.
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
dexbot white
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
This writes `profiles/market_adapter_whitelist.json`, where each bot's AMA,
|
|
78
|
+
dynamic-weight, and range-scaling flags can be inspected or adjusted.
|
|
79
|
+
|
|
80
|
+
By default, newly generated entries whitelist AMA pricing and asymmetric bounds,
|
|
81
|
+
but keep dynamic weights disabled. To opt newly generated entries into dynamic
|
|
82
|
+
weights:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
dexbot white --dynamic-weight
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
To keep asymmetric bounds disabled:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
dexbot white --no-asymmetric-bounds
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Remove stale whitelist entries (bots no longer in `bots.json`):
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
dexbot white --prune
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### 3. Start DEXBot2
|
|
101
|
+
|
|
102
|
+
Start DEXBot2 normally. The bot runtime launches the adapter when needed.
|
|
103
|
+
|
|
104
|
+
## Grid Price
|
|
105
|
+
|
|
106
|
+
Grid price is the AMA price used as the grid center. `gridPrice: "ama"` uses
|
|
107
|
+
the pair's `defaultAma` from
|
|
108
|
+
`profiles/market_profiles.json`. `gridPrice: "ama1"` through
|
|
109
|
+
`gridPrice: "ama4"` force a specific preset. If no pair profile matches, the
|
|
110
|
+
bot's `ama` block is used as the fallback.
|
|
111
|
+
|
|
112
|
+
Bots can optionally add `ama.erSmoothPeriod` to smooth Kaufman's raw Efficiency
|
|
113
|
+
Ratio before it enters the AMA smoothing-constant formula. The default is `0`,
|
|
114
|
+
which disables this DEXBot2 extension and preserves raw Kaufman behavior. Useful
|
|
115
|
+
values start around `3` to `5` when a faster AMA is desired but raw ER spikes
|
|
116
|
+
cause abrupt grid-center changes.
|
|
117
|
+
|
|
118
|
+
### Empirical Divergence Risk Management
|
|
119
|
+
|
|
120
|
+
The adapter uses tiered clamping thresholds to manage inventory risk during extreme price divergence from the AMA trend center. These thresholds are derived from historical pool volatility and replace static 'fit cap' multipliers. The specific clamping limits and exit parameters are calculated per pair and preset using the AMA fitting toolchain:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
tsx analysis/ama_fitting/optimizer_high_resolution.ts --data <lp-file.json>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Source: example LP pool, 1h candles, representative historical window.
|
|
127
|
+
|
|
128
|
+
| AMA preset | 99.9% — 3.29σ | 99.99% — 3.89σ | 99.999% — 4.42σ |
|
|
129
|
+
|------------|-------------------:|--------------------:|-------------------------:|
|
|
130
|
+
| AMA1 | 1.461x | 1.571x | 1.626x |
|
|
131
|
+
| AMA2 | 1.467x | 1.564x | 1.619x |
|
|
132
|
+
| **AMA3** | 1.473x | 1.557x | 1.612x |
|
|
133
|
+
| AMA4 | 1.479x | 1.546x | 1.601x |
|
|
134
|
+
|
|
135
|
+
Divergence is calculated as `abs(Price - AMA) / AMA`. Limit exits use the
|
|
136
|
+
selected historical divergence tier to protect the bot from extreme price
|
|
137
|
+
excursions and prevent runaway inventory accumulation during high-divergence
|
|
138
|
+
volatility.
|
|
139
|
+
|
|
140
|
+
## Grid Range Scaling
|
|
141
|
+
|
|
142
|
+
AMA slope can scale the rebuilt grid in two linked ways under the same
|
|
143
|
+
whitelist gate:
|
|
144
|
+
|
|
145
|
+
- tilt the configured min/max range toward the trend direction
|
|
146
|
+
- offset the live market/start price used for initial placement
|
|
147
|
+
|
|
148
|
+
This is separate from dynamic buy/sell weighting. Both grid-range effects are
|
|
149
|
+
enabled only when `asymmetricBounds: true` is set in
|
|
150
|
+
`profiles/market_adapter_whitelist.json`.
|
|
151
|
+
|
|
152
|
+
Technical formula and tuning details are in
|
|
153
|
+
[Grid Range Scaling Model](#grid-range-scaling-model).
|
|
154
|
+
|
|
155
|
+
When range scaling is whitelisted, the adapter persists the accepted slope
|
|
156
|
+
baseline in `gridRangeScalingAmaSlope`. A reset trigger is emitted only when
|
|
157
|
+
the slope delta crosses the configured threshold; direction changes alone do
|
|
158
|
+
not reset the grid.
|
|
159
|
+
|
|
160
|
+
## Asymmetric Weight Shift
|
|
161
|
+
|
|
162
|
+
AMA slope plus Kalman filter confirmation can bias the bot's configured
|
|
163
|
+
`weightDistribution` in the trend direction. In an uptrend or downtrend, this
|
|
164
|
+
can shift allocation toward the side the strategy wants to emphasize while
|
|
165
|
+
still starting from the bot's static buy/sell weights.
|
|
166
|
+
See [research guide](../analysis/trend_detection/DYNAMIC_WEIGHT_RESEARCH.md).
|
|
167
|
+
|
|
168
|
+
## Symmetric Weight Shift
|
|
169
|
+
|
|
170
|
+
Volatility can reduce both buy and sell weights during noisy periods. This is a
|
|
171
|
+
shared penalty on both sides, separate from the directional AMA/Kalman bias.
|
|
172
|
+
See [research guide](../analysis/trend_detection/DYNAMIC_WEIGHT_RESEARCH.md).
|
|
173
|
+
|
|
174
|
+
Both weight shifts are controlled separately from AMA pricing. Set
|
|
175
|
+
`dynamicWeight: false` in `profiles/market_adapter_whitelist.json` to keep AMA
|
|
176
|
+
pricing active but leave buy/sell weights static. Most users should leave the
|
|
177
|
+
tuning values alone unless they are fitting or testing strategy parameters.
|
|
178
|
+
Technical formula and tuning details are in [Dynamic Weight Model](#dynamic-weight-model).
|
|
179
|
+
|
|
180
|
+
## Trigger Threshold
|
|
181
|
+
|
|
182
|
+
The adapter writes a recalc trigger when both conditions are true:
|
|
183
|
+
|
|
184
|
+
- the AMA center moved more than `AMA_DELTA_THRESHOLD_PERCENT`
|
|
185
|
+
- candle data is not stale
|
|
186
|
+
|
|
187
|
+
Configure the default in `profiles/general.settings.json` or from the
|
|
188
|
+
`tsx dexbot.ts bot` general settings menu:
|
|
189
|
+
|
|
190
|
+
```json
|
|
191
|
+
{
|
|
192
|
+
"MARKET_ADAPTER": {
|
|
193
|
+
"AMA_DELTA_THRESHOLD_PERCENT": 1
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Settings and Overrides
|
|
199
|
+
|
|
200
|
+
Market-adapter settings resolve in this order:
|
|
201
|
+
|
|
202
|
+
1. Built-in defaults in `modules/constants.ts`
|
|
203
|
+
2. Global overrides in `profiles/general.settings.json` or `tsx dexbot.ts bot`
|
|
204
|
+
3. Pair-specific overrides in `profiles/market_profiles.json`
|
|
205
|
+
4. Bot-specific overrides in `profiles/market_adapter_settings.json`
|
|
206
|
+
|
|
207
|
+
### Data and State Location
|
|
208
|
+
|
|
209
|
+
The adapter keeps candle data and runtime state in a layout that follows where
|
|
210
|
+
the profiles dir resolves (`~/.config/dexbot2/profiles` by default for all
|
|
211
|
+
installs; a source checkout keeps `<install-root>/profiles` while a populated
|
|
212
|
+
profiles dir exists there — `bots.json`, `keys.json`, settings, or launcher
|
|
213
|
+
config):
|
|
214
|
+
|
|
215
|
+
| Install | Data / state dir |
|
|
216
|
+
|---------|------------------|
|
|
217
|
+
| Source checkout with repo profiles | `<install-root>/market_adapter/data` and `<install-root>/market_adapter/state` |
|
|
218
|
+
| Global npm install / fresh source checkout | `<profiles>/market_adapter/data` and `<profiles>/market_adapter/state`, where `<profiles>` defaults to `~/.config/dexbot2/profiles` |
|
|
219
|
+
|
|
220
|
+
npm packages ship only compiled `dist/market_adapter/`, so state is relocated
|
|
221
|
+
under the profiles dir instead of being written into the package dir (which npm
|
|
222
|
+
updates wipe and which may be read-only). Both can be overridden:
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
export DEXBOT_MARKET_ADAPTER_DATA_DIR=/custom/candle-data
|
|
226
|
+
export DEXBOT_MARKET_ADAPTER_STATE_DIR=/custom/adapter-state
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
The `dexbot clear-market-adapter` / `dexbot clear-all` commands and the
|
|
230
|
+
`scripts/clear-*.sh` helpers resolve the same dirs (see
|
|
231
|
+
[scripts/README.md](../scripts/README.md)).
|
|
232
|
+
|
|
233
|
+
### Global Overrides
|
|
234
|
+
|
|
235
|
+
Override any `MARKET_ADAPTER` constant by adding a matching key under `MARKET_ADAPTER` in `profiles/general.settings.json`:
|
|
236
|
+
|
|
237
|
+
```json
|
|
238
|
+
{
|
|
239
|
+
"MARKET_ADAPTER": {
|
|
240
|
+
"AMA_DELTA_THRESHOLD_PERCENT": 2.0,
|
|
241
|
+
"DYNAMIC_WEIGHT_CLIP_PERCENTILE": 5
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Pair-Specific Overrides
|
|
247
|
+
|
|
248
|
+
Pair-specific AMA profiles live in `profiles/market_profiles.json`:
|
|
249
|
+
|
|
250
|
+
```json
|
|
251
|
+
{
|
|
252
|
+
"version": 1,
|
|
253
|
+
"profiles": [{
|
|
254
|
+
"key": "EXAMPLE-BOT",
|
|
255
|
+
"assetA": "IOB.XRP",
|
|
256
|
+
"assetB": "BTS",
|
|
257
|
+
"intervalSeconds": 3600,
|
|
258
|
+
"defaultAma": "AMA1",
|
|
259
|
+
"amas": {
|
|
260
|
+
"AMA1": { "erPeriod": 200, "fastPeriod": 3, "slowPeriod": 80 },
|
|
261
|
+
"AMA2": { "erPeriod": 500, "fastPeriod": 5, "slowPeriod": 120 }
|
|
262
|
+
}
|
|
263
|
+
}]
|
|
264
|
+
}
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
`profiles/market_adapter_settings.json` layers:
|
|
268
|
+
|
|
269
|
+
```json
|
|
270
|
+
{
|
|
271
|
+
"globals": {
|
|
272
|
+
"deltaThresholdPercent": 2.0,
|
|
273
|
+
"regimeSensitivity": 1.0
|
|
274
|
+
},
|
|
275
|
+
"pairs": [{
|
|
276
|
+
"assetASymbol": "IOB.XRP",
|
|
277
|
+
"assetBSymbol": "BTS",
|
|
278
|
+
"marketAdapterSettings": {
|
|
279
|
+
"deltaThresholdPercent": 3.0,
|
|
280
|
+
"amaSlope": { "maxSlopePct": 1.2 }
|
|
281
|
+
}
|
|
282
|
+
}]
|
|
283
|
+
}
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
- `globals` — applies to every market and bot
|
|
287
|
+
- `pairs[].marketAdapterSettings` — overrides one market pair
|
|
288
|
+
|
|
289
|
+
### Per-Bot Overrides
|
|
290
|
+
|
|
291
|
+
`botOverrides` is a general per-bot override within each pair entry. It applies at the highest priority and can hold any supported field:
|
|
292
|
+
|
|
293
|
+
```json
|
|
294
|
+
{
|
|
295
|
+
"pairs": [{
|
|
296
|
+
"assetASymbol": "IOB.XRP",
|
|
297
|
+
"assetBSymbol": "BTS",
|
|
298
|
+
"botOverrides": {
|
|
299
|
+
"EXAMPLE-BOT": {
|
|
300
|
+
"deltaThresholdPercent": 4.0,
|
|
301
|
+
"defaultAmaKey": "AMA1"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}]
|
|
305
|
+
}
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
## Live Writes and Dry-Run
|
|
309
|
+
|
|
310
|
+
The whitelist controls what the adapter may write. Non-whitelisted bots are
|
|
311
|
+
still processed, but live grid files and recalc triggers are suppressed.
|
|
312
|
+
|
|
313
|
+
| Invocation | Behavior |
|
|
314
|
+
|---|---|
|
|
315
|
+
| `tsx market_adapter/market_adapter.ts` | Whitelisted bots write live files; others dry-run |
|
|
316
|
+
| `tsx market_adapter/market_adapter.ts --dryRun` | All bots dry-run |
|
|
317
|
+
| `tsx market_adapter/market_adapter.ts --whitelist-all` | All AMA bots write live files |
|
|
318
|
+
|
|
319
|
+
Dry-run log lines include `[DRY RUN]` or `[suppressed, dry-run]`.
|
|
320
|
+
|
|
321
|
+
## Useful Commands
|
|
322
|
+
|
|
323
|
+
| Task | Command |
|
|
324
|
+
|------|---------|
|
|
325
|
+
| Generate whitelist | `dexbot white` |
|
|
326
|
+
| Opt new whitelist entries into dynamic weights | `dexbot white --dynamic-weight` |
|
|
327
|
+
| Generate AMA-only entries without range scaling | `dexbot white --no-asymmetric-bounds` |
|
|
328
|
+
| Prune stale whitelist entries (bots removed from bots.json) | `dexbot white --prune` |
|
|
329
|
+
| Probe public CEX availability | `tsx market_adapter/inputs/fetch_cex_synthetic_data.ts --exchange auto --check-only` |
|
|
330
|
+
| Seed synthetic cross candles | `tsx market_adapter/inputs/fetch_cex_synthetic_data.ts --exchange auto --bot-key <bot-key>` |
|
|
331
|
+
| Run one adapter cycle | `tsx market_adapter/market_adapter.ts --once` |
|
|
332
|
+
| Run one cycle with threshold override | `tsx market_adapter/market_adapter.ts --once --deltaPercent 1.5` |
|
|
333
|
+
| Run continuously | `tsx market_adapter/market_adapter.ts` |
|
|
334
|
+
| Print one-cycle JSON signals | `tsx market_adapter/ama_signal_runner.ts` |
|
|
335
|
+
| Print one bot's compact signal output | `tsx market_adapter/ama_signal_runner.ts --bot <botKey> --compact` |
|
|
336
|
+
|
|
337
|
+
`--deltaPercent` changes the threshold only for that run.
|
|
338
|
+
|
|
339
|
+
The public CEX synthetic importer uses only the exchanges that passed the live
|
|
340
|
+
depth test for the requested cross. It ranks them by the historical depth their
|
|
341
|
+
public candle APIs return for the probe window, filters out sources that do
|
|
342
|
+
not meet the market-adapter seed requirement, and then seeds the file with a
|
|
343
|
+
synthetic cross built from two public `USDT` legs on the best usable exchange.
|
|
344
|
+
Some exchanges expose alternate market names for the same underlying asset;
|
|
345
|
+
the importer normalizes those aliases automatically.
|
|
346
|
+
|
|
347
|
+
The seed depth is calculated from the effective AMA configuration when a bot
|
|
348
|
+
identity is provided, so the generated file has enough candles for that
|
|
349
|
+
runtime configuration. The adapter only reads the exact
|
|
350
|
+
`market_adapter_<botKey>_<interval>.json` file, so the generated seed must
|
|
351
|
+
match the bot's eventual `botKey`.
|
|
352
|
+
|
|
353
|
+
## Troubleshooting
|
|
354
|
+
|
|
355
|
+
### Bot is not processed
|
|
356
|
+
|
|
357
|
+
- Confirm `gridPrice` is `ama`, `ama1`, `ama2`, `ama3`, or `ama4`.
|
|
358
|
+
- Regenerate the whitelist with `dexbot white`.
|
|
359
|
+
- Confirm the expected `botKey` exists in `profiles/market_adapter_whitelist.json`.
|
|
360
|
+
- If `startPrice` is numeric, the adapter will not fetch pool/book candles for that bot. Use `startPrice` only for a fixed anchor in that case; `gridPrice` remains a separate grid setting.
|
|
361
|
+
|
|
362
|
+
### Trigger is not created
|
|
363
|
+
|
|
364
|
+
- Check `lastDeltaPercent` vs `thresholdPercent`.
|
|
365
|
+
- Check `staleData` and `staleAgeHours`.
|
|
366
|
+
- **Confirm the bot is whitelisted.** Non-whitelisted bots only log and do not write triggers.
|
|
367
|
+
- Confirm the bot's whitelist entry has `"ama": true`.
|
|
368
|
+
- Run `tsx market_adapter/market_adapter.ts --once --deltaPercent <lower-value>` for a one-cycle threshold test.
|
|
369
|
+
|
|
370
|
+
### Trigger fires too often
|
|
371
|
+
|
|
372
|
+
- Increase `MARKET_ADAPTER.AMA_DELTA_THRESHOLD_PERCENT`.
|
|
373
|
+
- Inspect `lastDeltaPercent` to see the normal movement range for the pair.
|
|
374
|
+
|
|
375
|
+
### Adapter will not start
|
|
376
|
+
|
|
377
|
+
- Check for an old lock file at `market_adapter/state/market_adapter.lock`.
|
|
378
|
+
- If the adapter is not running and the lock is from a crashed process, remove
|
|
379
|
+
the stale lock file manually.
|
|
380
|
+
- If you are using the direct bot launcher, make sure at least one active bot
|
|
381
|
+
has `gridPrice` set to `ama`, `ama1`, `ama2`, `ama3`, or `ama4`.
|
|
382
|
+
- If you are using PM2, confirm that `dexbot-adapter` exists in the PM2 app
|
|
383
|
+
list.
|
|
384
|
+
|
|
385
|
+
## Related Tools
|
|
386
|
+
|
|
387
|
+
Export candles and charts:
|
|
388
|
+
|
|
389
|
+
```bash
|
|
390
|
+
tsx market_adapter/inputs/fetch_lp_data.ts --pool <poolId> --precA <precA> --precB <precB> --interval 1h --lookback 8760h
|
|
391
|
+
tsx market_adapter/inputs/fetch_lp_data.ts --pool <poolId> --precA <precA> --precB <precB> --interval 1h --start <start-date> --end <end-date>
|
|
392
|
+
npm run lp:chart -- --data market_adapter/data/lp/<pair>/lp_pool_<id>_<interval>.json
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
Research and calibration:
|
|
396
|
+
|
|
397
|
+
```bash
|
|
398
|
+
tsx analysis/analyze_dynamic_weight.ts --file market_adapter/data/lp/<pair>/lp_pool_<id>_<interval>.json
|
|
399
|
+
tsx analysis/analyze_volatility.ts --file market_adapter/data/lp/<pair>/lp_pool_<id>_<interval>.json
|
|
400
|
+
tsx analysis/ama_fitting/calibrate_convergence_er.ts --data market_adapter/data/lp/<pair>/lp_pool_<id>_<interval>.json
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
More tools:
|
|
404
|
+
|
|
405
|
+
- [Analysis](../analysis/README.md)
|
|
406
|
+
- [Scripts](../scripts/README.md)
|
|
407
|
+
|
|
408
|
+
## Technical Reference
|
|
409
|
+
|
|
410
|
+
This section keeps the full market adapter details in one place. Normal
|
|
411
|
+
operation should follow the Quick Start above.
|
|
412
|
+
|
|
413
|
+
### Purpose and Boundaries
|
|
414
|
+
|
|
415
|
+
The market adapter bridges historical analysis and live bot operation. It keeps
|
|
416
|
+
fresh market candles per bot, computes the AMA-based market center, evaluates
|
|
417
|
+
trend and volatility signals, writes dynamic weight snapshots, and emits recalc
|
|
418
|
+
triggers when the grid should be rebuilt.
|
|
419
|
+
|
|
420
|
+
For the similar bot-scoped debt workflow and collateral advisory path, see
|
|
421
|
+
[MPA and Credit Usage](../docs/MPA_CREDIT_USAGE.md).
|
|
422
|
+
|
|
423
|
+
The adapter runs independently from `dexbot.ts`. It does not place orders,
|
|
424
|
+
manage bot lifecycle, or edit bot configuration. Order execution and grid
|
|
425
|
+
rebuilds stay owned by the bot runtime.
|
|
426
|
+
|
|
427
|
+
Standalone daemon mode is still available for direct inspection or manual
|
|
428
|
+
operation:
|
|
429
|
+
|
|
430
|
+
```bash
|
|
431
|
+
tsx market_adapter/market_adapter.ts
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
The adapter acts only on closed 1h candles. It can poll more often, but live
|
|
435
|
+
updates wait for the next completed candle.
|
|
436
|
+
|
|
437
|
+
### Signal Pipeline
|
|
438
|
+
|
|
439
|
+
```text
|
|
440
|
+
price_candles -> market_adapter -> AMA -> grid center
|
|
441
|
+
|
|
442
|
+
AMA slope -> grid range scaling
|
|
443
|
+
AMA slope -> directional trend channel
|
|
444
|
+
Kalman signal -> trend confirmation channel
|
|
445
|
+
ATR -> symmetric volatility penalty
|
|
446
|
+
trend + ATR -> dynamic buy/sell weights
|
|
447
|
+
|
|
448
|
+
trend regime -> advisory collateral-ratio hint
|
|
449
|
+
first AMA center -> recalculate.<botKey>.trigger for bootstrap
|
|
450
|
+
AMA delta -> recalculate.<botKey>.trigger
|
|
451
|
+
AMA slope delta -> recalculate.<botKey>.trigger for grid range scaling bots
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
Per cycle, per processed bot, the adapter can produce:
|
|
455
|
+
|
|
456
|
+
| Output | Meaning |
|
|
457
|
+
|--------|---------|
|
|
458
|
+
| `gridCenterPrice` | AMA-derived grid center, clamped to bounds |
|
|
459
|
+
| `weights` | Dynamic `{ buy, sell }` grid weights |
|
|
460
|
+
| `trend` | `UP`, `DOWN`, or `NEUTRAL` |
|
|
461
|
+
| `atr` / `weightVariance` | Volatility diagnostics |
|
|
462
|
+
| `dynamicWeights` | Runtime payload with effective weights and range-scaling diagnostics |
|
|
463
|
+
| `collateralRecommendation` | Advisory collateral-ratio hint |
|
|
464
|
+
| `recalculate.<botKey>.trigger` | Runtime signal for grid rebuild |
|
|
465
|
+
|
|
466
|
+
### Runtime Flow
|
|
467
|
+
|
|
468
|
+
1. Load active bots from `profiles/bots.json`.
|
|
469
|
+
2. Select bots with `gridPrice` set to `ama`, `ama1`, `ama2`, `ama3`, or `ama4`.
|
|
470
|
+
3. Resolve AMA settings from `profiles/market_profiles.json`.
|
|
471
|
+
4. Read `startPrice` to choose the candle source: `pool`, `book`, or fixed.
|
|
472
|
+
5. Sync candle data from Kibana or native BitShares data, using the selected source.
|
|
473
|
+
6. Repair missing candle gaps: auto-fill gaps ≤24 candles directly (no Kibana), query Kibana only for gaps beyond that threshold. Kibana returning empty is treated as verified no-trade. Writes are suppressed while gaps remain unresolved.
|
|
474
|
+
7. Ignore still-forming 1h candles.
|
|
475
|
+
8. Compute AMA center, trend, ATR, weights, and collateral hint.
|
|
476
|
+
9. Persist the first accepted center, compare center delta, and compare whitelisted range-scaling slope delta.
|
|
477
|
+
10. Suppress live writes if the bot is not whitelisted or candle data is stale.
|
|
478
|
+
11. Write `dynamicgrid.json` and a recalc trigger for bootstrap, AMA-center threshold, or grid-range-scaling AMA-slope threshold events.
|
|
479
|
+
12. Persist state snapshots under `market_adapter/state/`.
|
|
480
|
+
|
|
481
|
+
### Files
|
|
482
|
+
|
|
483
|
+
<details><summary>Config and state files (click to expand)</summary>
|
|
484
|
+
|
|
485
|
+
| File | Purpose |
|
|
486
|
+
|------|---------|
|
|
487
|
+
| `profiles/bots.json` | Active bots, symbols, pool IDs, and `gridPrice` settings |
|
|
488
|
+
| `profiles/market_profiles.json` | Pair AMA profiles and defaults |
|
|
489
|
+
| `profiles/market_adapter_whitelist.json` | Per-bot live-write permissions |
|
|
490
|
+
| `profiles/market_adapter_settings.json` | Advanced adapter and dynamic-weight tuning |
|
|
491
|
+
| `profiles/general.settings.json` | Global market adapter threshold settings |
|
|
492
|
+
| `market_adapter/state/market_adapter_state.json` | Full runtime state and diagnostics |
|
|
493
|
+
| `market_adapter/state/market_adapter_centers.json` | Lightweight center-price snapshot |
|
|
494
|
+
| `profiles/logs/market_adapter.log` | Standalone adapter runtime log |
|
|
495
|
+
|
|
496
|
+
</details>
|
|
497
|
+
|
|
498
|
+
### What the Adapter Writes
|
|
499
|
+
|
|
500
|
+
During normal operation, the adapter may write:
|
|
501
|
+
|
|
502
|
+
| File | Purpose |
|
|
503
|
+
|------|---------|
|
|
504
|
+
| `profiles/orders/<botKey>.dynamicgrid.json` | Persisted AMA center snapshot, AMA slope diagnostics, and optional dynamic weights used by the bot runtime |
|
|
505
|
+
| `profiles/recalculate.<botKey>.trigger` | Signal for `dexbot.ts` to rebuild the grid |
|
|
506
|
+
| `market_adapter/state/market_adapter_state.json` | Full runtime state and diagnostics |
|
|
507
|
+
| `market_adapter/state/market_adapter_centers.json` | Lightweight center-price snapshot |
|
|
508
|
+
| `market_adapter/data/` | Candle caches and exported LP data |
|
|
509
|
+
| `profiles/logs/market_adapter.log` | Standalone adapter runtime log |
|
|
510
|
+
|
|
511
|
+
`dexbot.ts` consumes the recalc trigger and handles the grid rebuild. The market
|
|
512
|
+
adapter does not place orders, start bots, stop bots, or edit
|
|
513
|
+
`profiles/bots.json`.
|
|
514
|
+
|
|
515
|
+
### Dynamic Grid Snapshot
|
|
516
|
+
|
|
517
|
+
`profiles/orders/<botKey>.dynamicgrid.json` is the live snapshot that the bot
|
|
518
|
+
runtime reloads on selected rebalance and maintenance paths. It is written with
|
|
519
|
+
the current AMA-derived center and, when enabled, the live dynamic-weight
|
|
520
|
+
payload.
|
|
521
|
+
|
|
522
|
+
Typical fields:
|
|
523
|
+
|
|
524
|
+
```json
|
|
525
|
+
{
|
|
526
|
+
"gridCenterPrice": 1294.6,
|
|
527
|
+
"centerPrice": 1294.6,
|
|
528
|
+
"amaCenterPrice": 1294.6,
|
|
529
|
+
"amaSlope": {
|
|
530
|
+
"trend": "UP",
|
|
531
|
+
"slopePct": 0.04,
|
|
532
|
+
"slopeOffset": 0.16
|
|
533
|
+
},
|
|
534
|
+
"gridPriceOffsetPct": 0.8,
|
|
535
|
+
"amaSlopeDeltaPercent": 0.015,
|
|
536
|
+
"amaSlopeThresholdPercent": 0.015,
|
|
537
|
+
"updatedAt": "2026-03-01T00:00:00.000Z",
|
|
538
|
+
"source": "market_adapter/market_adapter.ts",
|
|
539
|
+
"dynamicWeights": {
|
|
540
|
+
"effectiveWeights": { "sell": 0.45, "buy": 0.55 },
|
|
541
|
+
"baseWeights": { "sell": 0.5, "buy": 0.5 },
|
|
542
|
+
"isReady": true
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
- `gridCenterPrice` is the persisted grid baseline used for future delta checks.
|
|
548
|
+
- `centerPrice` remains as a compatibility alias for older readers.
|
|
549
|
+
- `amaCenterPrice` is the raw AMA output before downstream handling.
|
|
550
|
+
- `amaSlope` is the latest AMA slope snapshot used for diagnostics and snapshot writes.
|
|
551
|
+
- `gridPriceOffsetPct` is the signed market/start-price offset derived from AMA slope and capped at half of `targetSpreadPercent`; it is not applied to `gridCenterPrice`.
|
|
552
|
+
- `gridRangeScalingAmaSlope` in adapter state is the last grid-reset slope baseline used for slope-triggered range-scaling resets.
|
|
553
|
+
- `amaSlopeDeltaPercent` records the change from the last grid-reset slope baseline.
|
|
554
|
+
- `amaSlopeThresholdPercent` is the configured slope-reset threshold.
|
|
555
|
+
- `amaSlope.trend` records the current direction; direction changes do not trigger resets unless the slope delta threshold is crossed.
|
|
556
|
+
- During a full grid reset, the bot refreshes `gridCenterPrice` from the latest
|
|
557
|
+
`amaCenterPrice` before rebuilding the grid.
|
|
558
|
+
- `dynamicWeights` is present only when live dynamic weights were computed and
|
|
559
|
+
the bot is allowed to consume them.
|
|
560
|
+
- The runtime applies `dynamicWeights` only when the bot is whitelisted for
|
|
561
|
+
`dynamicWeight` and the snapshot reports `isReady: true`.
|
|
562
|
+
- The bot reads this snapshot before fill processing and other selected
|
|
563
|
+
structural maintenance so new orders use the latest accepted center and
|
|
564
|
+
weights.
|
|
565
|
+
|
|
566
|
+
### Module Map
|
|
567
|
+
|
|
568
|
+
<details><summary>Directory layout (click to expand)</summary>
|
|
569
|
+
|
|
570
|
+
```text
|
|
571
|
+
market_adapter/
|
|
572
|
+
|-- market_adapter.ts main adapter daemon
|
|
573
|
+
|-- ama_signal_runner.ts one-cycle JSON signal CLI
|
|
574
|
+
|-- candle_utils.ts candle transforms, gap detection, pruning
|
|
575
|
+
|-- interval_utils.ts shared interval label helpers
|
|
576
|
+
|-- merge_lp_data.ts candle export merge utility
|
|
577
|
+
|-- lp_chart_core.ts chart HTML renderer
|
|
578
|
+
|-- lp_chart_strategy_loader.ts AMA strategy/profile resolver for charts
|
|
579
|
+
|-- lp_chart_runner.ts LP chart orchestration
|
|
580
|
+
|-- log_format.ts adapter startup and signal log formatting
|
|
581
|
+
|-- test_helpers.ts test utilities
|
|
582
|
+
|-- core/
|
|
583
|
+
| |-- asymmetric_bounds.ts AMA-slope range scaling helpers
|
|
584
|
+
| |-- market_adapter_service.ts full signal pipeline service
|
|
585
|
+
| |-- config_normalizers.ts shared config normalization
|
|
586
|
+
| |-- kibana_client.ts low-level Kibana/ES query client
|
|
587
|
+
| |-- kibana_candles.ts LP pool candle fetch engine
|
|
588
|
+
| |-- kibana_market_candles.ts book candle fetch and transform
|
|
589
|
+
| |-- signals/
|
|
590
|
+
| | |-- hurst_analyzer.ts Hurst Exponent analysis
|
|
591
|
+
| | |-- kalman_trend_analyzer.ts Kalman trend state tracking
|
|
592
|
+
| | |-- kalman_velocity_smoothing.ts Adaptive Kalman velocity smoothing
|
|
593
|
+
| | `-- permutation_entropy_analyzer.ts Permutation Entropy analysis
|
|
594
|
+
| `-- strategies/
|
|
595
|
+
| |-- ama.ts Kaufman's Adaptive Moving Average (KAMA)
|
|
596
|
+
| |-- ama_slope_model.ts AMA slope and trend weight logic
|
|
597
|
+
| |-- collateral_manager.ts advisory collateral-ratio logic
|
|
598
|
+
| |-- dynamic_weight_series.ts canonical per-bar AMA/Kalman offset pipeline
|
|
599
|
+
| |-- regime_gate.ts regime multiplier gating
|
|
600
|
+
| |-- regime_interp.ts regime table bilinear interpolation
|
|
601
|
+
| |-- volatility_shift.ts symmetric ATR volatility penalty
|
|
602
|
+
| `-- atr/calculator.ts ATR calculation
|
|
603
|
+
|-- inputs/
|
|
604
|
+
| |-- kibana_source.ts Elasticsearch LP data source
|
|
605
|
+
| |-- fetch_lp_data.ts historical LP candle exporter
|
|
606
|
+
| `-- fetch_cex_synthetic_data.ts public CEX synthetic-candle seed importer
|
|
607
|
+
|-- utils/
|
|
608
|
+
| |-- chain.ts blockchain query helpers
|
|
609
|
+
| |-- adapter_client.ts inter-process credential daemon client
|
|
610
|
+
| |-- native_history.ts native BitShares market history fetch
|
|
611
|
+
| |-- file_lock.ts single-instance file lock
|
|
612
|
+
| |-- data_discovery.ts data directory auto-discovery
|
|
613
|
+
| |-- atomic_write.ts atomic file write utility
|
|
614
|
+
| |-- dynamic_grid_snapshot.ts dynamic grid snapshot helpers
|
|
615
|
+
| `-- paths.ts path resolution helpers
|
|
616
|
+
|-- data/ runtime candle caches and exports
|
|
617
|
+
`-- state/ runtime state, centers, and lock file
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
</details>
|
|
621
|
+
|
|
622
|
+
### Whitelist Semantics
|
|
623
|
+
|
|
624
|
+
`profiles/market_adapter_whitelist.json` controls live writes:
|
|
625
|
+
|
|
626
|
+
```json
|
|
627
|
+
{
|
|
628
|
+
"whitelist": {
|
|
629
|
+
"<botKey>": {
|
|
630
|
+
"ama": true,
|
|
631
|
+
"dynamicWeight": false,
|
|
632
|
+
"asymmetricBounds": true
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
- `ama: true` allows live `dynamicgrid.json` and recalc trigger writes.
|
|
639
|
+
- `dynamicWeight: true` allows dynamic weights to be applied by the bot runtime,
|
|
640
|
+
but only when the snapshot is also marked ready.
|
|
641
|
+
- `asymmetricBounds: true` allows AMA-slope grid range scaling during grid rebuilds.
|
|
642
|
+
Runtime code reports this as `gridRangeScalingWhitelisted`; the whitelist key
|
|
643
|
+
remains `asymmetricBounds` for compatibility.
|
|
644
|
+
- Omitted whitelist flags are treated as `false`.
|
|
645
|
+
- Missing whitelist file means all live AMA writes are suppressed.
|
|
646
|
+
- Missing bot entry means that bot runs in dry-run mode.
|
|
647
|
+
|
|
648
|
+
### Grid Range Scaling Model
|
|
649
|
+
|
|
650
|
+
Grid range scaling is the technical path for:
|
|
651
|
+
|
|
652
|
+
```text
|
|
653
|
+
AMA slope -> min/max bound tilt
|
|
654
|
+
AMA slope -> live market/start-price offset, capped at half spread
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
During a grid rebuild, the bot loads the latest dynamic grid snapshot and uses
|
|
658
|
+
the AMA slope diagnostics to tilt the configured `minPrice` and `maxPrice`
|
|
659
|
+
around the AMA center. An uptrend widens the upper bound and tightens the lower
|
|
660
|
+
bound; a downtrend widens the lower bound and tightens the upper bound.
|
|
661
|
+
|
|
662
|
+
The same `asymmetricBounds` whitelist also enables `gridPriceOffsetPct`: a
|
|
663
|
+
slope-ratio offset applied only to the live `startPrice` used for initial
|
|
664
|
+
placement. It is capped at half of `targetSpreadPercent` (`2` allows `-1%` to
|
|
665
|
+
`+1%`) and does not change `gridCenterPrice`, the AMA center, or reset
|
|
666
|
+
threshold baselines.
|
|
667
|
+
|
|
668
|
+
This uses `dynamicWeights.trend`, `dynamicWeights.slopeOffset`, and
|
|
669
|
+
`dynamicWeights.maxSlopeOffset`, but it is separate from the dynamic buy/sell
|
|
670
|
+
weight shift. The whitelist flag is `asymmetricBounds`.
|
|
671
|
+
|
|
672
|
+
```
|
|
673
|
+
slope = average AMA slope percent per bar over the lookback window
|
|
674
|
+
slopeOffset = slope normalized to the configured dynamic-weight slope cap
|
|
675
|
+
asymmetry = min(|slopeOffset| / maxSlopeOffset, 1) × maxAsymmetryFactor
|
|
676
|
+
|
|
677
|
+
Downtrend: minPrice = center / (M × (1 + asymmetry))
|
|
678
|
+
maxPrice = center × (M × (1 - asymmetry))
|
|
679
|
+
|
|
680
|
+
Uptrend: maxPrice = center × (M × (1 + asymmetry))
|
|
681
|
+
minPrice = center / (M × (1 - asymmetry))
|
|
682
|
+
|
|
683
|
+
Neutral: symmetric bounds (asymmetry = 0)
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
`ASYMMETRIC_BOUNDS_MAX_ASYMMETRY_FACTOR` defaults to `0.35`; `0` disables the
|
|
687
|
+
tilt. `ASYMMETRIC_BOUNDS_MIN_SCALE_SLOTS` defaults to `10` and sets the minimum
|
|
688
|
+
number of price levels the *tightened* side of a range-scaled grid must keep
|
|
689
|
+
between the grid center and its bound (measured in `incrementPercent` steps);
|
|
690
|
+
`0` disables the guard. Together they keep the widened side aggressively
|
|
691
|
+
extended while guaranteeing the narrowed side never collapses into a near-center
|
|
692
|
+
sliver with few or no active orders.
|
|
693
|
+
|
|
694
|
+
Both are configurable per bot or per market via
|
|
695
|
+
`profiles/market_adapter_settings.json` (see the layering in
|
|
696
|
+
[Per-Bot Overrides](#per-bot-overrides)):
|
|
697
|
+
|
|
698
|
+
```json
|
|
699
|
+
{
|
|
700
|
+
"globals": {
|
|
701
|
+
"asymmetricBounds": {
|
|
702
|
+
"maxAsymmetryFactor": 0.35,
|
|
703
|
+
"minScaleSlots": 10
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
"pairs": [{
|
|
707
|
+
"assetASymbol": "IOB.XRP",
|
|
708
|
+
"assetBSymbol": "BTS",
|
|
709
|
+
"marketAdapterSettings": {
|
|
710
|
+
"asymmetricBounds": { "minScaleSlots": 3 }
|
|
711
|
+
}
|
|
712
|
+
}]
|
|
713
|
+
}
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
`asymmetricBounds` is merged per-field across the `globals` → `pairs[].marketAdapterSettings` →
|
|
717
|
+
`pairs[].botOverrides.<bot>` layers, so overriding one field (e.g. a market-level
|
|
718
|
+
`minScaleSlots`) does not wipe another (e.g. a bot-level `maxAsymmetryFactor`).
|
|
719
|
+
|
|
720
|
+
### Trigger Files
|
|
721
|
+
|
|
722
|
+
When the threshold is exceeded, the adapter writes a trigger file under
|
|
723
|
+
`profiles/` at the repo root:
|
|
724
|
+
|
|
725
|
+
- `profiles/recalculate.<botKey>.trigger`
|
|
726
|
+
|
|
727
|
+
The file contains a trigger payload like:
|
|
728
|
+
|
|
729
|
+
```json
|
|
730
|
+
{
|
|
731
|
+
"createdAt": "2026-03-01T00:00:00.000Z",
|
|
732
|
+
"source": "market_adapter/market_adapter.ts",
|
|
733
|
+
"botName": "<botName>",
|
|
734
|
+
"botKey": "<botKey>",
|
|
735
|
+
"thresholdPercent": 0.8,
|
|
736
|
+
"deltaPercent": 1.1,
|
|
737
|
+
"previousCenterPrice": 1280.5,
|
|
738
|
+
"newCenterPrice": 1348.32,
|
|
739
|
+
"referencePrice": 1294.6,
|
|
740
|
+
"amaCenterPrice": 1294.6,
|
|
741
|
+
"poolId": "<poolId>"
|
|
742
|
+
}
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
`dexbot.ts` watches for this file and rebuilds the affected grid from current
|
|
746
|
+
runtime state. The trigger is separate from `dynamicgrid.json`: the trigger
|
|
747
|
+
requests a rebuild, while the snapshot carries the center and live weight state
|
|
748
|
+
that the runtime can reload.
|
|
749
|
+
|
|
750
|
+
### Dynamic Weight Model
|
|
751
|
+
|
|
752
|
+
Dynamic weights start from the bot's configured `weightDistribution`. These
|
|
753
|
+
configured values are the static baseline.
|
|
754
|
+
|
|
755
|
+
The production dynamic-weight output combines:
|
|
756
|
+
|
|
757
|
+
| Branch | Role |
|
|
758
|
+
|--------|------|
|
|
759
|
+
| AMA slope | Measures filtered market direction and velocity |
|
|
760
|
+
| Kalman signal | Confirms directional movement |
|
|
761
|
+
| ATR volatility | Applies a symmetric risk penalty to both sides |
|
|
762
|
+
| Regime gates | Suppress weak or noisy signals |
|
|
763
|
+
|
|
764
|
+
On each closed-candle cycle, the adapter applies two adjustments:
|
|
765
|
+
|
|
766
|
+
| Adjustment | Signal | Formula effect |
|
|
767
|
+
|------------|--------|----------------|
|
|
768
|
+
| `trendOffset` | AMA slope + Kalman confirmation | Subtracts from sell, adds to buy |
|
|
769
|
+
| `volatilityPenalty` | Volatility | Adds the same normally negative value to both sides |
|
|
770
|
+
|
|
771
|
+
```text
|
|
772
|
+
effectiveSell = staticSell - trendOffset + volatilityPenalty
|
|
773
|
+
effectiveBuy = staticBuy + trendOffset + volatilityPenalty
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
A positive `trendOffset` shifts weight toward buy and away from sell. A
|
|
777
|
+
negative `trendOffset` shifts weight toward sell and away from buy. The final
|
|
778
|
+
values are clamped and rounded before being written to the dynamic grid
|
|
779
|
+
snapshot.
|
|
780
|
+
|
|
781
|
+
Main override knobs live in `profiles/market_adapter_settings.json`:
|
|
782
|
+
|
|
783
|
+
<details><summary>Full settings table (click to expand)</summary>
|
|
784
|
+
|
|
785
|
+
| Setting | Meaning |
|
|
786
|
+
|---------|---------|
|
|
787
|
+
| `alpha` | AMA vs Kalman blend |
|
|
788
|
+
| `dw` | Kalman displacement weighting |
|
|
789
|
+
| `gain` | Output amplitude |
|
|
790
|
+
| `amaSlopePercentMode` | Slope override units: `perBar` for average percent per bar, or `window`/unset for legacy cumulative percent over the lookback |
|
|
791
|
+
| `amaSlope.lookbackBars` | AMA slope lookback; slope is averaged per bar over this window |
|
|
792
|
+
| `amaSlope.neutralZonePct` | Dead band around flat average AMA slope |
|
|
793
|
+
| `amaSlope.maxSlopePct` | Average AMA slope saturation |
|
|
794
|
+
| `amaSlopeDeltaThresholdPercent` | Average AMA slope delta threshold for slope-based resets |
|
|
795
|
+
| `minOutputThreshold` | Minimum trend output before directional shift applies |
|
|
796
|
+
| `maxSlopeOffset` | Cap for asymmetric trend offset |
|
|
797
|
+
| `maxVolatilityOffset` | Cap for symmetric ATR penalty |
|
|
798
|
+
| `clipPercentile` | Outlier filter for AMA/Kalman velocity (clips top N% of values) |
|
|
799
|
+
| `absoluteThreshold` | Dead band before regime filtering |
|
|
800
|
+
| `atrPeriod` | ATR lookback |
|
|
801
|
+
| `volatilityExponent` | ATR penalty exponent |
|
|
802
|
+
| `volatilityScaleX` | ATR penalty scale |
|
|
803
|
+
| `volatilityThreshold` | Minimum volatility penalty before applying shift |
|
|
804
|
+
| `kalmanSmoothPct` | Raw vs smoothed Kalman blend |
|
|
805
|
+
| `dispScaleMinPct` | Kalman displacement minimum scale floor |
|
|
806
|
+
| `kalmanDispScaleMult` | Kalman displacement scale multiplier |
|
|
807
|
+
| `kalmanDispThresholdMult` | Kalman displacement threshold multiplier |
|
|
808
|
+
| `kalmanSlope.maxSlopePct` | Kalman slope saturation |
|
|
809
|
+
| `kalmanSmoothSpanPct` | Adaptive EMA span ratio |
|
|
810
|
+
| `signalConfirmBars` | Signal latch confirmation bars |
|
|
811
|
+
| `hurstZoneBand` | Hurst neutral-zone width for regime classification |
|
|
812
|
+
| `peNodes` | Permutation Entropy thresholds for regime classification |
|
|
813
|
+
| `regimeTable` | Custom 3×3 regime multiplier table |
|
|
814
|
+
| `kibanaRequestTimeoutMs` | Kibana request timeout in milliseconds |
|
|
815
|
+
| `staleTailThreshold` | Stale-tail pruning threshold in candles |
|
|
816
|
+
| `maxNativeGapFillCandles` | Max missing-candle gaps auto-filled without a Kibana query |
|
|
817
|
+
|
|
818
|
+
</details>
|
|
819
|
+
|
|
820
|
+
When migrating older settings, either divide AMA slope percent overrides by
|
|
821
|
+
`amaSlope.lookbackBars`, or add `"amaSlopePercentMode": "window"` and let the
|
|
822
|
+
adapter convert them at load time. New settings should use
|
|
823
|
+
`"amaSlopePercentMode": "perBar"` so small per-bar values are not converted
|
|
824
|
+
again by pair or bot overrides.
|
|
825
|
+
|
|
826
|
+
Most operators should tune only the price and slope trigger thresholds plus the AMA profile unless
|
|
827
|
+
they are deliberately fitting a market.
|
|
828
|
+
|
|
829
|
+
See also [research guide](../analysis/trend_detection/DYNAMIC_WEIGHT_RESEARCH.md).
|
|
830
|
+
|
|
831
|
+
### Candle and Staleness Handling
|
|
832
|
+
|
|
833
|
+
The adapter keeps candle caches current using Kibana bootstrap plus native
|
|
834
|
+
incremental updates. Missing candle gaps are repaired in two steps: (1)
|
|
835
|
+
**auto-fill** gaps ≤24 candles (trusted threshold) by carrying the preceding
|
|
836
|
+
close forward with zero volume — Kibana is redundant since native fetch already
|
|
837
|
+
confirmed no trades; (2) **Kibana query** for gaps >24 candles — real candles
|
|
838
|
+
are merged in, or an empty response is treated as verified no-trade (all gaps
|
|
839
|
+
in the queried window are synthesized). Gaps remaining after both steps
|
|
840
|
+
suppress writes via `unresolved_candle_gaps` until repaired on a future cycle.
|
|
841
|
+
The adapter prunes old candles to the required AMA window and acts only on
|
|
842
|
+
closed 1h candles.
|
|
843
|
+
|
|
844
|
+
#### AMA Warmup Window — Why Candle Length Matters
|
|
845
|
+
|
|
846
|
+
The AMA is a recursive (infinite impulse response) filter. On cold start, the adapter uses an initial warmup phase: it calculates an **SMA (Simple Moving Average)** over the first `erPeriod` candles to establish a stable seed price, while simultaneously building the price history needed to calculate the first valid Efficiency Ratio (ER).
|
|
847
|
+
|
|
848
|
+
Starting the recursive AMA formula from this SMA, rather than a single raw closing price, provides a more stable anchor. However, a residual initialization bias still exists and decays asymptotically — each bar, the AMA "forgets" a fraction equal to its smoothing constant:
|
|
849
|
+
|
|
850
|
+
```
|
|
851
|
+
bias_remaining(K) ≈ bias_initial × ∏ (1 − SC_i) for i = 1..K
|
|
852
|
+
```
|
|
853
|
+
|
|
854
|
+
Kaufman's smoothing constant is the ER-scaled value, squared:
|
|
855
|
+
|
|
856
|
+
```
|
|
857
|
+
SC_i = [ER_effective_i × (fastSC − slowSC) + slowSC]²
|
|
858
|
+
|
|
859
|
+
where fastSC = 2 / (fastPeriod + 1)
|
|
860
|
+
slowSC = 2 / (slowPeriod + 1)
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
By default, `ER_effective_i` is Kaufman's raw `ER_i`. If `ama.erSmoothPeriod`
|
|
864
|
+
or `MARKET_ADAPTER.AMA_ER_SMOOTH_FAST_PERIOD` is set to `1` or higher, DEXBot2
|
|
865
|
+
first applies EMA smoothing to the ER stream:
|
|
866
|
+
|
|
867
|
+
```
|
|
868
|
+
ER_effective_i = ER_effective_(i-1) + erSmoothAlpha × (ER_i − ER_effective_(i-1))
|
|
869
|
+
|
|
870
|
+
where erSmoothAlpha = 2 / (erSmoothPeriod + 1)
|
|
871
|
+
```
|
|
872
|
+
|
|
873
|
+
This ER smoothing is not part of canonical Kaufman AMA/KAMA. It is an optional
|
|
874
|
+
DEXBot2 stabilizer for fast AMAs: it can reduce false or jerky re-centering
|
|
875
|
+
caused by one-window ER spikes, at the cost of slower recognition when the
|
|
876
|
+
market genuinely changes regime. `erSmoothPeriod = 0` disables it; `1` is
|
|
877
|
+
effectively no extra smoothing; `3` to `5` are typical light/moderate values.
|
|
878
|
+
|
|
879
|
+
Because `ER_i` varies bar-by-bar, a **typical-market ER** (`ER_avg`) is used to
|
|
880
|
+
estimate an average decay rate:
|
|
881
|
+
|
|
882
|
+
```
|
|
883
|
+
SC_avg = [ER_avg × (fastSC − slowSC) + slowSC]²
|
|
884
|
+
```
|
|
885
|
+
|
|
886
|
+
Bars needed to reduce bias below a target fraction ε:
|
|
887
|
+
|
|
888
|
+
```
|
|
889
|
+
convergenceBars = ln(ε) / ln(1 − SC_avg)
|
|
890
|
+
```
|
|
891
|
+
|
|
892
|
+
The adapter keeps the **full warmup window** in candle history so the AMA seed
|
|
893
|
+
and convergence bias are retained for downstream calculations:
|
|
894
|
+
|
|
895
|
+
```
|
|
896
|
+
amaWarmupBars = erPeriod + convergenceBars + erSmoothConvergenceBars + lookbackBars
|
|
897
|
+
```
|
|
898
|
+
|
|
899
|
+
| Component | Role |
|
|
900
|
+
|-----------|------|
|
|
901
|
+
| `erPeriod` | Bars for the first Efficiency Ratio value to become available |
|
|
902
|
+
| `convergenceBars` | Bars to decay 99 % of the cold-start initialisation bias |
|
|
903
|
+
| `erSmoothConvergenceBars` | Extra ER EMA convergence bars when `erSmoothPeriod >= 1`; `0` when ER smoothing is disabled |
|
|
904
|
+
| `lookbackBars` | Extra lookback for slope/trend analysis (AMA slope, ATR) |
|
|
905
|
+
|
|
906
|
+
For **AMA slope readiness and percentile clipping**, the earlier gate is:
|
|
907
|
+
|
|
908
|
+
```
|
|
909
|
+
amaSlopeReadyBars = erPeriod + lookbackBars
|
|
910
|
+
```
|
|
911
|
+
|
|
912
|
+
That threshold is enough once the ER window exists and the lookback comparison
|
|
913
|
+
bar is available. The longer `amaWarmupBars` window is still retained so the
|
|
914
|
+
underlying AMA series has its full convergence history.
|
|
915
|
+
|
|
916
|
+
The two **calibration constants** live in `modules/constants.ts` under
|
|
917
|
+
`MARKET_ADAPTER`:
|
|
918
|
+
|
|
919
|
+
| Constant | Value | Meaning |
|
|
920
|
+
|----------|-------|---------|
|
|
921
|
+
| `AMA_CONVERGENCE_ER_AVG` | `0.151` | Typical-market Efficiency Ratio. Lower = more conservative (assumes more noise, slower convergence, more candles needed). Calibrated against the fetched 3-year pool 133 1h dataset (`2023-05-07` -> `2026-05-06`); corrects for Jensen's inequality — `E[f(ER)] ≠ f(E[ER])` when `f` is the squaring function. |
|
|
922
|
+
| `AMA_CONVERGENCE_EPSILON` | `0.01` | Target remaining bias fraction. `0.01` means 99 % of the initial bias has decayed by the end of the convergence window. |
|
|
923
|
+
| `STALE_TAIL_THRESHOLD_CANDLES` | `24` | Trusted no-trade gap threshold. Gaps ≤24 candles are auto-filled without Kibana; gaps beyond query Kibana. Also used as stale-tail pruning threshold. |
|
|
924
|
+
|
|
925
|
+
To recalibrate `AMA_CONVERGENCE_ER_AVG` against new market data, use the
|
|
926
|
+
research script:
|
|
927
|
+
```bash
|
|
928
|
+
tsx analysis/ama_fitting/calibrate_convergence_er.ts [--data <lp-file.json>] [--amas AMA3,AMA4]
|
|
929
|
+
```
|
|
930
|
+
See `analysis/ama_fitting/calibrate_convergence_er.ts` for details on the
|
|
931
|
+
implied-ER correction (Jensen's inequality).
|
|
932
|
+
|
|
933
|
+
For a calibrated `AMA_CONVERGENCE_ER_AVG` of `0.151` and
|
|
934
|
+
`AMA_CONVERGENCE_EPSILON = 0.01` in 1-hour candles, the full AMA warm-up for
|
|
935
|
+
the built-in presets is:
|
|
936
|
+
|
|
937
|
+
| Preset | Candles | Days |
|
|
938
|
+
|--------|---------|------|
|
|
939
|
+
| `AMA1` | `1,602` | `66.8` |
|
|
940
|
+
| `AMA2` | `1,677` | `69.9` |
|
|
941
|
+
| `AMA3` | `1,758` | `73.3` |
|
|
942
|
+
| `AMA4` | `1,839` | `76.6` |
|
|
943
|
+
|
|
944
|
+
These totals include the ER buffer, the convergence window, and the default
|
|
945
|
+
9-bar lookback used by the dynamic-weight logic. If the candle timeframe is
|
|
946
|
+
not 1 hour, scale the total by the candle duration.
|
|
947
|
+
|
|
948
|
+
**Why `slowPeriod` dominates:** `slowSC ≈ 2 / slowPeriod`, so `SC_avg` scales
|
|
949
|
+
as `~ (2 / slowPeriod)² = 4 / slowPeriod²`. Since `convergenceBars` is
|
|
950
|
+
proportional to `1 / SC_avg`, the required candle count scales as
|
|
951
|
+
**O(slowPeriod²)**, not O(slowPeriod). For the AMA3 default (`slowPeriod = 82.7`)
|
|
952
|
+
this is roughly 1130 convergence bars; doubling `slowPeriod` would quadruple
|
|
953
|
+
that requirement.
|
|
954
|
+
|
|
955
|
+
If the adapter has fewer candles than the warmup window, the AMA output is too
|
|
956
|
+
biased for grid centering and the cycle skips with reason
|
|
957
|
+
`ama_warmup_insufficient`.
|
|
958
|
+
|
|
959
|
+
Stale data suppresses trigger writes. Check `staleData` and `staleAgeHours` in
|
|
960
|
+
`market_adapter/state/market_adapter_state.json` when a trigger should have
|
|
961
|
+
fired but did not.
|
|
962
|
+
|
|
963
|
+
### State Files
|
|
964
|
+
|
|
965
|
+
| File | Contents |
|
|
966
|
+
|------|----------|
|
|
967
|
+
| `market_adapter/state/market_adapter_state.json` | Full per-bot state, signals, weights, staleness, and diagnostics |
|
|
968
|
+
| `market_adapter/state/market_adapter_centers.json` | Compact center-price snapshot |
|
|
969
|
+
| `market_adapter/state/market_adapter.lock` | Single-instance runtime lock |
|
|
970
|
+
|
|
971
|
+
If the adapter crashed and is no longer running, a stale lock file can be
|
|
972
|
+
removed manually.
|
|
973
|
+
|
|
974
|
+
### Monitoring Fields
|
|
975
|
+
|
|
976
|
+
Important fields in `market_adapter/state/market_adapter_state.json`:
|
|
977
|
+
|
|
978
|
+
<details><summary>Field reference (click to expand)</summary>
|
|
979
|
+
|
|
980
|
+
| Field | Meaning |
|
|
981
|
+
|-------|---------|
|
|
982
|
+
| `meta.updatedAt` | Last completed adapter cycle (ISO timestamp) |
|
|
983
|
+
| `meta.metrics.processedBots` | Number of bots evaluated this cycle |
|
|
984
|
+
| `meta.metrics.durationMs` | Cycle wall-clock duration in milliseconds |
|
|
985
|
+
| `lastCycleAt` | Last cycle timestamp for a bot |
|
|
986
|
+
| `lastAmaPrice` | Latest computed AMA price for a bot |
|
|
987
|
+
| `gridCenterPrice` | Stored center used for delta comparison |
|
|
988
|
+
| `lastDeltaPercent` | Move from stored center to latest AMA |
|
|
989
|
+
| `thresholdPercent` | Active recalc trigger threshold |
|
|
990
|
+
| `lastTriggerFile` | Last recalc trigger file written (`triggered` is a transient per-cycle return value, not persisted) |
|
|
991
|
+
| `lastTriggerSuppressedReason` | Why the last trigger write was suppressed |
|
|
992
|
+
| `triggerCount` | Number of triggers written for the bot |
|
|
993
|
+
| `staleData` | Whether stale candles suppressed live writes |
|
|
994
|
+
| `staleAgeHours` | Age of the newest usable candle |
|
|
995
|
+
| `amaSlope.trend` | `UP`, `DOWN`, or `NEUTRAL` |
|
|
996
|
+
| `atr` | Average True Range value |
|
|
997
|
+
| `weightVariance` | Normalized volatility ratio |
|
|
998
|
+
| `weights` | Current dynamic buy/sell weights |
|
|
999
|
+
| `collateralRecommendation` | Advisory collateral-ratio hint |
|
|
1000
|
+
| `kibanaGapRepairCount` | Gaps patched this cycle (auto-fill or Kibana-verified) |
|
|
1001
|
+
| `unresolvedGapCount` | Gaps still missing after all repair attempts; writes suppressed while > 0 |
|
|
1002
|
+
|
|
1003
|
+
</details>
|