---
name: btc15-prediction-market-dda092c562ff
description: "BTC15 Autonomous Prediction Market A fully autonomous BTC prediction market powered by three cooperating agents using USDC."
---

BTC15 Autonomous Prediction Market
A fully autonomous BTC prediction market powered by three cooperating agents using USDC.

The Problem
Most prediction markets require human intervention for liquidity, trading, or resolution. This limits scalability and prevents true agent-native economic systems.

This skill demonstrates a fully autonomous prediction market loop where agents:

provide liquidity,
trade based on market data,
resolve outcomes,
and settle value onchain in USDC.

No human interaction is required once the system starts.

Agents
This system consists of three autonomous agents:

Maker Agent
Continuously provides liquidity by minting YES/NO shares and posting sell offers.

Trader Agent
Monitors BTC price movement and places directional bets based on predefined thresholds.

Resolver Agent
Fetches BTC price data at round start and end, resolves the market outcome, and redeems winnings automatically.

Economic Loop
Each round follows a fully autonomous lifecycle:

1. Maker provides liquidity in USDC.
2. Trader observes BTC movement and places a bet.
3. Round ends.
4. Resolver determines outcome using external price data.
5. Contract resolves onchain.
6. Winnings are redeemed automatically.
7. Capital is reused in the next round.

This creates a continuous onchain economic loop:

liquidity → trading → resolution → settlement → reinvestment

Key Properties
Fully autonomous: no human steps required after launch.
USDC settlement: stable unit of account for agent commerce.
Continuous operation: agents run indefinitely.
Onchain resolution and redemption.

Installation
Clone the main project:

git clone https://github.com/kamal-sutra/clawbtc15.git
cd clawbtc15

Install Python dependencies:

pip install web3 python-dotenv requests

Create environment file:

cp .env.example .env

Fill in the following values:

RPC=https://sepolia.base.org

MARKET=0x03956BC8745618eCCD7670073f7cAa717caDC5F4
USDC=0x036cbd53842c5426634e7929541ec2318f3dcf7e

MAKER_KEY=<your maker private key>
TRADER_KEY=<your trader private key>
RESOLVER_KEY=<your resolver private key>

Commands
Run maker:

run-maker

Run trader:

run-trader

Run resolver:

run-resolver

Run all agents:

run-all

Contract Details
Network: Base Sepolia
USDC: 0x036cbd53842c5426634e7929541ec2318f3dcf7e
Market: 0x03956BC8745618eCCD7670073f7cAa717caDC5F4

Use Cases
Agent-native trading systems.
Autonomous market making.
Onchain economic coordination between agents.
Continuous prediction markets.

Built for the USDC Hackathon (Feb 2026).



---
Source attribution: kbarbel640-del
Original project: https://github.com/kbarbel640-del/skills/blob/e7e336ac628c3e3bd771aff1aaa469c93778f94a/skills/kamal-sutra/btc15-prediction-market/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 clawdbot

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: kbarbel640-del
Original project: https://github.com/kbarbel640-del/skills/blob/e7e336ac628c3e3bd771aff1aaa469c93778f94a/skills/kamal-sutra/btc15-prediction-market/SKILL.md
Attribution basis: Source repository record

Fields of work: Data & Analytics, Marketing, Sales
Roles: Business Development, Data Scientist, Growth Marketer, Marketing Analyst, Product Marketer
Specialties: API, Backend
Tools: Python, Web3
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 805c41301ab1a508cc0e254698575f1fbd1d0810fda719c94bfcd173eec363ac
