Crate parser_proxy_ws

Crate parser_proxy_ws 

Source
Expand description

§Parser Proxy WebSocket Library

A high-performance Solana DEX event parsing and WebSocket streaming library.

§Features

  • Ultra-fast parsing: 10-20μs latency for real-time trading applications
  • Multi-DEX support: PumpFun, PumpSwap, Raydium, Orca, Meteora, and more
  • WebSocket streaming: Real-time event broadcasting to multiple clients
  • Configurable filtering: Fine-grained control over which events to monitor
  • Easy integration: Simple API with just a config file path

§Usage

use parser_proxy_ws::ParserProxyServer;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    // Start the parser proxy server with a config file
    let server = ParserProxyServer::new("config.toml")?;
    server.start().await?;
    Ok(())
}

Modules§

prelude
Re-export commonly used types for convenience

Structs§

Config
ParserProxyServer
The main parser proxy server that handles gRPC subscriptions and WebSocket broadcasting

Functions§

run_server
Convenience function to start a parser proxy server with default settings