CabalSpy WebSocket Documentation

Welcome to the CabalSpy WebSocket service, designed for real-time access to Twitter posts from our detection bot. Unlike traditional API endpoints, the WebSocket provides a live stream of insider trade detections as they are posted, making it ideal for trading bots and applications requiring immediate updates without polling.

Why Use the CabalSpy WebSocket?

Our WebSocket offers:

How to Subscribe

Connect to the WebSocket server at ws://82.29.177.109:8765 using any WebSocket client (e.g., JavaScript WebSocket API, Python’s websockets, or tools like wscat). Once connected, you’ll receive JSON-formatted messages whenever a new tweet is posted by the CabalSpy bot.

Available WebSocket Streams

Explore the available WebSocket stream in the sidebar for detailed documentation and examples. Currently, we offer a single stream for Twitter posts, with plans to expand based on user demand.

Usage and Costs

The WebSocket is free to use and does not deduct API credits, as it’s a push-based service. However, you need a valid API Key to access other API endpoints for historical data (e.g., /api/tweeted-posts). Ensure your server allows connections to port 8765.

Getting Started: Review the Twitter WebSocket documentation in the sidebar, connect your client, and start receiving live updates to power your Solana trading strategies!