
Integrations
- 14 installs
- 610 repo stars
- Updated June 26, 2026
- alsk1992/cloddsbot
integrations is a Claude Code skill that manages external data sources and custom connectors (webhook, REST, WebSocket) for trading bots.
About
integrations is a Claude Code skill that manages external data sources and connectors for trading bots. It enables built-in feeds such as CME FedWatch, FiveThirtyEight, Polymarket, Kalshi and Binance, and adds custom webhook, REST and WebSocket sources with schema validation and transforms. A developer uses it to plug new real-time data streams and signals into a bot and monitor source health.
- Manages external data sources and connectors for trading bots
- Adds custom webhook, REST and WebSocket data streams with transforms
- Ships built-in sources (FedWatch, 538, Polymarket, Kalshi, Binance, crypto)
Integrations by the numbers
- 14 all-time installs (skills.sh)
- Ranked #1,417 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
integrations capabilities & compatibility
Free skill; some built-in and custom sources require their own API keys.
- Capabilities
- data connectors · webhook ingestion · rest polling · websocket streams · source health monitoring
- Use cases
- orchestration · data analysis
- Pricing
- Bring your own API key
What integrations says it does
Manage external data sources, add custom connectors, and plug in new data streams for trading bots.
Add webhook to receive custom signals
npx skills add https://github.com/alsk1992/cloddsbot --skill integrationsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 14 |
|---|---|
| repo stars | ★ 610 |
| Last updated | June 26, 2026 |
| Repository | alsk1992/cloddsbot ↗ |
What it does
Enable built-in data feeds and add custom webhook, REST or WebSocket sources with transforms to feed a trading bot.
Who is it for?
Plugging external data feeds and custom signal streams into a trading bot.
When should I use this skill?
You need to add or manage a data source, webhook or real-time feed for a bot.
What you get
A managed set of data sources - built-in and custom - with transforms, subscriptions and health status.
- configured data sources
- custom connector definitions
- source health status
By the numbers
- 9 built-in data sources (fedwatch, 538, silver, rcp, odds-api, polymarket, kalshi, binance, crypto)
- 3 custom source types (webhook, REST, WebSocket)
- default 60s refresh interval
Files
Integrations - Complete API Reference
Manage external data sources, add custom connectors, and plug in new data streams for trading bots.
---
Chat Commands
List Data Sources
/integrations List all data sources
/integrations status Show source health
/integrations sources Available source typesManage Sources
/integrations enable fedwatch Enable CME FedWatch
/integrations disable 538 Disable FiveThirtyEight
/integrations add webhook "my-signals" Add custom webhook source
/integrations add rest "my-api" <url> Add REST API source
/integrations remove <source-id> Remove data sourceConfigure Sources
/integrations config fedwatch View source config
/integrations set fedwatch interval 60 Set refresh interval
/integrations set fedwatch key <api-key> Set API key
/integrations test <source-id> Test source connectionView Data
/integrations data fedwatch Latest data from source
/integrations history <source> --hours 24 Historical data
/integrations subscribe <source> Real-time updates---
TypeScript API Reference
Create Integrations Manager
import { createIntegrationsManager } from 'clodds/integrations';
const integrations = createIntegrationsManager({
// Storage
storage: 'sqlite',
dbPath: './integrations.db',
// Default refresh interval
defaultIntervalMs: 60000,
// Retry settings
maxRetries: 3,
retryDelayMs: 5000,
});Built-in Data Sources
// Enable built-in sources
await integrations.enable('fedwatch'); // CME FedWatch
await integrations.enable('538'); // FiveThirtyEight
await integrations.enable('silver'); // Silver Bulletin
await integrations.enable('rcp'); // RealClearPolitics
await integrations.enable('odds-api'); // The Odds API
await integrations.enable('polymarket'); // Polymarket prices
await integrations.enable('kalshi'); // Kalshi prices
await integrations.enable('binance'); // Binance spot prices
await integrations.enable('crypto'); // Multi-exchange cryptoAdd Custom Webhook Source
// Add webhook to receive custom signals
const source = await integrations.addWebhook({
name: 'my-signals',
description: 'Custom trading signals',
// Webhook config
path: '/webhooks/my-signals',
secret: process.env.WEBHOOK_SECRET,
// Data schema (optional validation)
schema: {
type: 'object',
properties: {
signal: { type: 'string', enum: ['BUY', 'SELL', 'HOLD'] },
symbol: { type: 'string' },
confidence: { type: 'number', min: 0, max: 1 },
},
required: ['signal', 'symbol'],
},
// Transform incoming data
transform: (payload) => ({
signal: payload.signal,
symbol: payload.symbol,
confidence: payload.confidence || 0.5,
timestamp: Date.now(),
}),
});
console.log(`Webhook URL: ${source.url}`);
// POST to: https://your-domain.com/webhooks/my-signalsAdd Custom REST Source
// Add REST API data source
const source = await integrations.addRest({
name: 'my-api',
description: 'Custom price API',
// API config
url: 'https://api.example.com/prices',
method: 'GET',
headers: {
'Authorization': `Bearer ${process.env.MY_API_KEY}`,
},
// Polling interval
intervalMs: 30000,
// Transform response
transform: (response) => ({
price: response.data.price,
volume: response.data.volume,
timestamp: Date.now(),
}),
});Add WebSocket Source
// Add WebSocket data source
const source = await integrations.addWebSocket({
name: 'live-prices',
description: 'Real-time price feed',
// WebSocket config
url: 'wss://stream.example.com/prices',
// Message handlers
onMessage: (data) => ({
type: 'price',
symbol: data.s,
price: parseFloat(data.p),
timestamp: data.t,
}),
// Subscription message
subscribe: {
method: 'SUBSCRIBE',
params: ['btcusdt@trade'],
},
// Reconnect settings
reconnect: true,
reconnectIntervalMs: 5000,
});Subscribe to Data
// Subscribe to real-time updates
integrations.subscribe('my-signals', (data) => {
console.log(`Signal: ${data.signal} ${data.symbol}`);
console.log(`Confidence: ${data.confidence}`);
if (data.signal === 'BUY' && data.confidence > 0.8) {
// Execute trade logic
}
});
// Subscribe to multiple sources
integrations.subscribeAll(['fedwatch', 'crypto', 'my-signals'], (source, data) => {
console.log(`[${source}] ${JSON.stringify(data)}`);
});Get Latest Data
// Get current data from source
const fedData = await integrations.getData('fedwatch');
console.log('Fed Rate Probabilities:');
for (const meeting of fedData.meetings) {
console.log(`${meeting.date}: ${meeting.probabilities}`);
}
// Get with freshness check
const data = await integrations.getData('crypto', {
maxAgeMs: 60000, // Refetch if older than 60s
});Check Status
// Get source status
const status = await integrations.getStatus('my-api');
console.log(`Status: ${status.status}`); // 'healthy' | 'degraded' | 'error'
console.log(`Last fetch: ${status.lastFetch}`);
console.log(`Last error: ${status.lastError}`);
console.log(`Fetch count: ${status.fetchCount}`);
console.log(`Error count: ${status.errorCount}`);
// Get all statuses
const all = await integrations.getAllStatuses();---
Built-in Data Sources
| Source | Type | Data | Refresh |
|---|---|---|---|
| fedwatch | REST | Fed rate probabilities | 5 min |
| 538 | REST | Election forecasts | 1 hour |
| silver | REST | Silver Bulletin forecasts | 1 hour |
| rcp | REST | Polling averages | 15 min |
| odds-api | REST | Sports betting odds | 1 min |
| polymarket | WebSocket | Market prices | Real-time |
| kalshi | WebSocket | Market prices | Real-time |
| binance | WebSocket | Crypto prices | Real-time |
---
Custom Source Types
| Type | Best For | Latency |
|---|---|---|
| webhook | External signals pushed to you | Instant |
| rest | APIs you poll periodically | Seconds |
| websocket | Real-time streaming data | Milliseconds |
---
Using Data in Bots
import { createTradingBot } from 'clodds/trading';
import { createIntegrationsManager } from 'clodds/integrations';
const integrations = createIntegrationsManager();
const bot = createTradingBot();
// Use custom signals in bot strategy
integrations.subscribe('my-signals', async (signal) => {
if (signal.signal === 'BUY' && signal.confidence > 0.9) {
await bot.execute({
platform: 'polymarket',
market: signal.symbol,
side: 'YES',
size: 100 * signal.confidence,
});
}
});
// Use Fed data for macro bets
integrations.subscribe('fedwatch', async (data) => {
const cutProb = data.meetings[0].probabilities['25bp_cut'];
if (cutProb > 0.8) {
// High probability of rate cut
await bot.execute({
platform: 'kalshi',
market: 'fed-rate-cut',
side: 'YES',
size: 500,
});
}
});---
Environment Variables
# Built-in sources
CME_FEDWATCH_API_KEY=your-key
FIVETHIRTYEIGHT_API_KEY=your-key
ODDS_API_KEY=your-key
# Custom sources
MY_SIGNALS_WEBHOOK_SECRET=your-secret
MY_API_KEY=your-key---
Best Practices
1. Validate incoming data — Use schemas for webhooks 2. Set appropriate intervals — Don't poll too frequently 3. Handle errors gracefully — Sources will fail sometimes 4. Monitor freshness — Alert on stale data 5. Transform consistently — Normalize data formats 6. Use WebSocket for latency — When milliseconds matter
/**
* Integrations CLI Skill
*
* Commands:
* /integrations - List all connected integrations
* /integrations status - Connection status for all platforms
* /integrations connect <platform> - Connect a platform
* /integrations disconnect <platform> - Disconnect a platform
*/
async function execute(args: string): Promise<string> {
const parts = args.trim().split(/\s+/);
const cmd = parts[0]?.toLowerCase() || 'list';
try {
const _credPath = '../../../credentials/index';
const { createCredentialsManager } = await import(_credPath);
const { createDatabase } = await import('../../../db/index');
const db = createDatabase();
const manager = createCredentialsManager(db);
const userId = 'default';
switch (cmd) {
case 'list':
case '': {
// Check which platforms have credentials configured
const platforms = [
{ name: 'Polymarket', id: 'polymarket', env: 'POLY_API_KEY' },
{ name: 'Kalshi', id: 'kalshi', env: 'KALSHI_API_KEY' },
{ name: 'Manifold', id: 'manifold', env: 'MANIFOLD_API_KEY' },
{ name: 'Binance Futures', id: 'binance', env: 'BINANCE_API_KEY' },
{ name: 'Bybit', id: 'bybit', env: 'BYBIT_API_KEY' },
{ name: 'MEXC', id: 'mexc', env: 'MEXC_API_KEY' },
{ name: 'Hyperliquid', id: 'hyperliquid', env: 'HYPERLIQUID_API_KEY' },
];
let output = '**Connected Integrations**\n\n';
output += '| Platform | Status |\n|----------|--------|\n';
for (const p of platforms) {
const hasCreds = await manager.hasCredentials(userId, p.id as any);
const hasEnv = Boolean(process.env[p.env]);
const status = hasCreds ? 'Connected (db)' : hasEnv ? 'Connected (env)' : 'Not configured';
output += `| ${p.name} | ${status} |\n`;
}
output += '\n**Data Feeds:**\n';
output += ' Opinion, Betfair, Metaculus, Smarkets, PredictIt, PredictFun, Veil\n';
output += ' News, Weather (NOAA), Whale tracking\n';
output += '\nUse `/integrations status` for detailed health check.';
return output;
}
case 'status': {
const platforms = [
{ name: 'Polymarket', id: 'polymarket', env: 'POLY_API_KEY', url: 'https://clob.polymarket.com' },
{ name: 'Kalshi', id: 'kalshi', env: 'KALSHI_API_KEY', url: 'https://api.elections.kalshi.com' },
{ name: 'Binance', id: 'binance', env: 'BINANCE_API_KEY', url: 'https://fapi.binance.com' },
];
let output = '**Integration Health**\n\n';
for (const p of platforms) {
const hasCreds = await manager.hasCredentials(userId, p.id as any);
const hasEnv = Boolean(process.env[p.env]);
const configured = hasCreds || hasEnv;
output += `**${p.name}**\n`;
output += ` Credentials: ${configured ? 'Yes' : 'No'}\n`;
output += ` API: ${p.url}\n\n`;
}
return output;
}
case 'connect': {
if (!parts[1]) return 'Usage: /integrations connect <platform>\n\nPlatforms: polymarket, kalshi, manifold, binance, bybit, mexc, hyperliquid';
const platform = parts[1].toLowerCase();
const has = await manager.hasCredentials(userId, platform as any);
if (has) return `Already connected to **${platform}**. Use \`/creds check ${platform}\` to verify.`;
return `To connect **${platform}**, set credentials:\n\n\`/creds set ${platform} api_key <your-key>\`\n\`/creds set ${platform} api_secret <your-secret>\``;
}
case 'disconnect': {
if (!parts[1]) return 'Usage: /integrations disconnect <platform>';
const platform = parts[1].toLowerCase();
await manager.deleteCredentials(userId, platform as any);
return `Disconnected from **${platform}**. Credentials removed.`;
}
default:
return helpText();
}
} catch (error) {
return `Error: ${error instanceof Error ? error.message : String(error)}`;
}
}
function helpText(): string {
return `**Integrations Commands**
/integrations - List all integrations
/integrations status - Connection health
/integrations connect <platform> - Connect platform
/integrations disconnect <platform> - Disconnect platform
**Platforms:** polymarket, kalshi, manifold, binance, bybit, mexc, hyperliquid`;
}
export default {
name: 'integrations',
description: 'Manage platform integrations - prediction markets, exchanges, messaging',
commands: ['/integrations', '/integration'],
handle: execute,
};