MCPcopy Create free account

hub / github.com/olaxbt/ai-market-maker / functions

Functions2,298 in github.com/olaxbt/ai-market-maker

Methodtest_insufficient_data
(self)
tests/test_backtest_validation.py:38
Functiontest_interval_sec_to_futu_interval_monthly_token
()
tests/test_backtest_futu_bars.py:8
Functiontest_invalid_env_falls_back_with_warning
()
tests/test_cadence.py:22
Methodtest_invalid_format_raises
(self)
tests/test_data_loaders.py:28
Methodtest_invalid_order_raises
(self)
tests/test_data_loaders.py:24
Functiontest_json_normalize_nested_metrics
(tmp_path: Path)
tests/test_eval_export.py:73
Functiontest_liquidation_triggers
10x long on a crash → gets liquidated.
tests/test_backtest_engine_risk_bind.py:23
Functiontest_llm_mode_auto_requires_key
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:20
Functiontest_llm_mode_env_override_off
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:14
Functiontest_llm_mode_env_override_on
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:8
Functiontest_llm_required_defaults_false
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:29
Functiontest_llm_required_off
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:40
Functiontest_llm_required_on
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:34
Functiontest_load_bars_csv_only_takes_last_n
(tmp_path: Path)
tests/test_ohlcv_csv_cache.py:47
Functiontest_load_bars_csv_only_too_short_raises
(tmp_path: Path)
tests/test_ohlcv_csv_cache.py:56
Functiontest_load_execution_engine_case_insensitive
(monkeypatch)
tests/test_execution_engine.py:113
Functiontest_load_execution_engine_defaults_to_legacy
(monkeypatch)
tests/test_execution_engine.py:103
Functiontest_load_execution_engine_oms
(monkeypatch)
tests/test_execution_engine.py:108
Functiontest_load_execution_engine_unknown_falls_back_to_legacy
(monkeypatch)
tests/test_execution_engine.py:118
Functiontest_load_fund_policy_reads_repo_default
Smoke: repo default policy file must be present and parseable.
tests/test_policy_config_path.py:44
Functiontest_load_fund_policy_uses_env_config_path
(monkeypatch, tmp_path: Path)
tests/test_trader_profile_selection.py:31
Functiontest_load_oms_config_case_insensitive
(monkeypatch)
tests/test_oms_ledger.py:611
Functiontest_load_oms_config_default_is_in_memory
(monkeypatch)
tests/test_oms_ledger.py:581
Functiontest_load_oms_config_invalid_raises
(monkeypatch)
tests/test_oms_ledger.py:605
Functiontest_load_oms_config_sqlite_custom_path
(monkeypatch, tmp_path: Path)
tests/test_oms_ledger.py:597
Functiontest_load_oms_config_sqlite_uses_default_path
(monkeypatch)
tests/test_oms_ledger.py:588
Functiontest_main_writes_csv
(tmp_path: Path, monkeypatch, capsys)
tests/test_eval_export.py:92
Functiontest_market_depth_result
()
tests/test_exchange_protocol.py:120
Functiontest_max_drawdown_basic
()
tests/test_backtest_metrics.py:10
Functiontest_minimal_adapter_satisfies_protocol
()
tests/test_exchange_protocol.py:62
Functiontest_missing_sdk_does_not_break_legacy_path
Missing Hyperliquid SDK must never affect the default paper/legacy path.
tests/test_execution_engine.py:310
Functiontest_missing_sdk_raises_runtime_error
(monkeypatch)
tests/test_hyperliquid_adapter.py:198
Functiontest_missing_sdk_raises_runtime_error
(monkeypatch)
tests/test_futu_adapter.py:285
Functiontest_mock_depth_is_explicitly_labeled
()
tests/test_mock_depth_is_labeled.py:6
Functiontest_multi_symbol_backtest
Multi-symbol alignment works.
tests/test_backtest_engine_risk_bind.py:105
Functiontest_neutral_or_low_confidence_hold
When not flat, confidence below policy threshold → HOLD.
tests/test_execution_intent.py:40
Functiontest_new_order_default_state_is_created
A freshly constructed OmsOrder must start in CREATED state.
tests/test_oms.py:199
Functiontest_nexus_adapter_cancel_order_returns_typed_result
()
tests/test_execution_engine.py:140
Functiontest_nexus_adapter_get_order_status_returns_typed_result
()
tests/test_execution_engine.py:148
Functiontest_nexus_adapter_satisfies_exchange_adapter_protocol
()
tests/test_execution_engine.py:128
Methodtest_no_deploy_file_fallback
(self)
tests/test_backtest_parity_integration.py:103
Methodtest_no_losing_trades
(self)
tests/test_backtest_validation.py:93
Methodtest_no_risk_controls
(self)
tests/test_backtest_validation.py:120
Functiontest_no_signal_no_trades
Signal stays 0 → no positions opened.
tests/test_backtest_engine_risk_bind.py:91
Methodtest_no_split_when_too_few_bars
(self)
tests/test_backtest_validation.py:138
Functiontest_no_sqlite_file_created_with_default_config
Default in_memory config must never create any SQLite file.
tests/test_oms_ledger.py:617
Methodtest_no_trades_does_not_fail
(self)
tests/test_backtest_validation.py:89
Functiontest_normalize_futu_symbol
(symbol: str, expected: str)
tests/test_futu_adapter.py:60
Functiontest_normalize_hl_symbol_all_cases
(symbol: str, expected: str)
tests/test_hyperliquid_adapter.py:247
Functiontest_normalize_perp_ledger_row_direction_and_exit_ts
()
tests/test_exchange_trade_format.py:35
Functiontest_normalize_trade_row_for_api_adds_side_step_fee_alias
()
tests/test_exchange_trade_format.py:13
Functiontest_ohlcv_window_grows_per_step
Regression: the `window` param to _signal_fn must grow 1→N bars, not receive the full series each time (P0 bug recurrence check).
tests/test_backtest_engine_risk_bind.py:119
Functiontest_oms_events_emitted_on_cancel
(tmp_path: Path)
tests/test_oms_ledger.py:534
Functiontest_oms_events_emitted_on_dry_run_submit
(tmp_path: Path)
tests/test_oms_ledger.py:511
Functiontest_oms_events_emitted_on_submit
(tmp_path: Path)
tests/test_oms_ledger.py:487
Functiontest_oms_has_no_hyperliquid_import
oms.py and order.py must contain no reference to 'hyperliquid'.
tests/test_oms.py:383
Functiontest_oms_idempotency_survives_restart
(tmp_path: Path)
tests/test_oms_ledger.py:396
Functiontest_oms_nexus_adapter_delegates_market_depth
()
tests/test_execution_engine.py:202
Functiontest_oms_nexus_adapter_delegates_portfolio_health
()
tests/test_execution_engine.py:194
Functiontest_oms_nexus_adapter_does_not_call_exchange_in_dry_run
()
tests/test_execution_engine.py:179
Functiontest_oms_nexus_adapter_result_shape_compatible_with_execution_result
Per-order result must satisfy what main.py reads from smart_orders entries. main.py: execution_result["smart_order"] = smart_orders[0] e2e te
tests/test_execution_engine.py:210
Functiontest_oms_nexus_adapter_routes_place_smart_order_through_oms
()
tests/test_execution_engine.py:160
Functiontest_oms_open_orders_survive_restart
(tmp_path: Path)
tests/test_oms_ledger.py:432
Functiontest_oms_survives_restart_with_sqlite_ledger
(tmp_path: Path)
tests/test_oms_ledger.py:372
Functiontest_oms_terminal_orders_not_returned_as_open
(tmp_path: Path)
tests/test_oms_ledger.py:463
Functiontest_oms_with_ledger_persists_submitted_order
(tmp_path: Path)
tests/test_oms_ledger.py:350
Functiontest_oms_without_ledger_behaviour_unchanged
Oms(adapter=...) with no ledger must behave exactly as before this PR.
tests/test_oms_ledger.py:557
Functiontest_paper_mode_ignores_hyperliquid_dry_run
EXCHANGE=paper must ignore HYPERLIQUID_DRY_RUN (paper uses no HL adapter).
tests/test_exchange_config.py:28
Functiontest_paper_mode_ignores_live_flag
(monkeypatch)
tests/test_exchange_config.py:82
Functiontest_parse_json_object_fenced
()
tests/test_llm_json_parse.py:10
Functiontest_parse_json_object_non_object_returns_none
()
tests/test_llm_json_parse.py:24
Functiontest_parse_json_object_plain
()
tests/test_llm_json_parse.py:6
Functiontest_parse_json_object_preamble_and_trailing_text
()
tests/test_llm_json_parse.py:19
Methodtest_passes_threshold
(self)
tests/test_backtest_validation.py:80
Functiontest_payload_includes_default_agent_prompts
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/test_agent_prompt_routes.py:61
Methodtest_picks_up_default_deploy_file
(self)
tests/test_backtest_parity_integration.py:89
Functiontest_place_order_accepted_via_fake_client
()
tests/test_hyperliquid_adapter.py:70
Functiontest_place_order_accepted_via_fake_client
()
tests/test_futu_adapter.py:112
Functiontest_place_order_filled_via_fake_client
()
tests/test_futu_adapter.py:149
Functiontest_place_order_rejected_via_fake_client
()
tests/test_hyperliquid_adapter.py:94
Functiontest_place_order_rejected_via_fake_client
()
tests/test_futu_adapter.py:133
Functiontest_place_order_timeout_maps_to_unknown
()
tests/test_hyperliquid_adapter.py:112
Functiontest_policy_config_path_overrides_defaults
(tmp_path: Path, monkeypatch)
tests/test_policy_config_path.py:6
Functiontest_protocol_conformance_all_five_methods_exist
()
tests/test_hyperliquid_adapter.py:36
Functiontest_protocol_conformance_all_methods_exist
()
tests/test_futu_adapter.py:68
Functiontest_put_creates_row_then_get_roundtrip
(client: TestClient, tmp_path: Path)
tests/test_agent_prompt_routes.py:20
Functiontest_read_backtest_summaries
(tmp_path: Path)
tests/test_eval_export.py:25
Functiontest_read_index_jsonl_skips_bad_lines
(tmp_path: Path)
tests/test_eval_export.py:13
Functiontest_read_jsonl_respects_limit
(tmp_path: Path)
tests/test_trade_book_jsonl.py:26
Functiontest_read_legacy_single_line_array
(tmp_path: Path)
tests/test_trade_book_jsonl.py:20
Functiontest_reconcile_no_exchange_calls
reconcile(known_venue_ids={...}) must: - Mark orders whose venue_order_id is absent from the set as EXPIRED - NOT call any adapter method
tests/test_oms.py:335
Methodtest_register_loader
(self)
tests/test_data_loaders.py:37
Methodtest_registry_has_all_loaders
(self)
tests/test_data_loaders.py:50
Methodtest_report_with_warnings
(self)
tests/test_backtest_validation.py:210
Functiontest_repr_does_not_expose_host
()
tests/test_futu_adapter.py:296
Functiontest_repr_does_not_expose_secret
()
tests/test_hyperliquid_adapter.py:218
Functiontest_resolve_env_csv_overrides_tail
()
tests/test_default_universe.py:16
Methodtest_resolve_hk_equity_returns_futu
(self)
tests/test_data_loaders.py:69
Functiontest_resolve_primary_first_and_caps
()
tests/test_default_universe.py:10
Methodtest_resolve_returns_first_in_chain
(self)
tests/test_data_loaders.py:61
← previousnext →2,101–2,200 of 2,298, ranked by callers