Futures Quant System
Paste the following prompt into your AI chat to install this skill:
Please follow the guide at https://skillhub.cn/install/skillhub.md to install @u_8ee34d77/futures-quant into your AI assistant.
About this skill
Problem to Solve
Futures strategy work often breaks down in engineering details: market data from CTP needs to be cleaned and aligned, while strategy scripts, risk thresholds, and order execution are maintained separately. Backtests can be hard to reproduce, and failure modes such as network drops, malformed data, or insufficient margin tend to surface late. This skill frames the workflow as a set of modules: data acquisition, strategy development, risk management, transaction execution, and strategy backtesting.
How It Works and Where It Fits
It is built around the vn.py CTP interface and a Python workflow, and it processes inputs through parameters such as content, format, and options. The documented capabilities cover real-time market data such as price, volume, and open interest, strategy types such as trend following, mean reversion, and arbitrage, and monitoring of position and funding risk. For domestic Chinese futures, the material references CTP interfaces for the Shanghai, Dalian, and Zhengzhou exchanges.
Keep these boundaries in mind:
- Treat API keys as highly sensitive, with least privilege and rotation;
- Use request queuing and backoff for high-frequency calls to respect platform rate limits;
- Large files and long inputs may increase memory and inference cost, so chunking or segmentation is advisable;
- In complex market conditions, avoid fully automated trading without manual review and explicit stop-loss limits.
Use Cases
- In domestic Chinese futures CTP feeds, turn price, volume, and open interest into structured strategy input.
- When building trend-following, mean-reversion, or arbitrage logic, run strategy parameters and return execution status.
- During backtesting, compare historical quotes with strategy results to check position, funding, and stop-loss boundaries.
- Before deployment, validate input formats, API permissions, retries, and order edge cases to reduce ad hoc script drift.
Best For
- Futures engineers maintaining domestic CTP feeds: stable collection, structured output, and retry handling.
- Researchers building trend or arbitrage strategies: strategy logic, parameters, and backtest results in one workflow.
- Traders or developers handling risk: monitor position and funding risk, and manage margin or stop-loss boundaries.
- Platform architects integrating quant tools: evaluate CTP, Python workflow, and API permission limits.
Related Skills
Automatically indexes Gradle-cached AAR/JAR dependency classes and returns library coordinates, versions, and public APIs by fully qualified name, using only the Python standard library.
Codifies AMT and YourMT3 training conventions, script patterns, hyperparameters, precision, checkpoints, and NaN safeguards.
Retrieve relevant chunks from a customer-managed PKM dataset by dataset_id and return concise, source-annotated answers.
Convert PRDs, user stories, or functional specs into prioritized test-point checklists covering functional, business-rule, boundary, exception, and non-functional dimensions.