A robust backend server for Gexbot API data orchestration and real-time visualization.
- FastAPI - Modern REST API framework
- Real-time Streaming - WebSocket support for live data
- No Database - Pure in-memory processing
- Modular Clients - Separate client for each Gexbot endpoint
- Background Tasks - Continuous data fetching
gexbot-api-server/
├── api/ # FastAPI routes and endpoints
├── clients/ # Gexbot API clients
├── orchestrator/ # Real-time data orchestration
├── cache/ # In-memory cache management
├── models/ # Response data models
├── core/ # Base classes and utilities
└── tests/ # Test suite
-
Setup Environment:
cp .env.example .env # Edit .env with your Gexbot API key -
Install Dependencies:
pip install -r requirements.txt
-
Run Server:
python main.py
-
Access API:
- REST API: http://localhost:8000
- Documentation: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
- GET /api/tickers - Get available ticker symbols
- GET /api/classic/gex-chain/{symbol} - GEX chain data
- GET /api/classic/gex-major-levels/{symbol} - GEX major levels
- GET /api/classic/gex-max-changes/{symbol} - GEX max changes
- GET /api/state/gex-profile/{symbol} - GEX profile
- GET /api/state/gex-profile-major-levels/{symbol} - GEX profile major levels
- GET /api/state/gex-profile-max-change/{symbol} - GEX profile max change
- GET /api/state/options-profile-greeks/{symbol} - Options profile Greeks
- WebSocket Streaming - Live data updates
- Background Fetching - Continuous data refresh
- In-Memory Cache - Fast data access
- Rate Limiting - API protection
pytest tests/Generated with Gexbot API Server Generator