Skip to content

[codex] Make Moomoo recorder fully automatic - #9

Merged
zifanzhou1024 merged 1 commit into
mainfrom
codex/full-automatic-moomoo-recorder
May 18, 2026
Merged

[codex] Make Moomoo recorder fully automatic#9
zifanzhou1024 merged 1 commit into
mainfrom
codex/full-automatic-moomoo-recorder

Conversation

@zifanzhou1024

Copy link
Copy Markdown
Owner

Summary

  • Removes the default manual-spot requirement for RUT and NDX by adding automatic ETF proxy spots (US.IWM * 10.0 and US.QQQ * 40.0).
  • Makes manual spot inputs true overrides by preferring them over proxy snapshots and skipping proxy refreshes when an override is set.
  • Adds a launchd wrapper for Moomoo OpenD plus a one-time sudo helper for weekday wake scheduling.
  • Updates README and ML recorder docs for the fully automatic local setup.

Local Runtime Changes

  • Installed and loaded local LaunchAgent: /Users/sakura/Library/LaunchAgents/com.sakura.moomoo-opend.plist
  • Existing recorder LaunchAgent was restarted so it uses the updated automatic proxy configuration.
  • Live no-spot smoke wrote all six ticker batches: SPX, SPY, QQQ, IWM, RUT, NDX.

Verification

  • PYTHONPATH=services/collector:apps/api .venv/bin/pytest services/collector/tests -q -> 178 passed
  • node --test tests/package-scripts.test.mjs -> 5 passed
  • plutil -lint /Users/sakura/Library/LaunchAgents/com.sakura.moomoo-opend.plist /Users/sakura/Library/LaunchAgents/com.sakura.gammascope.moomoo-research-recorder.plist
  • zsh -n ops/run_moomoo_opend.sh ops/run_moomoo_research_market.sh ops/setup_market_wake_schedule.sh
  • git diff --check
  • Live smoke: pnpm collector:moomoo-research-record -- --max-loops 1 --output-dir /tmp/gamma-scope-full-auto-smoke wrote 572 option rows and 6 batch rows with no --spot arguments.

Remaining Manual Step

macOS requires root for wake scheduling. Run once locally if the Mac may sleep before market open:

sudo /Users/sakura/WebstormProjects/gamma-scope/ops/setup_market_wake_schedule.sh

@zifanzhou1024
zifanzhou1024 marked this pull request as ready for review May 18, 2026 15:20
@zifanzhou1024
zifanzhou1024 merged commit f78674d into main May 18, 2026
2 checks passed
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