Skip to content

thisyearnofear/fourcast

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

237 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ฎ Fourcast: Arc-Native Prediction Market Intelligence Agent

AI agent for Polymarket & Kalshi โ€” edge detection, Kelly sizing, USDC settlement on Arc, cross-platform arbitrage.

Status Settlement Hackathon

๐ŸŽฏ What We Do

Fourcast is an intelligence agent for prediction markets. It helps traders and autonomous workflows:

  • AI-powered analysis - Venice AI (Llama 3.3 70B) with 200+ ML models across crypto, sports, politics & more
  • Multi-platform trading - Polymarket & Kalshi integration with live odds
  • On-chain signals - USDC settlement on Arc (Circle L1); legacy Movement/Aptos testnet
  • DeFi arbitrage - Detect price discrepancies across platforms

๐Ÿš€ Features

For Traders

  • Live Market Analysis - AI-generated predictions with confidence scores (HIGH/MEDIUM/LOW)
  • ML-Backed Forecasts - SynthData integration for crypto/equity price predictions (BTC, ETH, SOL, SPY, NVDA, etc.)
  • Sports & Events Intelligence - Weather-aware analysis for sports and event markets
  • Cross-Platform Arbitrage - Find mispriced odds between Polymarket and Kalshi
  • Direct Trading - Place orders on Polymarket/Kalshi from the interface

For Analysts

  • Signal Publishing - Publish predictions on-chain with Arc as the preferred settlement path when configured, with Movement testnet as legacy fallback
  • Reputation System - Track win rates, Brier scores, and accuracy streaks
  • Tipping - Earn APT for high-quality signals
  • Leaderboards - Compete with other analysts

For Developers

  • Unified API - Access markets, signals, and AI analysis
  • SDK - Build custom signal publishers and domain analyzers
  • Modular Architecture - Extend with new data sources and chains

๐Ÿ—๏ธ Architecture

graph LR
    A[Polymarket/Kalshi] -->|Live Odds| B(AI Analysis Engine)
    C[Weather API] -->|Real-time Data| B
    D[SynthData] -->|ML Forecasts| B
    B -->|Signals| E[SQLite Database]
    B -->|Publish| F[Arc ยท USDC Settlement]
    E --> G[Frontend Dashboard]
    F -->|Verify| G
    G -->|Trade| A
Loading

Tech Stack

  • Frontend: Next.js 15, React 19, Tailwind CSS, Three.js
  • Backend: Node.js, SQLite (Turso), Redis
  • AI: Venice AI (Llama 3.3 70B) with Edge Search
  • Blockchains:
    • Arc (Circle L1) โ€” primary settlement, USDC subscriptions, signals (integrating)
    • Polygon โ€” Polymarket/Kalshi execution
    • Movement/Aptos โ€” legacy testnet signals
  • Data Sources: Polymarket, Kalshi, Open-Meteo, SynthData

โšก Quick Start

1. Installation

git clone https://github.com/thisyearnofear/fourcast.git
cd fourcast
npm install

The pre-commit hook will install automatically to protect against committing secrets.

2. Environment Setup

Copy .env.local.example to .env.local:

# Required: AI & Weather
VENICE_API_KEY=your_venice_api_key
NEXT_PUBLIC_WEATHER_API_KEY=your_weather_api_key

# Optional: Movement (signal publishing)
NEXT_PUBLIC_APTOS_NETWORK=custom
NEXT_PUBLIC_APTOS_NODE_URL=https://testnet.movementnetwork.xyz/v1
NEXT_PUBLIC_MOVEMENT_MODULE_ADDRESS=0x...

# Optional: Polymarket Trading
POLYMARKET_PRIVATE_KEY=your_private_key

# Optional: Kalshi Trading
KALSHI_API_KEY=your_api_key

See Setup Guide for complete configuration.

3. Run the App

npm run dev

Navigate to http://localhost:3000


๐Ÿ“‚ Project Structure

fourcast/
โ”œโ”€โ”€ app/                    # Next.js pages and components
โ”œโ”€โ”€ components/             # React components (UI, 3D, trading)
โ”œโ”€โ”€ services/               # Backend services (AI, markets, chains)
โ”œโ”€โ”€ sdk/                    # Signal SDK for developers
โ”œโ”€โ”€ move/                   # Move contracts (signal registry)
โ””โ”€โ”€ docs/                   # Documentation

๐Ÿ“Š Supported Platforms

Platform Purpose Status
Polymarket Live odds, trading โœ… Live
Kalshi Live odds, trading โœ… Live
Arc (Circle) USDC settlement, subscriptions โœ… Testnet
Movement/Aptos Legacy signal publishing โœ… Testnet
BNB Chain Trading contracts ๐Ÿงช Beta
Polygon Trading contracts ๐Ÿงช Beta
Arbitrum Trading contracts ๐Ÿงช Beta

๐Ÿ“š Documentation


๐Ÿค Contributing

We welcome contributions! Areas of interest:

  • New data sources (sentiment, on-chain metrics)
  • Additional prediction market platforms
  • EVM chain integrations
  • UI/UX improvements

๐Ÿ“„ License

MIT


๐Ÿ”ฎ Vision

Fourcast the future โ€” quantitative prediction intelligence with Arc-native USDC settlement. The agent scans venues, sizes edge with Kelly, publishes verifiable signals, and executes cross-platform arbitrage when fees allow.

Today: RFB 02 intelligence ยท RFB 05 cross-venue arb ยท RFB 06 social signals & builder monetization
Docs: Hackathon strategy ยท Demo script ยท Brand copy

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 96.3%
  • CSS 1.2%
  • Solidity 1.0%
  • Shell 0.9%
  • Move 0.5%
  • TypeScript 0.1%