AI Slop Code Risk Monitor

bmoscon/cryptofeed

SlopCodeMonitor badge for bmoscon/cryptofeed Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Cryptocurrency Exchange Websocket Data Feed Handler

31.0 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for bmoscon/cryptofeed, a Python project with 2,937 GitHub stars. SynthScan examined 18,318 lines of code across 177 source files, recording 221 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 31.0 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

31.0
Adjusted Signal
31.0
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
2.9K
Stars
Python
Language
18.3K
Lines of Code
177
Files
221
Pattern Hits
2026-10-31
Scan Date
0.51
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 23.1/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 96 finding(s).

Hallucinated Dependency & Supply Chain Risk 7.7/100 · LOW

Are imports declared and package/API names verified? 19 finding(s).

Agent Over-Engineering Ratio 72.0/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 130 finding(s).

PR Review Velocity Impact 84.3/100 · CRITICAL

Which changes need focused human review? 221 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 90MEDIUM 4LOW 127

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 221 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition78 hits · 390 pts
SeverityFileLineSnippetContext
HIGHtests/util.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/unit/test_exchange.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/unit/test_fx_symbol.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/unit/test_binance_depth_stream.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/unit/test_symbol_normalization.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/test_redis.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/conftest.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/test_kafka.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/test_socket.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/test_http.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/test_mongo.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/test_zmq.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/test_influxdb.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/test_questdb.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHtests/backend/test_postgres.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHexamples/record.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHexamples/demo.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/_json.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/callback.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/config.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/log.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/connection_handler.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchange.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/__init__.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/feed.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/nbbo.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/connection.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/symbols.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exceptions.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/feedhandler.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/capture/playback.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/capture/_zstd.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/capture/recorder.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/capture/__init__.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/util/time.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/util/snapshots.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/util/history.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/okx.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/kraken_futures.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/upbit.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/cryptodotcom.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/hyperliquid.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/bybit.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/binance_futures.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/kraken.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/kucoin_futures.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/independent_reserve.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/htx_swap.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/binance_us.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/bitfinex.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/bitstamp.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/poloniex.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/__init__.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/gemini.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/coinbase.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/kucoin.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/binance_delivery.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/bithumb.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/bitget.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
HIGHcryptofeed/exchanges/gate.py0copyright (c) 2017-2026 bryant moscon - bmoscon@gmail.com please see the license file for the terms and conditions assocSTRING
18 more matches not shown…
Deep Nesting72 hits · 72 pts
SeverityFileLineSnippetContext
LOWcryptofeed/config.py52CODE
LOWcryptofeed/connection_handler.py75CODE
LOWcryptofeed/connection_handler.py96CODE
LOWcryptofeed/connection_handler.py134CODE
LOWcryptofeed/connection_handler.py170CODE
LOWcryptofeed/exchange.py93CODE
LOWcryptofeed/feed.py218CODE
LOWcryptofeed/feed.py423CODE
LOWcryptofeed/connection.py344CODE
LOWcryptofeed/capture/playback.py122CODE
LOWcryptofeed/capture/pcap.py484CODE
LOWcryptofeed/util/snapshots.py81CODE
LOWcryptofeed/util/history.py150CODE
LOWcryptofeed/exchanges/okx.py70CODE
LOWcryptofeed/exchanges/okx.py114CODE
LOWcryptofeed/exchanges/okx.py343CODE
LOWcryptofeed/exchanges/okx.py379CODE
LOWcryptofeed/exchanges/kraken_futures.py278CODE
LOWcryptofeed/exchanges/cryptodotcom.py109CODE
LOWcryptofeed/exchanges/cryptodotcom.py359CODE
LOWcryptofeed/exchanges/hyperliquid.py158CODE
LOWcryptofeed/exchanges/bybit.py88CODE
LOWcryptofeed/exchanges/bybit.py230CODE
LOWcryptofeed/exchanges/bybit.py260CODE
LOWcryptofeed/exchanges/bybit.py326CODE
LOWcryptofeed/exchanges/kraken.py153CODE
LOWcryptofeed/exchanges/kraken.py246CODE
LOWcryptofeed/exchanges/kraken.py310CODE
LOWcryptofeed/exchanges/independent_reserve.py167CODE
LOWcryptofeed/exchanges/independent_reserve.py279CODE
LOWcryptofeed/exchanges/htx_swap.py133CODE
LOWcryptofeed/exchanges/htx_swap.py184CODE
LOWcryptofeed/exchanges/bitfinex.py119CODE
LOWcryptofeed/exchanges/bitfinex.py359CODE
LOWcryptofeed/exchanges/bitfinex.py393CODE
LOWcryptofeed/exchanges/bitfinex.py421CODE
LOWcryptofeed/exchanges/bitstamp.py129CODE
LOWcryptofeed/exchanges/poloniex.py91CODE
LOWcryptofeed/exchanges/gemini.py138CODE
LOWcryptofeed/exchanges/coinbase.py257CODE
LOWcryptofeed/exchanges/kucoin.py171CODE
LOWcryptofeed/exchanges/kucoin.py219CODE
LOWcryptofeed/exchanges/kucoin.py254CODE
LOWcryptofeed/exchanges/bitget.py67CODE
LOWcryptofeed/exchanges/bitget.py312CODE
LOWcryptofeed/exchanges/bitget.py377CODE
LOWcryptofeed/exchanges/gate.py169CODE
LOWcryptofeed/exchanges/gate.py196CODE
LOWcryptofeed/exchanges/gate.py310CODE
LOWcryptofeed/exchanges/htx.py183CODE
LOWcryptofeed/exchanges/deribit.py264CODE
LOWcryptofeed/exchanges/deribit.py296CODE
LOWcryptofeed/exchanges/bitflyer.py35CODE
LOWcryptofeed/exchanges/bitflyer.py126CODE
LOWcryptofeed/exchanges/phemex.py100CODE
LOWcryptofeed/exchanges/phemex.py315CODE
LOWcryptofeed/exchanges/dydx.py110CODE
LOWcryptofeed/exchanges/dydx.py177CODE
LOWcryptofeed/exchanges/mexc.py37CODE
LOWcryptofeed/exchanges/mexc.py191CODE
12 more matches not shown…
Excessive Try-Catch Wrapping22 hits · 26 pts
SeverityFileLineSnippetContext
LOWexamples/demo.py55 except Exception as e:CODE
LOWcryptofeed/connection_handler.py70 except Exception:CODE
LOWcryptofeed/connection_handler.py164 except Exception as e:CODE
LOWcryptofeed/connection_handler.py180 except Exception:CODE
MEDIUMcryptofeed/connection_handler.py96def run(self):CODE
LOWcryptofeed/exchange.py139 except Exception as e:CODE
LOWcryptofeed/feed.py309 except Exception as e:CODE
LOWcryptofeed/feed.py327 except Exception as e:CODE
LOWcryptofeed/feed.py382 except Exception:CODE
LOWcryptofeed/feed.py547 except Exception as e:CODE
LOWcryptofeed/feedhandler.py240 except Exception:CODE
MEDIUMcryptofeed/feedhandler.py237def _run_feed(self, feed):CODE
LOWcryptofeed/capture/playback.py582 except Exception:CODE
MEDIUMcryptofeed/capture/playback.py574def _missing_symbol_routes(self, feed) -> list:CODE
LOWcryptofeed/capture/recorder.py53 except Exception:CODE
MEDIUMcryptofeed/capture/recorder.py49def _version() -> str:CODE
LOWcryptofeed/util/snapshots.py102 except Exception as e:CODE
LOWcryptofeed/exchanges/okx.py65 except Exception as e:CODE
LOWcryptofeed/exchanges/independent_reserve.py253 except Exception as e:CODE
LOWcryptofeed/backends/backend.py288 except Exception as e:CODE
LOWcryptofeed/backends/quest.py45 except Exception:CODE
LOWcryptofeed/backends/http.py25 except Exception:CODE
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtests/backend/test_kafka.py45except TopicAlreadyExistsError:CODE
HIGHtests/backend/test_influxdb.py45except aiohttp.ClientError:CODE
HIGHcryptofeed/feed.py397except ValueError:CODE
HIGHcryptofeed/exchanges/bitfinex.py442except IndexError:CODE
HIGHcryptofeed/backends/backend.py219except asyncio.QueueFull:CODE
Hyper-Verbose Identifiers20 hits · 20 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_bybit_open_interest.py14async def test_open_interest_is_single_side():CODE
LOWtests/unit/test_exchange.py26def test_no_missing_sample_data():CODE
LOWtests/unit/test_poloniex.py15async def test_trade_uses_base_quantity_and_emits_each_batch_entry(batch_size):CODE
LOWtests/unit/test_bybit_liquidations.py14async def test_liquidation_side_is_the_side_of_the_liquidation_order(position_side, expected_side):CODE
LOWtests/unit/test_fx_symbol.py11def test_fx_symbol_round_trips_with_its_type():CODE
LOWtests/unit/test_bithumb.py14async def test_orderbook_only_feeds_channels_subscribed_for_the_symbol():CODE
LOWtests/unit/test_nbbo.py18async def test_nbbo_identical_quotes_for_different_symbols():CODE
LOWtests/unit/test_nbbo.py27async def test_nbbo_deduplicates_each_symbol_when_updates_interleave():CODE
LOWtests/unit/test_deribit_liquidations.py19async def test_liquidation_side_is_the_side_of_the_liquidated_order(flag, direction, expected_side):CODE
LOWtests/backend/test_kafka.py60async def test_illegal_topic_is_rejected(kafka):CODE
LOWtests/backend/test_socket.py146async def test_udp_chunks_oversized_messages(udp):CODE
LOWtests/backend/test_socket.py163async def test_unknown_protocol_is_rejected():CODE
LOWtests/backend/test_http.py75async def test_rejection_is_dropped_not_retried(server):CODE
LOWtests/backend/test_http.py87async def test_server_error_is_retried(server):CODE
LOWtests/backend/test_influxdb.py61async def test_bad_token_is_not_retried(influx):CODE
LOWtests/backend/test_postgres.py57async def test_missing_table_is_reported(postgres):CODE
LOWcryptofeed/exchange.py211 def exchange_symbol_to_std_symbol(self, symbol: str) -> str:CODE
LOWcryptofeed/exchange.py221 def std_symbol_to_exchange_symbol(self, symbol: Union[str, Symbol]) -> str:CODE
LOWcryptofeed/feed.py526 def check_bid_ask_overlapping(self, data) -> bool:CODE
LOWcryptofeed/exchanges/bybit.py390 async def _ticker_open_interest_funding_index(self, msg: dict, timestamp: float, conn: AsyncConnection, market: str)CODE
Cross-Language Confusion7 hits · 18 pts
SeverityFileLineSnippetContext
HIGHcryptofeed/exchanges/htx_swap.py139 "estimated_rate": null,STRING
HIGHcryptofeed/exchanges/deribit.py144 "volume" : null,STRING
HIGHcryptofeed/exchanges/deribit.py145 "low" : null,STRING
HIGHcryptofeed/exchanges/gate_futures.py77 "error": null,STRING
HIGHcryptofeed/exchanges/gate_futures.py107 "error": null,STRING
HIGHcryptofeed/exchanges/gate_futures.py201 "error": null,STRING
HIGHcryptofeed/exchanges/gate_futures.py313 "error": null,STRING
Unused Imports12 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/backend/test_redis.py10CODE
LOWcryptofeed/__init__.py9CODE
LOWcryptofeed/capture/__init__.py7CODE
LOWcryptofeed/capture/__init__.py7CODE
LOWcryptofeed/capture/__init__.py7CODE
LOWcryptofeed/capture/__init__.py7CODE
LOWcryptofeed/capture/__init__.py8CODE
LOWcryptofeed/capture/__init__.py9CODE
LOWcryptofeed/capture/__init__.py9CODE
LOWcryptofeed/capture/__init__.py9CODE
LOWcryptofeed/capture/__init__.py9CODE
LOWcryptofeed/exchanges/__init__.py7CODE
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcryptofeed/feed.py74CODE
LOWcryptofeed/capture/playback.py599CODE
LOWcryptofeed/capture/playback.py628CODE
LOWcryptofeed/backends/postgres.py63CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcryptofeed/__init__.py12__all__ = ['FeedHandler']CODE