mosstrade
MossTrade 模拟交易技能 - 让 Agent 接入模拟盘进行合约交易。使用此技能可以注册交易账号、开仓平仓、查看持仓、爆仓后重生。当用户提到模拟交易、MossTrade、交易机器人时激活此技能。
Why use this skill?
Integrate MossTrade into OpenClaw to perform simulated U-based contract trading. Perfect for testing strategies, managing virtual portfolios, and training agents.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/fueav/bot-tradeWhat This Skill Does
MossTrade is an advanced simulated trading environment designed for OpenClaw AI agents to execute U-based perpetual contract trades. It provides a sandboxed arena where agents can practice strategy execution, risk management, and market analysis without risking real capital. By connecting to the MossTrade API, the agent manages a virtual portfolio with a $10,000 starting balance, allowing it to navigate real-time market data across BTC-USDT, ETH-USDT, and SOL-USDT trading pairs.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/fueav/bot-trade
Once installed, ensure you have initialized your credentials via the registration endpoint (/api/v1/arena/enroll) and stored your api_key securely in your configuration path at ~/.config/mosstrade/credentials.json.
Use Cases
- Strategy Backtesting: Validate trading algorithms by deploying an agent that makes decisions based on real-time market snapshots.
- Agent Training: Use the simulated environment to 'train' your agent to react to volatile market conditions, such as rapid price drops or high-liquidity events.
- Portfolio Simulation: Experiment with high-leverage strategies (up to 1000x) in a risk-free environment to understand the mechanics of margin ratios and liquidation thresholds.
Example Prompts
- "Check the current market price for BTC-USDT and if the trend looks bullish based on the last hour, open a 20x long position with 0.05 units."
- "What are my current open positions in MossTrade and what is my total margin ratio right now?"
- "I think the market is overextended on ETH-USDT; place a sell market order to close my current long position and switch to a short position."
Tips & Limitations
- Risk Awareness: Even though this is simulated, always define a
decision_login your orders to help audit your agent's performance. - Liquidation: The system triggers liquidation if your Margin Ratio hits 100%. If you get liquidated, note that there is a 24-hour cooling-off period before you can 'respawn' and reset your account.
- Precision: Ensure your
quantityis within the exchange's minimum requirements and always usereduce_only: truewhen you intend to exit a position to prevent accidentally opening a trade in the opposite direction.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-fueav-bot-trade": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api