Skip to content
Back to skills

Predictfun

ASecurity

Predict.fun prediction market trading (BNB Chain)

  • 2,496 stars
  • 0 votes
  • 0 copies
  • 30 views
  • Added February 10, 2026
blockchaingobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add alsk1992/CloddsBot --skill predictfun --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Predictfun?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Predictfun
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alsk1992-predictfun/badge)](https://www.skillsdirectory.com/skills/alsk1992-predictfun)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: predictfun
description: "Predict.fun prediction market trading (BNB Chain)"
emoji: "🎯"
commands:
  - /pf
gates:
  envs:
    - PREDICTFUN_API_KEY
---

# Predict.fun

Full integration with Predict.fun, a BNB Chain prediction market with binary and categorical outcomes.

## Quick Start

```bash
# Set credentials
export PREDICTFUN_API_KEY="your-api-key"
export PREDICTFUN_PRIVATE_KEY="0x..."

# Search markets
/pf markets crypto

# Check balance
/pf balance

# Place order
/pf buy <marketId> YES 0.55 100
```

## Commands

### Market Data

| Command | Description |
|---------|-------------|
| `/pf markets [query]` | Search markets |
| `/pf market <id>` | Get market details |
| `/pf book <marketId>` | Show orderbook |

### Trading

| Command | Description |
|---------|-------------|
| `/pf buy <marketId> <outcome> <price> <size>` | Place buy order |
| `/pf sell <marketId> <outcome> <price> <size>` | Place sell order |
| `/pf cancel <orderId>` | Cancel order |
| `/pf cancelall` | Cancel all orders |
| `/pf orders` | List open orders |

**Examples:**
```bash
/pf buy market-123 YES 0.55 100   # Buy YES at 55c, 100 shares
/pf sell market-123 NO 0.40 50    # Sell NO at 40c, 50 shares
/pf cancel order-abc              # Cancel specific order
```

### Account

| Command | Description |
|---------|-------------|
| `/pf balance` | Check USDT balance |
| `/pf positions` | View open positions |
| `/pf redeem <conditionId>` | Redeem settled positions |
| `/pf merge <conditionId> <amount>` | Merge outcome tokens |

## Configuration

```bash
# Required for market data
export PREDICTFUN_API_KEY="your-api-key"

# Required for trading
export PREDICTFUN_PRIVATE_KEY="0x..."
```

Or in `~/.clodds/clodds.json`:

```json
{
  "trading": {
    "predictfun": {
      "apiKey": "${PREDICTFUN_API_KEY}",
      "privateKey": "${PREDICTFUN_PRIVATE_KEY}"
    }
  }
}
```

## Features

- **BNB Chain** - Fast, low-cost transactions (chainId 56)
- **Binary & Categorical** - Multiple market types
- **Order Signing** - Secure wallet signatures via SDK
- **Position Management** - Track & redeem positions
- **Merge/Split** - Convert between collateral and outcome tokens

## Trading Notes

1. **Index Sets**: Binary markets use `indexSet = 1` for YES, `indexSet = 2` for NO
2. **Merging**: Requires equal amounts of all outcome tokens
3. **Fees**: Check platform for current fee structure

## Resources

- [Predict.fun App](https://predict.fun)
- [BscScan](https://bscscan.com)

Files in this skill

  • SKILL.md2.4 KB
  • index.ts22.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in blockchain →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.