How It Works
Syra is built as a modular intelligence layer that combines multiple data sources, AI reasoning, and flexible delivery platforms. This page explains the architecture, data flow, and key components that power Syra’s trading intelligence.Architecture Overview
Data Ingestion
Syra continuously ingests data from multiple sources:
- Market data from Binance, CoinGecko, DEXScreener
- On-chain data from Nansen and Solana RPC nodes
- Social sentiment from X/Twitter and news aggregators
- Risk data from Rugcheck and Bubblemaps
AI Processing
Data is processed through AI reasoning layers:
- Technical indicator calculation (RSI, MACD, etc.)
- Sentiment analysis on news and social data
- Pattern recognition for smart money behavior
- Signal generation with confidence scoring
Intelligence Synthesis
Multiple signals are combined into actionable insights:
- Cross-validation across data sources
- Risk-aware perspective generation
- Structured research with cited sources
- Confidence levels and scenario analysis
System Components
Backend API
The core API (/api) powers all intelligence endpoints:
- Express.js REST API with x402 payment middleware
- MongoDB for data storage and caching
- n8n webhook integration for AI processing
- Multi-source data aggregation with fallbacks
Data Sources Integration
- Market Data
- On-Chain Data
- Risk & Safety
Binance API
- Price feeds for major cryptocurrencies
- Volume and OHLC data
- Correlation matrix calculations
- 1m, 5m, 15m, 1h, 4h, 1d intervals
- Simple price endpoint for quick quotes
- On-chain token data (Solana, Base, Ethereum)
- Pool search and trending pools
- Market cap and volume metrics
- Token profiles and community takeovers
- TVL tracking across DEXs
- Boosted tokens and promotions
- Real-time DEX analytics
AI Reasoning Layer
Syra uses AI at multiple stages:Signal Generation
Signal Generation
How signals are generated:
- Data Collection — Gather technical indicators, volume, price action
- Pattern Recognition — Identify chart patterns and setups
- Risk Calculation — Determine optimal entry, targets, stop-loss
- Confidence Scoring — AI assigns confidence level (0-100%)
- Explanation Generation — Natural language explanation of reasoning
Research Synthesis
Research Synthesis
Deep research workflow:
- Query Analysis — Understand user intent and scope
- Source Discovery — Search across web, news, social media
- Information Extraction — Pull relevant data from sources
- Cross-Validation — Verify facts across multiple sources
- Synthesis — Combine into coherent narrative with citations
Sentiment Analysis
Sentiment Analysis
Natural language processing for sentiment:
- News headline sentiment scoring
- Social media post classification (bullish/bearish/neutral)
- KOL influence weighting
- Temporal sentiment trend analysis
- Confidence-weighted aggregation
Smart Money Detection
Smart Money Detection
Machine learning for wallet classification:
- Historical performance analysis
- Trading pattern recognition
- Portfolio composition analysis
- Timing and execution quality scoring
- Continuous model retraining
Data Flow
Here’s how a typical signal request flows through the system:All API requests go through x402 payment verification (except dev routes). This ensures fair usage and sustainable operation.
Payment & Pricing (x402)
Syra uses the x402 protocol for pay-per-use API access:How x402 Works
Pricing Examples
| Endpoint | Cost (USDC) | Description |
|---|---|---|
/news | $0.01 | Latest crypto news by ticker |
/signal | $0.10 | AI-generated trading signal |
/research?type=quick | $0.50 | Quick research on topic |
/research?type=deep | $5.00 | Deep research with citations |
/token-god-mode | $10.00 | Nansen token god mode (high cost due to Nansen API) |
80% of x402 fees go to SYRA buyback & burn. 50% of revenue also funds buyback & burn, creating deflationary pressure.
Platforms & Interfaces
Telegram Bot
Architecture:- Telegram Bot API integration
- Command parser and natural language understanding
- Session management and user preferences
- Response formatting for mobile readability
/signal <token>— Get trading signals/news <ticker>— Latest news/list— Supported tokens- Natural language queries
x402 Autonomous Agent
How it works:- Registered on x402scan as discoverable agent
- Exposes all endpoints with pricing and schemas
- Autonomous agents can discover and pay for intelligence
- Runs automated research cycles and monitoring
- Automated market analysis
- News and narrative monitoring
- Signal interpretation pipelines
- Cross-agent intelligence sharing
MCP Server
Architecture:- Model Context Protocol (MCP) implementation
- Stdio transport for AI assistant integration
- 30+ tools exposing Syra APIs
- Compatible with Cursor, Claude Desktop, etc.
- AI assistant spawns MCP server process
- User asks: “What’s the latest Bitcoin analysis?”
- AI calls
syra_v2_signaltool with{token: "bitcoin"} - MCP server makes HTTP request to Syra API
- Response returned to AI for natural language presentation
API Playground
Features:- Interactive API explorer
- Privy wallet integration (Solana + Base + email/social)
- x402 payment handling
- Request/response examples
- API key management
Technology Stack
Backend
- Runtime: Node.js
- Framework: Express.js
- Database: MongoDB
- Payment: x402 protocol
- AI: Jatevo (Claude, GPT-4)
Frontend
- Framework: Next.js 16
- UI: React 19, Tailwind CSS
- Wallet: Privy (multi-chain)
- Hosting: Vercel
Blockchain
- Primary: Solana
- Token: SPL Token ($SYRA)
- Payment: x402 (USDC)
- DEX: Jupiter integration
Automation
- Workflows: n8n
- AI Processing: Claude via n8n
- Scheduling: Cron jobs
- Monitoring: Uptime checks
Scalability & Performance
Caching Strategy
- Market data: 1-5 minute cache for price/volume
- News/events: 15-30 minute cache
- Research: 1-hour cache for identical queries
- Token statistics: 5-minute cache
Rate Limiting
- Free tier: 10 requests/minute
- Paid (x402): No hard limits, pay-per-use
- API keys: Custom rate limits
Infrastructure
- API hosted on scalable cloud infrastructure
- MongoDB for flexible data storage
- CDN for static assets
- Load balancing for high availability
Development & Testing
Local Development
Run Syra locally with dev routes (no payment required):Testing Tools
- API Playground: Interactive testing with wallet connection
- MCP Server: Test with
SYRA_USE_DEV_ROUTES=true - Postman Collection: Available for API testing
Security & Privacy
API Security
API Security
- x402 payment verification on all paid endpoints
- Rate limiting to prevent abuse
- CORS configuration for browser security
- Helmet.js for HTTP security headers
- Input validation and sanitization
Wallet Security
Wallet Security
- Non-custodial agent wallets
- TweetNaCl for cryptographic operations
- Secure key storage (environment variables)
- No private keys in code or logs
Data Privacy
Data Privacy
- No PII collection without consent
- API request logs anonymized
- Telegram user IDs hashed
- GDPR-compliant data handling
Next Steps
Use Cases
See how different users leverage this architecture.
API Reference
Dive into the technical API documentation.
Integration Guide
Learn how to integrate Syra into your workflows.
Tokenomics
Understand the economics behind x402 payments.