skills/skills.volces.com/mock-trading-agent

mock-trading-agent

Installation
SKILL.md

Mock Trading Agent Skill

This 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.

Components

  • assets/portfolio.json: A template virtual bank account containing $10,000 USD.
  • 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.

Setup & Usage

When a user asks to start a mock trading session:

  1. Initialize the Portfolio: Copy the template portfolio to the user's working directory.
    cp {baseDir}/assets/portfolio.json ./my_portfolio.json
    
Installs
1
First Seen
Apr 21, 2026