{"skill":{"slug":"mock-trading","displayName":"Mock Trading","summary":"Simulate cryptocurrency trading using algorithmic strategies (SMA Crossover, Mean Reversion) without risking real capital. Use when the user wants to start a...","description":"---\nname: mock-trading-agent\ndescription: Simulate cryptocurrency trading using algorithmic strategies (SMA Crossover, Mean Reversion) without risking real capital. Use when the user wants to start a paper trading simulation, test a trading bot, or monitor a mock portfolio.\n---\n\n# Mock Trading Agent Skill\n\nThis skill provides a fully functional mock (paper) trading environment. It allows OpenClaw to simulate algorithmic trading by fetching live market data, evaluating algorithmic strategies, and updating a virtual portfolio.\n\n## Components\n\n- **`assets/portfolio.json`**: A template virtual bank account containing $10,000 USD. \n- **`scripts/mock_bot.py`**: A python script that executes a single \"tick\" of the trading bot. It fetches the current price, evaluates the strategy based on price history, executes mock trades, and updates the portfolio file.\n\n## Setup & Usage\n\nWhen a user asks to start a mock trading session:\n\n1. **Initialize the Portfolio**: \n   Copy the template portfolio to the user's working directory.\n   ```bash\n   cp {baseDir}/assets/portfolio.json ./my_portfolio.json\n   ```\n\n2. **Run a Trading Tick**:\n   Run the bot script. This executes a single cycle (fetch data -> evaluate -> trade -> save).\n   ```bash\n   uv run {baseDir}/scripts/mock_bot.py --portfolio ./my_portfolio.json --asset bitcoin\n   ```\n\n3. **Automation (Heartbeat/Cron)**:\n   To run the bot continuously, add the command from Step 2 into the user's `HEARTBEAT.md` file or schedule it via cron to run every 5-10 minutes.\n\n4. **Reporting**:\n   Read `./my_portfolio.json` to report the user's current PnL, cash balance, and trade history.\n\n## Modifying Strategies\nThe script currently defaults to an **SMA Crossover** strategy. You can edit the python script locally to swap it with Mean Reversion, Momentum Breakout, or RSI strategies if the user requests different logic.","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":610,"installsAllTime":0,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1773259133333,"updatedAt":1778491839794},"latestVersion":{"version":"1.0.0","createdAt":1773259133333,"changelog":"- Initial release of the mock-trading-agent skill.\n- Simulate cryptocurrency trading using algorithmic strategies such as SMA Crossover and Mean Reversion.\n- Includes a virtual portfolio initialized with $10,000 USD.\n- Provides a script to fetch live market data, evaluate trading strategies, and execute mock trades.\n- Supports portfolio monitoring and customizable strategy logic for paper trading sessions.","license":"MIT-0"},"metadata":null,"owner":{"handle":"yadavabhijeet4","userId":"s17bhz0aswrz1acct7rcjsw97n8850m1","displayName":"yadavabhijeet4","image":"https://avatars.githubusercontent.com/u/197090871?v=4"},"moderation":null}