Skip to content
View EdgePolyFun's full-sized avatar

Block or report EdgePolyFun

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
edgepolyfun/README.md
Tagline

Website Documentation Twitter


Stats

What is EdgePoly?

EdgePoly is the first chain-reaction automation platform for prediction markets. We enable traders to create sophisticated, interconnected trading strategies that execute automatically based on market conditions, event outcomes, and custom triggers.

┌─────────────────────────────────────────────────────────────────────────┐
│                                                                         │
│   IF Market A resolves YES                                              │
│     └─► THEN Buy Market B at 0.35                                       │
│           └─► IF Market B reaches 0.65                                  │
│                 └─► THEN Take Profit + Notify                           │
│                       └─► THEN Rotate to Market C                       │
│                                                                         │
│   One trigger. Multiple reactions. Exponential edge.                    │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

Our Repositories

The official TypeScript SDK for building chain-reaction automations.

Features:

  • Fluent chain builder API
  • 6 chain types (link, hedge, split, cascade, conditional, rebalance)
  • Advanced conditions engine
  • Risk management (Kelly criterion, position sizing)
  • Real-time market analytics
  • WebSocket support
await client
  .chain('My Strategy')
  .whenPriceAbove('market-id', 'yes', 0.7)
  .thenBuy('target-market', 'yes', { amount: 100 })
  .withStopLoss(0.15)
  .deploy();

Production-ready trading strategies collection.

Strategies:

  • Momentum Trend Follower
  • Mean Reversion Contrarian
  • Narrative Cascade
  • Smart DCA
  • Volatility Breakout

Includes:

  • Full backtesting engine
  • 20+ technical indicators
  • Signal aggregation system
  • Performance analytics
const result = await engine.run(strategy, {
  initialCapital: 10000,
  startDate: new Date('2025-12-12'),
});

Chain Types

Link Order

[A] ──► [B]

Sequential execution

When A triggers, execute B. Classic if-then automation.

Hedge-Link

[A] ──┬──► [B]
      └──► [C]

Risk mitigation

Automatically hedge positions when conditions change.

Split Order

      ┌──► [B] 40%
[A] ──┼──► [C] 35%
      └──► [D] 25%

Portfolio distribution

Distribute capital across multiple targets.

Cascade

[A] ──► [B] ──► [C] ──► [D]

Multi-stage chains

Execute complex sequences with multiple stages.

Conditional

      ┌─ if X ─► [B]
[A] ──┤
      └─ if Y ─► [C]

Dynamic branching

Choose paths based on real-time conditions.

Rebalance

[Portfolio]
    ↓
┌───┴───┐
↓       ↓
[+A]   [-B]

Auto-rebalancing

Maintain target allocations automatically.


Technology Stack

Layer Technologies
Frontend React TypeScript Tailwind Three.js
Blockchain Ethereum Polygon Viem Wagmi
Backend Node.js Express PostgreSQL
Integrations Polymarket RainbowKit

Why EdgePoly?

Never Miss

Traditional trading requires constant attention. EdgePoly watches markets 24/7 and executes the moment your conditions are met.

Chain Reactions

Link multiple markets together. When one event triggers, cascade through your entire strategy automatically.

Risk Managed

Built-in stop losses, position limits, and hedging. Your capital is protected even when you're away.

Battle-Tested

Production-grade strategies backtested across thousands of market scenarios.


Quick Start

# Install the SDK
npm install @edgepoly/sdk

# Install strategies (optional)
npm install @edgepoly/strategies
import { EdgePoly } from '@edgepoly/sdk';

// Initialize
const client = new EdgePoly({
  apiKey: 'your-api-key',
  environment: 'mainnet',
});

// Connect wallet
await client.connect();

// Create your first chain
const chain = await client
  .chain('Election Cascade')
  .type('cascade')
  .source('election-market-id', 'yes')
  .whenResolved('yes')
  .thenBuy('policy-market-id', 'yes', { percentage: 50 })
  .thenNotify('Chain executed!')
  .deploy();

console.log(`Chain deployed: ${chain.id}`);

Roadmap

Q4 2025

  • SDK v1.0 Release
  • 5 Core Strategies
  • Backtesting Engine
  • Multi-wallet Support

Q1 2026

  • Mobile App (iOS/Android)
  • Social Trading
  • Strategy Marketplace
  • Copy Trading

Q2 2026

  • AI Strategy Builder
  • Cross-chain Support
  • Institutional API
  • Advanced Analytics

Q3 2026

  • DAO Governance
  • Protocol Token
  • Decentralized Execution
  • Global Expansion

Community & Support

Channel Purpose
Twitter Announcements, market insights, updates
Docs Technical documentation, tutorials, API reference
Email Business inquiries, partnerships

Contributing

We love contributions! Whether it's:

  • Reporting bugs
  • Suggesting new features
  • Creating new strategies
  • Improving documentation
  • Writing tutorials

Check out our Contributing Guide to get started.


License

All EdgePoly repositories are released under the MIT License.



Build Your Edge

CTA

Get Started



Built with dedication by the EdgePoly Team


Popular repositories Loading

  1. edgepoly-sdk edgepoly-sdk Public

    TypeScript 1

  2. edgepoly-strategies edgepoly-strategies Public

    TypeScript 1

  3. agents agents Public

    Forked from Polymarket/agents

    Trade autonomously on Polymarket using AI Agents

    Python

  4. polymarket-subgraph polymarket-subgraph Public

    Forked from Polymarket/polymarket-subgraph

    Polymarket's public subgraph manifest for indexing on-chain trade, volume, user, liquidity and market data.

    TypeScript

  5. uma-ctf-adapter uma-ctf-adapter Public

    Forked from Polymarket/uma-ctf-adapter

    Adapter contract to resolve Polymarket prediction markets via UMA's Optimistic Oracle.

    Solidity

  6. real-time-data-client real-time-data-client Public

    Forked from Polymarket/real-time-data-client

    A TypeScript client to receive real time data messages

    TypeScript