Btc15 Prediction Market
Skill by kamal-sutra
Why use this skill?
Deploy a fully autonomous BTC prediction market using three specialized agents. Automate liquidity, trading, and settlement on Base.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/kamal-sutra/btc15-prediction-marketWhat This Skill Does
The BTC15 Prediction Market is a fully autonomous decentralized finance (DeFi) engine designed for the Base Sepolia network. It eliminates the need for human intervention in prediction markets by coordinating three specialized agents: a Maker, a Trader, and a Resolver. The Maker agent supplies liquidity by minting and selling shares, the Trader agent analyzes BTC price trends to execute directional bets, and the Resolver agent fetches oracle data to finalize outcomes and handle settlement. By utilizing USDC as a stable asset, this system creates a perpetual, self-sustaining economic loop that facilitates onchain betting and automated reward redemption without any manual oversight.
Installation
- Ensure you have Git and Python 3.10+ installed on your system.
- Execute the installation command:
clawhub install openclaw/skills/skills/kamal-sutra/btc15-prediction-market - Navigate to the project directory:
cd clawbtc15 - Install the required Python dependencies:
pip install web3 python-dotenv requests - Copy the environment configuration:
cp .env.example .env - Edit the
.envfile and input your RPC node URL (Base Sepolia), the smart contract addresses for the Market and USDC, and the private keys for the Maker, Trader, and Resolver agents. - Launch the agents using the provided CLI commands:
run-maker,run-trader, andrun-resolveror start all simultaneously withrun-all.
Use Cases
- Agent-Native Trading: Testing autonomous economic systems where agents interact directly with onchain financial primitives.
- Autonomous Market Making: Deploying liquidity providers that operate continuously without human configuration.
- Algorithmic Betting: Creating strategies for prediction markets based on real-time BTC price action.
- Automated Settlement: Demonstrating how smart contracts can manage end-to-end transaction lifecycles from bet placement to profit redemption.
Example Prompts
- "@Claw start the BTC15 Maker agent to provide liquidity to the current market round."
- "@Claw monitor the BTC15 market and check the current Trader agent strategy performance."
- "@Claw run all BTC15 agents and verify that the Resolver is synchronized with the latest price oracle data."
Tips & Limitations
- Security: Always use dedicated wallets with minimal funding for agent private keys to mitigate potential exposure.
- Network Costs: Ensure your wallets are sufficiently funded with ETH for gas fees on the Base Sepolia network.
- Limitations: This skill is strictly designed for the Base Sepolia testnet; ensure your environment variables reflect the correct chain ID and address mappings to prevent failed transactions.
- Monitoring: Monitor the console logs of each individual agent frequently to ensure the loop remains active during periods of high price volatility.
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-kamal-sutra-btc15-prediction-market": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, file-write, external-api