Skip to content

Add per-platform cash-only execution to strategy switch console - #89

Merged
Pigbibi merged 1 commit into
mainfrom
feat/platform-cash-only-execution
Jun 27, 2026
Merged

Add per-platform cash-only execution to strategy switch console#89
Pigbibi merged 1 commit into
mainfrom
feat/platform-cash-only-execution

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add {PLATFORM}_CASH_ONLY_EXECUTION support in build_runtime_switch.py via --cash-only-execution-mode / extra_variables_json control field.
  • Extend strategy switch Worker to read platform cash-only variables, normalize inputs safely, and sync account defaults.
  • Add console UI for 允许融资:是 / 否 with pending-change preview and confirmation rows.
  • Fix dispatch contract: keep cash_only_execution_mode in extra_variables_json only (avoids undeclared workflow input 422).
  • Sync account default cash_only_execution_mode after successful apply.

Test plan

  • python3 scripts/sync_strategy_switch_page_asset.py
  • node tests/strategy_switch_worker_validation.mjs
  • python3 -m pytest tests/test_runtime_settings.py -q (50 passed)
  • Verify console dispatch after deploy: change allow-margin, confirm workflow succeeds and KV account option updates

Made with Cursor

…ole.

Route cash_only_execution_mode through extra_variables_json to avoid undeclared workflow dispatch inputs, sync account defaults after apply, and expose allow-margin yes/no UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit fd34a3c into main Jun 27, 2026
1 of 2 checks passed
@Pigbibi
Pigbibi deleted the feat/platform-cash-only-execution branch June 27, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant