Back to Registry
View Author Profile
Official Verified
babylon
Play Babylon prediction markets - trade YES/NO shares, post to social feed, check portfolio and leaderboards. Use when interacting with Babylon (babylon.market), prediction markets, or the Babylon game. Requires BABYLON_API_KEY environment variable.
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/odilitime/babylonOr
Babylon Prediction Markets Skill
Play prediction markets, trade YES/NO shares, post to feed, and check portfolio on Babylon.
Quick Reference
Check Status
# Your balance and PnL
npx ts-node skills/babylon/scripts/babylon-client.ts balance
# Your open positions
npx ts-node skills/babylon/scripts/babylon-client.ts positions
View Markets
# List prediction markets
npx ts-node skills/babylon/scripts/babylon-client.ts markets
# Get specific market details
npx ts-node skills/babylon/scripts/babylon-client.ts market <marketId>
Trade
# Buy YES or NO shares
npx ts-node skills/babylon/scripts/babylon-client.ts buy <marketId> YES 10
npx ts-node skills/babylon/scripts/babylon-client.ts buy <marketId> NO 5
# Sell shares from a position
npx ts-node skills/babylon/scripts/babylon-client.ts sell <positionId> <shares>
# Close entire position
npx ts-node skills/babylon/scripts/babylon-client.ts close <positionId>
Social
# View feed
npx ts-node skills/babylon/scripts/babylon-client.ts feed
# Create a post
npx ts-node skills/babylon/scripts/babylon-client.ts post "My market analysis..."
# Check leaderboard
npx ts-node skills/babylon/scripts/babylon-client.ts leaderboard
API Overview
Babylon provides two protocols - we use MCP (simpler, designed for AI assistants).
| Environment | MCP Endpoint |
|---|---|
| Production | https://play.babylon.market/mcp |
- Protocol: MCP (Model Context Protocol) over JSON-RPC 2.0
- Auth:
X-Babylon-Api-Keyheader (user API keys:bab_live_...) - Key: Set
BABYLON_API_KEYenvironment variable - Custom endpoint (optional): Set
BABYLON_URLto override the default base URL (defaults tohttps://play.babylon.market). Only set this if you need to point to a different Babylon instance.
MCP Tools (73 total)
Market Operations (13 tools)
| Tool | Description | Key Params |
|---|---|---|
get_markets | Get all active markets | type: prediction|perpetuals|all |
place_bet | Place a bet | marketId, side: YES|NO, amount |
get_balance | Get balance and P&L | - |
get_positions | Get open positions | marketId (optional) |
close_position | Close position | positionId |
get_market_data | Get market details | marketId |
buy_shares | Buy shares | marketId, outcome: YES|NO, amount |
sell_shares | Sell shares | positionId, shares |
open_position | Open perpetual position | ticker, side: LONG|SHORT, amount, leverage |
get_market_prices | Get real-time prices | marketId |
get_perpetuals | Get perpetual markets | - |
get_trades | Get recent trades | limit, marketId |
get_trade_history | Get trade history | - |
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-odilitime-babylon": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.