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. │
│ │
└─────────────────────────────────────────────────────────────────────────┘
|
The official TypeScript SDK for building chain-reaction automations. Features:
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:
Includes:
const result = await engine.run(strategy, {
initialCapital: 10000,
startDate: new Date('2025-12-12'),
}); |
Sequential execution When A triggers, execute B. Classic if-then automation. |
Risk mitigation Automatically hedge positions when conditions change. |
Portfolio distribution Distribute capital across multiple targets. |
Multi-stage chains Execute complex sequences with multiple stages. |
Dynamic branching Choose paths based on real-time conditions. |
Auto-rebalancing Maintain target allocations automatically. |
|
Traditional trading requires constant attention. EdgePoly watches markets 24/7 and executes the moment your conditions are met. |
Link multiple markets together. When one event triggers, cascade through your entire strategy automatically. |
Built-in stop losses, position limits, and hedging. Your capital is protected even when you're away. |
Production-grade strategies backtested across thousands of market scenarios. |
# Install the SDK
npm install @edgepoly/sdk
# Install strategies (optional)
npm install @edgepoly/strategiesimport { 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}`);
|
|
|
|
| Channel | Purpose |
|---|---|
| Announcements, market insights, updates | |
| Technical documentation, tutorials, API reference | |
| Business inquiries, partnerships |
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.
All EdgePoly repositories are released under the MIT License.