Whale API

Build trading bots, fetch market data, manage subscriptions programmatically.

Authentication

Use API keys (Elite plan only). Include your key in the X-API-Key header on every request.

curl https://app.w-bot.app/api/v1/bots \
-H "X-API-Key: pb_live_XXXXXXXXXXXXXXXX"

Generate keys in Profile → API Keys after subscribing to Elite ($199/mo).

Endpoints

Bots

  • GET/api/v1/botsList your bots
  • POST/api/v1/botsCreate a new bot
  • GET/api/v1/bots/{id}Get bot details
  • PUT/api/v1/bots/{id}Update bot config
  • DELETE/api/v1/bots/{id}Delete bot
  • POST/api/v1/bots/{id}/startStart bot
  • POST/api/v1/bots/{id}/stopStop bot

Markets

  • GET/api/v1/marketsList Polymarket markets
  • GET/api/v1/markets/trendingTop markets by volume
  • GET/api/v1/markets/{id}Market details
  • GET/api/v1/markets/{id}/tradesRecent trades

Analytics

  • GET/api/v1/analytics/portfolioTotal P&L, positions
  • GET/api/v1/analytics/tradesTrade history
  • GET/api/v1/analytics/performancePerformance metrics

Webhooks (Elite)

  • GET/api/v1/webhooksList webhooks
  • POST/api/v1/webhooksCreate webhook (Discord/Slack/Telegram)
  • DELETE/api/v1/webhooks/{id}Delete webhook

Rate limits

  • ·Free / Starter / Pro: API not available
  • ·Elite: 10,000 requests/hour

Webhook events

Receive real-time notifications via Discord, Slack, Telegram, or custom HTTPS endpoint.

  • trade.executedBot made a trade
  • whale.detectedWhale Tracker spotted a large trade
  • position.openedStrategy Bot opened a position
  • position.closedStrategy Bot closed a position
  • bot.errorBot encountered an error

SDK

  • JavaScript: npm install @whale/sdk (coming soon)
  • Python: pip install whale-sdk (coming soon)

Get an API key

API access is included in the Elite plan ($199/mo).

Subscribe to Elite →

Need help? Email support@w-bot.app