Sniper-RS is a production-ready, microservices-based trading bot framework designed for high-frequency trading across multiple venues including DEXs, NFT markets, and CEXs. Built with Rust for unmatched performance and memory safety, it provides a robust foundation for developing sophisticated trading strategies with enterprise-grade features.
- π High Performance: Built with Rust for speed and safety
- π§ Multi-Venue Support: Trade on DEXs, NFT markets, and CEXs
- ποΈ Microservices Architecture: Scalable and maintainable design
- π‘οΈ Enterprise Security: Key isolation, mTLS, and RBAC
- π Comprehensive Monitoring: Prometheus, OpenTelemetry, and alerting
- π Compliance Ready: Geo, venue, and KYC policy engines
- Microservices Design: 20+ independently deployable services
- Event-Driven: NATS/Kafka message bus for high-throughput communication
- gRPC Integration: High-performance service-to-service communication
- Cross-Chain Support: Ethereum, BSC, Polygon and other EVM-compatible chains
- Cloud-Native: Docker and Kubernetes deployment configurations
- Multi-Venue Trading: Support for DEXs, NFT markets, and CEXs
- Advanced Signal Processing: On-chain event monitoring and off-chain data feeds
- Strategy Engine: Multiple strategy types including launch sniping and liquidity trading
- Risk Management: Honeypot detection, owner power analysis, and position limits
- Execution Engine: Multiple modes including MEV bundle submission
- Exit Strategies: Take profit, stop loss, and trailing stop mechanisms
- CEX Integration: REST and WebSocket clients for major exchanges
- Monitoring & Telemetry: Prometheus metrics, OpenTelemetry tracing, and alerting
- Storage & Persistence: Database storage with position tracking and idempotency
- Distributed Locks: Redis-based locks to prevent duplicate actions
- Policy Engine: Geo, venue, and KYC-based compliance policies
- Security: Key isolation, mTLS support, and RBAC
βββββββββββββββββββ ββββββββββββββββββ βββββββββββββββββββ β svc-gateway β β svc-strategy β β svc-executor β β (HTTP API) βββββΊβ (Signal Proc.) βββββΊβ (Trade Exec.) β βββββββββββββββββββ ββββββββββββββββββ βββββββββββββββββββ β² β² β² β β β βΌ βΌ βΌ βββββββββββββββββββ ββββββββββββββββββ βββββββββββββββββββ β svc-risk β β svc-policy β β svc-storage β β (Risk Mgmt.) β β (Compliance) β β (Persistence) β βββββββββββββββββββ ββββββββββββββββββ βββββββββββββββββββ β² β² β² β β β βΌ βΌ βΌ βββββββββββββββββββ ββββββββββββββββββ βββββββββββββββββββ β svc-cex β β svc-nft β β Message Bus β β (CEX Connect) β β (NFT Markets) β β (NATS/Kafka) β βββββββββββββββββββ ββββββββββββββββββ βββββββββββββββββββ
- sniper-core: Core data structures and traits
- sniper-amm: AMM implementations (CPMM, Stableswap, Uniswap V3)
- sniper-cex: CEX REST/WebSocket clients
- sniper-risk: Risk evaluation and honeypot detection
- sniper-policy: Compliance and policy engines
- sniper-storage: Database storage and distributed locks
- sniper-telemetry: Monitoring, metrics, and alerting
- svc-gateway: HTTP API gateway and administration interface
- svc-strategy: Signal processing and strategy execution
- svc-executor: Trade execution across multiple venues
- svc-risk: Risk management and compliance checking
- svc-cex: CEX integration and order management
- svc-nft: NFT marketplace integration
- svc-policy: Policy enforcement and user context management
- Rust 1.80+
- Docker (for containerized deployment)
- Kubernetes (for production deployment)
- Redis (for distributed locks)
- PostgreSQL (for persistence)
`οΏ½ash
git clone https://github.com/attakdefand/snipping-bot.git cd sniper-rs
cargo build --release
cargo test
docker-compose up -d `
Configuration is handled through TOML files in the configs/ directory:
- config.base.toml: Base configuration
- config.local.toml: Local development overrides
- config.prod.toml: Production configuration
The project includes comprehensive tests: `οΏ½ash
cargo test
cargo test --test integration_test
cargo test -p sniper-storage `
- Signal Processing Latency: < 50ms
- Trade Plan Generation: < 100ms
- Risk Assessment: < 200ms
- Execution Submission: < 150ms
- CEX Integration Latency: < 100ms
- Test Coverage: 95%
- Private key access limited to svc-executor only
- mTLS support for service mesh integration
- JWT-based role-based access control
- East-West communication restrictions
Contributions are welcome! Please see CONTRIBUTING.md for details on how to contribute to this project.
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a pull request
For support, please open an issue on GitHub or contact the maintainers.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.