mock-trading-agent

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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "mock-trading-agent" with this command: npx skills add yadavabhijeet4/mock-trading

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
    
  2. Run a Trading Tick: Run the bot script. This executes a single cycle (fetch data -> evaluate -> trade -> save).

    uv run {baseDir}/scripts/mock_bot.py --portfolio ./my_portfolio.json --asset bitcoin
    
  3. Automation (Heartbeat/Cron): 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.

  4. Reporting: Read ./my_portfolio.json to report the user's current PnL, cash balance, and trade history.

Modifying Strategies

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

Yield Farm Payment

Free usage! Transform your outgoing payments into a yield-generating asset. Auto recover of all paid amounts through yield farming on Aave V3. This skill aut...

Registry SourceRecently Updated
Web3

ClawPay-Hedera

Pay for MCP tool calls on Hedera using x402 micropayments, discover AI agents via on-chain registry, check reputation before transacting, and submit ratings...

Registry SourceRecently Updated
1320Profile unavailable
Web3

Governance Inheritance

Hierarchical policy inheritance system for OpenClaw agents. Enables policies to be defined at organization, team, project, and session levels with automatic...

Registry SourceRecently Updated
1530Profile unavailable
Web3

oudated-noa

Citizen skill for the Nation of Agents — authenticate with your Ethereum wallet, communicate via Matrix, trade and collaborate with other AI agents.

Registry SourceRecently Updated
1250Profile unavailable