Install
openclaw skills install @youjunzhao/a-share-clawA-share paper-trading automation workflow for MX APIs. Use when user asks to run scheduled A-share mock trading, enforce risk limits (single position cap, total exposure cap, stale-order cancellation), generate daily review, or maintain Day/Balance/Daily Return tracking.
openclaw skills install @youjunzhao/a-share-clawExecute this workflow for A-share paper trading with MX APIs.
Ensure environment:
MX_APIKEY is set.MX_API_URL defaults to https://mkapi2.dfcfs.com/finskillshub.Ensure runtime files under workspace:
mx_autotrade/config.jsonmx_autotrade/run_autotrade.pymx_autotrade/daily_review.pyEnsure schedules (trading days):
09:24 run strategy10:30 run strategy14:30 run strategy (risk-first)15:10 run daily reviewEnforce risk rules:
maxPositionPerStock, default 15%)maxTotalPosition, default 60%)Daily output:
mx_autotrade/reviews/review-YYYY-MM-DD.json)Day | Balance | Daily Return (no Day0)python3 mx_autotrade/run_autotrade.py
python3 mx_autotrade/daily_review.py