Skip to content
baselsmPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Gexbot API Server

A robust backend server for Gexbot API data orchestration and real-time visualization.

Architecture

  • 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

Project Structure

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

Quick Start

  1. Setup Environment:

    cp .env.example .env
    # Edit .env with your Gexbot API key
  2. Install Dependencies:

    pip install -r requirements.txt
  3. Run Server:

    python main.py
  4. Access API:

API Endpoints

Tickers

  • GET /api/tickers - Get available ticker symbols

Classic

  • 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

State

  • 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

Real-time Features

  • WebSocket Streaming - Live data updates
  • Background Fetching - Continuous data refresh
  • In-Memory Cache - Fast data access
  • Rate Limiting - API protection

Testing

pytest tests/

Development

Generated with Gexbot API Server Generator

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages