- Home
- Skills
- Workflow Automation
- BTC Trading Bot with Backtest and Paper Mode
BTC Trading Bot with Backtest and Paper Mode
Python BTC bot (SMA crossover + stop-loss) with backtesting, paper trading and a guarded live mode, using ccxt.
$30
About this skill
A ready-to-run single-file Python bot that trades BTC with a moving-average crossover strategy and a stop-loss, built on the ccxt library so it works with Kraken, Coinbase, Binance US and many other exchanges.
What you get
- Three modes: backtest on history or your own CSV, paper trading with fake money on live prices (the default), and live trading that refuses to start without an explicit confirmation flag
- Backtest report: bot result vs buy-and-hold, trade count and max drawdown
- Stop-loss that stays active even after a restart while holding BTC
- Separate state files for paper and live, so they never mix
- A guided workflow: backtest first, paper trade for weeks, go live only with a small amount you can afford to lose
- Safety rules for the AI agent: it never runs live mode itself, never asks for API keys in chat, and recommends trade-only, withdrawal-disabled exchange keys
Customize it Change the exchange, trading pair, candle timeframe, moving-average lengths, stop-loss percentage, position size and fee in one config block.
Important This is not financial advice. A simple strategy like this can and often does lose money, including underperforming buy-and-hold. Nothing here promises profit.
Long-only, one position at a time, market orders only. Stop-loss is checked by polling, not placed on the exchange, and is inactive when the script is not running. Backtests are optimistic (no slippage, stops fill at the exact price). Live mode does not confirm fills or enforce minimum order sizes. Not financial advice.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
- Accounts
Kraken
Coinbase
BinanceExchange account (live mode only)Exchange API key (live mode only)
- Software
Python 3.9+ccxt (pip install ccxt)
Permissions
Allowed Hosts
File Scopes
Uses ccxt to reach the exchange set in the config (Kraken by default; other exchanges contact their own hosts). Live mode reads EXCHANGE_API_KEY and EXCHANGE_API_SECRET from environment variables and places real market orders, only when run with the --yes flag. Paper and backtest modes need no keys.
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.