xingwudao/open-xquant/configure-trade-execution
Claude Code and agent skill by xingwudao/open-xquant
- community
Checking that the SKILL.md file is still in the repository.
Configure open-xquant execution timing, fees, slippage, lot size, fill price mode, and broker assumptions; use when users discuss trading costs or order execution.
Install
npx vskill@latest install xingwudao/open-xquant/configure-trade-executionSKILL.md
Trade Executor
You configure execution assumptions in strategy_spec.yaml or SDK brokers.
Stable Spec Configuration
Use this for audited CLI backtests:
Use side-specific costs only when confirmed:
Validator constraints:
signal_time=close_twithtrade_time=close_tis fatal.fill_price_mode=closeormidwithsignal_time=close_tis fatal.- Legacy
trade_time/fill_price_modemust agree with explicit
order_timing / price_bar / price_type when both are present.
fee_rateandslippage_ratemust each be positive.buy_fee_rateandsell_fee_ratemay overridefee_ratewhen the user
explicitly confirms side-specific fees.
sell_tax_rateandstamp_taxmodel sell-side tax. If both are set, they
must match; otherwise use one confirmed field and leave the other empty or zero.
- The only zero-cost exception is when both values are exactly
0.0and the
spec declares explicit execution semantics for a replay-style validation run; preserve the warning.
lot_sizemust be a positive integer.lot_size_config.defaultmust be a positive integer.lot_size_config.by_symbolis parsed but not executable yet; leave it empty
until by-symbol sizing is supported.
initial_cashmust be positive and finite.cash_annual_returnmust be non-negative and finite.insufficient_cash_policyisscale_down(default) orreject. Orders are
sized from the signal bar's close but fill at a later price, so a fully invested rebalance can be a few units short of cash at fill time. scale_down fills the largest whole-lot quantity the cash affords (the fill is marked scaled_to_available_cash); reject drops the whole BUY and leaves that target position empty until the next rebalance.
execution.rebalance.frequency=dailyusesinterval_days.frequency=weeklyrequiresschedule: week_start.frequency=monthlyrequiresschedule: month_start.- Do not use month-end or week-end calendar schedules in audited specs; those
depend on future-row knowledge unless the runtime has explicit support.
Supported audited calendars are XNYS, ARCX, XSHG, and XSHE. Use lot_size_config.default: 100 for A-share examples.
Cost Defaults Are Not Conclusions
If the user does not specify costs, use conservative placeholders only after stating the assumption:
- US equity demo:
fee_rate=0.001,slippage_rate=0.001,lot_size=1 - A-share demo: ask first; lot size is often
100; commission, stamp tax, and
slippage must be confirmed instead of inferred
- crypto demo: ask exchange and fee tier first
Do not silently choose zero fees or zero slippage.
SDK Broker Pattern
Red Lines
- Do not allow same-bar close signal and close fill in audited research.
- Do not call a result tradable unless execution costs were explicit.
- Do not compare two strategies with different cost assumptions without
highlighting the difference.
- Do not compare two strategies with different fill price, calendar, lot size,
or cash return assumptions without highlighting the difference.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/configure-trade-execution/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xingwudao/open-xquant/configure-trade-execution)