Repository Analysis

hummingbot/hummingbot

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

47.4 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of hummingbot/hummingbot, a Python project with 19,135 GitHub stars. SynthScan v2.0 examined 374,421 lines of code across 1643 source files, recording 13396 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 47.4 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

47.4
Adjusted Score
47.4
Raw Score
100%
Time Factor
2026-07-10
Last Push
19.1K
Stars
Python
Language
374.4K
Lines of Code
1.6K
Files
13.4K
Pattern Hits
2026-07-14
Scan Date
0.54
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 71HIGH 814MEDIUM 455LOW 12056

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 13396 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers10048 hits · 9484 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.py103 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…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
LOWhummingbot/core/rate_oracle/sources/cube_rate_source.py77 def _build_cube_connector_without_private_keys(domain: str) -> 'CubeExchange':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…gbot/core/rate_oracle/sources/ascend_ex_rate_source.py41 def _build_ascend_ex_connector_without_private_keys() -> 'AscendExExchange':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
LOWhummingbot/core/data_type/in_flight_order.py377 async def wait_until_completely_filled(self):CODE
LOWhummingbot/core/data_type/in_flight_order.py380 def check_processed_by_exchange_condition(self):CODE
LOWhummingbot/core/data_type/in_flight_order.py384 async def wait_until_processed_by_exchange(self):CODE
LOWhummingbot/core/data_type/in_flight_order.py387 def build_order_created_message(self) -> str:CODE
LOWhummingbot/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
9988 more matches not shown…
Cross-File Repetition743 hits · 3715 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
HIGHhummingbot/core/rate_oracle/sources/cube_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…ector/exchange/cube/cube_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…r/exchange/vertex/vertex_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…ange/ascend_ex/ascend_ex_api_order_book_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…/exchange/vertex/vertex_api_user_stream_data_source.py0subscribes to the trade events and diff orders events through the provided websocket connection. :param websocket_assistSTRING
HIGH…r/exchange/vertex/vertex_api_order_book_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
683 more matches not shown…
Decorative Section Separators273 hits · 1016 pts
SeverityFileLineSnippetContext
MEDIUMhummingbot/core/gateway/gateway_http_client.py490 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py492 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py556 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py558 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py626 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py628 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py539 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py541 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py666 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py668 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py755 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py757 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py990 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py992 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1517 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1519 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1592 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1594 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1735 # ============================================COMMENT
MEDIUMhummingbot/core/gateway/gateway_http_client.py1737 # ============================================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
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
MEDIUMhummingbot/connector/exchange/xrpl/xrpl_utils.py520# ============================================COMMENT
MEDIUMhummingbot/connector/exchange/xrpl/xrpl_utils.py522# ============================================COMMENT
MEDIUMhummingbot/connector/exchange/xrpl/xrpl_utils.py469# ============================================COMMENT
MEDIUMhummingbot/connector/exchange/xrpl/xrpl_utils.py471# ============================================COMMENT
213 more matches not shown…
Excessive Try-Catch Wrapping934 hits · 896 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
LOWhummingbot/core/utils/async_call_scheduler.py83 except Exception:CODE
LOWhummingbot/core/utils/async_call_scheduler.py89 except Exception as e:CODE
LOWhummingbot/core/utils/async_call_scheduler.py97 except Exception:CODE
LOWhummingbot/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.py136 except Exception:CODE
LOWhummingbot/core/rate_oracle/rate_oracle.py185 except Exception:CODE
LOWhummingbot/core/rate_oracle/rate_oracle.py278 except Exception:CODE
MEDIUMhummingbot/core/rate_oracle/rate_oracle.py178def 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…/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…gbot/core/rate_oracle/sources/ascend_ex_rate_source.py30 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
LOWhummingbot/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
874 more matches not shown…
Hallucination Indicators71 hits · 730 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
11 more matches not shown…
Self-Referential Comments110 hits · 350 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.py100 # Create a new feed or restart the existing one with updated max_recordsCOMMENT
MEDIUM…mingbot/strategy_v2/executors/executor_orchestrator.py407 # Create a Position record (id will only be used for new positions)COMMENT
MEDIUM…mingbot/strategy_v2/executors/executor_orchestrator.py697 # Create a new report starting from cached base valuesCOMMENT
MEDIUM…bot/strategy_v2/executors/dca_executor/dca_executor.py39 # Initialize super classCOMMENT
MEDIUM…_v2/executors/arbitrage_executor/arbitrage_executor.py85 # 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/cube/cube_auth.py103 # Create the HMAC-SHA256 signatureCOMMENT
MEDIUM…ctor/exchange/cube/cube_api_user_stream_data_source.py67 # Create a separate task for handle_heartbeatCOMMENT
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.py458 # 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_recordsCOMMENT
MEDIUMhummingbot/client/command/gateway_command.py601 # Create a new dictionary with the fields we want to displayCOMMENT
MEDIUMhummingbot/client/command/gateway_command.py659 # 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
MEDIUMtest/hummingbot/core/test_trading_core.py482 # Create a function to testCOMMENT
MEDIUMtest/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.py417 # Create a position from databaseCOMMENT
MEDIUM…ot/strategy_v2/executors/test_executor_orchestrator.py463 # Create a database position that should be ignored due to overrideCOMMENT
MEDIUM…ot/strategy_v2/executors/test_executor_orchestrator.py555 # Create an executor that meets criteria for position hold processingCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py150 # Create the order that will be returned by get_in_flight_orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py393 # Create an open orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py430 # Create a filled orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py465 # Create a partially filled orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py672 # Create an open orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py733 # Create a partially filled orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py785 # Create a filled orderCOMMENT
MEDIUM…egy_v2/executors/order_executor/test_order_executor.py857 # 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.py649 # 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…/hummingbot/connector/exchange/cube/test_cube_utils.py48 # Create a mock RawUnits objectCOMMENT
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
50 more matches not shown…
Cross-Language Confusion59 hits · 299 pts
SeverityFileLineSnippetContext
HIGHhummingbot/model/db_migration/transformations.py53 ' config_file_path TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py54 ' strategy TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py55 ' market TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py56 ' symbol TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py57 ' base_asset TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py58 ' quote_asset TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py59 ' creation_timestamp BIGINT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py60 ' order_type TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py61 ' amount BIGINT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py62 ' leverage INTEGER not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py63 ' price FLOAT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py64 ' last_status TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py65 ' last_update_timestamp BIGINT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py85 '( config_file_path TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py86 ' strategy TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py87 ' market TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py88 ' symbol TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py89 ' base_asset TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py90 ' quote_asset TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py91 ' timestamp BIGINT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py94 ' trade_type TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py95 ' order_type TEXT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py96 ' price BIGINT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py97 ' amount FLOAT not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py98 ' leverage INTEGER not null,'CODE
HIGHhummingbot/model/db_migration/transformations.py99 ' trade_fee JSON not null,'CODE
HIGHhummingbot/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.py769 "stop_price": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py770 "stop_parent_order_id": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py775 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1086 "I": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py341 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py460 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py516 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py517 "code": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py541 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py751 "stop_price": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py752 "stop_parent_order_id": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py819 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py862 "error": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1098 "sp": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1099 "si": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1146 "l": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1253 "I": null,STRING
HIGH…ve/pacifica_perpetual/pacifica_perpetual_derivative.py1406 "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.py52 # 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.py3856 # 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.py2016 # orders (not present-but-null) — and present on mainnet. Drives the real _place_order path.COMMENT
HIGH…mingbot/connector/exchange/foxbit/test_foxbit_utils.py47 _msg = '[{"Key":"field0","Value":"Google"},{"Key":"field2","Value":null},{"Key":"field3","Value":"São Paulo"},{"CODE
Deep Nesting365 hits · 282 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.py203CODE
LOWhummingbot/core/gateway/gateway_http_client.py320CODE
LOWhummingbot/core/gateway/gateway_http_client.py354CODE
LOWhummingbot/core/gateway/gateway_http_client.py414CODE
LOWhummingbot/core/gateway/gateway_http_client.py1776CODE
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py64CODE
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py253CODE
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py404CODE
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py435CODE
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.py58CODE
LOW…mingbot/strategy_v2/executors/executor_orchestrator.py599CODE
LOW…bot/strategy_v2/executors/dca_executor/dca_executor.py438CODE
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py558CODE
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py713CODE
LOW…strategy_v2/executors/order_executor/order_executor.py216CODE
LOW…gy_v2/executors/position_executor/position_executor.py534CODE
LOW…gy_v2/executors/position_executor/position_executor.py722CODE
LOW…t/strategy_v2/executors/grid_executor/grid_executor.py298CODE
LOW…t/strategy_v2/executors/grid_executor/grid_executor.py504CODE
LOW…t/strategy_v2/executors/grid_executor/grid_executor.py519CODE
LOW…t/strategy_v2/executors/grid_executor/grid_executor.py553CODE
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
LOWhummingbot/model/sql_connection_manager.py112CODE
LOWhummingbot/connector/parrot.py90CODE
LOWhummingbot/connector/parrot.py119CODE
LOWhummingbot/connector/markets_recorder.py124CODE
305 more matches not shown…
Unused Imports211 hits · 210 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/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/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…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
LOW…petual/bitget_perpetual_api_user_stream_data_source.py14CODE
LOW…rpetual/architect_perpetual_user_stream_data_source.py13CODE
LOW…tual/architect_perpetual_api_order_book_data_source.py21CODE
151 more matches not shown…
AI Structural Patterns239 hits · 201 pts
SeverityFileLineSnippetContext
LOW…ingbot/core/web_assistant/connections/ws_connection.py154CODE
LOWhummingbot/core/gateway/gateway_http_client.py1537CODE
LOWhummingbot/core/gateway/gateway_http_client.py1623CODE
LOWhummingbot/model/trade_fill.py54CODE
LOWhummingbot/connector/exchange_py_base.py916CODE
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.py44CODE
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.py77CODE
LOW…petual/binance_perpetual_api_order_book_data_source.py276CODE
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.py213CODE
LOW…rpetual/kucoin_perpetual_api_order_book_data_source.py257CODE
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.py47CODE
LOW…mmingbot/connector/exchange/bing_x/bing_x_web_utils.py63CODE
LOW…ange/ascend_ex/ascend_ex_api_order_book_data_source.py56CODE
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
LOW…r/exchange/kucoin/kucoin_api_order_book_data_source.py80CODE
LOW…ctor/exchange/injective_v2/injective_query_executor.py133CODE
LOW…ctor/exchange/injective_v2/injective_query_executor.py174CODE
LOW…ctor/exchange/injective_v2/injective_query_executor.py184CODE
LOW…ctor/exchange/injective_v2/injective_query_executor.py196CODE
179 more matches not shown…
Redundant / Tautological Comments97 hits · 147 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
LOWhummingbot/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.py1753 # Check if wallet address is a placeholderCOMMENT
LOWhummingbot/strategy_v2/executors/gateway_utils.py83 # Check if connector exists in GATEWAY_DEXSCOMMENT
LOWhummingbot/strategy_v2/executors/gateway_utils.py125 # Check if it's a network-style connector (chain-network format)COMMENT
LOWhummingbot/strategy_v2/executors/gateway_utils.py178 # Check if connector exists at all with any typeCOMMENT
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py174 # Check if price exceeded upper limitCOMMENT
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py178 # Check if price exceeded lower limitCOMMENT
LOW…ngbot/strategy_v2/executors/lp_executor/lp_executor.py576 # 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.py1277 # Check if this is a HIP-3 market (doesn't support leverage API)COMMENT
LOW…erliquid_perpetual/hyperliquid_perpetual_derivative.py1283 # Check if coin exists in mappingCOMMENT
LOW…ve/backpack_perpetual/backpack_perpetual_derivative.py703 # 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
LOWhummingbot/connector/exchange/vertex/vertex_utils.py56 # Check if data type is str or floatCOMMENT
LOWhummingbot/connector/exchange/vertex/vertex_utils.py82 # Check if data type is str or floatCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py962 # Check if connection is still openCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py970 # Check if connection is healthyCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py974 # Check if connection is currently reconnecting - skip to avoid race conditionsCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py1172 # Check if connection is closedCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py1177 # 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.py3440 # Check if the change is for the LP tokenCOMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_exchange.py3544 # Check if the change is for the LP tokenCOMMENT
LOWhummingbot/connector/gateway/gateway_base.py652 # Check if result is a dict with status field (transaction response)COMMENT
LOWhummingbot/connector/gateway/gateway_base.py873 # Check if transaction is still pendingCOMMENT
LOWhummingbot/connector/gateway/gateway.py282 # Check if order is already being trackedCOMMENT
LOWhummingbot/data_feed/market_data_provider.py565 # Check if we have cached data and what range it coversCOMMENT
LOWhummingbot/data_feed/market_data_provider.py572 # 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/gateway_lp_command.py45 # Check if collect-fees is being called on non-CLMM dex_typeCOMMENT
LOWhummingbot/client/command/gateway_lp_command.py162 # Check if in rangeCOMMENT
LOWhummingbot/client/command/create_command.py145 # Check if the file already existsCOMMENT
LOWhummingbot/client/command/gateway_command.py426 # Check if wallet address is a placeholderCOMMENT
LOWhummingbot/client/command/gateway_command.py466 # 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
37 more matches not shown…
AI Slop Vocabulary35 hits · 103 pts
SeverityFileLineSnippetContext
MEDIUMhummingbot/connector/perpetual_trading.py95 # Clean up leverage settingsCOMMENT
MEDIUM…erliquid_perpetual/hyperliquid_perpetual_derivative.py1277 # Check if this is a HIP-3 market (doesn't support leverage API)COMMENT
MEDIUM…ve/backpack_perpetual/backpack_perpetual_derivative.py608 """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
MEDIUMhummingbot/connector/exchange/bitrue/bitrue_exchange.py401 # We have overridden `_update_orders_fills` to utilize batch trade updates to reduce API limit consumption.COMMENT
MEDIUMhummingbot/connector/exchange/vertex/vertex_exchange.py247 # NOTE: There are two differen't limits depending on the use of leverageCOMMENT
MEDIUM…mmingbot/connector/exchange/vertex/vertex_constants.py255 # NOTE: For spot with no leverage, there are different limits.COMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py1305 # 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…uid_perpetual/test_hyperliquid_perpetual_derivative.py2609 """Test setting leverage for HIP-3 market uses isolated margin."""STRING
MEDIUM…uid_perpetual/test_hyperliquid_perpetual_derivative.py2639 """Test setting leverage fails when coin not in coin_to_asset mapping."""STRING
MEDIUM…ckpack_perpetual/test_backpack_perpetual_derivative.py1192 """Test leverage initialization when API call fails"""STRING
MEDIUM…ckpack_perpetual/test_backpack_perpetual_derivative.py1208 """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 Structure12 hits · 60 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.py26 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.py349 Determines the state of an order based on the provided parameters. Valid until Bitmart implements spot order STRING
HIGHhummingbot/connector/exchange/xrpl/xrpl_utils.py248 Returns the sequence number of the latest validated ledger. Args: client: The network client to use toSTRING
HIGHhummingbot/connector/exchange/xrpl/xrpl_utils.py924 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/data_feed/candles_feed/candles_base.py496 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
TODO Padding24 hits · 54 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
LOWhummingbot/connector/exchange/okx/okx_exchange.py111 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/okx/okx_exchange.py118 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/htx/htx_exchange.py125 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/htx/htx_exchange.py132 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/bing_x/bing_x_exchange.py121 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/bing_x/bing_x_exchange.py128 # TODO: implement this method correctly for the connectorCOMMENT
LOW…bot/connector/exchange/ascend_ex/ascend_ex_exchange.py138 # TODO: implement this method correctly for the connectorCOMMENT
LOW…bot/connector/exchange/ascend_ex/ascend_ex_exchange.py145 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/cube/cube_exchange.py134 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/cube/cube_exchange.py141 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/bybit/bybit_exchange.py126 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/bybit/bybit_exchange.py133 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/vertex/vertex_exchange.py122 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/vertex/vertex_exchange.py129 # TODO: implement this method correctly for the connectorCOMMENT
LOWhummingbot/connector/exchange/vertex/vertex_exchange.py136 # 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
Over-Commented Block83 hits · 52 pts
SeverityFileLineSnippetContext
LOW…ve/pacifica_perpetual/pacifica_perpetual_derivative.py941COMMENT
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
LOWhummingbot/connector/exchange/cube/cube_utils.py21COMMENT
LOWhummingbot/connector/exchange/cube/cube_exchange.py181 self,COMMENT
LOWhummingbot/connector/exchange/cube/cube_exchange.py301 # Response Example:COMMENT
LOWhummingbot/connector/exchange/cube/cube_exchange.py681COMMENT
LOWhummingbot/connector/exchange/cube/cube_exchange.py701 # "modifiedAt": 1710257649309918309COMMENT
LOWhummingbot/connector/exchange/cube/cube_exchange.py721 # "filledTotal": {COMMENT
LOWhummingbot/connector/exchange/cube/cube_exchange.py741 # ],COMMENT
LOWhummingbot/connector/exchange/cube/cube_exchange.py801COMMENT
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
LOWhummingbot/connector/exchange/vertex/vertex_exchange.py121 def _is_request_exception_related_to_time_synchronizer(self, request_exception: Exception) -> bool:COMMENT
LOWhummingbot/connector/exchange/xrpl/xrpl_utils.py981 conn.record_success()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
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…ual/test_pacifica_perpetual_user_stream_data_source.py241 # Look for ping messageCOMMENT
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
23 more matches not shown…
Modern Structural Boilerplate48 hits · 49 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.py22logger = logging.getLogger(__name__)CODE
LOWhummingbot/strategy_v2/controllers/__init__.py11__all__ = [CODE
LOWhummingbot/connector/exchange/bitget/bitget_exchange.py292 async def _update_balances(self) -> None:CODE
LOWhummingbot/connector/exchange/bitget/bitget_exchange.py581 def _set_account_balances(self, data: Dict[str, Any]) -> None:CODE
LOWhummingbot/connector/exchange/bitget/bitget_exchange.py254 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…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…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…a_feed/candles_feed/ascend_ex_spot_candles/__init__.py3__all__ = ["AscendExSpotCandles"]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__.py26__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__.py3__all__ = ["LPRebalancer", "LPRebalancerConfig"]CODE
Verbosity Indicators19 hits · 40 pts
SeverityFileLineSnippetContext
LOWhummingbot/core/data_type/order_book_tracker.py429 # Step 1: Subscribe to WebSocket channels for this pairCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py436 # Step 2: Add to internal trading pairs listCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py440 # Step 3: Fetch initial snapshot and create order bookCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py444 # Step 4: Create message queue and start tracking taskCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py485 # Step 1: Cancel the tracking taskCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py494 # Step 2: Unsubscribe from WebSocket channelsCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py500 # Step 3: Clean up data structuresCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py506 # Step 4: Clean up metrics for this pairCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py509 # Step 5: Remove from trading pairs listCOMMENT
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py295 # Step 1: Convert previous tick's stopped POSITION_HOLD executors → position holdsCOMMENT
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py298 # Step 2: Check for naturally terminated executorsCOMMENT
LOWhummingbot/connector/perpetual_derivative_py_base.py409 # Step 1: Fetch and initialize funding info (perpetual-specific)COMMENT
LOWhummingbot/connector/perpetual_derivative_py_base.py414 # Step 2: Add to perpetual trading's trading pairs listCOMMENT
LOWhummingbot/connector/perpetual_derivative_py_base.py417 # Step 3: Call parent to handle order book (WebSocket subscription + snapshot)COMMENT
LOWhummingbot/connector/perpetual_derivative_py_base.py444 # Step 1: Call parent to handle order book removalCOMMENT
LOWhummingbot/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.py287 # Step 1: Start tracking order (emits OrderCreated)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py298 # Step 2: Process order update to FILLED (emits OrderCompleted)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py312 # Step 3: Process trade update (emits OrderFilled)COMMENT
Structural Annotation Overuse19 hits · 40 pts
SeverityFileLineSnippetContext
LOWhummingbot/core/data_type/order_book_tracker.py429 # Step 1: Subscribe to WebSocket channels for this pairCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py436 # Step 2: Add to internal trading pairs listCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py440 # Step 3: Fetch initial snapshot and create order bookCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py444 # Step 4: Create message queue and start tracking taskCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py485 # Step 1: Cancel the tracking taskCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py494 # Step 2: Unsubscribe from WebSocket channelsCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py500 # Step 3: Clean up data structuresCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py506 # Step 4: Clean up metrics for this pairCOMMENT
LOWhummingbot/core/data_type/order_book_tracker.py509 # Step 5: Remove from trading pairs listCOMMENT
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py295 # Step 1: Convert previous tick's stopped POSITION_HOLD executors → position holdsCOMMENT
LOW…bot/strategy_v2/backtesting/backtesting_engine_base.py298 # Step 2: Check for naturally terminated executorsCOMMENT
LOWhummingbot/connector/perpetual_derivative_py_base.py409 # Step 1: Fetch and initialize funding info (perpetual-specific)COMMENT
LOWhummingbot/connector/perpetual_derivative_py_base.py414 # Step 2: Add to perpetual trading's trading pairs listCOMMENT
LOWhummingbot/connector/perpetual_derivative_py_base.py417 # Step 3: Call parent to handle order book (WebSocket subscription + snapshot)COMMENT
LOWhummingbot/connector/perpetual_derivative_py_base.py444 # Step 1: Call parent to handle order book removalCOMMENT
LOWhummingbot/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.py287 # Step 1: Start tracking order (emits OrderCreated)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py298 # Step 2: Process order update to FILLED (emits OrderCompleted)COMMENT
LOWtest/hummingbot/connector/gateway/test_gateway_base.py312 # Step 3: Process trade update (emits OrderFilled)COMMENT
Dead Code4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMhummingbot/connector/exchange/kucoin/kucoin_exchange.py450CODE
MEDIUMhummingbot/connector/exchange/kucoin/kucoin_exchange.py452CODE
MEDIUMhummingbot/connector/exchange/kucoin/kucoin_exchange.py482CODE
MEDIUM…onnector/exchange/ascend_ex/test_ascend_ex_exchange.py81CODE
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