Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

the-trading-tool/trading

https://github.com/the-trading-tool/trading · scanned 2026-06-16 00:33 UTC (2 months, 2 weeks ago)

76 raw signals (0 security + 76 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 months, 2 weeks ago · v1 · 58 actionable findings from 1 signal source. 18 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 71.8/100 with 88.9% coverage. It contains 1324 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 76 findings — concentrated in quality (49), software (23), security (2). Risk profile is high: 0 critical, 2 high, 9 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 46 of 58 actionable findings. 76 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high System graph security security conf 1.00 Insecure pattern 'eval_used' in Trading/tradinglib/indicator/indicator.py:142
Found a known-risky pattern (eval_used). Review and replace if possible.
Trading/tradinglib/indicator/indicator.py:142 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in Trading/tradinglib/tools.py:716
Found a known-risky pattern (eval_used). Review and replace if possible.
Trading/tradinglib/tools.py:716 Eval used
medium System graph quality Agent instructions conf 1.00 Agent instructions exist but release-hardening basics are missing
AI-coder instruction files were found, but the repo is missing ci, tests. Treat this as a contract gap: the agent is guided, but the generated output is not yet guarded by the controls that make it repeatable.
Repo hardeningGenerated repo pattern
medium System graph quality Placeholder conf 1.00 Critical user flow still appears backed by mock or placeholder data
A payment/auth/admin/order/billing-style flow contains mock, fake, TODO, dummy, or placeholder markers in runtime source. In the Fable corpus this is a high-leverage completeness smell: the app can look finished while the money, identity, or tenant flow is still scaffolded.
Mock dataCritical flowGenerated repo pattern
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — Trading/launcher.py:92
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — Trading/tradinglib/av_client.py:87
`requests.get(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — Trading/tradinglib/pushover_notifier.py:70
`requests.post(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — Trading/tradinglib/taskmanager.py:40
`subprocess.Popen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph cicd CI/CD security conf 1.00 No CI/CD pipelines detected
No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints.
CI/CD securityCoverage
medium System graph quality Placeholder conf 1.00 Placeholder or mock-heavy implementation detected
Found 20 placeholder/mock markers across 11 source files. This often means the repo looks complete while core flows still use generated scaffolding or fake data.
Mock dataIncompleteGenerated repo pattern
medium System graph quality Tests conf 1.00 Very low test-to-source ratio
1 test file(s) for 123 source file(s) (ratio 0.01). Consider adding integration or unit tests for critical paths.
Coverage
low System graph quality Production readiness conf 1.00 Composite production-readiness gap
Multiple low-cost hardening controls are missing together: ci, tests. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation.
Repo hardeningGenerated repo pattern
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 43 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup.
CleanupRepo hardeningGenerated repo pattern
low System graph quality Integrity conf 1.00 19 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: Trading/asset_perf2.py:update_ovt_ema, Trading/asset_perf2.py:up This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
19 occurrences
repo-level (19 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: Trading/tradinglib/ai_client.py:generate, Trading/tradinglib/ai_client.py:generate, Trading/tradinglib/ai_client.py:generate, Trading/tradinglib/ai_client.py:generate This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see …
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `_to_copy` in Trading/tradinglib/admin.py:1592
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `get_range_breaks_old` in Trading/tradinglib/graph_tools.py:408
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `table_backup` in Trading/tradinglib/sqlite_editor.py:153
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: add_url
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/ticker_tools.py:127
low System graph software Dead code conf 1.00 Possibly dead Python function: attribute_from_element
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:318
low System graph software Dead code conf 1.00 Possibly dead Python function: check_exists_by_class_name
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:81
low System graph software Dead code conf 1.00 Possibly dead Python function: check_exists_by_css_selector
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:88
low System graph software Dead code conf 1.00 Possibly dead Python function: check_exists_by_xpath
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:74
low System graph software Dead code conf 1.00 Possibly dead Python function: click_item
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:280
low System graph software Dead code conf 1.00 Possibly dead Python function: close_driver
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/file_provider.py:115
low System graph software Dead code conf 1.00 Possibly dead Python function: convert_x_rate
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/asset_perf2.py:657
low System graph software Dead code conf 1.00 Possibly dead Python function: german_decimals
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:332
low System graph software Dead code conf 1.00 Possibly dead Python function: init_webdriver
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:47
low System graph software Dead code conf 1.00 Possibly dead Python function: list_models
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/ai_client.py:304
low System graph software Dead code conf 1.00 Possibly dead Python function: load_and_process
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/own_trades_analysis.py:142
low System graph software Dead code conf 1.00 Possibly dead Python function: perform_action_element
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:258
low System graph software Dead code conf 1.00 Possibly dead Python function: plot_portfolio
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/asset_analyzer.py:196
low System graph software Dead code conf 1.00 Possibly dead Python function: process_symbol
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/asset_perf2.py:1177
low System graph software Dead code conf 1.00 Possibly dead Python function: quit_webdriver
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:53
low System graph software Dead code conf 1.00 Possibly dead Python function: run_tray_icon
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/launcher.py:136
low System graph software Dead code conf 1.00 Possibly dead Python function: start_background_watcher
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/taskmanager.py:119
low System graph software Dead code conf 1.00 Possibly dead Python function: start_watcher
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/taskmanager.py:110
low System graph software Dead code conf 1.00 Possibly dead Python function: stop_task
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/taskmanager.py:79
low System graph software Dead code conf 1.00 Possibly dead Python function: swap_decimals
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:344
low System graph software Dead code conf 1.00 Possibly dead Python function: text_from_element
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/tradinglib/web_tools.py:304
low System graph software Dead code conf 1.00 Possibly dead Python function: update_ovt_ema
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Trading/asset_perf2.py:495
low System graph quality Provenance conf 1.00 Shallow git history limits provenance confidence
The repository is a shallow clone. Origin/evolution analysis cannot distinguish fresh generation, imported legacy code, or long-lived human code with high confidence.
Git historyGenerated repo pattern
low System graph quality Complexity conf 1.00 Very large file: Trading/asset_perf2.py (1432 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: Trading/tradinglib/admin.py (1664 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: Trading/tradinglib/market_overview_page.py (1356 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: Trading/tradinglib/pine_exporter.py (3158 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/2ba5f7da-de2e-454a-b51f-6d7d56eef23c/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/2ba5f7da-de2e-454a-b51f-6d7d56eef23c/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.