AI Slop Code RIsk Monitor

hummingbot/hummingbot

Open source software that helps you create and deploy high-frequency crypto trading bots

51.9 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for hummingbot/hummingbot, a Python project with 20,382 GitHub stars. SynthScan examined 390,379 lines of code across 1706 source files, recording 14728 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 51.9 (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.

51.9
Adjusted Signal
51.9
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
20.4K
Stars
Python
Language
390.4K
Lines of Code
1.7K
Files
14.7K
Pattern Hits
2026-10-12
Scan Date
0.69
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 77.5/100 · CRITICAL

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

Hallucinated Dependency & Supply Chain Risk 15.1/100 · LOW

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

Agent Over-Engineering Ratio 89.9/100 · CRITICAL

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

PR Review Velocity Impact 94.0/100 · CRITICAL

Which changes need focused human review? 14728 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 73HIGH 1111MEDIUM 517LOW 13027

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 14728 distinct pattern matches across 22 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.

Hyper-Verbose Identifiers10999 hits · 10334 pts
SeverityFileLineSnippetContext
LOWhummingbot/core/connector_manager.py195 async def update_connector_balances(self, connector_name: str):CODE
LOWhummingbot/core/trading_core.py128 def _create_config_adapter_from_dict(self, config_dict: Dict[str, Any]) -> ClientConfigAdapter:CODE
LOWhummingbot/core/trading_core.py256 def _initialize_metrics_for_connector(self, connector: ExchangeBase, connector_name: str):CODE
LOWhummingbot/core/trading_core.py329 def initialize_markets_recorder(self, db_name: str = None):CODE
LOWhummingbot/core/trading_core.py510 async def _initialize_regular_strategy(self):CODE
LOWhummingbot/core/trading_core.py518 async def _start_strategy_execution(self):CODE
LOWhummingbot/core/trading_core.py604 async def cancel_outstanding_orders(self) -> bool:CODE
LOWhummingbot/core/trading_core.py620 def _initialize_markets_for_strategy(self):CODE
LOWhummingbot/core/trading_core.py740 async def calculate_performance_metrics_by_connector_pair(self, trades: List[TradeFill]) -> List[PerformanceMetrics]CODE
LOWhummingbot/core/web_assistant/rest_assistant.py62 async def execute_request_and_get_response(CODE
LOWhummingbot/core/utils/estimate_fee.py49def build_perpetual_trade_fee(CODE
LOWhummingbot/core/utils/trading_pair_fetcher.py35 def _fetch_pairs_from_connector_setting(CODE
LOWhummingbot/core/utils/gateway_config_utils.py72def build_connector_tokens_display(connectors_chain_network: List[Dict[str, Any]]) -> pd.DataFrame:CODE
LOWhummingbot/core/utils/gateway_config_utils.py89def build_balances_allowances_display(symbols: List[str], balances: List[str], allowances: List[str]) -> pd.DataFrame:CODE
LOWhummingbot/core/utils/gateway_config_utils.py107def build_config_dict_display(lines: List[str], config_dict: Dict[str, Any], level: int = 0):CODE
LOWhummingbot/core/utils/gateway_config_utils.py131def build_config_namespace_keys(namespace_keys: List[str], config_dict: Dict[str, Any], prefix: str = ""):CODE
LOWhummingbot/core/utils/tracking_nonce.py55def get_tracking_nonce_low_res() -> int:CODE
LOWhummingbot/core/rate_oracle/rate_oracle.py101 def _get_rate_from_connectors(self, pair: str) -> Optional[Decimal]:CODE
LOW…ingbot/core/rate_oracle/sources/gate_io_rate_source.py56 def _build_gate_io_connector_without_private_keys() -> 'GateIoExchange':CODE
LOW…ot/core/rate_oracle/sources/hyperliquid_rate_source.py51 def _build_hyperliquid_connector_without_private_keys() -> 'HyperliquidExchange':CODE
LOWhummingbot/core/rate_oracle/sources/mexc_rate_source.py73 def _build_mexc_connector_without_private_keys() -> 'MexcExchange':CODE
LOW…ngbot/core/rate_oracle/sources/backpack_rate_source.py74 def _build_backpack_connector_without_private_keys() -> 'BackpackExchange':CODE
LOW…ingbot/core/rate_oracle/sources/binance_rate_source.py73 def _build_binance_connector_without_private_keys(domain: str) -> 'BinanceExchange':CODE
LOW…/rate_oracle/sources/pacifica_perpetual_rate_source.py51 def _build_pacifica_connector_without_private_keys() -> 'PacificaPerpetualDerivative':CODE
LOW…re/rate_oracle/sources/evedex_perpetual_rate_source.py51 def _build_evedex_perpetual_connector_without_private_keys() -> 'EvedexPerpetualDerivative':CODE
LOW…ingbot/core/rate_oracle/sources/dexalot_rate_source.py47 def _build_dexalot_connector_without_private_keys() -> 'DexalotExchange':CODE
LOW…mingbot/core/rate_oracle/sources/derive_rate_source.py49 def _build_derive_connector_without_private_keys() -> 'DeriveExchange':CODE
LOW…_oracle/sources/coinbase_advanced_trade_rate_source.py69 def _build_coinbase_connector(self, domain: str = DEFAULT_DOMAIN) -> 'CoinbaseAdvancedTradeExchange':CODE
LOW…mingbot/core/rate_oracle/sources/kucoin_rate_source.py45 def _build_kucoin_connector_without_private_keys() -> 'KucoinExchange':CODE
LOW…bot/core/rate_oracle/sources/coin_gecko_rate_source.py148 async def _get_coin_gecko_prices_by_page(self,CODE
LOW…bot/core/rate_oracle/sources/coin_gecko_rate_source.py172 async def _get_coin_gecko_extra_token_prices(self, vs_currency: str) -> Dict[str, Decimal]:CODE
LOW…te_oracle/sources/hyperliquid_perpetual_rate_source.py53 def _build_hyperliquid_perpetual_connector_without_private_keys() -> 'HyperliquidPerpetualDerivative':CODE
LOWhummingbot/core/rate_oracle/sources/aevo_rate_source.py58 def _build_aevo_connector_without_private_keys() -> 'AevoPerpetualDerivative':CODE
LOWhummingbot/core/event/events.py173 def order_filled_events_from_order_book_rows(CODE
LOWhummingbot/core/event/events.py202 def order_filled_event_from_binance_execution_report(cls, execution_report: Dict[str, any]) -> "OrderFilledEvent":CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py36 def order_book_create_function(self) -> Callable[[], OrderBook]:CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py40 def order_book_create_function(self, func: Callable[[], OrderBook]):CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py96 async def listen_for_order_book_diffs(self, ev_loop: asyncio.AbstractEventLoop, output: asyncio.Queue):CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py115 async def listen_for_order_book_snapshots(self, ev_loop: asyncio.AbstractEventLoop, output: asyncio.Queue):CODE
LOW⚡…ngbot/core/data_type/order_book_tracker_data_source.py158 async def _request_order_book_snapshots(self, output: asyncio.Queue):CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py176 async def _parse_order_book_diff_message(self, raw_message: Dict[str, Any], message_queue: asyncio.Queue):CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py185 async def _parse_order_book_snapshot_message(self, raw_message: Dict[str, Any], message_queue: asyncio.Queue):CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py197 async def _connected_websocket_assistant(self) -> WSAssistant:CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py213 def _channel_originating_message(self, event_message: Dict[str, Any]) -> str:CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py223 async def _process_message_for_unknown_channel(CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py235 async def _process_websocket_messages(self, websocket_assistant: WSAssistant):CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py251 async def _on_order_stream_interruption(self, websocket_assistant: Optional[WSAssistant] = None):CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py282 async def subscribe_to_trading_pair(self, trading_pair: str) -> bool:CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py293 async def unsubscribe_from_trading_pair(self, trading_pair: str) -> bool:CODE
LOW…gbot/core/data_type/user_stream_tracker_data_source.py60 async def _connected_websocket_assistant(self) -> WSAssistant:CODE
LOW…gbot/core/data_type/user_stream_tracker_data_source.py76 async def _process_websocket_messages(self, websocket_assistant: WSAssistant, queue: asyncio.Queue):CODE
LOW…gbot/core/data_type/user_stream_tracker_data_source.py85 async def _on_user_stream_interruption(self, websocket_assistant: Optional[WSAssistant]):CODE
LOWhummingbot/core/data_type/in_flight_order.py173 def is_pending_cancel_confirmation(self) -> bool:CODE
LOW⚡hummingbot/core/data_type/in_flight_order.py377 async def wait_until_completely_filled(self):CODE
LOW⚡hummingbot/core/data_type/in_flight_order.py380 def check_processed_by_exchange_condition(self):CODE
LOW⚡hummingbot/core/data_type/in_flight_order.py384 async def wait_until_processed_by_exchange(self):CODE
LOW⚡hummingbot/core/data_type/in_flight_order.py387 def build_order_created_message(self) -> str:CODE
LOW⚡hummingbot/core/data_type/in_flight_order.py396 def build_order_created_message(self) -> str:CODE
LOWhummingbot/core/data_type/funding_info.py45 def next_funding_utc_timestamp(self) -> int:CODE
LOWhummingbot/core/data_type/funding_info.py49 def next_funding_utc_timestamp(self, next_funding_utc_timestamp):CODE
10939 more matches not shown…
Cross-File Repetition707 hits · 3535 pts
SeverityFileLineSnippetContext
HIGHhummingbot/core/rate_oracle/sources/mexc_rate_source.py0fetches coinbase prices :param exchange: the exchange instance from which to query prices. :param quote_token: a quote sSTRING
HIGH…ingbot/core/rate_oracle/sources/binance_rate_source.py0fetches coinbase prices :param exchange: the exchange instance from which to query prices. :param quote_token: a quote sSTRING
HIGH…_oracle/sources/coinbase_advanced_trade_rate_source.py0fetches coinbase prices :param exchange: the exchange instance from which to query prices. :param quote_token: a quote sSTRING
HIGH…ngbot/core/data_type/order_book_tracker_data_source.py0connects to the trade events and order diffs websocket endpoints and listens to the messages sent by the exchange. each STRING
HIGH…r/exchange/bing_x/bing_x_api_order_book_data_source.py0connects to the trade events and order diffs websocket endpoints and listens to the messages sent by the exchange. each STRING
HIGH…tor/exchange/bybit/bybit_api_order_book_data_source.py0connects to the trade events and order diffs websocket endpoints and listens to the messages sent by the exchange. each STRING
HIGH…ector/exchange/xrpl/xrpl_api_order_book_data_source.py0connects to the trade events and order diffs websocket endpoints and listens to the messages sent by the exchange. each STRING
HIGH…ngbot/core/data_type/order_book_tracker_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…gbot/core/data_type/user_stream_tracker_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…/btc_markets/btc_markets_api_order_book_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…btc_markets/btc_markets_api_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…etual/hyperliquid_perpetual_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…nector/exchange/okx/okx_api_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…hyperliquid/hyperliquid_api_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…/exchange/bing_x/bing_x_api_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…hange/bitstamp/bitstamp_api_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…change/bitstamp/bitstamp_api_order_book_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…ctor/exchange/ndax/ndax_api_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…ector/exchange/ndax/ndax_api_order_book_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…/exchange/derive/derive_api_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…/exchange/foxbit/foxbit_api_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…xchange/bitmart/bitmart_api_user_stream_data_source.py0creates an instance of wsassistant connected to the exchangeSTRING
HIGH…ngbot/core/data_type/order_book_tracker_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…petual/bitmart_perpetual_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…al/hyperliquid_perpetual_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…etual/backpack_perpetual_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…rpetual/derive_perpetual_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…petual/gate_io_perpetual_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…t_perpetual/bybit_perpetual_user_stream_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…/hyperliquid/hyperliquid_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…r/exchange/bing_x/bing_x_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…/exchange/bing_x/bing_x_api_user_stream_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…exchange/dexalot/dexalot_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…change/bitstamp/bitstamp_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…exchange/gate_io/gate_io_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…ector/exchange/mexc/mexc_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…ector/exchange/ndax/ndax_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…r/exchange/derive/derive_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…r/exchange/bitrue/bitrue_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…or/exchange/bybit/bybit_api_user_stream_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…tor/exchange/bybit/bybit_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…r/exchange/foxbit/foxbit_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…r/exchange/kraken/kraken_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…change/backpack/backpack_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…exchange/binance/binance_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…gbot/core/data_type/user_stream_tracker_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…tual/backpack_perpetual_api_user_stream_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…/btc_markets/btc_markets_api_order_book_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…btc_markets/btc_markets_api_user_stream_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…hange/backpack/backpack_api_user_stream_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…ngbot/core/data_type/order_book_tracker_data_source.py0function added only to facilitate patching the sleep in unit tests without affecting the asyncio moduleSTRING
HIGH…ngbot/data_feed/liquidations_feed/liquidations_base.py0function added only to facilitate patching the sleep in unit tests without affecting the asyncio moduleSTRING
HIGHhummingbot/data_feed/candles_feed/candles_base.py0function added only to facilitate patching the sleep in unit tests without affecting the asyncio moduleSTRING
HIGH…ngbot/core/data_type/order_book_tracker_data_source.py0subscribes to order book and trade channels for a single trading pair on the existing websocket connection. :param tradiSTRING
HIGH…etual/pacifica_perpetual_api_order_book_data_source.py0subscribes to order book and trade channels for a single trading pair on the existing websocket connection. :param tradiSTRING
HIGH…petual/gate_io_perpetual_api_order_book_data_source.py0subscribes to order book and trade channels for a single trading pair on the existing websocket connection. :param tradiSTRING
HIGH…nnector/exchange/okx/okx_api_order_book_data_source.py0subscribes to order book and trade channels for a single trading pair on the existing websocket connection. :param tradiSTRING
HIGH…nnector/exchange/htx/htx_api_order_book_data_source.py0subscribes to order book and trade channels for a single trading pair on the existing websocket connection. :param tradiSTRING
HIGH…/hyperliquid/hyperliquid_api_order_book_data_source.py0subscribes to order book and trade channels for a single trading pair on the existing websocket connection. :param tradiSTRING
HIGH…exchange/gate_io/gate_io_api_order_book_data_source.py0subscribes to order book and trade channels for a single trading pair on the existing websocket connection. :param tradiSTRING
647 more matches not shown…
Empty Error Handlers329 hits · 1598 pts
SeverityFileLineSnippetContext
HIGHhummingbot/core/trading_core.py212except asyncio.CancelledError:CODE
HIGHhummingbot/core/utils/async_call_scheduler.py86except asyncio.InvalidStateError:CODE
HIGHhummingbot/core/utils/async_call_scheduler.py83except Exception:CODE
HIGHhummingbot/core/utils/async_call_scheduler.py97except Exception:CODE
HIGHhummingbot/core/utils/market_price.py17except ModuleNotFoundError:CODE
HIGHhummingbot/core/data_type/user_stream_tracker.py51except asyncio.CancelledError:CODE
HIGH…gbot/core/data_type/user_stream_tracker_data_source.py99except asyncio.CancelledError:CODE
HIGHhummingbot/core/data_type/order_book_tracker.py490except asyncio.CancelledError:CODE
HIGHhummingbot/core/gateway/gateway_http_client.py343except Exception:CODE
HIGHhummingbot/core/gateway/gateway_http_client.py316except Exception:CODE
HIGHhummingbot/core/gateway/gateway_http_client.py324except Exception:CODE
HIGH…bot/strategy_v2/backtesting/backtesting_engine_base.py505except (KeyError, AttributeError):CODE
HIGHhummingbot/cli/commands/doctor.py43except OSError:CODE
HIGHhummingbot/cli/commands/doctor.py81except Exception:CODE
HIGHhummingbot/cli/commands/doctor.py91except Exception:CODE
HIGHhummingbot/remote_iface/mqtt.py762except RuntimeError: # pragma: no cover - loop already closedCODE
HIGHhummingbot/remote_iface/mqtt.py798except aiomqtt.MqttError: # pragma: no coverCODE
HIGHhummingbot/remote_iface/mqtt.py811except aiomqtt.MqttError: # pragma: no coverCODE
HIGH…etual/hyperliquid_perpetual_user_stream_data_source.py118except asyncio.CancelledError:CODE
HIGH…perpetual/binance_perpetual_user_stream_data_source.py161except asyncio.CancelledError:CODE
HIGH…perpetual/binance_perpetual_user_stream_data_source.py163except Exception:CODE
HIGH…perpetual/binance_perpetual_user_stream_data_source.py214except asyncio.CancelledError:CODE
HIGH…perpetual/binance_perpetual_user_stream_data_source.py216except Exception:CODE
HIGH…/derivative/dydx_v4_perpetual/data_sources/keypairs.py107except ecdsa.keys.BadSignatureError:CODE
HIGH…/derivative/dydx_v4_perpetual/data_sources/keypairs.py125except ecdsa.keys.BadSignatureError: # pragma: no coverCODE
HIGH…_perpetual/evedex_perpetual_user_stream_data_source.py111except asyncio.CancelledError:CODE
HIGH…_perpetual/evedex_perpetual_user_stream_data_source.py253except asyncio.CancelledError:CODE
HIGH…rpetual/evedex_perpetual_api_order_book_data_source.py153except asyncio.CancelledError:CODE
HIGH…rpetual/evedex_perpetual_api_order_book_data_source.py497except asyncio.CancelledError:CODE
HIGH…rpetual/bitget_perpetual_api_order_book_data_source.py379except asyncio.CancelledError:CODE
HIGH…petual/bitget_perpetual_api_user_stream_data_source.py187except asyncio.CancelledError:CODE
HIGH…perpetual/lighter_perpetual_user_stream_data_source.py106except Exception:CODE
HIGH…petual/lighter_perpetual_api_order_book_data_source.py304except Exception:CODE
HIGH…vative/kucoin_perpetual/kucoin_perpetual_derivative.py826except ValueDuplicationError:CODE
HIGH…hyperliquid/hyperliquid_api_user_stream_data_source.py119except asyncio.CancelledError:CODE
HIGHhummingbot/connector/exchange/gemini/gemini_exchange.py600except Exception:CODE
HIGHhummingbot/connector/exchange/gemini/gemini_exchange.py604except Exception:CODE
HIGHhummingbot/connector/exchange/gemini/gemini_exchange.py902except Exception:CODE
HIGHhummingbot/connector/exchange/gemini/gemini_exchange.py428except asyncio.TimeoutError:CODE
HIGHhummingbot/connector/exchange/gemini/gemini_exchange.py955except GeminiWSTransportError:CODE
HIGH…mingbot/connector/exchange/dexalot/dexalot_exchange.py628except Exception:CODE
HIGH…ctor/exchange/mexc/mexc_api_user_stream_data_source.py65except asyncio.CancelledError:CODE
HIGH…ctor/exchange/mexc/mexc_api_user_stream_data_source.py67except Exception:CODE
HIGH…ctor/exchange/mexc/mexc_api_user_stream_data_source.py289except asyncio.CancelledError:CODE
HIGH…ctor/exchange/mexc/mexc_api_user_stream_data_source.py291except Exception:CODE
HIGH…ctor/exchange/bitrue/bitrue_user_stream_data_source.py59except asyncio.CancelledError:CODE
HIGH…ctor/exchange/bitrue/bitrue_user_stream_data_source.py61except Exception:CODE
HIGH…ctor/exchange/bitrue/bitrue_user_stream_data_source.py213except asyncio.CancelledError:CODE
HIGH…ctor/exchange/bitrue/bitrue_user_stream_data_source.py215except Exception:CODE
HIGHhummingbot/connector/exchange/bitrue/bitrue_exchange.py657except Exception:CODE
HIGH…/exchange/bitget/bitget_api_user_stream_data_source.py177except asyncio.CancelledError:CODE
HIGH…r/exchange/bitget/bitget_api_order_book_data_source.py296except asyncio.CancelledError:CODE
HIGHhummingbot/connector/exchange/xrpl/xrpl_utils.py845except asyncio.CancelledError:CODE
HIGHhummingbot/connector/exchange/xrpl/xrpl_utils.py854except asyncio.CancelledError:CODE
HIGHhummingbot/connector/exchange/xrpl/xrpl_utils.py1045except Exception:CODE
HIGH…ector/exchange/xrpl/xrpl_api_order_book_data_source.py387except asyncio.CancelledError:CODE
HIGHhummingbot/connector/exchange/xrpl/xrpl_exchange.py2550except UnicodeDecodeError:CODE
HIGHhummingbot/connector/exchange/xrpl/xrpl_exchange.py1519except UnicodeDecodeError:CODE
HIGH…t/connector/exchange/xrpl/xrpl_transaction_pipeline.py124except asyncio.CancelledError:CODE
HIGH…xchange/lighter/lighter_api_user_stream_data_source.py112except Exception:CODE
269 more matches not shown…
Decorative Section Separators326 hits · 1211 pts
SeverityFileLineSnippetContext
MEDIUM⚡hummingbot/core/gateway/gateway_http_client.py514 # ============================================COMMENT
MEDIUM⚡hummingbot/core/gateway/gateway_http_client.py516 # ============================================COMMENT
MEDIUM⚡hummingbot/core/gateway/gateway_http_client.py623 # ============================================COMMENT
MEDIUM⚡hummingbot/core/gateway/gateway_http_client.py625 # ============================================COMMENT
MEDIUM⚡hummingbot/core/gateway/gateway_http_client.py693 # ============================================COMMENT
MEDIUM⚡hummingbot/core/gateway/gateway_http_client.py695 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py606 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py608 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py733 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py735 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py822 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py824 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1083 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1094 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1688 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1690 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1778 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1780 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1916 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1918 # ============================================COMMENT
MEDIUM…mmingbot/strategy_v2/backtesting/backtesting_result.py25 # ------------------------------------------------------------------COMMENT
MEDIUM…mmingbot/strategy_v2/backtesting/backtesting_result.py27 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mmingbot/strategy_v2/backtesting/backtesting_result.py69 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mmingbot/strategy_v2/backtesting/backtesting_result.py71 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mmingbot/strategy_v2/backtesting/backtesting_result.py79 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mmingbot/strategy_v2/backtesting/backtesting_result.py81 # ------------------------------------------------------------------COMMENT
MEDIUM…mmingbot/strategy_v2/backtesting/backtesting_result.py176 # ------------------------------------------------------------------COMMENT
MEDIUM…mmingbot/strategy_v2/backtesting/backtesting_result.py178 # ------------------------------------------------------------------COMMENT
MEDIUMhummingbot/cli/commands/doctor.py36# ── individual checks (each returns one row) ────────────────────────────────COMMENT
MEDIUM…/derivative/dydx_v4_perpetual/data_sources/keypairs.py2# ------------------------------------------------------------------------------COMMENT
MEDIUM…/derivative/dydx_v4_perpetual/data_sources/keypairs.py18# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py176 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py181 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py190 # ------------------------------------------------------------------COMMENT
MEDIUM…ative/lighter_perpetual/lighter_perpetual_constants.py204 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py219 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py222 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py224 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py228 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py235 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py237 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py286 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py288 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py295 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…ative/lighter_perpetual/lighter_perpetual_constants.py297 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…or/derivative/okx_perpetual/okx_perpetual_constants.py11# -------------------------------------------COMMENT
MEDIUM⚡…or/derivative/okx_perpetual/okx_perpetual_constants.py13# -------------------------------------------COMMENT
MEDIUM⚡…or/derivative/okx_perpetual/okx_perpetual_constants.py23# -------------------------------------------COMMENT
MEDIUM⚡…or/derivative/okx_perpetual/okx_perpetual_constants.py25# -------------------------------------------COMMENT
MEDIUM…or/derivative/okx_perpetual/okx_perpetual_constants.py56# -------------------------------------------COMMENT
MEDIUM…or/derivative/okx_perpetual/okx_perpetual_constants.py58# -------------------------------------------COMMENT
MEDIUM…or/derivative/okx_perpetual/okx_perpetual_constants.py91# -------------------------------------------COMMENT
MEDIUM…or/derivative/okx_perpetual/okx_perpetual_constants.py95# -------------------------------------------COMMENT
MEDIUM⚡…or/derivative/okx_perpetual/okx_perpetual_constants.py139# -------------------------------------------COMMENT
MEDIUM⚡…or/derivative/okx_perpetual/okx_perpetual_constants.py141# -------------------------------------------COMMENT
MEDIUM⚡…or/derivative/okx_perpetual/okx_perpetual_constants.py147# -------------------------------------------COMMENT
MEDIUM⚡…or/derivative/okx_perpetual/okx_perpetual_constants.py150# -------------------------------------------COMMENT
MEDIUM⚡hummingbot/connector/exchange/xrpl/xrpl_utils.py531# ============================================COMMENT
MEDIUM⚡hummingbot/connector/exchange/xrpl/xrpl_utils.py533# ============================================COMMENT
MEDIUMhummingbot/connector/exchange/xrpl/xrpl_utils.py480# ============================================COMMENT
266 more matches not shown…
Excessive Try-Catch Wrapping978 hits · 928 pts
SeverityFileLineSnippetContext
LOWhummingbot/__init__.py89 except Exception:CODE
LOWhummingbot/__init__.py180 except Exception as e:CODE
MEDIUMhummingbot/__init__.py80def check_dev_mode():CODE
LOWhummingbot/core/connector_manager.py109 except Exception as e:CODE
LOWhummingbot/core/trading_core.py197 except Exception as e:CODE
LOWhummingbot/core/trading_core.py221 except Exception as e:CODE
LOWhummingbot/core/trading_core.py273 except Exception as e:CODE
LOWhummingbot/core/trading_core.py437 except Exception as e:CODE
LOWhummingbot/core/trading_core.py493 except Exception as e:CODE
LOWhummingbot/core/trading_core.py553 except Exception as e:CODE
LOWhummingbot/core/trading_core.py600 except Exception as e:CODE
LOWhummingbot/core/trading_core.py616 except Exception as e:CODE
LOWhummingbot/core/trading_core.py807 except Exception as e:CODE
LOWhummingbot/core/trading_core.py817 except Exception as e:CODE
LOWhummingbot/core/trading_core.py844 except Exception as e:CODE
LOWhummingbot/core/network_base.py100 except Exception as e:CODE
LOWhummingbot/core/utils/ssl_cert.py214 except Exception as e:CODE
LOWhummingbot/core/utils/async_retry.py51 except Exception as exc:CODE
LOW⚡hummingbot/core/utils/async_call_scheduler.py83 except Exception:CODE
LOW⚡hummingbot/core/utils/async_call_scheduler.py89 except Exception as e:CODE
LOW⚡hummingbot/core/utils/async_call_scheduler.py97 except Exception:CODE
LOW⚡hummingbot/core/utils/async_call_scheduler.py104 except Exception:CODE
LOWhummingbot/core/utils/async_utils.py12 except Exception as e:CODE
LOWhummingbot/core/utils/async_utils.py23 except Exception as e:CODE
MEDIUMhummingbot/core/utils/async_utils.py7def safe_wrapper(c):CODE
MEDIUMhummingbot/core/utils/async_utils.py20def safe_gather(*args, **kwargs):CODE
LOWhummingbot/core/utils/trading_pair_fetcher.py62 except Exception:CODE
LOWhummingbot/core/utils/trading_pair_fetcher.py71 except Exception:CODE
LOWhummingbot/core/utils/kill_switch.py60 except Exception as e:CODE
LOWhummingbot/core/rate_oracle/rate_oracle.py134 except Exception:CODE
LOWhummingbot/core/rate_oracle/rate_oracle.py183 except Exception:CODE
LOWhummingbot/core/rate_oracle/rate_oracle.py276 except Exception:CODE
MEDIUMhummingbot/core/rate_oracle/rate_oracle.py176def check_network(self) -> NetworkStatus:CODE
LOW…ingbot/core/rate_oracle/sources/gate_io_rate_source.py45 except Exception:CODE
LOW…ot/core/rate_oracle/sources/hyperliquid_rate_source.py40 except Exception:CODE
LOW…ngbot/core/rate_oracle/sources/backpack_rate_source.py39 except Exception:CODE
LOW…/rate_oracle/sources/pacifica_perpetual_rate_source.py40 except Exception:CODE
LOW…re/rate_oracle/sources/evedex_perpetual_rate_source.py40 except Exception:CODE
LOW…e/rate_oracle/sources/decibel_perpetual_rate_source.py41 except Exception:CODE
LOW…ingbot/core/rate_oracle/sources/dexalot_rate_source.py36 except Exception:CODE
LOW…rate_oracle/sources/architect_perpetual_rate_source.py43 except Exception:CODE
LOW…mingbot/core/rate_oracle/sources/kucoin_rate_source.py34 except Exception:CODE
LOW…bot/core/rate_oracle/sources/coin_gecko_rate_source.py90 except Exception as e:CODE
LOW…bot/core/rate_oracle/sources/coin_gecko_rate_source.py129 except Exception:CODE
LOW…te_oracle/sources/hyperliquid_perpetual_rate_source.py42 except Exception:CODE
LOWhummingbot/core/rate_oracle/sources/aevo_rate_source.py47 except Exception:CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py87 except Exception:CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py112 except Exception:CODE
LOW…ngbot/core/data_type/order_book_tracker_data_source.py136 except Exception:CODE
LOW⚡…ngbot/core/data_type/order_book_tracker_data_source.py155 except Exception:CODE
LOW⚡…ngbot/core/data_type/order_book_tracker_data_source.py163 except Exception:CODE
LOW…gbot/core/data_type/user_stream_tracker_data_source.py53 except Exception:CODE
LOWhummingbot/core/data_type/in_flight_order.py323 except Exception:CODE
LOW⚡hummingbot/core/data_type/order_book_tracker.py518 except Exception:CODE
LOWhummingbot/core/data_type/order_book_tracker.py384 except Exception:CODE
LOWhummingbot/core/data_type/order_book_tracker.py455 except Exception:CODE
LOWhummingbot/core/data_type/order_book_tracker.py585 except Exception:CODE
LOWhummingbot/core/data_type/order_book_tracker.py630 except Exception:CODE
LOWhummingbot/core/data_type/order_book_tracker.py668 except Exception:CODE
LOWhummingbot/core/data_type/order_book_tracker.py732 except Exception:CODE
918 more matches not shown…
Hallucination Indicators73 hits · 760 pts
SeverityFileLineSnippetContext
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py593 self.exchange._data_source._query_executor._spot_markets_responses.put_nowait(all_markets_mock_response)CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py595 self.exchange._data_source._query_executor._tokens_responses.put_nowait(CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py599 self.exchange._data_source._query_executor._derivative_markets_responses.put_nowait(all_markets_mock_response)CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py617 self.exchange._data_source._query_executor._spot_markets_responses.put_nowait({})CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py619 self.exchange._data_source._query_executor._derivative_markets_responses.put_nowait(response)CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py621 self.exchange._data_source._query_executor._tokens_responses.put_nowait(CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py633 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py648 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py693 self.exchange._data_source._query_executor._spot_trades_responses.put_nowait(CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py695 self.exchange._data_source._query_executor._derivative_trades_responses.put_nowait(CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py708 self.exchange._data_source._query_executor._derivative_trades_responses.put_nowait(CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py2240 self.exchange._data_source._query_executor._spot_markets_responses.put_nowait(CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py2243 self.exchange._data_source._query_executor._derivative_markets_responses.put_nowait(response)CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py2252 self.exchange._data_source._query_executor._ping_responses.put_nowait(response)CODE
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py2281 self.exchange._data_source._query_executor._derivative_trades_responses.put_nowait(response)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py3307 # self.exchange._data_source._query_executor._get_tx_responses.put_nowait(transaction_response)COMMENT
CRITICAL⚡…ctive_v2_perpetual_derivative_for_delegated_account.py3423 self.exchange._data_source._query_executor._account_portfolio_responses.put_nowait(response)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1008 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1108 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1188 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1223 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1264 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1313 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1354 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1401 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1451 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1483 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py1545 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2422 self.exchange._data_source.query_executor._funding_payments_responses.put_nowait(funding_payments)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2460 self.exchange._data_source.query_executor._funding_payments_responses.put_nowait(funding_payments)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2497 self.exchange._data_source._query_executor._derivative_market_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2554 self.exchange._data_source.query_executor._funding_rates_responses.put_nowait(funding_rate)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2559 self.exchange._data_source.query_executor._oracle_prices_responses.put_nowait(oracle_price)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2590 self.exchange._data_source.query_executor._derivative_trades_responses.put_nowait(trades)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2624 self.exchange._data_source._query_executor._derivative_market_responses.put_nowait(CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2681 self.exchange._data_source.query_executor._funding_rates_responses.put_nowait(funding_rate)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2686 self.exchange._data_source.query_executor._oracle_prices_responses.put_nowait(oracle_price)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2717 self.exchange._data_source.query_executor._derivative_trades_responses.put_nowait(trades)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2766 self.exchange._data_source._query_executor._derivative_positions_responses.put_nowait(positions)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py2791 self.exchange._data_source._query_executor._oracle_prices_responses.put_nowait(oracle_price)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py3063 self.exchange._data_source._query_executor._get_tx_responses.put_nowait(transaction_response)CODE
CRITICAL…ctive_v2_perpetual_derivative_for_delegated_account.py3380 self.exchange._data_source._query_executor._get_tx_responses.put_nowait(transaction_response)CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py491 self.exchange._data_source._query_executor._spot_markets_responses.put_nowait(all_markets_mock_response)CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py493 self.exchange._data_source._query_executor._tokens_responses.put_nowait(CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py496 self.exchange._data_source._query_executor._derivative_markets_responses.put_nowait({})CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py515 self.exchange._data_source._query_executor._spot_markets_responses.put_nowait(response)CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py517 self.exchange._data_source._query_executor._tokens_responses.put_nowait(CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py520 self.exchange._data_source._query_executor._derivative_markets_responses.put_nowait({})CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py526 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py537 self.exchange._data_source._query_executor._simulate_transaction_responses.put_nowait(CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py582 self.exchange._data_source._query_executor._spot_trades_responses.put_nowait(CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py595 self.exchange._data_source._query_executor._spot_trades_responses.put_nowait(CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py1881 self.exchange._data_source._query_executor._spot_markets_responses.put_nowait(response)CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py1882 self.exchange._data_source._query_executor._derivative_markets_responses.put_nowait([])CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py1891 self.exchange._data_source._query_executor._ping_responses.put_nowait(response)CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py1920 self.exchange._data_source._query_executor._spot_trades_responses.put_nowait(response)CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py2367 self.exchange._data_source._query_executor._spot_markets_responses.put_nowait(all_markets_mock_response)CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py2369 self.exchange._data_source._query_executor._tokens_responses.put_nowait(CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py2372 self.exchange._data_source._query_executor._derivative_markets_responses.put_nowait({})CODE
CRITICAL⚡…v2/test_injective_v2_exchange_for_delegated_account.py2373 self.exchange._data_source._query_executor._account_portfolio_responses.put_nowait(response)CODE
13 more matches not shown…
Self-Referential Comments107 hits · 342 pts
SeverityFileLineSnippetContext
MEDIUM…/core/web_assistant/connections/connections_factory.py12 """This class is a thin wrapper around the underlying REST and WebSocket third-party library.STRING
MEDIUM…t/strategy_v2/backtesting/backtesting_data_provider.py105 # Create a new feed or restart the existing one with updated max_recordsCOMMENT
MEDIUM…mingbot/strategy_v2/executors/executor_orchestrator.py485 # Create a Position record (id will only be used for new positions)COMMENT
MEDIUM…mingbot/strategy_v2/executors/executor_orchestrator.py775 # Create a new report starting from cached base valuesCOMMENT
MEDIUM…bot/strategy_v2/executors/dca_executor/dca_executor.py36 # Initialize super classCOMMENT
MEDIUM…_v2/executors/arbitrage_executor/arbitrage_executor.py65 # Define the conversion trading pair (e.g., SOL/USDT or USDT/SOL)COMMENT
MEDIUM…bel_perpetual/decibel_perpetual_transaction_builder.py79 # Create a new config with gas_station_api_keyCOMMENT
MEDIUMhummingbot/connector/exchange/kraken/kraken_exchange.py659 # Create a mapping from exchange symbols to trading pairs to avoid repeated async callsCOMMENT
MEDIUMhummingbot/connector/exchange/xrpl/xrpl_exchange.py877 # Create the transaction using the appropriate strategyCOMMENT
MEDIUM…ot/connector/test_support/network_mocking_assistant.py216 # Create a stable keyCOMMENT
MEDIUMhummingbot/connector/gateway/gateway_base.py553 # Create a TokenAmount object for the network fee using the provided fee assetCOMMENT
MEDIUMhummingbot/data_feed/market_data_provider.py210 # Create a new feed with updated max_records, reusing the connector when the same exchangeCOMMENT
MEDIUMhummingbot/client/command/gateway_command.py567 # Create a new dictionary with the fields we want to displayCOMMENT
MEDIUMhummingbot/client/command/gateway_command.py625 # Create a dict of token symbol to token infoCOMMENT
MEDIUMhummingbot/client/command/gateway_approve_command.py55 # Create a temporary GatewayBase instance for gas estimation and approvalCOMMENT
MEDIUM⚡test/hummingbot/core/test_trading_core.py482 # Create a function to testCOMMENT
MEDIUM⚡test/hummingbot/core/test_trading_core.py489 # Create a task that sets ready after delayCOMMENT
MEDIUMtest/hummingbot/core/test_trading_core.py505 # Create a synchronous function to testCOMMENT
MEDIUM…t/hummingbot/core/data_type/test_order_book_tracker.py363 # Create a diff messageCOMMENT
MEDIUM…t/hummingbot/core/data_type/test_order_book_tracker.py403 # Create a diff message with update_id < snapshot_uid (will be rejected)COMMENT
MEDIUM…t/hummingbot/core/data_type/test_order_book_tracker.py731 # Create a mock tracking taskCOMMENT
MEDIUM…ot/strategy_v2/executors/test_executor_orchestrator.py140 # Create a mock for MarketsRecorder and its get_executors_by_controller methodCOMMENT
MEDIUM…ot/strategy_v2/executors/test_executor_orchestrator.py317 # Create a NaN decimal for mid_priceCOMMENT
MEDIUM…ot/strategy_v2/executors/test_executor_orchestrator.py530 # Create a position from databaseCOMMENT
MEDIUM…ot/strategy_v2/executors/test_executor_orchestrator.py576 # Create a database position that should be ignored due to overrideCOMMENT
MEDIUM…ot/strategy_v2/executors/test_executor_orchestrator.py668 # Create an executor that meets criteria for position hold processingCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py152 # Create the order that will be returned by get_in_flight_orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py474 # Create an open orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py511 # Create a filled orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py546 # Create a partially filled orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py753 # Create an open orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py828 # Create a partially filled orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py880 # Create a filled orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py952 # Create a filled orderCOMMENT
MEDIUM⚡…y_v2/controllers/test_market_making_controller_base.py184 # Create a mock active rebalance executorCOMMENT
MEDIUMtest/hummingbot/connector/test_markets_recorder.py711 # Create a new mock marketCOMMENT
MEDIUMtest/hummingbot/connector/test_markets_recorder.py803 # Create a new mock marketCOMMENT
MEDIUMtest/hummingbot/connector/test_markets_recorder.py828 # Create a second mock marketCOMMENT
MEDIUMtest/hummingbot/connector/test_markets_recorder.py887 # Create a new mock market with proper listener methodsCOMMENT
MEDIUMtest/hummingbot/connector/test_markets_recorder.py942 # Create a new mock marketCOMMENT
MEDIUM…ative/bitmart_perpetual/test_bitmart_perpetual_auth.py60 # Create a RESTRequest objectCOMMENT
MEDIUM…ative/bitmart_perpetual/test_bitmart_perpetual_auth.py75 # Create a RESTRequest objectCOMMENT
MEDIUM…uid_perpetual/test_hyperliquid_perpetual_derivative.py2010 # Create a market buy order - this will trigger lines 306-307COMMENT
MEDIUM…uid_perpetual/test_hyperliquid_perpetual_derivative.py2044 # Create a market sell order - this will trigger lines 343-344COMMENT
MEDIUM…uid_perpetual/test_hyperliquid_perpetual_derivative.py2079 # Create a LIMIT_MAKER order - this will trigger line 424COMMENT
MEDIUM…test_backpack_perpetual_api_user_stream_data_source.py43 # Create a valid Ed25519 keypair for testingCOMMENT
MEDIUM⚡…al/test_derive_perpetual_api_order_book_data_source.py512 # Create an invalid message that will cause parsing errorCOMMENT
MEDIUM…test_architect_perpetual_api_order_book_data_source.py606 # Create a mock WebSocket assistantCOMMENT
MEDIUM…l/test_gate_io_perpetual_api_order_book_data_source.py600 # Create a mock WebSocket assistantCOMMENT
MEDIUM⚡…tual/test_decibel_perpetual_user_stream_data_source.py125 # Create a task that will be runningCOMMENT
MEDIUM…al/test_kucoin_perpetual_api_order_book_data_source.py722 # Create a mock WebSocket assistantCOMMENT
MEDIUM…or/exchange/okx/test_okx_api_order_book_data_source.py602 # Create a mock WebSocket assistantCOMMENT
MEDIUM…ctor/exchange/hyperliquid/test_hyperliquid_exchange.py1675 # Create a market buy order - this will trigger lines 286-287COMMENT
MEDIUM…ctor/exchange/hyperliquid/test_hyperliquid_exchange.py1709 # Create a market sell order - this will trigger lines 323-324COMMENT
MEDIUM…mbdaplex/test_lambdaplex_api_order_book_data_source.py472 # Create a mock WebSocket assistantCOMMENT
MEDIUM…nge/gate_io/test_gate_io_api_order_book_data_source.py447 # Create a mock WebSocket assistantCOMMENT
MEDIUM…exchange/bitrue/test_bitrue_user_stream_data_source.py332 # Create a task that will raise an exception when awaited after being cancelledCOMMENT
MEDIUM…hange/kucoin/test_kucoin_api_order_book_data_source.py493 # Create a mock WebSocket assistantCOMMENT
MEDIUM…/backpack/test_backpack_api_user_stream_data_source.py41 # Create a valid Ed25519 keypair for testingCOMMENT
MEDIUM…mingbot/connector/exchange/xrpl/test_xrpl_node_pool.py168 # Create a connectionCOMMENT
47 more matches not shown…
Cross-Language Confusion62 hits · 311 pts
SeverityFileLineSnippetContext
HIGHhummingbot/cli/commands/update.py9 exact host-side commands (``docker compose pull && docker compose up -d``).STRING
HIGHhummingbot/cli/commands/update.py67 "Update from the HOST: docker compose pull && docker compose up -d",CODE
HIGHhummingbot/cli/commands/update.py76 f"a source install (Docker: docker compose pull && docker compose up -d)",CODE
HIGH⚡hummingbot/model/db_migration/transformations.py53 ' config_file_path TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py54 ' strategy TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py55 ' market TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py56 ' symbol TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py57 ' base_asset TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py58 ' quote_asset TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py59 ' creation_timestamp BIGINT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py60 ' order_type TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py61 ' amount BIGINT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py62 ' leverage INTEGER not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py63 ' price FLOAT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py64 ' last_status TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py65 ' last_update_timestamp BIGINT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py85 '( config_file_path TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py86 ' strategy TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py87 ' market TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py88 ' symbol TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py89 ' base_asset TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py90 ' quote_asset TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py91 ' timestamp BIGINT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py94 ' trade_type TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py95 ' order_type TEXT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py96 ' price BIGINT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py97 ' amount FLOAT not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py98 ' leverage INTEGER not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py99 ' trade_fee JSON not null,'CODE
HIGH⚡hummingbot/model/db_migration/transformations.py100 ' exchange_trade_id TEXT not null,'CODE
HIGH…etual/pacifica_perpetual_api_order_book_data_source.py87 "error": null,STRING
HIGH…etual/pacifica_perpetual_api_order_book_data_source.py141 "error": null,STRING
HIGH⚡…ve/pacifica_perpetual/pacifica_perpetual_derivative.py269 {"success":false,"data":null,"error":"Order history not found for order ID: 28416222569","code":404}STRING
HIGH⚡…ve/pacifica_perpetual/pacifica_perpetual_derivative.py276 {"success":false,"data":null,"error":"Failed to cancel order","code":5}STRING
HIGH⚡…ve/pacifica_perpetual/pacifica_perpetual_derivative.py790 "stop_price": null,STRING
HIGH⚡…ve/pacifica_perpetual/pacifica_perpetual_derivative.py791 "stop_parent_order_id": null,STRING
HIGH⚡…ve/pacifica_perpetual/pacifica_perpetual_derivative.py796 "error": null,STRING
HIGH⚡…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1087 "I": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py341 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py478 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py533 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py534 "code": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py558 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py772 "stop_price": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py773 "stop_parent_order_id": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py840 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1099 "sp": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1100 "si": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1166 "l": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1273 "I": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1426 "error": null,STRING
HIGH…vative/derive_perpetual/derive_perpetual_derivative.py773 "option_details": null,STRING
HIGH…vative/derive_perpetual/derive_perpetual_derivative.py774 "perp_details": null,STRING
HIGH…rpetual/kucoin_perpetual_api_order_book_data_source.py55 # KuCoin's contract-detail endpoint now returns "predictedFundingFeeRate": null; use theCOMMENT
HIGHhummingbot/connector/exchange/derive/derive_exchange.py642 "option_details": null,STRING
HIGHhummingbot/connector/exchange/derive/derive_exchange.py643 "perp_details": null,STRING
HIGHhummingbot/connector/exchange/bitget/bitget_exchange.py143 # { "code": "43001", "msg": "订单不存在", "requestTime": 1710327684832, "data": null }COMMENT
HIGH⚡…uid_perpetual/test_hyperliquid_perpetual_derivative.py3956 # orders (not present-but-null) — and present on mainnet. Drives the real _place_order path.COMMENT
HIGH…e/kucoin_perpetual/test_kucoin_perpetual_derivative.py1253 # "predictedFundingFeeRate": null, which raised decimal.InvalidOperation and left theCOMMENT
HIGH⚡…ctor/exchange/hyperliquid/test_hyperliquid_exchange.py2067 # orders (not present-but-null) — and present on mainnet. Drives the real _place_order path.COMMENT
2 more matches not shown…
Deep Nesting358 hits · 272 pts
SeverityFileLineSnippetContext
LOWhummingbot/__init__.py129CODE
LOWhummingbot/core/connector_manager.py37CODE
LOWhummingbot/core/trading_core.py164CODE
LOWhummingbot/core/trading_core.py518CODE
LOWhummingbot/core/trading_core.py779CODE
LOWhummingbot/core/network_base.py80CODE
LOWhummingbot/core/utils/async_retry.py15CODE
LOWhummingbot/core/utils/async_retry.py32CODE
LOWhummingbot/core/utils/async_retry.py34CODE
LOWhummingbot/core/utils/market_price.py7CODE
LOWhummingbot/core/utils/trading_pair_fetcher.py43CODE
LOWhummingbot/core/utils/__init__.py33CODE
LOW…ot/core/rate_oracle/sources/hyperliquid_rate_source.py22CODE
LOW…/rate_oracle/sources/pacifica_perpetual_rate_source.py24CODE
LOW…re/rate_oracle/sources/evedex_perpetual_rate_source.py22CODE
LOW…e/rate_oracle/sources/decibel_perpetual_rate_source.py25CODE
LOW…rate_oracle/sources/architect_perpetual_rate_source.py25CODE
LOW…te_oracle/sources/hyperliquid_perpetual_rate_source.py24CODE
LOWhummingbot/core/rate_oracle/sources/aevo_rate_source.py22CODE
LOWhummingbot/core/api_throttler/async_throttler.py20CODE
LOWhummingbot/core/data_type/order_book_tracker.py361CODE
LOWhummingbot/core/data_type/order_book_tracker.py634CODE
LOWhummingbot/core/gateway/gateway_http_client.py275CODE
LOWhummingbot/core/gateway/gateway_http_client.py393CODE
LOWhummingbot/core/gateway/gateway_http_client.py441CODE
LOWhummingbot/core/gateway/gateway_http_client.py527CODE
LOWhummingbot/core/gateway/gateway_http_client.py1957CODE
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py65CODE
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py269CODE
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py482CODE
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py513CODE
LOW…mmingbot/strategy_v2/backtesting/backtesting_result.py180CODE
LOW…esting/executors_simulator/order_executor_simulator.py10CODE
LOW…testing/executors_simulator/grid_executor_simulator.py120CODE
LOW…ktesting/executors_simulator/dca_executor_simulator.py20CODE
LOWhummingbot/strategy_v2/utils/config_encoder_decoder.py13CODE
LOWhummingbot/strategy_v2/utils/order_level_builder.py42CODE
LOW…mingbot/strategy_v2/executors/executor_orchestrator.py59CODE
LOW…mingbot/strategy_v2/executors/executor_orchestrator.py677CODE
LOW…bot/strategy_v2/executors/dca_executor/dca_executor.py450CODE
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py275CODE
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py968CODE
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py1226CODE
LOW…strategy_v2/executors/order_executor/order_executor.py197CODE
LOW…strategy_v2/executors/order_executor/order_executor.py289CODE
LOW…gy_v2/executors/position_executor/position_executor.py530CODE
LOW…gy_v2/executors/position_executor/position_executor.py732CODE
LOW…t/strategy_v2/executors/grid_executor/grid_executor.py277CODE
LOW…t/strategy_v2/executors/grid_executor/grid_executor.py314CODE
LOW…t/strategy_v2/executors/grid_executor/grid_executor.py520CODE
LOW…t/strategy_v2/executors/grid_executor/grid_executor.py535CODE
LOW…t/strategy_v2/executors/grid_executor/grid_executor.py569CODE
LOWhummingbot/cli/commands/logs.py29CODE
LOWhummingbot/remote_iface/mqtt.py53CODE
LOWhummingbot/remote_iface/mqtt.py208CODE
LOWhummingbot/remote_iface/mqtt.py453CODE
LOWhummingbot/remote_iface/mqtt.py626CODE
LOWhummingbot/remote_iface/mqtt.py683CODE
LOWhummingbot/remote_iface/mqtt.py830CODE
LOWhummingbot/model/sql_connection_manager.py65CODE
298 more matches not shown…
AI Structural Patterns247 hits · 205 pts
SeverityFileLineSnippetContext
LOW…ingbot/core/web_assistant/connections/ws_connection.py154CODE
LOWhummingbot/core/gateway/gateway_http_client.py1716CODE
LOWhummingbot/core/gateway/gateway_http_client.py1808CODE
LOWhummingbot/cli/commands/deploy.py51CODE
LOWhummingbot/cli/commands/create.py60CODE
LOWhummingbot/cli/commands/start.py44CODE
LOWhummingbot/cli/commands/start.py74CODE
LOWhummingbot/model/trade_fill.py54CODE
LOWhummingbot/connector/exchange_py_base.py925CODE
LOW…derivative/aevo_perpetual/aevo_perpetual_derivative.py42CODE
LOW…perpetual/aevo_perpetual_api_order_book_data_source.py92CODE
LOW…tive/bitmart_perpetual/bitmart_perpetual_derivative.py43CODE
LOW…petual/bitmart_perpetual_api_order_book_data_source.py251CODE
LOW…petual/bitmart_perpetual_api_order_book_data_source.py258CODE
LOW…petual/bitmart_perpetual_api_order_book_data_source.py268CODE
LOW…ve/pacifica_perpetual/pacifica_perpetual_derivative.py112CODE
LOW…al/hyperliquid_perpetual_api_order_book_data_source.py138CODE
LOW…al/hyperliquid_perpetual_api_order_book_data_source.py302CODE
LOW…erliquid_perpetual/hyperliquid_perpetual_derivative.py46CODE
LOW…etual/backpack_perpetual_api_order_book_data_source.py80CODE
LOW…derivative/grvt_perpetual/grvt_perpetual_derivative.py43CODE
LOW…petual/binance_perpetual_api_order_book_data_source.py80CODE
LOW…petual/binance_perpetual_api_order_book_data_source.py313CODE
LOW…petual/dydx_v4_perpetual_api_order_book_data_source.py229CODE
LOW…petual/dydx_v4_perpetual_api_order_book_data_source.py263CODE
LOW…tive/dydx_v4_perpetual/dydx_v4_perpetual_derivative.py635CODE
LOW…/dydx_v4_perpetual/data_sources/dydx_v4_data_source.py168CODE
LOW…/dydx_v4_perpetual/data_sources/dydx_v4_data_source.py297CODE
LOW…vative/derive_perpetual/derive_perpetual_derivative.py44CODE
LOW…rpetual/evedex_perpetual_api_order_book_data_source.py96CODE
LOW…/architect_perpetual/architect_perpetual_derivative.py44CODE
LOW…petual/gate_io_perpetual_api_order_book_data_source.py227CODE
LOW…tive/lighter_perpetual/lighter_perpetual_derivative.py54CODE
LOW…erpetual/bybit_perpetual_api_order_book_data_source.py305CODE
LOW…rivative/bybit_perpetual/bybit_perpetual_derivative.py523CODE
LOW…rpetual/kucoin_perpetual_api_order_book_data_source.py226CODE
LOW…rpetual/kucoin_perpetual_api_order_book_data_source.py270CODE
LOW…vative/kucoin_perpetual/kucoin_perpetual_derivative.py41CODE
LOW…vative/kucoin_perpetual/kucoin_perpetual_derivative.py521CODE
LOW…vative/kucoin_perpetual/kucoin_perpetual_derivative.py956CODE
LOW…ivative/kucoin_perpetual/kucoin_perpetual_web_utils.py129CODE
LOW…r/derivative/okx_perpetual/okx_perpetual_derivative.py40CODE
LOW…r/derivative/okx_perpetual/okx_perpetual_derivative.py440CODE
LOW…_perpetual/okx_perpetual_api_order_book_data_source.py89CODE
LOW…_perpetual/okx_perpetual_api_order_book_data_source.py114CODE
LOW…nnector/exchange/okx/okx_api_order_book_data_source.py79CODE
LOW…/hyperliquid/hyperliquid_api_order_book_data_source.py63CODE
LOW…connector/exchange/hyperliquid/hyperliquid_exchange.py49CODE
LOW…mmingbot/connector/exchange/bing_x/bing_x_web_utils.py63CODE
LOW…ge/lambdaplex/lambdaplex_api_order_book_data_source.py56CODE
LOW…ge/lambdaplex/lambdaplex_api_order_book_data_source.py72CODE
LOW…r/exchange/dexalot/data_sources/dexalot_data_source.py128CODE
LOW…r/exchange/dexalot/data_sources/dexalot_data_source.py135CODE
LOW…/btc_markets/btc_markets_api_order_book_data_source.py216CODE
LOW…ector/exchange/mexc/mexc_api_order_book_data_source.py67CODE
LOWhummingbot/connector/exchange/derive/derive_exchange.py37CODE
LOW…r/exchange/bitrue/bitrue_api_order_book_data_source.py90CODE
LOWhummingbot/connector/exchange/bybit/bybit_exchange.py426CODE
LOWhummingbot/connector/exchange/bybit/bybit_web_utils.py61CODE
LOW…ase_advanced_trade/coinbase_advanced_trade_exchange.py428CODE
187 more matches not shown…
Unused Imports207 hits · 204 pts
SeverityFileLineSnippetContext
LOWhummingbot/__init__.py12CODE
LOWhummingbot/core/web_assistant/connections/data_types.py12CODE
LOWhummingbot/core/utils/ssl_cert.py19CODE
LOWhummingbot/core/utils/kill_switch.py11CODE
LOWhummingbot/core/rate_oracle/rate_oracle.py7CODE
LOWhummingbot/core/rate_oracle/rate_oracle.py13CODE
LOWhummingbot/core/data_type/order_candidate.py13CODE
LOWhummingbot/core/data_type/trade_fee.py11CODE
LOWhummingbot/core/data_type/trade_fee.py12CODE
LOWhummingbot/core/gateway/__init__.py12CODE
LOWhummingbot/core/gateway/gateway_models.py4CODE
LOWhummingbot/logger/__init__.py5CODE
LOWhummingbot/logger/__init__.py5CODE
LOWhummingbot/logger/__init__.py5CODE
LOWhummingbot/logger/__init__.py5CODE
LOWhummingbot/strategy_v2/backtesting/__init__.py1CODE
LOWhummingbot/strategy_v2/utils/order_level_builder.py1CODE
LOW…mingbot/strategy_v2/executors/executor_orchestrator.py14CODE
LOW…/strategy_v2/executors/position_executor/data_types.py1CODE
LOWhummingbot/strategy_v2/controllers/__init__.py1CODE
LOWhummingbot/strategy_v2/controllers/__init__.py1CODE
LOWhummingbot/strategy_v2/controllers/__init__.py2CODE
LOWhummingbot/strategy_v2/controllers/__init__.py2CODE
LOWhummingbot/strategy_v2/controllers/__init__.py6CODE
LOWhummingbot/strategy_v2/controllers/__init__.py6CODE
LOWhummingbot/cli/commands/doctor.py51CODE
LOWhummingbot/remote_iface/mqtt.py24CODE
LOWhummingbot/model/sql_connection_manager.py18CODE
LOWhummingbot/model/__init__.py7CODE
LOWhummingbot/model/__init__.py8CODE
LOWhummingbot/model/__init__.py9CODE
LOWhummingbot/model/__init__.py10CODE
LOWhummingbot/model/__init__.py11CODE
LOWhummingbot/model/__init__.py12CODE
LOWhummingbot/model/__init__.py13CODE
LOWhummingbot/connector/derivative_base.py8CODE
LOWhummingbot/connector/connector_metrics_collector.py20CODE
LOWhummingbot/connector/budget_checker.py10CODE
LOW…erpetual/aevo_perpetual_api_user_stream_data_source.py17CODE
LOW…perpetual/aevo_perpetual_api_order_book_data_source.py18CODE
LOW…perpetual/bitmart_perpetual_user_stream_data_source.py14CODE
LOW…petual/bitmart_perpetual_api_order_book_data_source.py21CODE
LOW…erpetual/pacifica_perpetual_user_stream_data_source.py17CODE
LOW…etual/pacifica_perpetual_api_order_book_data_source.py21CODE
LOW…rpetual/kalshi_perpetual_api_order_book_data_source.py18CODE
LOW…l/injective_v2_perpetual_api_order_book_data_source.py13CODE
LOW…al/hyperliquid_perpetual_api_order_book_data_source.py19CODE
LOW…etual/hyperliquid_perpetual_user_stream_data_source.py15CODE
LOW…etual/backpack_perpetual_api_order_book_data_source.py20CODE
LOW…tual/backpack_perpetual_api_user_stream_data_source.py14CODE
LOW…perpetual/grvt_perpetual_api_order_book_data_source.py19CODE
LOW…erpetual/grvt_perpetual_api_user_stream_data_source.py17CODE
LOW…perpetual/binance_perpetual_user_stream_data_source.py16CODE
LOW…petual/binance_perpetual_api_order_book_data_source.py19CODE
LOW…petual/dydx_v4_perpetual_api_order_book_data_source.py24CODE
LOW…petual/derive_perpetual_api_user_stream_data_source.py19CODE
LOW…rpetual/derive_perpetual_api_order_book_data_source.py22CODE
LOW…_perpetual/evedex_perpetual_user_stream_data_source.py14CODE
LOW…rpetual/evedex_perpetual_api_order_book_data_source.py19CODE
LOW…rpetual/bitget_perpetual_api_order_book_data_source.py20CODE
147 more matches not shown…
Redundant / Tautological Comments86 hits · 128 pts
SeverityFileLineSnippetContext
LOWhummingbot/core/connector_manager.py55 # Check if connector already existsCOMMENT
LOWhummingbot/core/trading_core.py671 # Check if this is a gateway connector (chain-network format like "solana-mainnet-beta")COMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py477 # Check if we're tracking this pairCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py418 # Check if already tracking this pairCOMMENT
LOWhummingbot/core/gateway/gateway_http_client.py1934 # Check if wallet address is a placeholderCOMMENT
LOWhummingbot/strategy_v2/executors/gateway_utils.py87 # Check if connector exists in GATEWAY_DEXSCOMMENT
LOWhummingbot/strategy_v2/executors/gateway_utils.py129 # Check if it's a network-style connector (chain-network format)COMMENT
LOWhummingbot/strategy_v2/executors/gateway_utils.py182 # Check if connector exists at all with any typeCOMMENT
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py986 # Check if we already have an active swap orderCOMMENT
LOW…rategy_v2/controllers/market_making_controller_base.py238 # Check if we need to rebalance position firstCOMMENT
LOW…rategy_v2/controllers/market_making_controller_base.py362 # Check if difference exceeds thresholdCOMMENT
LOWhummingbot/connector/markets_recorder.py239 # Check if a position already exists for this controller, connector, trading pair, and sideCOMMENT
LOW…al/hyperliquid_perpetual_api_order_book_data_source.py57 # Check if this is a HIP-3 market (contains ":")COMMENT
LOW⚡…erliquid_perpetual/hyperliquid_perpetual_derivative.py1403 # Check if this is a HIP-3 market (doesn't support leverage API)COMMENT
LOW⚡…erliquid_perpetual/hyperliquid_perpetual_derivative.py1409 # Check if coin exists in mappingCOMMENT
LOW…ve/backpack_perpetual/backpack_perpetual_derivative.py830 # Check if status is 2xx (success)COMMENT
LOW⚡…rpetual/derive_perpetual_api_order_book_data_source.py94 # Check if we already have a cached snapshotCOMMENT
LOW…rpetual/derive_perpetual_api_order_book_data_source.py121 # Check if this snapshot is for our trading pairCOMMENT
LOW…r/exchange/derive/derive_api_order_book_data_source.py52 # Check if we already have a cached snapshotCOMMENT
LOW…r/exchange/derive/derive_api_order_book_data_source.py79 # Check if this snapshot is for our trading pairCOMMENT
LOW…/coinbase_advanced_trade_api_order_book_data_source.py187 # Check if there's an exact matchCOMMENT
LOWhummingbot/connector/exchange/foxbit/foxbit_exchange.py510 # Check if this monitor has to tracking this event messageCOMMENT
LOW⚡hummingbot/connector/exchange/xrpl/xrpl_utils.py973 # Check if connection is still openCOMMENT
LOW⚡hummingbot/connector/exchange/xrpl/xrpl_utils.py981 # Check if connection is healthyCOMMENT
LOW⚡hummingbot/connector/exchange/xrpl/xrpl_utils.py985 # Check if connection is currently reconnecting - skip to avoid race conditionsCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py1183 # Check if connection is closedCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py1188 # Check if connection is too oldCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_auth.py16 # Check if it's a raw private key (hex format)COMMENT
LOW…ctor/exchange/xrpl/xrpl_api_user_stream_data_source.py319 # Check if transaction was successfulCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py716 # Check if order is in a final state to avoid duplicate updatesCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py737 # Check if the transaction ALSO crossed existing offers beforeCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py1351 # Check if order was actually filled during cancellation attemptCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py1478 # Check if this is market order, if it is, check if it has been filled or failedCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py2309 # Check if there is any balance changesCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py2327 # Check if there were TOKEN balance changes (not XRP) indicating a partial fill alongside offer creationCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py2737 # Check if we have valid amountsCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py3096 # Check if we've exceeded the last ledger sequence by too muchCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py3447 # Check if the change is for the LP tokenCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py3551 # Check if the change is for the LP tokenCOMMENT
LOWhummingbot/connector/gateway/gateway_base.py753 # Check if result is a dict with status field (transaction response)COMMENT
LOWhummingbot/connector/gateway/gateway_base.py1128 # Check if transaction is still pendingCOMMENT
LOWhummingbot/connector/gateway/gateway.py350 # Check if order is already being trackedCOMMENT
LOWhummingbot/data_feed/market_data_provider.py587 # Check if we have cached data and what range it coversCOMMENT
LOWhummingbot/data_feed/market_data_provider.py594 # Check if requested range is completely covered by cacheCOMMENT
LOW…ngbot/data_feed/liquidations_feed/liquidations_base.py140 # Check if a specific trading pair is requestedCOMMENT
LOW…decibel_perpetual_candles/decibel_perpetual_candles.py248 # Check if this is a candlestick messageCOMMENT
LOWhummingbot/client/hummingbot_application.py181 # Check if help is requested, if yes, print & terminateCOMMENT
LOWhummingbot/client/ui/layout.py215 # Check if SSL is enabledSTRING
LOWhummingbot/client/config/config_data_types.py55 # Check if in json_schema_extra we have functions defined as values that can produce errors when serializingCOMMENT
LOWhummingbot/client/command/create_command.py145 # Check if the file already existsCOMMENT
LOWhummingbot/client/command/gateway_command.py392 # Check if wallet address is a placeholderCOMMENT
LOWhummingbot/client/command/gateway_command.py432 # Display resultsCOMMENT
LOWhummingbot/client/command/history_command.py195 # Check if number of trades exceed maximum number of trades to displayCOMMENT
LOWhummingbot/client/command/command_utils.py58 # Check if transaction is complete (success, failed, or cancelled)COMMENT
LOWhummingbot/client/command/command_utils.py180 # Check if it's larger than 10^10 (10 billion)COMMENT
LOW⚡hummingbot/strategy/hanging_orders_tracker.py376 # Check if the unfilled order is in active_orders because it might have failed before being createdCOMMENT
LOW⚡hummingbot/strategy/strategy_v2_base.py637 # Check if MQTT is enabled at runtimeCOMMENT
LOW…mmingbot/strategy/liquidity_mining/liquidity_mining.py117 # Check if there are restored orders, they should be canceled before strategy starts.COMMENT
LOW…exchange_market_making/cross_exchange_market_making.py405 # Check if all markets are still connected or not. If not, log a warning.COMMENT
LOW…exchange_market_making/cross_exchange_market_making.py632 # Check if this fill was already processed or notCOMMENT
26 more matches not shown…
AI Slop Vocabulary41 hits · 122 pts
SeverityFileLineSnippetContext
MEDIUMhummingbot/cli/commands/status.py50 # (exit 0, running=false) — a harness can poll status without treating the empty state as an error.COMMENT
MEDIUMhummingbot/connector/perpetual_trading.py95 # Clean up leverage settingsCOMMENT
MEDIUM…vative/kalshi_perpetual/kalshi_perpetual_derivative.py88 # trading pair -> side -> (notional in USD, leverage) tiers, in increasing notionalCOMMENT
MEDIUM…vative/kalshi_perpetual/kalshi_perpetual_derivative.py612 # Keyed by notional in USD ("1000" ... "1000000"); leverage decreases as the position grows. Null without aCOMMENT
MEDIUM⚡…erliquid_perpetual/hyperliquid_perpetual_derivative.py1403 # Check if this is a HIP-3 market (doesn't support leverage API)COMMENT
MEDIUM⚡…ve/backpack_perpetual/backpack_perpetual_derivative.py734 """Fetch and initialize leverage from exchange if not already set."""STRING
MEDIUM⚡…vative/derive_perpetual/derive_perpetual_derivative.py985 # NOTE: There is no setting to set leverage in deriveCOMMENT
MEDIUM⚡…vative/derive_perpetual/derive_perpetual_derivative.py991 # NOTE: There is no setting to set leverage in deriveCOMMENT
MEDIUM…vative/evedex_perpetual/evedex_perpetual_derivative.py524 # Get leverageCOMMENT
MEDIUM⚡…vative/kucoin_perpetual/kucoin_perpetual_derivative.py436 # positions); CROSS positions report "leverage" instead. Confirmed by toggling one symbolCOMMENT
MEDIUM⚡…vative/kucoin_perpetual/kucoin_perpetual_derivative.py437 # between modes: ISOLATED -> {realLeverage, leverage}; CROSS -> {leverage} only. ReadCOMMENT
MEDIUM⚡…vative/kucoin_perpetual/kucoin_perpetual_derivative.py438 # "realLeverage", then "leverage", then the leverage configured for the pair, so theCOMMENT
MEDIUM…vative/kucoin_perpetual/kucoin_perpetual_derivative.py61 # at leverage setup so orders can send a matching "marginMode".COMMENT
MEDIUM…vative/kucoin_perpetual/kucoin_perpetual_derivative.py198 # Match the symbol's selected margin mode (read from KuCoin and cached at leverageCOMMENT
MEDIUM⚡hummingbot/connector/exchange/bitrue/bitrue_exchange.py401 # We have overridden `_update_orders_fills` to utilize batch trade updates to reduce API limit consumption.COMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py1316 # If not found, just use the first Offer nodeCOMMENT
MEDIUM…tes/conf_perpetual_market_making_strategy_TEMPLATE.yml14# What leverage to usedCOMMENT
LOW…d/btc_markets_spot_candles/btc_markets_spot_candles.py86 # Find last candle with volume > 0, or just return last candleCOMMENT
MEDIUMhummingbot/client/performance.py132 # It is assumed that the amount and leverage for both open and close orders are the same.COMMENT
MEDIUM…t/hummingbot/core/data_type/test_order_book_tracker.py295 """Test that to_dict returns comprehensive data."""STRING
MEDIUM⚡…e/kalshi_perpetual/test_kalshi_perpetual_derivative.py495 # Kalshi has no leverage or position-mode endpoints: these are unused, their tests are overridden below.COMMENT
MEDIUM⚡…e/kalshi_perpetual/test_kalshi_perpetual_derivative.py618 # No leverage endpoint: up to Kalshi's leverage for small positions on both sides (6.05x short), the leverageCOMMENT
MEDIUM…e/kalshi_perpetual/test_kalshi_perpetual_derivative.py721 # Executors reserve margin with their configured leverage, capped here at Kalshi's for the side and notionalCOMMENT
MEDIUM…e/kalshi_perpetual/test_kalshi_perpetual_derivative.py744 # over Kalshi's leverage) until a balance response includes it. Closing orders reserve nothing.COMMENT
MEDIUM…uid_perpetual/test_hyperliquid_perpetual_derivative.py2662 """Test setting leverage for HIP-3 market uses isolated margin."""STRING
MEDIUM…uid_perpetual/test_hyperliquid_perpetual_derivative.py2692 """Test setting leverage fails when coin not in coin_to_asset mapping."""STRING
MEDIUM…ckpack_perpetual/test_backpack_perpetual_derivative.py949 """Common setup: set leverage, seed REST available balance, and configureSTRING
MEDIUM…ckpack_perpetual/test_backpack_perpetual_derivative.py1440 """Test leverage initialization when API call fails"""STRING
MEDIUM…ckpack_perpetual/test_backpack_perpetual_derivative.py1456 """Test position update when leverage initialization fails"""STRING
MEDIUM⚡…ve/evedex_perpetual/test_evedex_perpetual_web_utils.py203 """Test set leverage URL formatting with instrument parameter."""STRING
MEDIUM…itect_perpetual/test_architect_perpetual_derivative.py900 # leverage = 2COMMENT
MEDIUM…itect_perpetual/test_architect_perpetual_derivative.py901 # self.exchange._perpetual_trading.set_leverage(self.trading_pair, leverage)COMMENT
MEDIUM⚡…e/kucoin_perpetual/test_kucoin_perpetual_derivative.py615 # Orders carry the symbol's margin mode (cached at leverage setup; the default before it's read)COMMENT
MEDIUM⚡…e/kucoin_perpetual/test_kucoin_perpetual_derivative.py1306 # reports "leverage" instead); ISOLATED positions report both. _update_positions / theCOMMENT
MEDIUM⚡…e/kucoin_perpetual/test_kucoin_perpetual_derivative.py1311 # realLeverage absent but "leverage" present (CROSS) -> uses "leverage"COMMENT
MEDIUM⚡…e/kucoin_perpetual/test_kucoin_perpetual_derivative.py1313 # neither field present -> falls back to the configured leverage (no KeyError)COMMENT
MEDIUM⚡…e/kucoin_perpetual/test_kucoin_perpetual_derivative.py1315 # null -> falls back to the configured leverageCOMMENT
MEDIUM…ivative/okx_perpetual/test_okx_perpetual_derivative.py1284 # position_value = unrealized_pnl + order.amount * order.price * order.leverageCOMMENT
LOW…exchange/xrpl/test_xrpl_api_user_stream_data_source.py633 # Should not raise, just return empty eventsCOMMENT
MEDIUM⚡…erpetual_market_making/test_perpetual_market_making.py193 self.assertEqual(2, len(new_buys)) # cumulative 11 for leverage of 20CODE
MEDIUM⚡…erpetual_market_making/test_perpetual_market_making.py196 self.assertEqual(1, len(new_sells)) # cumulative 18 for leverage of 20CODE
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHhummingbot/strategy_v2/utils/common.py22 Parse enum from string name or return as-is if already correct type. Args: enum_class: The enum class STRING
HIGHhummingbot/strategy_v2/executors/gateway_utils.py27 Parse provider string into (dex_name, trading_type) tuple. Provider strings are used by executors in format "dSTRING
HIGH…tive/bitmart_perpetual/bitmart_perpetual_derivative.py358 Determines the state of an order based on the provided parameters. Valid until Bitmart implements spot order STRING
HIGHhummingbot/connector/exchange/xrpl/xrpl_utils.py259 Returns the sequence number of the latest validated ledger. Args: client: The network client to use toSTRING
HIGHhummingbot/connector/exchange/xrpl/xrpl_utils.py935 Get an already-connected WebSocket client from the pool. This method returns a persistent connection tSTRING
HIGHhummingbot/connector/exchange/xrpl/xrpl_worker_pool.py285 Submit a task to the worker pool. Args: request: The request to process timeouSTRING
HIGHhummingbot/connector/exchange/xrpl/xrpl_worker_pool.py514 Get a healthy client from the node pool with timeout. Args: worker_id: The worker requestiSTRING
HIGH…mingbot/connector/exchange/xrpl/xrpl_fill_processor.py348 Create a TradeUpdate from extracted fill data. Args: order: The order being filled tx_hash: TrSTRING
HIGHhummingbot/connector/exchange/xrpl/xrpl_exchange.py3048 Wait for a transaction to be finalized on the XRPL ledger using the worker pool. This method polls theSTRING
HIGH…t/connector/exchange/xrpl/xrpl_transaction_pipeline.py154 Submit a coroutine to the serialized pipeline. All XRPL transaction submissions should go through thisSTRING
HIGHhummingbot/connector/gateway/gateway.py218 Parse dex_name into (dex, trading_type) tuple. The trading type is never defaulted: Gateway rejects a STRING
HIGHhummingbot/data_feed/candles_feed/candles_base.py581 Ensure the given timestamp is in seconds. Args: - timestamp (int): The input timestamp which cSTRING
HIGHscripts/xrpl_arb_example.py509 Calculates the Volume Weighted Average Price (VWAP) or effective price for trading a specific amount ofSTRING
Over-Commented Block78 hits · 51 pts
SeverityFileLineSnippetContext
LOWdocker-compose.yml21 options:COMMENT
LOWhummingbot/core/gateway/gateway_http_client.py1081 })COMMENT
LOW…ingbot/strategy_v2/executors/lp_executor/data_types.py101 #COMMENT
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py81 self._swap_not_found_count: int = 0COMMENT
LOW…bot/strategy_v2/executors/order_executor/data_types.py41 side: TradeTypeCOMMENT
LOW…ve/pacifica_perpetual/pacifica_perpetual_derivative.py941 # so it's not presented on the first pageCOMMENT
LOW…/derivative/dydx_v4_perpetual/data_sources/keypairs.py1# -*- coding: utf-8 -*-COMMENT
LOW…ative/lighter_perpetual/lighter_perpetual_constants.py81 "canceled-not-enough-liquidity": OrderState.FAILED,COMMENT
LOW…ative/lighter_perpetual/lighter_perpetual_constants.py101# Standard → 60 req/min (shares the single Standard bucket; pool = 60 × 6 = 360)COMMENT
LOW…ative/lighter_perpetual/lighter_perpetual_constants.py181 # ------------------------------------------------------------------COMMENT
LOWhummingbot/connector/exchange/bing_x/bing_x_exchange.py521 last_exception = NoneCOMMENT
LOW…mmingbot/connector/exchange/gemini/gemini_constants.py81SIDE_SELL = "sell"COMMENT
LOW…ctive_v2/data_sources/injective_grantee_data_source.py301 # The transaction failed. All orders should be marked as failedCOMMENT
LOW…ctive_v2/data_sources/injective_grantee_data_source.py321 # del spot_orders_by_cid[order_cid]COMMENT
LOW…ingbot/connector/exchange/lighter/lighter_constants.py81COMMENT
LOW…ingbot/connector/exchange/lighter/lighter_constants.py181 # giving the equivalent of 60 calls/min.COMMENT
LOW…ingbot/connector/exchange/lighter/lighter_constants.py221 # Shared read-only pool — all REST requests (except sendTx forCOMMENT
LOWhummingbot/connector/gateway/gateway_base.py61#COMMENT
LOWhummingbot/connector/gateway/gateway_base.py761 return resultCOMMENT
LOW…tes/conf_perpetual_market_making_strategy_TEMPLATE.yml21# Spread of 1 = 1% away from mid price at that time.COMMENT
LOW…tes/conf_perpetual_market_making_strategy_TEMPLATE.yml101# An external api that returns price (for custom_api pricing source).COMMENT
LOWhummingbot/templates/conf_fee_overrides_TEMPLATE.yml1########################################COMMENT
LOW…emplates/conf_pure_market_making_strategy_TEMPLATE.yml121# An external api that returns price (for custom_api pricing source).COMMENT
LOWhummingbot/templates/conf_amm_arb_strategy_TEMPLATE.yml21COMMENT
LOWhummingbot/templates/conf_amm_arb_strategy_TEMPLATE.yml41# What is the fixed_rate used to convert quote assets?COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3081 # def test_order_not_found_in_its_creating_transaction_marked_as_failed_during_order_creation_check(self, time_mock)COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3101 # creation_transaction_hash="66A360DA2FD6884B53B5C019F1A2B5BED7C7C8FC07E83A9C36AD3362EDE096AE") # noqa: mocCOMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3121 # "rawLog": "",COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3141 # ]COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3161 # {COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3181 # {COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3201 # ]COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3221 # ]COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3241 # ]COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3261 # "trigger_price": "0.000000000000000000",COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3281 # "type": "injective.exchange.v1beta1.EventOrderFail",COMMENT
LOW…ctive_v2_perpetual_derivative_for_delegated_account.py3301 # "codespace": "",COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py261 # mocked_nonce.return_value = 9COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py501 # def test_update_order_status_when_filled(self, mock_api):COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py521 # "ret_code": 0,COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py541 # "stopPrice": "0.0",COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py561 # self.assertTrue(order.is_done)COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py581 # def test_update_order_status_when_cancelled(self, mock_api):COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py601 # "ret_code": 0,COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py621 # "stopPrice": "0.0",COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py641 # self.assertNotIn(order.client_order_id, self.exchange.in_flight_orders)COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py661 # order: InFlightOrder = self.exchange.in_flight_orders["OID1"]COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py681 # "cummulativeQuoteQty": "1",COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py701COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py721 # trade_type=TradeType.BUY,COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py741COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py761 # "c": order.client_order_id,COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py781 # "C": False,COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py801 # self.assertEqual(order.exchange_order_id, event.exchange_order_id)COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py821 # amount=Decimal("1"),COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py841 # "n": "0",COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py861COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py881 # trade_type=TradeType.BUY,COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py901 # "l": "0.50000000",COMMENT
LOW…gbot/connector/exchange/bing_x/test_bing_x_exchange.py921 # self.async_run_with_timeout(self.exchange._user_stream_event_listener())COMMENT
18 more matches not shown…
Modern Structural Boilerplate50 hits · 51 pts
SeverityFileLineSnippetContext
LOWhummingbot/logger/__init__.py22__all__ = [CODE
LOW…t/strategy_v2/backtesting/backtesting_data_provider.py18logger = logging.getLogger(__name__)CODE
LOWhummingbot/strategy_v2/backtesting/__init__.py3__all__ = [CODE
LOWhummingbot/strategy_v2/executors/gateway_utils.py23logger = logging.getLogger(__name__)CODE
LOWhummingbot/strategy_v2/controllers/__init__.py11__all__ = [CODE
LOWhummingbot/cli/strategy_configs.py426def _set_in_template(data: dict, key: str, value: Any) -> None:CODE
LOW⚡hummingbot/connector/exchange/bitget/bitget_exchange.py298 async def _update_balances(self) -> None:CODE
LOW⚡hummingbot/connector/exchange/bitget/bitget_exchange.py587 def _set_account_balances(self, data: Dict[str, Any]) -> None:CODE
LOWhummingbot/connector/exchange/bitget/bitget_exchange.py260 async def _update_trading_fees(self) -> None:CODE
LOWhummingbot/data_feed/wallet_tracker_data_feed.py110 async def _update_balances_by_wallet(self, wallet: str) -> None:CODE
LOWhummingbot/data_feed/coin_gecko_data_feed/__init__.py3__all__ = ["CoinGeckoDataFeed"]CODE
LOWhummingbot/data_feed/coin_cap_data_feed/__init__.py3__all__ = ["CoinCapDataFeed"]CODE
LOW…ingbot/data_feed/liquidations_feed/binance/__init__.py3__all__ = ["BinancePerpetualLiquidations"]CODE
LOW…ta_feed/candles_feed/backpack_spot_candles/__init__.py3__all__ = ["BackpackSpotCandles"]CODE
LOW…ata_feed/candles_feed/binance_spot_candles/__init__.py3__all__ = ["BinanceSpotCandles"]CODE
LOW…eed/candles_feed/decibel_perpetual_candles/__init__.py5__all__ = ["DecibelPerpetualCandles"]CODE
LOW…data_feed/candles_feed/kraken_spot_candles/__init__.py3__all__ = ["KrakenSpotCandles"]CODE
LOW…eed/candles_feed/lighter_perpetual_candles/__init__.py5__all__ = ["LighterPerpetualCandles"]CODE
LOW…eed/candles_feed/binance_perpetual_candles/__init__.py5__all__ = ["BinancePerpetualCandles"]CODE
LOW…t/data_feed/candles_feed/mexc_spot_candles/__init__.py3__all__ = ["MexcSpotCandles"]CODE
LOW…ed/candles_feed/backpack_perpetual_candles/__init__.py3__all__ = ["BackpackPerpetualCandles"]CODE
LOW…candles_feed/hyperliquid_perpetual_candles/__init__.py5__all__ = ["HyperliquidPerpetualCandles"]CODE
LOW…data_feed/candles_feed/bitget_spot_candles/__init__.py3__all__ = ["BitgetSpotCandles"]CODE
LOW…ata_feed/candles_feed/dexalot_spot_candles/__init__.py3__all__ = ["DexalotSpotCandles"]CODE
LOW…feed/candles_feed/bitget_perpetual_candles/__init__.py3__all__ = ["BitgetPerpetualCandles"]CODE
LOW…feed/candles_feed/hyperliquid_spot_candles/__init__.py3__all__ = ["HyperliquidSpotCandles"]CODE
LOW…a_feed/candles_feed/grvt_perpetual_candles/__init__.py3__all__ = ["GrvtPerpetualCandles"]CODE
LOW…ata_feed/candles_feed/lighter_spot_candles/__init__.py3__all__ = ["LighterSpotCandles"]CODE
LOW…_feed/candles_feed/bybit_perpetual_candles/__init__.py3__all__ = ["BybitPerpetualCandles"]CODE
LOW…a_feed/candles_feed/mexc_perpetual_candles/__init__.py3__all__ = ["MexcPerpetualCandles"]CODE
LOW…ot/data_feed/candles_feed/okx_spot_candles/__init__.py3__all__ = ["OKXSpotCandles"]CODE
LOW…ta_feed/candles_feed/okx_perpetual_candles/__init__.py3__all__ = ["OKXPerpetualCandles"]CODE
LOW…eed/candles_feed/gate_io_perpetual_candles/__init__.py3__all__ = ["GateioPerpetualCandles"]CODE
LOW…a_feed/candles_feed/aevo_perpetual_candles/__init__.py3__all__ = ["AevoPerpetualCandles"]CODE
LOW…ata_feed/candles_feed/gate_io_spot_candles/__init__.py3__all__ = ["GateioSpotCandles"]CODE
LOW…feed/candles_feed/evedex_perpetual_candles/__init__.py3__all__ = ["EvedexPerpetualCandles"]CODE
LOW…/data_feed/candles_feed/bybit_spot_candles/__init__.py3__all__ = ["BybitSpotCandles"]CODE
LOW…ed/candles_feed/pacifica_perpetual_candles/__init__.py5__all__ = ["PacificaPerpetualCandles"]CODE
LOW…feed/candles_feed/kucoin_perpetual_candles/__init__.py3__all__ = ["KucoinPerpetualCandles"]CODE
LOW…eed/candles_feed/bitmart_perpetual_candles/__init__.py5__all__ = ["BitmartPerpetualCandles"]CODE
LOW…data_feed/candles_feed/kucoin_spot_candles/__init__.py3__all__ = ["KucoinSpotCandles"]CODE
LOWhummingbot/client/ui/stdout_redirection.py10__all__ = [CODE
LOWhummingbot/client/tab/__init__.py4__all__ = [CODE
LOWhummingbot/client/command/__init__.py22__all__ = [CODE
LOWhummingbot/strategy/perpetual_market_making/__init__.py5__all__ = [CODE
LOW…mmingbot/strategy/avellaneda_market_making/__init__.py5__all__ = [CODE
LOWhummingbot/strategy/pure_market_making/__init__.py6__all__ = [CODE
LOWhummingbot/strategy/cross_exchange_mining/__init__.py4__all__ = [CODE
LOW…gbot/strategy/cross_exchange_market_making/__init__.py5__all__ = [CODE
LOWcontrollers/generic/lp_rebalancer/__init__.py9__all__ = ["LPRebalancer", "LPRebalancerConfig"]CODE
Verbosity Indicators19 hits · 40 pts
SeverityFileLineSnippetContext
LOW⚡hummingbot/core/data_type/order_book_tracker.py429 # Step 1: Subscribe to WebSocket channels for this pairCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py436 # Step 2: Add to internal trading pairs listCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py440 # Step 3: Fetch initial snapshot and create order bookCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py444 # Step 4: Create message queue and start tracking taskCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py485 # Step 1: Cancel the tracking taskCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py494 # Step 2: Unsubscribe from WebSocket channelsCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py500 # Step 3: Clean up data structuresCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py506 # Step 4: Clean up metrics for this pairCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py509 # Step 5: Remove from trading pairs listCOMMENT
LOW⚡…bot/strategy_v2/backtesting/backtesting_engine_base.py370 # Step 1: Convert previous tick's stopped POSITION_HOLD executors → position holdsCOMMENT
LOW⚡…bot/strategy_v2/backtesting/backtesting_engine_base.py373 # Step 2: Check for naturally terminated executorsCOMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py409 # Step 1: Fetch and initialize funding info (perpetual-specific)COMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py414 # Step 2: Add to perpetual trading's trading pairs listCOMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py417 # Step 3: Call parent to handle order book (WebSocket subscription + snapshot)COMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py444 # Step 1: Call parent to handle order book removalCOMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py450 # Step 2: Clean up perpetual-specific data (funding info, trading pairs list)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py288 # Step 1: Start tracking order (emits OrderCreated)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py299 # Step 2: Process order update to FILLED (emits OrderCompleted)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py313 # Step 3: Process trade update (emits OrderFilled)COMMENT
Structural Annotation Overuse19 hits · 40 pts
SeverityFileLineSnippetContext
LOW⚡hummingbot/core/data_type/order_book_tracker.py429 # Step 1: Subscribe to WebSocket channels for this pairCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py436 # Step 2: Add to internal trading pairs listCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py440 # Step 3: Fetch initial snapshot and create order bookCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py444 # Step 4: Create message queue and start tracking taskCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py485 # Step 1: Cancel the tracking taskCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py494 # Step 2: Unsubscribe from WebSocket channelsCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py500 # Step 3: Clean up data structuresCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py506 # Step 4: Clean up metrics for this pairCOMMENT
LOW⚡hummingbot/core/data_type/order_book_tracker.py509 # Step 5: Remove from trading pairs listCOMMENT
LOW⚡…bot/strategy_v2/backtesting/backtesting_engine_base.py370 # Step 1: Convert previous tick's stopped POSITION_HOLD executors → position holdsCOMMENT
LOW⚡…bot/strategy_v2/backtesting/backtesting_engine_base.py373 # Step 2: Check for naturally terminated executorsCOMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py409 # Step 1: Fetch and initialize funding info (perpetual-specific)COMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py414 # Step 2: Add to perpetual trading's trading pairs listCOMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py417 # Step 3: Call parent to handle order book (WebSocket subscription + snapshot)COMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py444 # Step 1: Call parent to handle order book removalCOMMENT
LOW⚡hummingbot/connector/perpetual_derivative_py_base.py450 # Step 2: Clean up perpetual-specific data (funding info, trading pairs list)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py288 # Step 1: Start tracking order (emits OrderCreated)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py299 # Step 2: Process order update to FILLED (emits OrderCompleted)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py313 # Step 3: Process trade update (emits OrderFilled)COMMENT
TODO Padding17 hits · 38 pts
SeverityFileLineSnippetContext
LOW⚡…tive/dydx_v4_perpetual/dydx_v4_perpetual_derivative.py140 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡…tive/gate_io_perpetual/gate_io_perpetual_derivative.py172 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡…tive/gate_io_perpetual/gate_io_perpetual_derivative.py179 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡…r/derivative/okx_perpetual/okx_perpetual_derivative.py140 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡…r/derivative/okx_perpetual/okx_perpetual_derivative.py147 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡hummingbot/connector/exchange/okx/okx_exchange.py111 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡hummingbot/connector/exchange/okx/okx_exchange.py118 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡hummingbot/connector/exchange/htx/htx_exchange.py125 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡hummingbot/connector/exchange/htx/htx_exchange.py132 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡hummingbot/connector/exchange/bing_x/bing_x_exchange.py121 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡hummingbot/connector/exchange/bing_x/bing_x_exchange.py128 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡hummingbot/connector/exchange/bybit/bybit_exchange.py126 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡hummingbot/connector/exchange/bybit/bybit_exchange.py133 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡…mingbot/connector/exchange/bitmart/bitmart_exchange.py129 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡…mingbot/connector/exchange/bitmart/bitmart_exchange.py136 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡…ctor/utilities/oms_connector/oms_connector_exchange.py186 # TODO: implement this method correctly for the connectorCOMMENT
LOW⚡…ctor/utilities/oms_connector/oms_connector_exchange.py193 # TODO: implement this method correctly for the connectorCOMMENT
Modern AI Meta-Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md27**[Condor](https://github.com/hummingbot/condor)** is the AI harness for building and running agentic strategies and botCODE
MEDIUMREADME.md198* [Condor](https://github.com/hummingbot/condor): AI harness for building and running agentic strategies and bot instancCOMMENT
MEDIUMhummingbot/cli/README.md109# ...or scaffold it and fill fields afterwards:COMMENT
MEDIUM⚡hummingbot/cli/commands/deploy.py113 # because deploy's contract is a RUNNING bot — a scaffold can't run.COMMENT
MEDIUMhummingbot/cli/commands/create.py103 # A controller's id is always scaffold-generated; ignore any user-supplied one.COMMENT
MEDIUMhummingbot/cli/commands/create.py124 # this to a scaffold you finish with `hbot config` — so `create` never has to block on inputs.COMMENT
Dead Code4 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMhummingbot/connector/exchange/kucoin/kucoin_exchange.py450CODE
MEDIUMhummingbot/connector/exchange/kucoin/kucoin_exchange.py452CODE
MEDIUMhummingbot/connector/exchange/kucoin/kucoin_exchange.py482CODE
MEDIUM…gbot/connector/exchange/gemini/test_gemini_exchange.py1675CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWhummingbot/core/api_throttler/async_throttler_base.py106 def execute_task(self, limit_id: str) -> AsyncRequestContextBase:CODE
LOWhummingbot/core/api_throttler/async_throttler.py66 def execute_task(self, limit_id: str) -> AsyncRequestContext:CODE