Unlock potential trading opportunities in the fast-paced crypto markets with the AlphaSeeker API! This powerful FastAPI backend leverages technical analysis, statistical modeling, and cutting-edge AI (GPT-4o) to scan Binance Futures, evaluate signals, and identify potential setups based on your custom criteria.
Version: 1.4.1 (Corrected technical trigger logic, disabled LSTM)
⚡️ Go Beyond Simple Alerts - Get AI-Evaluated Insights! ⚡️
- EXPERIMENTAL TOOL: This software is for educational and experimental purposes ONLY. It's a tool to explore strategy ideas, NOT a guaranteed profit machine.
- HIGH RISK: Cryptocurrency trading involves substantial risk of loss and is not suitable for every investor. This is NOT financial advice.
- BACKTEST LIMITATIONS: Included backtests are based on simplified proxy triggers (RSI) and DO NOT reflect real-world costs or guarantee future results.
- AI IS NOT INFALLIBLE: GPT evaluations depend on prompt quality and data provided. They can be imperfect or wrong. Critical thinking is required.
- USE AT YOUR OWN RISK. The author is not responsible for any financial losses. Always conduct thorough Due Diligence and Your Own Research (DYOR).
- Blazing Fast Scans: Asynchronously analyze hundreds of Binance USDT perpetual futures using CCXT.
- Comprehensive TA: Calculates a wide array of indicators (RSI, SMAs, EMAs, MACD, Bollinger Bands, ATR, ADX, & more).
- Volatility Insights: Utilizes GARCH(1,1) and VaR for risk context.
- Intelligent Signal Triggering: Combines indicators (currently RSI + SMA Trend + ADX) to pinpoint initial potential setups.
- 🤖 AI-Powered Evaluation (GPT-4o Ready): Sends triggered signals to OpenAI's GPT for an in-depth evaluation against the full market picture:
- Confirms or rejects initial signals based on confluence or contradictions.
- Suggests tactical entry, stop-loss, and take-profit levels.
- Provides an AI confidence score for evaluated setups.
- Proxy Backtesting: Get a quick historical perspective with a built-in (simplified RSI-based) backtester.
- Deeply Customizable Filtering: Filter scan results by GPT confidence, backtest score, R/R ratio, trade count, win rate, profit factor, ADX, SMA alignment, and more!
- Clean FastAPI Interface: Easy to integrate and interact with via a REST API.
- Prerequisites: Python 3.8+, OpenAI API Key.
- Clone:
git clone <your_github_repo_url> cd AlphaSeeker-API
- Setup Environment:
python -m venv venv # Windows: .\venv\Scripts\activate | macOS/Linux: source venv/bin/activate pip install -r requirements.txt cp .env.example .env - Add API Key: Edit the
.envfile and paste your OpenAI key:(Remember: Keep yourOPENAI_API_KEY="your_real_openai_api_key_here"
.envfile secure and out of Git!) - Run the Beast! (Make sure your script is named
main_api.py)uvicorn main_api:app --host 0.0.0.0 --port 8029 --reload
- Explore: Open your browser to
http://127.0.0.1:8029/docsfor the interactive API docs (Swagger UI).
GET /api/crypto/tickers: Get the list of scannable Binance USDT-M perpetuals.POST /api/crypto/analyze: Deep-dive analysis on a single symbol.POST /api/crypto/scan: Unleash the market scanner! Customize filters in the request body (ScanRequest) to find opportunities matching your criteria.
- Data Fetch & TA: Gets historical data and calculates all indicators.
- Technical Trigger: Checks if the current state meets predefined technical conditions (e.g., RSI + Trend + ADX).
- AI Evaluation (Conditional): If a technical trigger fires, it asks GPT to evaluate the signal's strength, considering all indicators, and suggest trade parameters.
- Proxy Backtest: Runs a simple RSI-based backtest for historical context (independent of GPT's evaluation).
- Filtering & Ranking: Applies your filters (
ScanRequest) to the results and ranks the survivors.
AlphaSeeker is a powerful starting point, but remember:
- Finding consistent "alpha" is the holy grail - this tool aids the search but doesn't guarantee discovery.
- The default technical trigger is just one example; experimentation is encouraged!
- GPT's effectiveness is tied to prompt engineering and the quality of the input data.
- Backtest scores are simplified proxies.
Future Ideas: More trigger strategies, enhanced backtesting (fees, slippage, drawdown), more sophisticated filtering, alternative AI models.
Got ideas? Found a bug? Contributions are welcome! Please open an issue or submit a Pull Request.