No description
Find a file
2025-10-27 17:14:12 +03:00
src feat(notify): Telegram startup summary and BUY/SELL alerts; AGGR test notifications\n\n- Add TELEGRAM_TOKEN and TELEGRAM_CHAT_ID to settings\n- Introduce notify/telegram client using httpx\n- Send startup summary message on app start\n- Send BUY/SELL decision messages (normal and AGGR test flows)\n- Update example.env with Telegram config placeholders 2025-10-23 20:45:32 +03:00
tests feat(snapshot): add breakout levels, EMA20 slope %, normalized ATR %, and aggressiveness to LLM payload 2025-10-22 19:22:36 +03:00
.gitignore fix(gitignore): only re-include src/data Python sources; keep caches ignored 2025-10-21 21:13:41 +03:00
AGENTS.md Add AGENTS.md 2025-10-21 15:40:32 +03:00
example.env feat(notify): Telegram startup summary and BUY/SELL alerts; AGGR test notifications\n\n- Add TELEGRAM_TOKEN and TELEGRAM_CHAT_ID to settings\n- Introduce notify/telegram client using httpx\n- Send startup summary message on app start\n- Send BUY/SELL decision messages (normal and AGGR test flows)\n- Update example.env with Telegram config placeholders 2025-10-23 20:45:32 +03:00
README.md feat: add execution flag, UTC scheduler, tests, and docs 2025-10-21 17:48:59 +03:00
requirements.txt feat: add execution flag, UTC scheduler, tests, and docs 2025-10-21 17:48:59 +03:00

bybit-15m-gpt

Intraday 15-minute pipeline: fetch Bybit OHLCV via ccxt, compute TA indicators, and classify next action (BUY/SELL/HOLD) using OpenAI. Optional trade execution with simple risk checks.

Quickstart

  • Create venv: python -m venv .venv && source .venv/bin/activate
  • Install deps: pip install -r requirements.txt
  • Copy and edit env: cp example.env .env (set OPENAI_API_KEY)
  • Run (UTC-aligned): python -m src.main

Config

Set in .env (see example.env):

  • OPENAI_API_KEY, OPENAI_MODEL
  • BYBIT_API_KEY, BYBIT_API_SECRET, BYBIT_TESTNET=true
  • SYMBOL=BTC/USDT, TIMEFRAME=15m
  • MAX_POSITION_USDT, RISK_PER_TRADE
  • Execution controls: EXECUTE_TRADES, MIN_CONFIDENCE, MIN_USDT_BALANCE

Tests

  • Run: pytest -q
  • Whats covered:
    • Indicators pipeline integrity (tests/test_indicators.py)
    • LLM decision shape with mocked OpenAI client (tests/test_llm_decide.py)

Notes

  • Scheduler runs in UTC and triggers at 5s after every 15m boundary.
  • Trade execution is off by default. Enable via EXECUTE_TRADES=true and review sizing/risk fields first. Spot testnet support may vary on Bybit.