infrastructurefastapipython
Forex Crypto News A2A Protocol
26AI-powered market intelligence agent for crypto and forex analysis with comprehensive market summaries
Updated 2025-11-09
Quality Score26/100
★ Community
0
◷ Freshness
45
✓ Official
30
⚡ Skills
10
⬡ Protocol
40
🔒 Security
20
Getting Started
1Clone the repository
$ git clone https://github.com/lexmanthefirst/forex-crypto-news-a2a-protocol
2Navigate to the project
$ cd forex-crypto-news-a2a-protocol
3Install dependencies
$ pip install -r requirements.txt
4Run the agent
$ uvicorn main:app --reload
Or connect to the hosted endpoint: https://forex-crypto-news-a2a-protocol-production.up.railway.app/a2a/agent/market
README
Market Intelligence A2A Agent
Real-time cryptocurrency and forex analysis agent using the A2A protocol. Supports natural language queries, technical analysis, and AI-powered insights.
Features
- 250+ cryptocurrencies - Flexible name recognition (BTC, bitcoin, Bitcoin, etc.)
- Forex pairs - Real-time exchange rates (EUR/USD, GBP/JPY, etc.)
- AI analysis - Google Gemini-powered market insights
- Technical indicators - 7-day trends, SMA, volatility
- News aggregation - Multi-source crypto news
- Conversation history - Multi-turn conversations with context
- Smart caching - In-memory fallback when Redis is down
- Intent classification - Natural language understanding
Quick Start
# Install
pip install -e .
# Run
uvicorn main:app --reload
API Usage
curl -X POST http://localhost:8000/a2a/agent/market \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "1",
"method": "message/send",
"params": {
"message": {
"role": "user",
"parts": [{"kind": "text", "text": "What'\''s BTC doing?"}]
}
}
}'
Endpoints
POST /a2a/agent/market- Main A2A protocol endpointGET /agent.json- Agent capabilities and metadataGET /health- Health check
Docker
docker-compose up -d
Or pull from GitHub Container Registry:
docker pull ghcr.io/lexmanthefirst/forex-crypto-news-a2a-protocol:latest
Capabilities
StreamingPush NotificationsMulti-TurnAuth: none
dockerfastapiredis-cache