Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/olaxbt/ai-market-maker
/ functions
Functions
2,298 in github.com/olaxbt/ai-market-maker
⨍
Functions
2,298
◇
Types & classes
296
↳
Endpoints
89
Method
test_insufficient_data
(self)
tests/test_backtest_validation.py:38
Function
test_interval_sec_to_futu_interval_monthly_token
()
tests/test_backtest_futu_bars.py:8
Function
test_invalid_env_falls_back_with_warning
()
tests/test_cadence.py:22
Method
test_invalid_format_raises
(self)
tests/test_data_loaders.py:28
Method
test_invalid_order_raises
(self)
tests/test_data_loaders.py:24
Function
test_json_normalize_nested_metrics
(tmp_path: Path)
tests/test_eval_export.py:73
Function
test_liquidation_triggers
10x long on a crash → gets liquidated.
tests/test_backtest_engine_risk_bind.py:23
Function
test_llm_mode_auto_requires_key
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:20
Function
test_llm_mode_env_override_off
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:14
Function
test_llm_mode_env_override_on
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:8
Function
test_llm_required_defaults_false
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:29
Function
test_llm_required_off
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:40
Function
test_llm_required_on
(monkeypatch: pytest.MonkeyPatch)
tests/test_llm_mode.py:34
Function
test_load_bars_csv_only_takes_last_n
(tmp_path: Path)
tests/test_ohlcv_csv_cache.py:47
Function
test_load_bars_csv_only_too_short_raises
(tmp_path: Path)
tests/test_ohlcv_csv_cache.py:56
Function
test_load_execution_engine_case_insensitive
(monkeypatch)
tests/test_execution_engine.py:113
Function
test_load_execution_engine_defaults_to_legacy
(monkeypatch)
tests/test_execution_engine.py:103
Function
test_load_execution_engine_oms
(monkeypatch)
tests/test_execution_engine.py:108
Function
test_load_execution_engine_unknown_falls_back_to_legacy
(monkeypatch)
tests/test_execution_engine.py:118
Function
test_load_fund_policy_reads_repo_default
Smoke: repo default policy file must be present and parseable.
tests/test_policy_config_path.py:44
Function
test_load_fund_policy_uses_env_config_path
(monkeypatch, tmp_path: Path)
tests/test_trader_profile_selection.py:31
Function
test_load_oms_config_case_insensitive
(monkeypatch)
tests/test_oms_ledger.py:611
Function
test_load_oms_config_default_is_in_memory
(monkeypatch)
tests/test_oms_ledger.py:581
Function
test_load_oms_config_invalid_raises
(monkeypatch)
tests/test_oms_ledger.py:605
Function
test_load_oms_config_sqlite_custom_path
(monkeypatch, tmp_path: Path)
tests/test_oms_ledger.py:597
Function
test_load_oms_config_sqlite_uses_default_path
(monkeypatch)
tests/test_oms_ledger.py:588
Function
test_main_writes_csv
(tmp_path: Path, monkeypatch, capsys)
tests/test_eval_export.py:92
Function
test_market_depth_result
()
tests/test_exchange_protocol.py:120
Function
test_max_drawdown_basic
()
tests/test_backtest_metrics.py:10
Function
test_minimal_adapter_satisfies_protocol
()
tests/test_exchange_protocol.py:62
Function
test_missing_sdk_does_not_break_legacy_path
Missing Hyperliquid SDK must never affect the default paper/legacy path.
tests/test_execution_engine.py:310
Function
test_missing_sdk_raises_runtime_error
(monkeypatch)
tests/test_hyperliquid_adapter.py:198
Function
test_missing_sdk_raises_runtime_error
(monkeypatch)
tests/test_futu_adapter.py:285
Function
test_mock_depth_is_explicitly_labeled
()
tests/test_mock_depth_is_labeled.py:6
Function
test_multi_symbol_backtest
Multi-symbol alignment works.
tests/test_backtest_engine_risk_bind.py:105
Function
test_neutral_or_low_confidence_hold
When not flat, confidence below policy threshold → HOLD.
tests/test_execution_intent.py:40
Function
test_new_order_default_state_is_created
A freshly constructed OmsOrder must start in CREATED state.
tests/test_oms.py:199
Function
test_nexus_adapter_cancel_order_returns_typed_result
()
tests/test_execution_engine.py:140
Function
test_nexus_adapter_get_order_status_returns_typed_result
()
tests/test_execution_engine.py:148
Function
test_nexus_adapter_satisfies_exchange_adapter_protocol
()
tests/test_execution_engine.py:128
Method
test_no_deploy_file_fallback
(self)
tests/test_backtest_parity_integration.py:103
Method
test_no_losing_trades
(self)
tests/test_backtest_validation.py:93
Method
test_no_risk_controls
(self)
tests/test_backtest_validation.py:120
Function
test_no_signal_no_trades
Signal stays 0 → no positions opened.
tests/test_backtest_engine_risk_bind.py:91
Method
test_no_split_when_too_few_bars
(self)
tests/test_backtest_validation.py:138
Function
test_no_sqlite_file_created_with_default_config
Default in_memory config must never create any SQLite file.
tests/test_oms_ledger.py:617
Method
test_no_trades_does_not_fail
(self)
tests/test_backtest_validation.py:89
Function
test_normalize_futu_symbol
(symbol: str, expected: str)
tests/test_futu_adapter.py:60
Function
test_normalize_hl_symbol_all_cases
(symbol: str, expected: str)
tests/test_hyperliquid_adapter.py:247
Function
test_normalize_perp_ledger_row_direction_and_exit_ts
()
tests/test_exchange_trade_format.py:35
Function
test_normalize_trade_row_for_api_adds_side_step_fee_alias
()
tests/test_exchange_trade_format.py:13
Function
test_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
Function
test_oms_events_emitted_on_cancel
(tmp_path: Path)
tests/test_oms_ledger.py:534
Function
test_oms_events_emitted_on_dry_run_submit
(tmp_path: Path)
tests/test_oms_ledger.py:511
Function
test_oms_events_emitted_on_submit
(tmp_path: Path)
tests/test_oms_ledger.py:487
Function
test_oms_has_no_hyperliquid_import
oms.py and order.py must contain no reference to 'hyperliquid'.
tests/test_oms.py:383
Function
test_oms_idempotency_survives_restart
(tmp_path: Path)
tests/test_oms_ledger.py:396
Function
test_oms_nexus_adapter_delegates_market_depth
()
tests/test_execution_engine.py:202
Function
test_oms_nexus_adapter_delegates_portfolio_health
()
tests/test_execution_engine.py:194
Function
test_oms_nexus_adapter_does_not_call_exchange_in_dry_run
()
tests/test_execution_engine.py:179
Function
test_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
Function
test_oms_nexus_adapter_routes_place_smart_order_through_oms
()
tests/test_execution_engine.py:160
Function
test_oms_open_orders_survive_restart
(tmp_path: Path)
tests/test_oms_ledger.py:432
Function
test_oms_survives_restart_with_sqlite_ledger
(tmp_path: Path)
tests/test_oms_ledger.py:372
Function
test_oms_terminal_orders_not_returned_as_open
(tmp_path: Path)
tests/test_oms_ledger.py:463
Function
test_oms_with_ledger_persists_submitted_order
(tmp_path: Path)
tests/test_oms_ledger.py:350
Function
test_oms_without_ledger_behaviour_unchanged
Oms(adapter=...) with no ledger must behave exactly as before this PR.
tests/test_oms_ledger.py:557
Function
test_paper_mode_ignores_hyperliquid_dry_run
EXCHANGE=paper must ignore HYPERLIQUID_DRY_RUN (paper uses no HL adapter).
tests/test_exchange_config.py:28
Function
test_paper_mode_ignores_live_flag
(monkeypatch)
tests/test_exchange_config.py:82
Function
test_parse_json_object_fenced
()
tests/test_llm_json_parse.py:10
Function
test_parse_json_object_non_object_returns_none
()
tests/test_llm_json_parse.py:24
Function
test_parse_json_object_plain
()
tests/test_llm_json_parse.py:6
Function
test_parse_json_object_preamble_and_trailing_text
()
tests/test_llm_json_parse.py:19
Method
test_passes_threshold
(self)
tests/test_backtest_validation.py:80
Function
test_payload_includes_default_agent_prompts
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/test_agent_prompt_routes.py:61
Method
test_picks_up_default_deploy_file
(self)
tests/test_backtest_parity_integration.py:89
Function
test_place_order_accepted_via_fake_client
()
tests/test_hyperliquid_adapter.py:70
Function
test_place_order_accepted_via_fake_client
()
tests/test_futu_adapter.py:112
Function
test_place_order_filled_via_fake_client
()
tests/test_futu_adapter.py:149
Function
test_place_order_rejected_via_fake_client
()
tests/test_hyperliquid_adapter.py:94
Function
test_place_order_rejected_via_fake_client
()
tests/test_futu_adapter.py:133
Function
test_place_order_timeout_maps_to_unknown
()
tests/test_hyperliquid_adapter.py:112
Function
test_policy_config_path_overrides_defaults
(tmp_path: Path, monkeypatch)
tests/test_policy_config_path.py:6
Function
test_protocol_conformance_all_five_methods_exist
()
tests/test_hyperliquid_adapter.py:36
Function
test_protocol_conformance_all_methods_exist
()
tests/test_futu_adapter.py:68
Function
test_put_creates_row_then_get_roundtrip
(client: TestClient, tmp_path: Path)
tests/test_agent_prompt_routes.py:20
Function
test_read_backtest_summaries
(tmp_path: Path)
tests/test_eval_export.py:25
Function
test_read_index_jsonl_skips_bad_lines
(tmp_path: Path)
tests/test_eval_export.py:13
Function
test_read_jsonl_respects_limit
(tmp_path: Path)
tests/test_trade_book_jsonl.py:26
Function
test_read_legacy_single_line_array
(tmp_path: Path)
tests/test_trade_book_jsonl.py:20
Function
test_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
Method
test_register_loader
(self)
tests/test_data_loaders.py:37
Method
test_registry_has_all_loaders
(self)
tests/test_data_loaders.py:50
Method
test_report_with_warnings
(self)
tests/test_backtest_validation.py:210
Function
test_repr_does_not_expose_host
()
tests/test_futu_adapter.py:296
Function
test_repr_does_not_expose_secret
()
tests/test_hyperliquid_adapter.py:218
Function
test_resolve_env_csv_overrides_tail
()
tests/test_default_universe.py:16
Method
test_resolve_hk_equity_returns_futu
(self)
tests/test_data_loaders.py:69
Function
test_resolve_primary_first_and_caps
()
tests/test_default_universe.py:10
Method
test_resolve_returns_first_in_chain
(self)
tests/test_data_loaders.py:61
← previous
next →
2,101–2,200 of 2,298, ranked by callers