Repository Analysis

nautechsystems/nautilus_trader

Production-grade Rust-native trading engine with deterministic event-driven architecture

12.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of nautechsystems/nautilus_trader, a Rust project with 24,683 GitHub stars. SynthScan v2.0 examined 2,141,504 lines of code across 5184 source files, recording 20873 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 12.7 places this repository in the Low 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).

12.7
Adjusted Score
12.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
24.7K
Stars
Rust
Language
2.1M
Lines of Code
5.2K
Files
20.9K
Pattern Hits
2026-07-14
Scan Date
0.04
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 0HIGH 227MEDIUM 3243LOW 17403

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 20873 distinct pattern matches across 23 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.

Decorative Section Separators2889 hits · 9036 pts
SeverityFileLineSnippetContext
MEDIUMCargo.toml383# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml385# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml394# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml396# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml494# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml496# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml501# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml511# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml513# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml524# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml534# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml536# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml545# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml95# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml99# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml120# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml125# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml316# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml318# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml358# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml360# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml413# -----------------------------------------------------------------------------COMMENT
MEDIUMCargo.toml415# -----------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml4# =============================================================================COMMENT
MEDIUMdeny.toml6# =============================================================================COMMENT
MEDIUMdeny.toml14# =============================================================================COMMENT
MEDIUMdeny.toml16# =============================================================================COMMENT
MEDIUMdeny.toml66# =============================================================================COMMENT
MEDIUMdeny.toml68# =============================================================================COMMENT
MEDIUMdeny.toml117# =============================================================================COMMENT
MEDIUMdeny.toml119# =============================================================================COMMENT
MEDIUMdeny.toml240# =============================================================================COMMENT
MEDIUMdeny.toml242# =============================================================================COMMENT
MEDIUMosv-scanner.toml4# =============================================================================COMMENT
MEDIUMosv-scanner.toml6# =============================================================================COMMENT
MEDIUMnautilus_trader/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/__init__.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/accounting/error.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/accounting/error.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/accounting/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/accounting/__init__.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/accounting/accounts/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/accounting/accounts/__init__.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/core/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/core/__init__.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/core/inspect.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/core/inspect.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/themes.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/themes.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/config.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/config.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/reporter.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/reporter.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/analyzer.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/analyzer.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/__init__.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/tearsheet.py1# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/tearsheet.py14# -------------------------------------------------------------------------------------------------COMMENT
MEDIUMnautilus_trader/analysis/statistic.py1# -------------------------------------------------------------------------------------------------COMMENT
2829 more matches not shown…
Hyper-Verbose Identifiers8737 hits · 7648 pts
SeverityFileLineSnippetContext
LOWbuild.py360def _copy_build_dir_to_project(cmd: build_ext) -> None:CODE
LOWbuild.py376def _copy_rust_dylibs_to_project() -> None:CODE
LOWbuild.py439def _ensure_windows_python_import_lib() -> None:CODE
LOWbuild.py521def show_rustanalyzer_settings() -> None:CODE
LOWbuild.py554def _ensure_local_editable_pth() -> None:CODE
LOWnautilus_trader/analysis/reporter.py54 def generate_order_fills_report(orders: list[Order]) -> pd.DataFrame:CODE
LOWnautilus_trader/analysis/reporter.py118 def generate_positions_report(CODE
LOWnautilus_trader/analysis/analyzer.py434 def _canonical_position_id_value(position_id: str) -> str:CODE
LOWnautilus_trader/analysis/analyzer.py562 def get_performance_stats_pnls(CODE
LOWnautilus_trader/analysis/analyzer.py609 def get_performance_stats_returns(self) -> dict[str, Any]:CODE
LOWnautilus_trader/analysis/analyzer.py623 def get_performance_stats_position_returns(self) -> dict[str, Any]:CODE
LOWnautilus_trader/analysis/analyzer.py634 def get_performance_stats_portfolio_returns(self) -> dict[str, Any]:CODE
LOWnautilus_trader/analysis/analyzer.py645 def get_performance_stats_returns_vs_benchmark(CODE
LOWnautilus_trader/analysis/analyzer.py703 def get_performance_stats_general(self) -> dict[str, Any]:CODE
LOWnautilus_trader/analysis/analyzer.py758 def get_stats_returns_formatted(self) -> list[str]:CODE
LOWnautilus_trader/analysis/analyzer.py770 def get_stats_position_returns_formatted(self) -> list[str]:CODE
LOWnautilus_trader/analysis/analyzer.py782 def get_stats_portfolio_returns_formatted(self) -> list[str]:CODE
LOWnautilus_trader/analysis/analyzer.py794 def get_stats_general_formatted(self) -> list[str]:CODE
LOWnautilus_trader/analysis/analyzer.py816 def _calculate_portfolio_returns(self, account: Account) -> pd.Series:CODE
LOWnautilus_trader/analysis/tearsheet.py445def _resolve_tearsheet_returns(CODE
LOWnautilus_trader/analysis/tearsheet.py476def _calculate_account_returns(CODE
LOWnautilus_trader/analysis/tearsheet.py537def _extract_account_balance_series(CODE
LOWnautilus_trader/analysis/tearsheet.py566def _calculate_daily_balance_returns(total_balance: pd.Series) -> pd.Series | None:CODE
LOWnautilus_trader/analysis/tearsheet.py584def _aggregate_period_returns(CODE
LOWnautilus_trader/analysis/tearsheet.py603def create_tearsheet_from_stats(CODE
LOWnautilus_trader/analysis/tearsheet.py891def create_monthly_returns_heatmap(CODE
LOWnautilus_trader/analysis/tearsheet.py997def create_returns_distribution(CODE
LOWnautilus_trader/analysis/tearsheet.py2118def _register_tearsheet_chart(CODE
LOWnautilus_trader/analysis/statistic.py82 def calculate_from_realized_pnls(self, realized_pnls: pd.Series) -> Any | None:CODE
LOWnautilus_trader/analysis/statistic.py136 def _downsample_to_daily_bins(self, returns: pd.Series) -> pd.Series:CODE
LOWnautilus_trader/serialization/arrow/serializer.py137 def _unpack_container_objects(data_cls: type, data: list[Any]) -> list[Data]:CODE
LOWnautilus_trader/serialization/arrow/serializer.py144 def rust_defined_to_record_batch( # noqa: C901 (too complex)CODE
LOWnautilus_trader/serialization/arrow/serializer.py414def register_rust_custom_serializer(CODE
LOWnautilus_trader/serialization/arrow/serializer.py544def _instrument_status_encoder(data: list) -> pa.RecordBatch:CODE
LOWnautilus_trader/serialization/arrow/serializer.py553def _instrument_status_decoder(table) -> list:CODE
LOWnautilus_trader/test_kit/functions.py49def ensure_all_tasks_completed() -> None:CODE
LOWnautilus_trader/test_kit/providers.py488 def onethousandrats_perp_binance() -> CryptoPerpetual:CODE
LOWnautilus_trader/test_kit/providers.py891 def crypto_futures_spread_inverse() -> CryptoFuturesSpread:CODE
LOWnautilus_trader/test_kit/providers.py920 def crypto_option_spread_inverse() -> CryptoOptionSpread:CODE
LOWnautilus_trader/test_kit/providers.py979def first_friday_two_years_six_months_ago(year: int, month: int) -> dt.date:CODE
LOWnautilus_trader/test_kit/providers.py1143 def generate_time_series_index(CODE
LOWnautilus_trader/test_kit/providers.py1293def get_test_data_large_checksums_filepath() -> Path:CODE
LOWnautilus_trader/test_kit/providers.py1325def ensure_data_exists_tardis_huobi_quotes() -> Path:CODE
LOWnautilus_trader/test_kit/providers.py1332def ensure_data_exists_tardis_bitmex_trades() -> Path:CODE
LOWnautilus_trader/test_kit/strategies/tester_exec.py730 def maintain_stop_sell_orders(CODE
LOWnautilus_trader/test_kit/rust/instruments_pyo3.py560 def perpetual_contract_eurusd() -> PerpetualContract:CODE
LOWnautilus_trader/test_kit/rust/events_pyo3.py84 def cash_account_state_million_usd() -> AccountState:CODE
LOWnautilus_trader/test_kit/rust/events_pyo3.py129 def cash_account_state_multi_changed_btc() -> AccountState:CODE
LOWnautilus_trader/test_kit/rust/events_pyo3.py172 def order_denied_max_submit_rate() -> OrderDenied:CODE
LOWnautilus_trader/test_kit/rust/events_pyo3.py185 def order_rejected_insufficient_margin() -> OrderRejected:CODE
LOWnautilus_trader/backtest/node.py839def get_price_protection_points(config: BacktestVenueConfig) -> int | None:CODE
LOWnautilus_trader/adapters/okx/execution.py1761 async def _batch_cancel_regular_orders(self, orders_to_cancel) -> None:CODE
LOWnautilus_trader/adapters/okx/execution.py1768 async def _batch_cancel_http_orders(self, http_cancels) -> None:CODE
LOWnautilus_trader/adapters/okx/execution.py1772 async def _batch_cancel_algo_orders(CODE
LOWnautilus_trader/adapters/okx/execution.py2290 async def _cancel_all_orders_mass_cancel(self, command: CancelAllOrders) -> None:CODE
LOWnautilus_trader/adapters/okx/execution.py3127 def _canonical_client_order_id(CODE
LOWnautilus_trader/adapters/okx/execution.py3134 def _exchange_client_order_id(CODE
LOWnautilus_trader/adapters/okx/execution.py3141 def _register_client_order_aliases(CODE
LOWnautilus_trader/adapters/okx/execution.py452 async def generate_order_status_reports(CODE
LOWnautilus_trader/adapters/okx/execution.py519 async def generate_order_status_report(CODE
8677 more matches not shown…
Over-Commented Block6913 hits · 6616 pts
SeverityFileLineSnippetContext
LOWCargo.toml501# -----------------------------------------------------------------------------COMMENT
LOWCargo.toml521#COMMENT
LOWdeny.toml41COMMENT
LOW.zizmor.yml1# Zizmor configuration for GitHub Actions security auditingCOMMENT
LOWnautilus_trader/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/accounting/error.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/accounting/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/accounting/accounts/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/core/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/core/inspect.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/analysis/themes.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/analysis/config.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/analysis/reporter.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/analysis/analyzer.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/analysis/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/analysis/tearsheet.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/analysis/statistic.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/cache/config.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/cache/transformers.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/cache/adapter.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/cache/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/config/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/indicators/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/serialization/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/serialization/arrow/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/serialization/arrow/serializer.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/serialization/arrow/schema.py1# -------------------------------------------------------------------------------------------------COMMENT
LOW…r/serialization/arrow/implementations/account_state.py1# -------------------------------------------------------------------------------------------------COMMENT
LOW…er/serialization/arrow/implementations/order_events.py1# -------------------------------------------------------------------------------------------------COMMENT
LOW…trader/serialization/arrow/implementations/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOW…der/serialization/arrow/implementations/instruments.py1# -------------------------------------------------------------------------------------------------COMMENT
LOW…ialization/arrow/implementations/component_commands.py1# -------------------------------------------------------------------------------------------------COMMENT
LOW…alization/arrow/implementations/funding_rate_update.py1# -------------------------------------------------------------------------------------------------COMMENT
LOW…erialization/arrow/implementations/component_events.py1# -------------------------------------------------------------------------------------------------COMMENT
LOW…serialization/arrow/implementations/position_events.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/network/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/functions.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/debug_helpers.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/providers.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/strategies/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/strategies/tester_data.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/strategies/tester_exec.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/rust/accounting_pyo3.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/rust/instruments_pyo3.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/rust/identifiers_pyo3.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/rust/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/rust/types_pyo3.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/rust/data_pyo3.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/rust/orders_pyo3.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/test_kit/rust/events_pyo3.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/backtest/config.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/backtest/results.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/backtest/results.py41 stats_returns: dict[str, float]COMMENT
LOWnautilus_trader/backtest/results.py81 return innerCOMMENT
LOWnautilus_trader/backtest/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/backtest/node_builder.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/backtest/node.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/backtest/__main__.py1# -------------------------------------------------------------------------------------------------COMMENT
LOWnautilus_trader/backtest/models/__init__.py1# -------------------------------------------------------------------------------------------------COMMENT
6853 more matches not shown…
Cross-File Repetition199 hits · 995 pts
SeverityFileLineSnippetContext
HIGHnautilus_trader/test_kit/strategies/tester_exec.py0actions to be performed when the strategy is stopped.STRING
HIGH…ilus_trader/examples/strategies/orderbook_imbalance.py0actions to be performed when the strategy is stopped.STRING
HIGHnautilus_trader/examples/strategies/ema_cross_twap.py0actions to be performed when the strategy is stopped.STRING
HIGH…lus_trader/examples/strategies/ema_cross_stop_entry.py0actions to be performed when the strategy is stopped.STRING
HIGH…utilus_trader/examples/strategies/bb_mean_reversion.py0actions to be performed when the strategy is stopped.STRING
HIGH…_trader/examples/strategies/ema_cross_trailing_stop.py0actions to be performed when the strategy is stopped.STRING
HIGH…_trader/examples/strategies/volatility_market_maker.py0actions to be performed when the strategy is stopped.STRING
HIGH…s_trader/examples/strategies/ema_cross_bracket_algo.py0actions to be performed when the strategy is stopped.STRING
HIGHnautilus_trader/examples/strategies/market_maker.py0actions to be performed when the strategy is stopped.STRING
HIGH…utilus_trader/examples/strategies/ema_cross_bracket.py0actions to be performed when the strategy is stopped.STRING
HIGHnautilus_trader/examples/strategies/ema_cross.py0actions to be performed when the strategy is stopped.STRING
HIGH…ilus_trader/examples/strategies/ema_cross_long_only.py0actions to be performed when the strategy is stopped.STRING
HIGH…lus_trader/examples/strategies/ema_cross_hedge_mode.py0actions to be performed when the strategy is stopped.STRING
HIGHnautilus_trader/examples/strategies/blank.py0actions to be performed when the strategy is stopped.STRING
HIGHnautilus_trader/backtest/node_builder.py0add the given execution client factory to the node. parameters ---------- name : str the name of the client factory. facSTRING
HIGHnautilus_trader/live/node_builder.py0add the given execution client factory to the node. parameters ---------- name : str the name of the client factory. facSTRING
HIGHnautilus_trader/backtest/node.py0add the given execution client factory to the node. parameters ---------- name : str the name of the client factory. facSTRING
HIGHnautilus_trader/live/node.py0add the given execution client factory to the node. parameters ---------- name : str the name of the client factory. facSTRING
HIGHnautilus_trader/adapters/okx/__init__.py0betfair sports betting exchange integration adapter. this subpackage provides an instrument provider, data and executionSTRING
HIGHnautilus_trader/adapters/architect_ax/__init__.py0betfair sports betting exchange integration adapter. this subpackage provides an instrument provider, data and executionSTRING
HIGHnautilus_trader/adapters/bitmex/__init__.py0betfair sports betting exchange integration adapter. this subpackage provides an instrument provider, data and executionSTRING
HIGHnautilus_trader/adapters/bybit/__init__.py0betfair sports betting exchange integration adapter. this subpackage provides an instrument provider, data and executionSTRING
HIGHnautilus_trader/adapters/betfair/__init__.py0betfair sports betting exchange integration adapter. this subpackage provides an instrument provider, data and executionSTRING
HIGHnautilus_trader/adapters/binance/__init__.py0betfair sports betting exchange integration adapter. this subpackage provides an instrument provider, data and executionSTRING
HIGHnautilus_trader/adapters/okx/providers.py0return all kraken pyo3 instrument definitions held by the provider. returns ------- list[nautilus_pyo3.instrument]STRING
HIGHnautilus_trader/adapters/bitmex/providers.py0return all kraken pyo3 instrument definitions held by the provider. returns ------- list[nautilus_pyo3.instrument]STRING
HIGHnautilus_trader/adapters/deribit/providers.py0return all kraken pyo3 instrument definitions held by the provider. returns ------- list[nautilus_pyo3.instrument]STRING
HIGHnautilus_trader/adapters/bybit/providers.py0return all kraken pyo3 instrument definitions held by the provider. returns ------- list[nautilus_pyo3.instrument]STRING
HIGHnautilus_trader/adapters/dydx/providers.py0return all kraken pyo3 instrument definitions held by the provider. returns ------- list[nautilus_pyo3.instrument]STRING
HIGHnautilus_trader/adapters/kraken/providers.py0return all kraken pyo3 instrument definitions held by the provider. returns ------- list[nautilus_pyo3.instrument]STRING
HIGHnautilus_trader/adapters/betfair/data_types.py0unix timestamp (nanoseconds) when the data event occurred. returns ------- intSTRING
HIGHnautilus_trader/adapters/binance/futures/types.py0unix timestamp (nanoseconds) when the data event occurred. returns ------- intSTRING
HIGHnautilus_trader/adapters/binance/common/types.py0unix timestamp (nanoseconds) when the data event occurred. returns ------- intSTRING
HIGHnautilus_trader/common/signal.py0unix timestamp (nanoseconds) when the data event occurred. returns ------- intSTRING
HIGHdocs/concepts/data/index.md0unix timestamp (nanoseconds) when the data event occurred. returns ------- intSTRING
HIGHnautilus_trader/adapters/betfair/data_types.py0unix timestamp (nanoseconds) when the object was initialized. returns ------- intSTRING
HIGHnautilus_trader/adapters/binance/futures/types.py0unix timestamp (nanoseconds) when the object was initialized. returns ------- intSTRING
HIGHnautilus_trader/adapters/binance/common/types.py0unix timestamp (nanoseconds) when the object was initialized. returns ------- intSTRING
HIGHnautilus_trader/common/signal.py0unix timestamp (nanoseconds) when the object was initialized. returns ------- intSTRING
HIGHdocs/concepts/data/index.md0unix timestamp (nanoseconds) when the object was initialized. returns ------- intSTRING
HIGHnautilus_trader/adapters/binance/futures/types.py0return a dictionary representation of this object. returns ------- dict[str, any]STRING
HIGHnautilus_trader/adapters/binance/common/types.py0return a dictionary representation of this object. returns ------- dict[str, any]STRING
HIGHnautilus_trader/execution/reports.py0return a dictionary representation of this object. returns ------- dict[str, any]STRING
HIGH…utilus_trader/adapters/binance/futures/http/account.py0parameters of openorders get request. parameters ---------- timestamp : str the millisecond timestamp of the request symSTRING
HIGHnautilus_trader/adapters/binance/spot/http/account.py0parameters of openorders get request. parameters ---------- timestamp : str the millisecond timestamp of the request symSTRING
HIGHnautilus_trader/adapters/binance/http/account.py0parameters of openorders get request. parameters ---------- timestamp : str the millisecond timestamp of the request symSTRING
HIGH…ilus_trader/examples/strategies/orderbook_imbalance.py0actions to be performed when the strategy is reset.STRING
HIGHnautilus_trader/examples/strategies/ema_cross_twap.py0actions to be performed when the strategy is reset.STRING
HIGH…lus_trader/examples/strategies/ema_cross_stop_entry.py0actions to be performed when the strategy is reset.STRING
HIGH…utilus_trader/examples/strategies/bb_mean_reversion.py0actions to be performed when the strategy is reset.STRING
HIGH…_trader/examples/strategies/ema_cross_trailing_stop.py0actions to be performed when the strategy is reset.STRING
HIGH…_trader/examples/strategies/volatility_market_maker.py0actions to be performed when the strategy is reset.STRING
HIGH…s_trader/examples/strategies/ema_cross_bracket_algo.py0actions to be performed when the strategy is reset.STRING
HIGH…utilus_trader/examples/strategies/grid_market_maker.py0actions to be performed when the strategy is reset.STRING
HIGH…utilus_trader/examples/strategies/ema_cross_bracket.py0actions to be performed when the strategy is reset.STRING
HIGHnautilus_trader/examples/strategies/ema_cross.py0actions to be performed when the strategy is reset.STRING
HIGH…ilus_trader/examples/strategies/ema_cross_long_only.py0actions to be performed when the strategy is reset.STRING
HIGH…lus_trader/examples/strategies/ema_cross_hedge_mode.py0actions to be performed when the strategy is reset.STRING
HIGHnautilus_trader/examples/strategies/blank.py0actions to be performed when the strategy is reset.STRING
HIGHnautilus_trader/examples/strategies/subscribe.py0configuration for ``mystrategy`` instances. parameters ---------- instrument_id : instrumentid the instrument id for theSTRING
139 more matches not shown…
Unused Imports829 hits · 706 pts
SeverityFileLineSnippetContext
LOWnautilus_trader/core/__init__.py28CODE
LOWnautilus_trader/core/__init__.py29CODE
LOWnautilus_trader/core/__init__.py30CODE
LOWnautilus_trader/core/__init__.py31CODE
LOWnautilus_trader/core/__init__.py32CODE
LOWnautilus_trader/core/__init__.py33CODE
LOWnautilus_trader/core/__init__.py34CODE
LOWnautilus_trader/analysis/themes.py19CODE
LOWnautilus_trader/analysis/config.py19CODE
LOWnautilus_trader/analysis/__init__.py20CODE
LOWnautilus_trader/analysis/__init__.py21CODE
LOWnautilus_trader/analysis/__init__.py22CODE
LOWnautilus_trader/analysis/__init__.py23CODE
LOWnautilus_trader/analysis/__init__.py24CODE
LOWnautilus_trader/analysis/__init__.py25CODE
LOWnautilus_trader/analysis/__init__.py26CODE
LOWnautilus_trader/analysis/__init__.py27CODE
LOWnautilus_trader/analysis/__init__.py28CODE
LOWnautilus_trader/analysis/__init__.py29CODE
LOWnautilus_trader/analysis/__init__.py30CODE
LOWnautilus_trader/analysis/__init__.py31CODE
LOWnautilus_trader/analysis/__init__.py32CODE
LOWnautilus_trader/analysis/__init__.py33CODE
LOWnautilus_trader/analysis/__init__.py34CODE
LOWnautilus_trader/analysis/__init__.py35CODE
LOWnautilus_trader/analysis/__init__.py36CODE
LOWnautilus_trader/analysis/__init__.py37CODE
LOWnautilus_trader/analysis/__init__.py38CODE
LOWnautilus_trader/analysis/__init__.py39CODE
LOWnautilus_trader/analysis/__init__.py40CODE
LOWnautilus_trader/analysis/__init__.py41CODE
LOWnautilus_trader/analysis/__init__.py42CODE
LOWnautilus_trader/analysis/__init__.py43CODE
LOWnautilus_trader/analysis/__init__.py44CODE
LOWnautilus_trader/analysis/__init__.py45CODE
LOWnautilus_trader/analysis/__init__.py46CODE
LOWnautilus_trader/analysis/__init__.py47CODE
LOWnautilus_trader/analysis/__init__.py48CODE
LOWnautilus_trader/analysis/__init__.py49CODE
LOWnautilus_trader/analysis/__init__.py50CODE
LOWnautilus_trader/analysis/__init__.py51CODE
LOWnautilus_trader/analysis/__init__.py52CODE
LOWnautilus_trader/analysis/__init__.py53CODE
LOWnautilus_trader/analysis/__init__.py54CODE
LOWnautilus_trader/analysis/__init__.py55CODE
LOWnautilus_trader/analysis/__init__.py56CODE
LOWnautilus_trader/analysis/__init__.py57CODE
LOWnautilus_trader/analysis/__init__.py58CODE
LOWnautilus_trader/analysis/__init__.py59CODE
LOWnautilus_trader/analysis/__init__.py60CODE
LOWnautilus_trader/analysis/__init__.py61CODE
LOWnautilus_trader/analysis/__init__.py62CODE
LOWnautilus_trader/analysis/__init__.py63CODE
LOWnautilus_trader/analysis/__init__.py64CODE
LOWnautilus_trader/analysis/__init__.py65CODE
LOWnautilus_trader/analysis/__init__.py66CODE
LOWnautilus_trader/analysis/__init__.py67CODE
LOWnautilus_trader/analysis/__init__.py68CODE
LOWnautilus_trader/analysis/__init__.py69CODE
LOWnautilus_trader/analysis/__init__.py70CODE
769 more matches not shown…
AI Slop Vocabulary171 hits · 544 pts
SeverityFileLineSnippetContext
MEDIUMCargo.toml509# Cargo ignores `panic` for bench profile (harness requires unwind to catch failures)COMMENT
MEDIUMnautilus_trader/test_kit/strategies/tester_exec.py80 tob_offset_ticks: PositiveInt = 500 # Definitely out of the marketCODE
MEDIUMnautilus_trader/adapters/okx/execution.py269 # SPOT margin supports CROSS for leverage; ISOLATED is limited to copy or lead tradersCOMMENT
MEDIUMnautilus_trader/adapters/bybit/execution.py682 # Bybit error code 110043: Set leverage has not been modified (already set)COMMENT
MEDIUMnautilus_trader/adapters/binance/futures/execution.py247 # Initialize leverage for all symbols using symbolConfig endpointCOMMENT
MEDIUMnautilus_trader/adapters/binance/futures/execution.py248 # This ensures leverage is set correctly even for symbols without active positionsCOMMENT
MEDIUMcrates/network/src/websocket/subscription.rs18//! This module provides a robust subscription tracker that maintains confirmed and pendingCOMMENT
MEDIUMcrates/network/src/websocket/auth.rs18//! This module provides a robust authentication tracker that coordinates login attemptsCOMMENT
MEDIUMcrates/testkit/src/lib.rs19//! file handling, and common testing patterns. This crate supports robust testing workflowsCOMMENT
MEDIUMcrates/backtest/src/config.rs500 /// The account default leverage (for margin accounts).COMMENT
MEDIUMcrates/backtest/src/config.rs503 /// The instrument specific leverage configuration (for margin accounts).COMMENT
MEDIUMcrates/backtest/src/config.rs1215 fn test_non_positive_default_leverage_rejected(#[case] leverage: Decimal) {CODE
MEDIUMcrates/backtest/src/config.rs1413 fn test_non_positive_sim_default_leverage_rejected(#[case] leverage: Decimal) {CODE
MEDIUMcrates/adapters/okx/src/config.rs235 /// Enables margin/leverage for SPOT trading when true.COMMENT
MEDIUMcrates/adapters/okx/src/http/client.rs870 /// Requests position tiers information, maximum leverage depends on your borrowings and margin ratio.COMMENT
MEDIUMcrates/adapters/okx/src/http/models.rs486 /// Maximum available leverage.COMMENT
MEDIUMcrates/adapters/okx/src/http/models.rs588 /// Notional leverage.COMMENT
MEDIUMcrates/adapters/okx/src/http/models.rs655 /// Position leverage.COMMENT
MEDIUMcrates/adapters/okx/src/http/models.rs1126 /// Algo leverage configuration.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/common/models.rs689 /// converting balances and handling the margin account type since Hyperliquid supports leverage.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/common/enums.rs495 // Normalize: trim whitespace and convert to lowercase for robust matchingCOMMENT
MEDIUMcrates/adapters/hyperliquid/src/common/enums.rs569 /// **Deprecated**: This method uses substring matching which is fragile and not robust.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/query.rs38 /// Update leverage for an assetCOMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/query.rs81/// Parameters for updating leverage.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/query.rs450 /// Creates an action to update leverage for an asset.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/query.rs654 assert!(json.contains(r#""leverage":10"#));CODE
MEDIUMcrates/adapters/hyperliquid/src/http/models.rs129 /// Maximum leverage allowed for this asset.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/models.rs146 /// Margin tables for leverage tiers.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/models.rs162 /// Maximum leverage allowed for this asset.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/models.rs179/// Margin table with leverage tiers.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/models.rs200 /// Maximum leverage for this tier.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/models.rs1707 /// Update leverage for a position.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/models.rs1717 #[serde(rename = "leverage")]COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/models.rs2068 /// Maximum leverage allowed for this asset.COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/rate_limits.rs147/// We count the largest array in the response (robust to schema variants).COMMENT
MEDIUMcrates/adapters/hyperliquid/src/http/parse.rs130 /// Maximum leverage (for perps).COMMENT
MEDIUMcrates/adapters/bitmex/src/websocket/messages.rs884 /// Margin leverageCOMMENT
MEDIUMcrates/adapters/bitmex/src/python/http.rs125 /// Update position leverage.COMMENT
MEDIUMcrates/adapters/bitmex/src/python/http.rs142 // Call the leverage update method once it's implementedCOMMENT
MEDIUMcrates/adapters/bitmex/src/python/http.rs143 // let report = client.update_position_leverage(&symbol, leverage)COMMENT
MEDIUMcrates/adapters/bitmex/src/http/client.rs827 /// Update position leverage.COMMENT
MEDIUMcrates/adapters/bitmex/src/http/client.rs2694 /// Update position leverage.COMMENT
MEDIUMcrates/adapters/bitmex/src/http/query.rs445/// Parameters for the POST /position/leverage endpoint.COMMENT
MEDIUMcrates/adapters/bitmex/src/http/query.rs451 /// Symbol to set leverage for.COMMENT
MEDIUMcrates/adapters/bitmex/src/http/query.rs455 /// Optional leverage for long position (isolated margin only).COMMENT
MEDIUMcrates/adapters/coinbase/src/config.rs158 /// Optional default leverage applied to derivatives orders. Ignored onCOMMENT
MEDIUMcrates/adapters/derive/tests/data_client.rs1854 // Wait until the REST call lands on the mock so the test is robustCOMMENT
MEDIUMcrates/adapters/derive/src/http/models.rs607 /// Effective leverage (perps only).COMMENT
MEDIUMcrates/adapters/blockchain/src/decode.rs23/// - If `decimals == 18` the value represents wei and we leverage the dedicatedCOMMENT
MEDIUMcrates/adapters/blockchain/src/decode.rs46/// - If `decimals == 18` the value represents wei and we leverage the dedicatedCOMMENT
MEDIUMcrates/adapters/deribit/src/http/models.rs78 /// Maximal leverage for instrument (only for futures)COMMENT
MEDIUMcrates/adapters/sandbox/src/config.rs65 /// The account default leverage (for margin accounts).COMMENT
MEDIUMcrates/adapters/sandbox/src/config.rs68 /// Per-instrument leverage overrides.COMMENT
MEDIUMcrates/adapters/bybit/src/config.rs210 /// Leverage configuration for futures (symbol -> leverage).COMMENT
MEDIUMcrates/adapters/bybit/src/python/http.rs335 /// Sets leverage for a symbol (requires authentication).COMMENT
MEDIUMcrates/adapters/bybit/src/python/http.rs346 /// - <https://bybit-exchange.github.io/docs/v5/position/leverage>COMMENT
MEDIUMcrates/adapters/bybit/src/common/models.rs43/// Common leverage filter that describes leverage bounds and step.COMMENT
MEDIUMcrates/adapters/bybit/src/common/models.rs47 /// Minimum leverage supported.COMMENT
MEDIUMcrates/adapters/bybit/src/common/models.rs49 /// Maximum leverage supported.COMMENT
MEDIUMcrates/adapters/bybit/src/common/models.rs51 /// Step between successive leverage values.COMMENT
111 more matches not shown…
Self-Referential Comments153 hits · 468 pts
SeverityFileLineSnippetContext
MEDIUMnautilus_trader/backtest/node.py379 # Create a builder for this engineCOMMENT
MEDIUM…tilus_trader/adapters/interactive_brokers/factories.py103 # Create a unique key for the gateway based on its trading_modeCOMMENT
MEDIUM…tilus_trader/adapters/interactive_brokers/factories.py172 # Create a cache key based on client connection info and configCOMMENT
MEDIUM…tilus_trader/adapters/interactive_brokers/providers.py515 # Create the spread instrumentCOMMENT
MEDIUM…tilus_trader/adapters/interactive_brokers/providers.py168 # Create a more complete leg contract using information from the combo legCOMMENT
MEDIUM…er/adapters/interactive_brokers/parsing/instruments.py1151 # Create the spread instrument IDCOMMENT
MEDIUM…er/adapters/interactive_brokers/parsing/instruments.py1273 # Create a combo leg with the actual conIdCOMMENT
MEDIUM…er/adapters/interactive_brokers/parsing/instruments.py1282 # Create the BAG contractCOMMENT
MEDIUM…der/adapters/interactive_brokers/client/market_data.py897 # Create an index price tickCOMMENT
MEDIUMnautilus_trader/adapters/polymarket/providers.py218 # Create a copy to avoid mutating the caller's filtersCOMMENT
MEDIUMnautilus_trader/adapters/polymarket/providers.py451 # Create a copy to avoid mutating the caller's filtersCOMMENT
MEDIUMnautilus_trader/adapters/binance/websocket/client.py171 # Create a new client IDCOMMENT
MEDIUMnautilus_trader/examples/strategies/ema_cross_twap.py119 # Create the indicators for the strategyCOMMENT
MEDIUM…lus_trader/examples/strategies/ema_cross_stop_entry.py129 # Create the indicators for the strategyCOMMENT
MEDIUM…utilus_trader/examples/strategies/bb_mean_reversion.py98 # Create the indicators for the strategyCOMMENT
MEDIUM…_trader/examples/strategies/ema_cross_trailing_stop.py131 # Create the indicators for the strategyCOMMENT
MEDIUM…_trader/examples/strategies/volatility_market_maker.py109 # Create the indicators for the strategyCOMMENT
MEDIUM…s_trader/examples/strategies/ema_cross_bracket_algo.py135 # Create the indicators for the strategyCOMMENT
MEDIUM…utilus_trader/examples/strategies/ema_cross_bracket.py111 # Create the indicators for the strategyCOMMENT
MEDIUMnautilus_trader/examples/strategies/ema_cross.py124 # Create the indicators for the strategyCOMMENT
MEDIUM…ilus_trader/examples/strategies/ema_cross_long_only.py107 # Create the indicators for the strategyCOMMENT
MEDIUM…lus_trader/examples/strategies/ema_cross_hedge_mode.py108 # Create the indicators for the strategyCOMMENT
MEDIUMnautilus_trader/persistence/writer.py414 # Create an arrow writer with identifier specific metadata in the schemaCOMMENT
MEDIUMpython/generate_stubs.py52# This file is automatically generated by pyo3_stub_genCOMMENT
MEDIUM.pre-commit-hooks/cargo_fmt_stable.sh11# Create an empty rustfmt.toml in the temp directoryCOMMENT
MEDIUMpatches/pyo3-stub-gen/src/generate/module.rs53 writeln!(f, "# This file is automatically generated by pyo3_stub_gen")?;CODE
MEDIUMpatches/pyo3-stub-gen/src/generate/module.rs311 writeln!(f, "# This file is automatically generated by pyo3_stub_gen")?;CODE
MEDIUMpatches/pyo3-stub-gen/src/docgen/sphinx_ext.py988 # Create a list item with a referenceCOMMENT
MEDIUMpatches/pyo3-stub-gen/src/docgen/sphinx_ext.py995 # Create a reference to the submodule's documentation pageCOMMENT
MEDIUMpatches/pyo3-stub-gen/src/docgen/sphinx_ext.py1074 # Create a single bullet list for all submodulesCOMMENT
MEDIUMpatches/pyo3-stub-gen/src/docgen/sphinx_ext.py1209 # Create a single bullet list for all submodulesCOMMENT
MEDIUMtests/unit_tests/accounting/test_cash.py970 # Create a closed position with profitCOMMENT
MEDIUMtests/unit_tests/accounting/test_cash.py1417 # Create a reduce-only orderCOMMENT
MEDIUMtests/unit_tests/accounting/test_cash.py1479 # Create a market order (no price)COMMENT
MEDIUMtests/unit_tests/accounting/test_cash.py1544 # Create a BUY order for AUD/USD - should lock USDCOMMENT
MEDIUMtests/unit_tests/accounting/test_cash.py1575 # Create a SELL order for AUD/USD - should lock AUDCOMMENT
MEDIUMtests/unit_tests/accounting/test_cash.py1643 # Create a BUY order for BTCUSDT - should lock USDTCOMMENT
MEDIUMtests/unit_tests/accounting/test_cash.py1673 # Create a SELL order for BTCUSDT - should lock BTCCOMMENT
MEDIUMtests/unit_tests/accounting/test_cash.py1743 # Create a SELL order for AUD/USDCOMMENT
MEDIUMtests/unit_tests/analysis/test_tearsheet.py560 # Create a mock engineCOMMENT
MEDIUMtests/unit_tests/cache/test_data.py127 # Create a MARKET order (no price) and apply events to close itCOMMENT
MEDIUMtests/unit_tests/test_kit/test_exec_tester.py619 # Create a book with bids and asksCOMMENT
MEDIUMtests/unit_tests/backtest/test_engine.py1040 # Create a minimal engine configuration for testingCOMMENT
MEDIUMtests/unit_tests/backtest/test_engine.py1246 # Create a very simple iterator with just a few itemsCOMMENT
MEDIUMtests/unit_tests/backtest/test_matching_engine.py720 # Create a limit order that won't immediately fillCOMMENT
MEDIUMtests/unit_tests/backtest/test_data_client.py391 # Create a future with a smaller price increment (e.g., 0.25 vs 0.50)COMMENT
MEDIUMtests/unit_tests/execution/test_engine.py3295 # Create a bid above current best askCOMMENT
MEDIUMtests/unit_tests/execution/test_engine.py3303 # Create an ask below the bidCOMMENT
MEDIUMtests/unit_tests/execution/test_engine.py3360 # Create a bracket order with limit entry, limit TP and limit SLCOMMENT
MEDIUMtests/unit_tests/execution/test_engine.py3490 # Create the orderCOMMENT
MEDIUMtests/unit_tests/execution/test_engine.py3779 # Create an order that receives events out of normal sequenceCOMMENT
MEDIUMtests/unit_tests/live/test_execution_recon.py2113 # Create an order with an instrument NOT in cacheCOMMENT
MEDIUMtests/unit_tests/live/test_execution_recon.py2116 # Create an order manually (bypassing normal flow)COMMENT
MEDIUMtests/unit_tests/live/test_execution_recon.py2124 # Create a report for the existing orderCOMMENT
MEDIUMtests/unit_tests/live/test_execution_recon.py1911 # Create an order with some filled quantityCOMMENT
MEDIUMtests/unit_tests/live/test_execution_recon.py1924 # Create a report that shows more filled quantity (normal case)COMMENT
MEDIUMtests/unit_tests/live/test_execution_recon.py1968 # Create an order with filled quantityCOMMENT
MEDIUMtests/unit_tests/live/test_execution_recon.py1981 # Create a report that shows less filled quantity (corrupted state scenario)COMMENT
MEDIUMtests/unit_tests/live/test_execution_recon.py2061 # Create an order with quantity 100COMMENT
MEDIUMtests/unit_tests/live/test_execution_recon.py2077 # Create a fill report that would cause overfill (80 + 30 > 100)COMMENT
93 more matches not shown…
Excessive Try-Catch Wrapping328 hits · 326 pts
SeverityFileLineSnippetContext
LOWbuild.py482 except Exception as e: # pragma: no cover - defensiveCODE
MEDIUMbuild.py399def _get_clang_version() -> str:CODE
LOWnautilus_trader/serialization/arrow/serializer.py385 except Exception as e:CODE
LOWnautilus_trader/backtest/config.py781 except Exception as e:CODE
LOWnautilus_trader/backtest/node.py257 except Exception as e:CODE
LOWnautilus_trader/backtest/node.py484 except Exception as e:CODE
MEDIUMnautilus_trader/adapters/okx/execution.py274def _check_clock_sync(self) -> None:CODE
MEDIUMnautilus_trader/adapters/okx/execution.py1761def _batch_cancel_regular_orders(self, orders_to_cancel) -> None:CODE
LOWnautilus_trader/adapters/okx/execution.py1765 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py2281 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py2298 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py280 except Exception:CODE
LOWnautilus_trader/adapters/okx/execution.py665 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py697 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py830 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py1167 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py1205 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py1337 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py1686 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py1800 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py1819 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py1965 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py2018 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py2159 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py2200 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py2231 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/execution.py2685 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/data.py385 except Exception:CODE
LOWnautilus_trader/adapters/okx/data.py535 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/data.py567 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/data.py617 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/data.py747 except Exception as e:CODE
LOWnautilus_trader/adapters/okx/data.py783 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/execution.py382 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/execution.py430 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/execution.py518 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/execution.py543 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/execution.py564 except Exception as e:CODE
MEDIUMnautilus_trader/adapters/architect_ax/data.py512def _handle_msg(self, msg) -> None:CODE
LOWnautilus_trader/adapters/architect_ax/data.py222 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/data.py425 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/data.py454 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/data.py484 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/data.py509 except Exception as e:CODE
LOWnautilus_trader/adapters/architect_ax/data.py521 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py190 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py288 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py506 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py512 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py707 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py772 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py809 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py925 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py970 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py1033 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py1100 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py1144 except Exception as e:CODE
LOWnautilus_trader/adapters/hyperliquid/providers.py112 except Exception as e: # pragma: no cover - defensive loggingCODE
MEDIUMnautilus_trader/adapters/hyperliquid/providers.py96def _load_instruments(self) -> list[Instrument]:CODE
LOWnautilus_trader/adapters/hyperliquid/data.py415 except Exception as e:CODE
268 more matches not shown…
Redundant / Tautological Comments124 hits · 183 pts
SeverityFileLineSnippetContext
LOWnautilus_trader/analysis/tearsheet.py1442 # Check if it's per-currency (dict of dicts) or single dictCOMMENT
LOWnautilus_trader/test_kit/strategies/tester_exec.py721 # Check if we need to adjust the stop orderCOMMENT
LOWnautilus_trader/test_kit/strategies/tester_exec.py769 # Check if we need to adjust the stop orderCOMMENT
LOWnautilus_trader/adapters/hyperliquid/execution.py741 # Check if all orders are openCOMMENT
LOW…tilus_trader/adapters/interactive_brokers/execution.py2083 # Check if this is a spread order and handle accordinglyCOMMENT
LOW…tilus_trader/adapters/interactive_brokers/execution.py2567 # Check if this is a known positionCOMMENT
LOW…tilus_trader/adapters/interactive_brokers/providers.py509 # Check if any leg is a futureCOMMENT
LOW…tilus_trader/adapters/interactive_brokers/providers.py131 # Check if we already have this instrumentCOMMENT
LOWnautilus_trader/adapters/interactive_brokers/common.py356 # Check if this is the UNSET_DECIMAL valueCOMMENT
LOW…er/adapters/interactive_brokers/parsing/instruments.py840 # Check if a BAG contract contains at least one future leg.COMMENT
LOW…us_trader/adapters/interactive_brokers/client/order.py405 # Check if this is for a get_executions requestCOMMENT
LOW…us_trader/adapters/interactive_brokers/client/order.py453 # Check if this is for a get_executions requestCOMMENT
LOW…der/adapters/interactive_brokers/client/market_data.py900 # Check if we have both bid and ask prices to create a quote tickCOMMENT
LOW…der/adapters/interactive_brokers/client/market_data.py933 # Check if we have both bid and ask data to create a quote tickCOMMENT
LOW…der/adapters/interactive_brokers/client/market_data.py1315 # Check if this bar is still the current bar (hasn't been superseded)COMMENT
LOW…der/adapters/interactive_brokers/client/market_data.py1809 # Check if the order book is initializedCOMMENT
LOWnautilus_trader/adapters/polymarket/execution.py1651 # Check if cancel was requested during the HTTP round-tripCOMMENT
LOWnautilus_trader/adapters/polymarket/execution.py1924 # Check if cancel was requested during the HTTP round-tripCOMMENT
LOWnautilus_trader/adapters/polymarket/execution.py2365 # Check if this specific fill was already processed (handles multi-order trades)COMMENT
LOWnautilus_trader/adapters/polymarket/data.py671 # Check if any effective deltas remainCOMMENT
LOWnautilus_trader/adapters/polymarket/data.py723 # Check if local book exists, create if neededCOMMENT
LOWnautilus_trader/adapters/polymarket/websocket/client.py245 # Check if we need to retry a failed connectionCOMMENT
LOW…der/adapters/polymarket/scripts/list_updown_markets.py75 # Check if it's an updown marketCOMMENT
LOWnautilus_trader/adapters/bybit/execution.py2012 # Check if current UTC time is within Bybit's repayment blackout window (04:00-05:30 UTC daily).COMMENT
LOWnautilus_trader/adapters/bybit/execution.py1757 # Check if this is a post-only order rejected by the exchangeCOMMENT
LOWnautilus_trader/adapters/bybit/execution.py1981 # Check if there's an outstanding borrow firstCOMMENT
LOWnautilus_trader/adapters/betfair/execution.py1721 # Check if we know this order via rfo (stream arrived before HTTP response)COMMENT
LOWnautilus_trader/adapters/betfair/execution.py1966 # Check if order is still open before generating a cancelCOMMENT
LOWnautilus_trader/adapters/kraken/execution.py1514 # Check if venue order ID changed (Futures editorder can return new ID)COMMENT
LOWnautilus_trader/adapters/databento/data.py1162 # Check if multiple instrument_ids are provided in metadataCOMMENT
LOWnautilus_trader/adapters/databento/data.py1211 # Check if multiple instrument_ids are provided in metadataCOMMENT
LOWnautilus_trader/adapters/databento/data.py1260 # Check if multiple instrument_ids are provided in metadataCOMMENT
LOWnautilus_trader/adapters/databento/data.py1309 # Check if multiple instrument_ids are provided in paramsCOMMENT
LOWnautilus_trader/adapters/databento/data.py1399 # Check if multiple instrument_ids are provided in paramsCOMMENT
LOWnautilus_trader/adapters/databento/data.py1505 # Check if multiple instrument_ids are provided in paramsCOMMENT
LOWnautilus_trader/adapters/databento/data.py1575 # Check if multiple bar_types are provided in paramsCOMMENT
LOWnautilus_trader/adapters/databento/data.py1648 # Check if multiple instrument_ids are provided in paramsCOMMENT
LOWnautilus_trader/adapters/databento/data.py1737 # Check if this is the last delta in an event (F_LAST flag)COMMENT
LOWnautilus_trader/adapters/binance/execution.py780 # Check if the position side is validCOMMENT
LOWnautilus_trader/adapters/binance/execution.py1284 # Check if order can be modified via regular endpointCOMMENT
LOWnautilus_trader/adapters/binance/execution.py1518 # Check if algo order has been triggered - use regular endpoint in that caseCOMMENT
LOWnautilus_trader/adapters/binance/websocket/client.py162 # Check if we can create a new clientCOMMENT
LOWnautilus_trader/adapters/binance/futures/data.py134 # Check if book buffer activeCOMMENT
LOWnautilus_trader/adapters/binance/spot/data.py124 # Check if book buffer activeCOMMENT
LOWnautilus_trader/adapters/binance/spot/schemas/user.py251 # Check if price changed (for price_match orders)COMMENT
LOWnautilus_trader/adapters/binance/spot/http/wallet.py50 # Check if Binance.US based on base URLCOMMENT
LOWnautilus_trader/examples/strategies/ema_cross_twap.py232 # Check if indicators readyCOMMENT
LOW…lus_trader/examples/strategies/ema_cross_stop_entry.py227 # Check if indicators readyCOMMENT
LOW…utilus_trader/examples/strategies/bb_mean_reversion.py131 # Check if indicators readyCOMMENT
LOWnautilus_trader/examples/strategies/simpler_quoter.py75 # Check if closedCOMMENT
LOW…_trader/examples/strategies/ema_cross_trailing_stop.py245 # Check if indicators readyCOMMENT
LOW…_trader/examples/strategies/volatility_market_maker.py267 # Check if indicators readyCOMMENT
LOW…s_trader/examples/strategies/ema_cross_bracket_algo.py190 # Check if indicators readyCOMMENT
LOW…utilus_trader/examples/strategies/ema_cross_bracket.py166 # Check if indicators readyCOMMENT
LOWnautilus_trader/examples/strategies/ema_cross.py241 # Check if indicators readyCOMMENT
LOW…ilus_trader/examples/strategies/ema_cross_long_only.py221 # Check if indicators readyCOMMENT
LOW…lus_trader/examples/strategies/ema_cross_hedge_mode.py222 # Check if indicators readyCOMMENT
LOWnautilus_trader/examples/indicators/ema_python.py113 # Check if this is the initial inputCOMMENT
LOWnautilus_trader/live/execution_engine.py1080 # Check if quantities match (both could be zero)COMMENT
LOWnautilus_trader/live/execution_engine.py1364 # Check if order is too recent to reconcile (avoid race conditions)COMMENT
64 more matches not shown…
Deep Nesting233 hits · 174 pts
SeverityFileLineSnippetContext
LOWbuild.py172CODE
LOWbuild.py487CODE
LOWnautilus_trader/analysis/tearsheet.py2147CODE
LOWnautilus_trader/cache/transformers.py99CODE
LOWnautilus_trader/cache/transformers.py144CODE
LOWnautilus_trader/cache/transformers.py190CODE
LOWnautilus_trader/cache/transformers.py227CODE
LOWnautilus_trader/cache/transformers.py258CODE
LOWnautilus_trader/serialization/arrow/serializer.py144CODE
LOWnautilus_trader/test_kit/strategies/tester_data.py100CODE
LOWnautilus_trader/test_kit/strategies/tester_exec.py255CODE
LOWnautilus_trader/test_kit/strategies/tester_exec.py286CODE
LOWnautilus_trader/test_kit/strategies/tester_exec.py588CODE
LOWnautilus_trader/test_kit/strategies/tester_exec.py682CODE
LOWnautilus_trader/test_kit/strategies/tester_exec.py730CODE
LOWnautilus_trader/test_kit/strategies/tester_exec.py807CODE
LOWnautilus_trader/backtest/config.py272CODE
LOWnautilus_trader/backtest/node.py170CODE
LOWnautilus_trader/backtest/node.py362CODE
LOWnautilus_trader/backtest/node.py531CODE
LOWnautilus_trader/adapters/okx/execution.py769CODE
LOWnautilus_trader/adapters/okx/execution.py871CODE
LOWnautilus_trader/adapters/okx/execution.py2028CODE
LOWnautilus_trader/adapters/okx/execution.py2655CODE
LOWnautilus_trader/adapters/okx/execution.py2794CODE
LOWnautilus_trader/adapters/okx/providers.py200CODE
LOWnautilus_trader/adapters/okx/data.py430CODE
LOWnautilus_trader/adapters/okx/data.py759CODE
LOWnautilus_trader/adapters/architect_ax/execution.py567CODE
LOWnautilus_trader/adapters/architect_ax/data.py204CODE
LOWnautilus_trader/adapters/architect_ax/data.py396CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py371CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py415CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py1118CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py1250CODE
LOWnautilus_trader/adapters/hyperliquid/data.py469CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py327CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py532CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py660CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py1035CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py1204CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py1301CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py1386CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py1716CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py1915CODE
LOWnautilus_trader/adapters/interactive_brokers/common.py328CODE
LOWnautilus_trader/adapters/interactive_brokers/data.py366CODE
LOW…er/adapters/interactive_brokers/parsing/instruments.py322CODE
LOW…er/adapters/interactive_brokers/parsing/instruments.py1294CODE
LOW…er/adapters/interactive_brokers/parsing/instruments.py1343CODE
LOW…er/adapters/interactive_brokers/parsing/instruments.py1485CODE
LOW…us_trader/adapters/interactive_brokers/parsing/data.py67CODE
LOW…us_trader/adapters/interactive_brokers/parsing/data.py89CODE
LOW…us_trader/adapters/interactive_brokers/client/error.py73CODE
LOW…s_trader/adapters/interactive_brokers/client/client.py222CODE
LOW…s_trader/adapters/interactive_brokers/client/client.py702CODE
LOW…s_trader/adapters/interactive_brokers/client/client.py746CODE
LOWnautilus_trader/adapters/bitmex/execution.py965CODE
LOWnautilus_trader/adapters/bitmex/data.py614CODE
LOWnautilus_trader/adapters/polymarket/execution.py383CODE
173 more matches not shown…
Structural Annotation Overuse68 hits · 120 pts
SeverityFileLineSnippetContext
LOWcrates/network/src/websocket/auth.rs691 // Step 1: Begin authenticationCOMMENT
LOWcrates/network/src/websocket/auth.rs694 // Step 2: Spawn resubscription task that waits for authCOMMENT
LOWcrates/adapters/okx/src/websocket/client.rs4072 client.subscriptions_state.confirm_unsubscribe(topic); // Step 1: clear pending_unsubscribeCODE
LOWcrates/adapters/okx/src/websocket/client.rs4073 client.subscriptions_state.mark_subscribe(topic); // Step 2: mark as subscribingCODE
LOWcrates/adapters/okx/src/websocket/client.rs4074 client.subscriptions_state.confirm_subscribe(topic); // Step 3: confirm subscriptionCODE
LOWcrates/adapters/hyperliquid/src/signing/signers.rs128 // Step 4: Create Agent structCOMMENT
LOWcrates/adapters/hyperliquid/src/signing/signers.rs136 // Step 5: Sign Agent with EIP-712COMMENT
LOW…s/adapters/interactive_brokers/src/python/providers.rs122 // NOTE: This method intentionally requires an IB client managed by data/execution clients.COMMENT
LOW…s/adapters/interactive_brokers/src/python/providers.rs144 // NOTE: This method intentionally requires an IB client managed by data/execution clients.COMMENT
LOW…s/adapters/interactive_brokers/src/python/providers.rs166 // NOTE: This method intentionally requires an IB client managed by data/execution clients.COMMENT
LOW…s/adapters/interactive_brokers/src/python/providers.rs187 // NOTE: This method intentionally requires an IB client managed by data/execution clients.COMMENT
LOWcrates/adapters/bitmex/src/websocket/client.rs1482 client.subscriptions.confirm_unsubscribe(&topic); // Step 1: clear pending_unsubscribeCODE
LOWcrates/adapters/bitmex/src/websocket/client.rs1483 client.subscriptions.mark_subscribe(&topic); // Step 2: mark as subscribingCODE
LOWcrates/adapters/bitmex/src/websocket/client.rs1484 client.subscriptions.confirm_subscribe(&topic); // Step 3: confirm subscriptionCODE
LOWcrates/adapters/polymarket/src/websocket/dispatch.rs1526 // Step 1: Dispatch cancel (simulates message A from the bug)COMMENT
LOWcrates/adapters/polymarket/src/websocket/dispatch.rs1536 // Step 2: Dispatch trade fill (simulates trade arriving after cancel)COMMENT
LOWcrates/adapters/polymarket/src/execution/responses.rs1569 // Step 1: the WS taker trade arrives BEFORE the submit response. The order is not yetCOMMENT
LOWcrates/adapters/polymarket/src/execution/responses.rs1601 // Step 2: the submit response arrives, registers the order, and drains the buffered fillCOMMENT
LOWcrates/adapters/polymarket/src/execution/responses.rs1685 // Step 1: the WS cancel arrives BEFORE the submit response and buffers (order unregistered)COMMENT
LOWcrates/adapters/polymarket/src/execution/responses.rs1707 // Step 2: the submit response registers the order and drains the buffered cancelCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs819 // Step 1: Register DEXCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs829 // Step 2: Subscribe to eventsCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs835 // Step 3: Verify subscriptionsCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs841 // Step 4: Get event signaturesCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs845 // Step 5: Unsubscribe from some eventsCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs849 // Step 6: Verify remaining subscriptions (only pool1 mint remains)COMMENT
LOWcrates/model/src/defi/tick_map/sqrt_price_math.rs406 // Step 5: Validate price is within valid range before creating PriceCOMMENT
LOWcrates/model/src/defi/data/swap_trade_info.rs386 // Step 1: numerator = quote_amount * 10^base_decimalsCOMMENT
LOWcrates/model/src/defi/data/swap_trade_info.rs389 // Step 2: numerator = (quote_amount * 10^base_decimals) * 10^FIXED_PRECISIONCOMMENT
LOWcrates/model/src/defi/data/swap_trade_info.rs392 // Step 3: denominator = base_amount * 10^quote_decimalsCOMMENT
LOWcrates/model/src/defi/data/swap_trade_info.rs395 // Step 4: Final divisionCOMMENT
LOWtests/unit_tests/backtest/test_matching_engine.py4684 # Step 1: Place limit order that crosses first level (partial fill)COMMENT
LOWtests/unit_tests/backtest/test_matching_engine.py4703 # Step 2: Modify order to cross second levelCOMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2345 # Step 1: Place and fill a BACK bet (BUY)COMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2367 # Step 2: Place and fill a LAY bet (SELL)COMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2464 # Step 1: Place and fill a LAY bet (SELL)COMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2485 # Step 2: Place and fill a BACK bet (BUY)COMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2583 # Step 1: Place opening betCOMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2605 # Step 2: Place closing betCOMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2704 # Step 1: Place opening betCOMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2725 # Step 2: Place closing betCOMMENT
LOWdocs/integrations/databento.md793# Step 1: Load instrument definitions firstCOMMENT
LOWdocs/integrations/databento.md803# Step 2: Now load and write market dataCOMMENT
LOWdocs/integrations/databento.md829# Step 1: Load instrument definitions from DEFINITION filesCOMMENT
LOWdocs/integrations/databento.md836# Step 2: Load market data (MBO, trades, quotes, etc.)COMMENT
LOWdocs/developer_guide/testing.md302### Step 0: Compile `nautilus_trader` with debug symbolsCOMMENT
LOWdocs/developer_guide/testing.md308### Step 1: Set up debugging configurationCOMMENT
LOWdocs/developer_guide/testing.md321### Step 2: Set breakpointsCOMMENT
LOWdocs/developer_guide/testing.md326### Step 3: Start mixed debuggingCOMMENT
LOWdocs/developer_guide/testing.md332### Step 4: Execute codeCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py126 # Step 2: Define exchange and add it to the engineCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py137 # Step 3: Create instrument definition and add it to the engineCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py163 # Step 5: Create strategy and add it to the engineCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py167 # Step 6: Run engine = Run backtestCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py170 # Step 7: Release system resourcesCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py108 # Step 1: Configure and create backtest engineCOMMENT
LOWexamples/other/state_machine/run_example.py24 # Step 1: Define all possible states of our application.COMMENT
LOWexamples/other/state_machine/run_example.py49 # Step 2: Define all possible triggers (actions / commands) that can cause state transitionsCOMMENT
LOWexamples/other/state_machine/run_example.py64 # Step 3: Define the valid state transitionsCOMMENT
LOWexamples/backtest/example_06_using_cache/strategy.py90 # Step 1: Load bytes from cacheCOMMENT
8 more matches not shown…
Magic Placeholder Names23 hits · 115 pts
SeverityFileLineSnippetContext
HIGHcrates/adapters/tardis/bin/example_replay.rs21// docker run -p 8000:8000 -p 8001:8001 -e "TM_API_KEY=YOUR_API_KEY" -d tardisdev/tardis-machineCOMMENT
HIGHcrates/adapters/binance/README.md51export BINANCE_API_KEY="your-api-key-from-binance"CODE
HIGH…ntegration_tests/adapters/tardis/sandbox/run_replay.py25 -e "TM_API_KEY=YOUR_API_KEY" \STRING
HIGH…tegration_tests/adapters/tardis/sandbox/run_machine.py24# docker run -p 8000:8000 -p 8001:8001 -e "TM_API_KEY=YOUR_API_KEY" -d tardisdev/tardis-machineCOMMENT
HIGHdocs/how_to/run_rust_live_trading.md124export OKX_API_KEY="your_api_key"CODE
HIGHdocs/integrations/binance.md951export BINANCE_API_KEY="your-api-key-from-binance"CODE
HIGHdocs/integrations/binance.md1027 api_key="YOUR_API_KEY",CODE
HIGHdocs/integrations/bybit.md132 api_key="YOUR_API_KEY",CODE
HIGHdocs/integrations/bybit.md487 api_key="YOUR_API_KEY",CODE
HIGHdocs/integrations/okx.md845export OKX_API_KEY="your_api_key"CODE
HIGHdocs/integrations/bitmex.md589 api_key="YOUR_API_KEY",CODE
HIGHdocs/integrations/bitmex.md657 api_key="YOUR_API_KEY",CODE
HIGHdocs/integrations/bitmex.md731 api_key="YOUR_API_KEY",CODE
HIGHdocs/integrations/bitmex.md855 api_key="YOUR_API_KEY", # Or use os.getenv("BITMEX_API_KEY")CODE
HIGHdocs/integrations/bitmex.md861 api_key="YOUR_API_KEY",CODE
HIGHdocs/integrations/coinbase.md138 api_key="YOUR_API_KEY",CODE
HIGHdocs/integrations/tardis.md230docker run -p 8000:8000 -p 8001:8001 -e "TM_API_KEY=YOUR_API_KEY" -d tardisdev/tardis-machineCODE
HIGHdocs/tutorials/options_data_bybit.md62export BYBIT_API_KEY="your-api-key"CODE
HIGHdocs/tutorials/delta_neutral_options_bybit.md33export BYBIT_API_KEY="your-api-key"CODE
HIGHdocs/tutorials/gold_book_imbalance_ax.md72export DATABENTO_API_KEY="your-api-key"CODE
HIGHdocs/tutorials/grid_market_maker_bitmex.md89export BITMEX_API_KEY="your-api-key"CODE
HIGH…ples/live/polymarket/polymarket_slug_builder_tester.py32 export POLYMARKET_API_KEY="your_api_key"STRING
HIGHexamples/live/bybit/README_options_data_collector.md29export BYBIT_API_KEY="your_api_key"CODE
Verbosity Indicators55 hits · 99 pts
SeverityFileLineSnippetContext
LOWcrates/network/src/websocket/auth.rs691 // Step 1: Begin authenticationCOMMENT
LOWcrates/network/src/websocket/auth.rs694 // Step 2: Spawn resubscription task that waits for authCOMMENT
LOWcrates/adapters/okx/src/websocket/client.rs4072 client.subscriptions_state.confirm_unsubscribe(topic); // Step 1: clear pending_unsubscribeCODE
LOWcrates/adapters/okx/src/websocket/client.rs4073 client.subscriptions_state.mark_subscribe(topic); // Step 2: mark as subscribingCODE
LOWcrates/adapters/okx/src/websocket/client.rs4074 client.subscriptions_state.confirm_subscribe(topic); // Step 3: confirm subscriptionCODE
LOWcrates/adapters/hyperliquid/src/signing/signers.rs128 // Step 4: Create Agent structCOMMENT
LOWcrates/adapters/hyperliquid/src/signing/signers.rs136 // Step 5: Sign Agent with EIP-712COMMENT
LOWcrates/adapters/bitmex/src/websocket/client.rs1482 client.subscriptions.confirm_unsubscribe(&topic); // Step 1: clear pending_unsubscribeCODE
LOWcrates/adapters/bitmex/src/websocket/client.rs1483 client.subscriptions.mark_subscribe(&topic); // Step 2: mark as subscribingCODE
LOWcrates/adapters/bitmex/src/websocket/client.rs1484 client.subscriptions.confirm_subscribe(&topic); // Step 3: confirm subscriptionCODE
LOWcrates/adapters/polymarket/src/websocket/dispatch.rs1526 // Step 1: Dispatch cancel (simulates message A from the bug)COMMENT
LOWcrates/adapters/polymarket/src/websocket/dispatch.rs1536 // Step 2: Dispatch trade fill (simulates trade arriving after cancel)COMMENT
LOWcrates/adapters/polymarket/src/execution/responses.rs1569 // Step 1: the WS taker trade arrives BEFORE the submit response. The order is not yetCOMMENT
LOWcrates/adapters/polymarket/src/execution/responses.rs1601 // Step 2: the submit response arrives, registers the order, and drains the buffered fillCOMMENT
LOWcrates/adapters/polymarket/src/execution/responses.rs1685 // Step 1: the WS cancel arrives BEFORE the submit response and buffers (order unregistered)COMMENT
LOWcrates/adapters/polymarket/src/execution/responses.rs1707 // Step 2: the submit response registers the order and drains the buffered cancelCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs819 // Step 1: Register DEXCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs829 // Step 2: Subscribe to eventsCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs835 // Step 3: Verify subscriptionsCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs841 // Step 4: Get event signaturesCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs845 // Step 5: Unsubscribe from some eventsCOMMENT
LOWcrates/adapters/blockchain/src/data/subscription.rs849 // Step 6: Verify remaining subscriptions (only pool1 mint remains)COMMENT
LOWcrates/model/src/defi/tick_map/sqrt_price_math.rs406 // Step 5: Validate price is within valid range before creating PriceCOMMENT
LOWcrates/model/src/defi/data/swap_trade_info.rs386 // Step 1: numerator = quote_amount * 10^base_decimalsCOMMENT
LOWcrates/model/src/defi/data/swap_trade_info.rs389 // Step 2: numerator = (quote_amount * 10^base_decimals) * 10^FIXED_PRECISIONCOMMENT
LOWcrates/model/src/defi/data/swap_trade_info.rs392 // Step 3: denominator = base_amount * 10^quote_decimalsCOMMENT
LOWcrates/model/src/defi/data/swap_trade_info.rs395 // Step 4: Final divisionCOMMENT
LOWtests/unit_tests/backtest/test_matching_engine.py4684 # Step 1: Place limit order that crosses first level (partial fill)COMMENT
LOWtests/unit_tests/backtest/test_matching_engine.py4703 # Step 2: Modify order to cross second levelCOMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2345 # Step 1: Place and fill a BACK bet (BUY)COMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2367 # Step 2: Place and fill a LAY bet (SELL)COMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2464 # Step 1: Place and fill a LAY bet (SELL)COMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2485 # Step 2: Place and fill a BACK bet (BUY)COMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2583 # Step 1: Place opening betCOMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2605 # Step 2: Place closing betCOMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2704 # Step 1: Place opening betCOMMENT
LOWtests/unit_tests/portfolio/test_portfolio.py2725 # Step 2: Place closing betCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py126 # Step 2: Define exchange and add it to the engineCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py137 # Step 3: Create instrument definition and add it to the engineCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py163 # Step 5: Create strategy and add it to the engineCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py167 # Step 6: Run engine = Run backtestCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py170 # Step 7: Release system resourcesCOMMENT
LOW…ples/other/minimal_reproducible_example/run_example.py108 # Step 1: Configure and create backtest engineCOMMENT
LOWexamples/other/state_machine/run_example.py24 # Step 1: Define all possible states of our application.COMMENT
LOWexamples/other/state_machine/run_example.py49 # Step 2: Define all possible triggers (actions / commands) that can cause state transitionsCOMMENT
LOWexamples/other/state_machine/run_example.py64 # Step 3: Define the valid state transitionsCOMMENT
LOWexamples/backtest/example_06_using_cache/strategy.py90 # Step 1: Load bytes from cacheCOMMENT
LOWexamples/backtest/example_06_using_cache/strategy.py92 # Step 2: Deserialize bytes to objectsCOMMENT
LOW…st/example_01_load_bars_from_custom_csv/run_example.py38 # Step 1: Configure and create backtest engineCOMMENT
LOW…st/example_01_load_bars_from_custom_csv/run_example.py47 # Step 2: Define exchange and add it to the engineCOMMENT
LOW…st/example_01_load_bars_from_custom_csv/run_example.py58 # Step 3: Create instrument definition and add it to the engineCOMMENT
LOW…st/example_01_load_bars_from_custom_csv/run_example.py103 # Step 5: Create strategy and add it to the engineCOMMENT
LOW…st/example_01_load_bars_from_custom_csv/run_example.py107 # Step 6: Run engine = Run backtestCOMMENT
LOW…st/example_01_load_bars_from_custom_csv/run_example.py110 # Step 7: Release system resourcesCOMMENT
LOW…/backtest/example_04_using_data_catalog/run_example.py44 # Step 1: Configure and Create the Backtest EngineCOMMENT
Modern Structural Boilerplate75 hits · 75 pts
SeverityFileLineSnippetContext
LOWnautilus_trader/core/__init__.py37__all__ = [CODE
LOWnautilus_trader/analysis/__init__.py79__all__ = [CODE
LOWnautilus_trader/cache/__init__.py27__all__ = [CODE
LOWnautilus_trader/config/__init__.py87__all__ = [CODE
LOWnautilus_trader/indicators/__init__.py73__all__ = [CODE
LOWnautilus_trader/serialization/__init__.py27__all__ = ["register_serializable_type"]CODE
LOWnautilus_trader/network/__init__.py40__all__ = [CODE
LOWnautilus_trader/backtest/models/__init__.py37__all__ = [CODE
LOWnautilus_trader/adapters/okx/execution.py434 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/adapters/okx/__init__.py37__all__ = [CODE
LOWnautilus_trader/adapters/architect_ax/execution.py186 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/adapters/architect_ax/__init__.py42__all__ = [CODE
LOWnautilus_trader/adapters/architect_ax/data.py204 async def _update_instruments(self, interval_mins: int) -> None:CODE
LOWnautilus_trader/adapters/hyperliquid/execution.py291 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/adapters/hyperliquid/__init__.py43__all__ = [CODE
LOWnautilus_trader/adapters/interactive_brokers/gateway.py247__all__ = ["DockerizedIBGateway"]CODE
LOW…tilus_trader/adapters/interactive_brokers/execution.py2529 def _update_position_tracking_from_execution(self, contract: IBContract, execution) -> None:CODE
LOW…er/adapters/interactive_brokers/historical/__init__.py22__all__ = [CODE
LOW…trader/adapters/interactive_brokers/client/__init__.py19__all__ = [CODE
LOW…s_trader/adapters/interactive_brokers/client/common.py379 def update_last(self, req_id: int, value: Any) -> None:CODE
LOW…der/adapters/interactive_brokers/client/market_data.py106 async def set_market_data_type(self, market_data_type: MarketDataTypeEnum) -> None:CODE
LOWnautilus_trader/adapters/bitmex/execution.py350 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/adapters/bitmex/__init__.py37__all__ = [CODE
LOWnautilus_trader/adapters/bitmex/data.py598 async def _update_instruments(self, interval_mins: int) -> None:CODE
LOWnautilus_trader/adapters/polymarket/execution.py302 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/adapters/polymarket/__init__.py46__all__ = [CODE
LOWnautilus_trader/adapters/polymarket/data.py408 async def _update_instruments(self, interval_mins: int) -> None:CODE
LOWnautilus_trader/adapters/tardis/__init__.py37__all__ = [CODE
LOWnautilus_trader/adapters/tardis/data.py210 async def _update_instruments(self, interval_mins: int) -> None:CODE
LOW…s_trader/adapters/interactive_brokers_pyo3/__init__.py46__all__ = [CODE
LOWnautilus_trader/adapters/deribit/__init__.py46__all__ = [CODE
LOWnautilus_trader/adapters/bybit/execution.py326 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/adapters/bybit/__init__.py50__all__ = [CODE
LOWnautilus_trader/adapters/bybit/data.py273 async def _update_instruments(self, interval_mins: int) -> None:CODE
LOWnautilus_trader/adapters/betfair/execution.py393 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/adapters/betfair/client.py190 def update_headers(self, login_resp: LoginResponse) -> None:CODE
LOWnautilus_trader/adapters/betfair/__init__.py42__all__ = [CODE
LOWnautilus_trader/adapters/dydx/__init__.py46__all__ = [CODE
LOWnautilus_trader/adapters/kraken/execution.py346 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/adapters/kraken/__init__.py43__all__ = [CODE
LOWnautilus_trader/adapters/kraken/data.py968 async def _update_instruments(self, interval_mins: int) -> None:CODE
LOWnautilus_trader/adapters/databento/loaders.py119 def set_price_precision(self, symbol: str, price_precision: int) -> None:CODE
LOWnautilus_trader/adapters/databento/__init__.py137__all__ = [CODE
LOWnautilus_trader/adapters/databento/types.py23__all__ = [CODE
LOWnautilus_trader/adapters/databento/data.py270 async def _update_dataset_ranges(self) -> None:CODE
LOWnautilus_trader/adapters/binance/execution.py361 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/adapters/binance/__init__.py120__all__ = [CODE
LOWnautilus_trader/adapters/binance/data.py256 async def _update_instruments(self, interval_mins: int) -> None:CODE
LOWnautilus_trader/adapters/binance/futures/execution.py181 async def _update_account_state(self) -> None: # noqa: C901 (too complex)CODE
LOWnautilus_trader/adapters/binance/futures/execution.py215 async def _set_default_leverage(symbol: BinanceSymbol, leverage: int) -> None:CODE
LOWnautilus_trader/adapters/binance/spot/execution.py145 async def _update_account_state(self) -> None:CODE
LOWnautilus_trader/system/kernel.py558 def _setup_loop(self) -> None:CODE
LOWnautilus_trader/system/kernel.py584 def _setup_shutdown_handling(self) -> None:CODE
LOWnautilus_trader/system/kernel.py587 def _setup_streaming(self, config: StreamingConfig) -> None:CODE
LOWnautilus_trader/common/enums.py35__all__ = [CODE
LOWnautilus_trader/common/events.py22__all__ = [CODE
LOWnautilus_trader/common/commands.py19__all__ = [CODE
LOWnautilus_trader/persistence/writer.py322 def _update_next_rotation_time(self, table_name: str | tuple[str, str]) -> None:CODE
LOWnautilus_trader/model/enums.py106__all__ = [CODE
LOWnautilus_trader/model/__init__.py95__all__ = [CODE
15 more matches not shown…
AI Structural Patterns35 hits · 33 pts
SeverityFileLineSnippetContext
LOWnautilus_trader/analysis/tearsheet.py603CODE
LOWnautilus_trader/test_kit/rust/events_pyo3.py433CODE
LOWnautilus_trader/adapters/okx/factories.py38CODE
LOWnautilus_trader/adapters/architect_ax/factories.py35CODE
LOWnautilus_trader/adapters/hyperliquid/factories.py49CODE
LOWnautilus_trader/adapters/bitmex/factories.py35CODE
LOWnautilus_trader/adapters/polymarket/factories.py43CODE
LOW…lus_trader/adapters/interactive_brokers_pyo3/config.py155CODE
LOW…lus_trader/adapters/interactive_brokers_pyo3/config.py234CODE
LOW…lus_trader/adapters/interactive_brokers_pyo3/config.py322CODE
LOWnautilus_trader/adapters/deribit/factories.py36CODE
LOWnautilus_trader/adapters/bybit/factories.py38CODE
LOWnautilus_trader/adapters/betfair/client.py286CODE
LOWnautilus_trader/adapters/betfair/client.py324CODE
LOWnautilus_trader/adapters/betfair/data_types.py464CODE
LOWnautilus_trader/adapters/betfair/sockets.py306CODE
LOWnautilus_trader/adapters/kraken/factories.py36CODE
LOWnautilus_trader/adapters/kraken/factories.py105CODE
LOWnautilus_trader/adapters/databento/loaders.py148CODE
LOW…utilus_trader/adapters/binance/futures/http/account.py1119CODE
LOWnautilus_trader/adapters/binance/http/account.py620CODE
LOWnautilus_trader/adapters/binance/spot/http/account.py572CODE
LOWnautilus_trader/execution/reports.py181CODE
LOWnautilus_trader/persistence/writer.py94CODE
LOWpython/nautilus_trader/analysis/tearsheet.py618CODE
LOWpython/tests/unit/model/factories.py172CODE
LOWpython/tests/unit/model/test_position.py43CODE
LOWpython/tests/strategies/acceptance.py451CODE
LOW…gration_tests/adapters/interactive_brokers/test_kit.py67CODE
LOW…gration_tests/adapters/interactive_brokers/test_kit.py95CODE
LOW…integration_tests/adapters/tardis/benches/streaming.py44CODE
LOWtests/integration_tests/adapters/betfair/test_kit.py222CODE
LOWtests/integration_tests/adapters/betfair/test_kit.py335CODE
LOWtests/integration_tests/adapters/betfair/test_kit.py613CODE
LOWtests/integration_tests/adapters/betfair/test_kit.py804CODE
Slop Phrases20 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMcrates/adapters/blockchain/examples/node_data_tester.rs52// IMPORTANT: The actor definitions below are EXAMPLE CODE for demonstration purposes.COMMENT
LOW…ests/tracemalloc_cross_bracket_gbpusd_bars_internal.py127 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…mem_leak_tests/tracemalloc_market_maker_gbpusd_bars.py124 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…/tracemalloc_crypto_ema_cross_ethusdt_trailing_stop.py105 # For repeated backtest runs make sure to reset the engineCOMMENT
LOWtests/mem_leak_tests/memray_backtest.py97 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…les/backtest/crypto_ema_cross_with_binance_provider.py141 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…s/backtest/databento_ema_cross_long_only_spy_trades.py112 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…/backtest/databento_ema_cross_long_only_tsla_trades.py111 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…/backtest/fx_ema_cross_bracket_gbpusd_bars_external.py139 # For repeated backtest runs make sure to reset the engineCOMMENT
LOWexamples/backtest/fx_market_maker_gbpusd_bars.py122 # For repeated backtest runs make sure to reset the engineCOMMENT
LOWexamples/backtest/databento_cme_quoter.py112 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…mples/backtest/crypto_ema_cross_ethusdt_trade_ticks.py137 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…/backtest/fx_ema_cross_bracket_gbpusd_bars_internal.py127 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…amples/backtest/fx_ema_cross_audusd_bars_from_ticks.py107 # For repeated backtest runs make sure to reset the engineCOMMENT
LOWexamples/backtest/crypto_orderbook_imbalance.py119 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…les/backtest/crypto_ema_cross_ethusdt_trailing_stop.py100 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…mples/backtest/betfair_backtest_orderbook_imbalance.py110 # For repeated backtest runs make sure to reset the engineCOMMENT
LOWexamples/backtest/fx_ema_cross_audusd_ticks.py118 # For repeated backtest runs make sure to reset the engineCOMMENT
LOW…es/backtest/databento_ema_cross_long_only_aapl_bars.py112 # For repeated backtest runs make sure to reset the engineCOMMENT
MEDIUM…ples/live/polymarket/polymarket_slug_builder_tester.py59# Alternative slug builders you can try:COMMENT
Cross-Language Confusion4 hits · 18 pts
SeverityFileLineSnippetContext
HIGHpython/tests/unit/analysis/test_reporter.py368 assert orders.equals(expected)CODE
HIGHtests/unit_tests/config/test_common.py164 == b'{"type":"redis","host":null,"port":null,"username":null,"password":null,"ssl":false,'CODE
HIGHtests/unit_tests/persistence/test_streaming.py914 assert parquet_table.schema.equals(CODE
HIGHexamples/live/deribit/deribit_exec_tester.py33 source .venv/bin/activate && USE_TESTNET=false python examples/live/deribit/deribit_exec_tester.pySTRING
Example Usage Blocks7 hits · 10 pts
SeverityFileLineSnippetContext
LOWcrates/adapters/lighter/fuzz/grind.sh7# Usage:COMMENT
LOWscripts/regen-capnp.sh12# Usage:COMMENT
LOWscripts/purge-orphan-dev-wheels.sh10# Usage:COMMENT
LOWscripts/curate-dataset.sh10# Usage:COMMENT
LOWscripts/ci/publish-release-checksums.sh4# Usage:COMMENT
LOWscripts/ci/publish-cargo-crates.sh4# Usage:COMMENT
LOWscripts/ci/verify-published-registries.bash4# Usage:COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHcrates/adapters/betfair/tests/stream_client.rs243/// venue partitions matched orders by strategy ref / account id as requested.COMMENT
Modern AI Meta-Vocabulary3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMcrates/adapters/lighter/src/signing/tx/encode.rs566 // the helper fail loudly on the test scaffold rather than producingCOMMENT
MEDIUM.github/OVERVIEW.md231hosted-compute-request-orchestrator-prod-iad-01.githubapp.com:443 # Runner orchestrationCODE
MEDIUM.github/OVERVIEW.md232hosted-compute-request-orchestrator-prod-iad-02.githubapp.com:443 # Runner orchestrationCODE
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit_tests/backtest/test_engine.py1279CODE
MEDIUMtests/unit_tests/backtest/test_data_iterator.py355CODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcrates/adapters/derive/src/execution.rs3088 assert!(msg.contains("placeholder"), "unexpected error: {msg}",);CODE
LOW…ters/deribit/test_data/http_get_account_summaries.json6 "email": "user@example.com",CODE
LOW…test_data/http_get_account_summaries_cross_margin.json6 "email": "user@example.com",CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/persistence/src/backend/feather.rs457 /// TODO: Fix error type to handle arrow error and object store errorCOMMENT