Trade

C 68 completed
Cli Tool
unknown / python · medium
1,079
Files
174,061
LOC
1
Frameworks
5
Languages

Pipeline State

completed
Run ID
#370719
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Cataloged
Decision
proceed
Novelty
61.67
Framework unique
Isolation
Last stage change
2026-05-10 03:35:28
Deduplication group #48140
Member of a group with 14 similar repo(s) — this repo is canonical view group →
Top concepts (2)
Project DescriptionWeb Backend
Repobility — same analyzer, your code, free for public repos · /scan/

AI Prompt

Create a unified backtest and live trading engine, similar to what's described for Bybit perpetual futures. I need the system to allow users to define trading strategies using a declarative YAML-based DSL. This DSL should support indicators (like RSI and Bollinger Bands), market structure detectors, and rich conditions. The engine must be able to run these strategies against historical data stored in DuckDB for backtesting, and also connect live using Bybit's WebSocket and REST APIs. Please ensure the architecture supports running the same logic for both modes without code changes.
python fastapi trading backtesting bybit yaml quant finance websocket duckdb
Generated by gemma4:latest

Catalog Information

plife507__TRADE is a unified backtest and live trading engine for Bybit perpetual futures, allowing users to define trading strategies as YAML 'Plays' using indicators and market structure detectors.

Description

plife507__TRADE is an open-source trading engine that enables users to create and execute trading strategies on Bybit perpetual futures. It features a declarative YAML-based strategy DSL (Domain Specific Language) for defining trades, which can be run in both backtest and live modes without requiring code changes. The engine includes incremental indicators, market structure detectors, and risk management tools.

الوصف

plife507__TRADE هو محرك تجاري مُوحّد يتيح للمستخدمين إنشاء وتنفيذ استراتيجيات التداول على الفوتبولز المستمرة في Bybit. يحتوي على لغة DSL (Domain Specific Language) YAML المحددة للتعريف بالتجارة، والتي يمكن تشغيلها في كل من وضع التنبؤ والوضع الحقيقي دون حاجة إلى تغييرات كودية. يتضمن المحرك indicators التزاحمية، ومراقبي الهيكل السوقي، ومكافحة المخاطر.

Novelty

7/10

Tags

trading backtesting live-trading bybit-perpetual-futures declarative-strategy-dsl incremental-indicators market-structure-detectors

Technologies

fastapi numpy pandas pydantic rich uvicorn

Claude Models

claude-opus-4.6

Quality Score

C
67.7/100
Structure
75
Code Quality
63
Documentation
80
Testing
85
Practices
52
Security
45
Dependencies
60

Strengths

  • CI/CD pipeline configured (github_actions)
  • Good test coverage (74% test-to-source ratio)
  • Consistent naming conventions (snake_case)
  • Properly licensed project

Weaknesses

  • Potential hardcoded secrets in 1 files
  • 16093 duplicate lines detected \u2014 consider DRY refactoring
  • 47 'god files' with >500 LOC need decomposition

Recommendations

  • Add a linter configuration to enforce code style consistency
  • Move hardcoded secrets to environment variables or a secrets manager
  • Address 46 TODO/FIXME items \u2014 consider tracking them as issues

Security & Health

31.6h
Tech Debt (A)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (0)
Generated by Repobility's multi-pass static-analysis pipeline (https://repobility.com)
MIT
License
6.8%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

python
53.9%
markdown
29.6%
yaml
16.5%
json
0.0%
text
0.0%

Frameworks

FastAPI

Concepts (2)

Findings curated by Repobility · https://repobility.com
CategoryNameDescriptionConfidence
Repobility — the code-quality scanner for AI-generated software · https://repobility.com
auto_descriptionProject DescriptionA unified backtest and live trading engine for Bybit perpetual futures, driven by a declarative YAML-based strategy DSL.80%
auto_categoryWeb Backendweb-backend70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/94925.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV