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
Function
test_buy_reachable_at_5_of_9_composite_0_62
5/9 bullish at 0.62 → confidence >= 0.10 → BUY.
tests/test_threshold_calibration.py:89
Function
test_buy_reachable_at_5_of_9_with_real_weights
5/9 bullish at 0.60 with real weights → composite~0.56, confidence~0.11 → BUY.
tests/test_threshold_calibration.py:61
Function
test_buy_stronger_with_more_consensus
7/9 → higher confidence than 5/9 (same agent composite).
tests/test_threshold_calibration.py:99
Function
test_cancel_accepted_order
Cancelling an ACCEPTED order must transition it to CANCELLED.
tests/test_oms.py:282
Function
test_cancel_order_returns_cancelled
()
tests/test_hyperliquid_adapter.py:127
Function
test_cancel_order_returns_cancelled
()
tests/test_futu_adapter.py:168
Function
test_cancel_result
()
tests/test_exchange_protocol.py:113
Method
test_case_insensitive
(self)
tests/test_data_loaders.py:99
Function
test_clamp_too_large
()
tests/test_cadence.py:28
Method
test_clears_llm_env_on_weighted
(self)
tests/test_backtest_config.py:105
Method
test_cli_leverage
(self)
tests/test_backtest_config.py:90
Method
test_cli_mode_overrides_deploy
(self)
tests/test_backtest_parity_integration.py:65
Method
test_cli_override_wins_over_deploy
(self)
tests/test_backtest_config.py:60
Function
test_close_only_returns_core_indicators
()
tests/test_technical_indicators.py:30
Function
test_compute_basic_metrics_smoke
()
tests/test_backtest_metrics.py:35
Function
test_conditional_path_map_uses_end_sentinel
()
tests/test_workflow_routing.py:24
Function
test_consensus_empty_state
()
tests/test_tier0_consensus.py:6
Function
test_consensus_news_shock_blocks
()
tests/test_tier0_consensus.py:13
Method
test_daily
(self)
tests/test_data_loaders.py:116
Function
test_default_exchange_config_is_paper
(monkeypatch)
tests/test_exchange_config.py:16
Function
test_default_interval_matches_product_default
()
tests/test_cadence.py:13
Method
test_defaults
(self)
tests/test_backtest_config.py:39
Method
test_deploy_active_signal
(self)
tests/test_backtest_config.py:111
Method
test_deploy_config_loaded
(self)
tests/test_backtest_config.py:46
Method
test_deploy_no_file_fallback
(self)
tests/test_backtest_config.py:85
Function
test_direction_change_flips_position
Changing signal direction closes old → opens new.
tests/test_backtest_engine_risk_bind.py:72
Function
test_documentation_table
Trace the formula at key (composite, consensus) points.
tests/test_threshold_calibration.py:137
Function
test_dry_run_cancel_order_does_not_call_client
()
tests/test_hyperliquid_adapter.py:208
Function
test_dry_run_cancel_order_does_not_call_client
()
tests/test_futu_adapter.py:179
Function
test_dry_run_place_order_does_not_call_client
()
tests/test_hyperliquid_adapter.py:48
Function
test_dry_run_place_order_does_not_call_client
()
tests/test_futu_adapter.py:83
Function
test_dry_run_submit_does_not_call_adapter
With dry_run=True, adapter.place_order must never be called and order remains in CREATED state.
tests/test_oms.py:267
Function
test_duplicate_idempotency_key_does_not_call_adapter_twice
Second submit_order with the same idempotency key must return the cached OmsOrder without calling adapter.place_order again.
tests/test_oms.py:235
Function
test_each_agent_emits_schema_version_and_id
()
tests/test_tier0_contract.py:10
Method
test_empty_input
(self)
tests/test_data_loaders.py:138
Function
test_ensure_bars_cached_hit_without_network
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/test_ohlcv_csv_cache.py:97
Function
test_ensure_bars_cached_uses_fetch_when_missing
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/test_ohlcv_csv_cache.py:64
Method
test_env_ai_market_maker_use_llm
(self)
tests/test_backtest_parity_integration.py:114
Method
test_env_arbitrator_mode
(self)
tests/test_backtest_config.py:75
Method
test_env_deploy_path
(self)
tests/test_backtest_parity_integration.py:119
Method
test_env_use_llm
(self)
tests/test_backtest_config.py:80
Function
test_exchange_order_result_all_fields
()
tests/test_exchange_protocol.py:77
Function
test_exchange_order_result_optional_error
()
tests/test_exchange_protocol.py:95
Function
test_explicit_env_override
()
tests/test_cadence.py:17
Method
test_fails_below_threshold
(self)
tests/test_backtest_validation.py:84
Method
test_fallback_chains_defined
(self)
tests/test_data_loaders.py:55
Function
test_fetch_futu_ohlcv_bars_uses_adapter
(monkeypatch: pytest.MonkeyPatch)
tests/test_backtest_futu_bars.py:15
Function
test_fetch_market_depth_returns_orders
()
tests/test_futu_adapter.py:233
Function
test_fetch_open_orders_returns_list
()
tests/test_hyperliquid_adapter.py:160
Function
test_fetch_positions_returns_list
()
tests/test_hyperliquid_adapter.py:184
Function
test_flat_book_low_confidence_entry
Flat book with directional-but-low confidence → BUY via flat-book policy.
tests/test_execution_intent.py:61
Method
test_four_hour_falls_back_to_day
(self)
tests/test_data_loaders.py:126
Function
test_full_ohlcv_populates_hlc_volume_indicators
()
tests/test_technical_indicators.py:43
Function
test_funding_fee_applies
Funding fees are deducted.
tests/test_backtest_engine_risk_bind.py:55
Function
test_futu_price_endpoint_502_when_adapter_raises
(monkeypatch: pytest.MonkeyPatch)
tests/test_flow_futu_price_route.py:82
Function
test_futu_price_endpoint_ok
(monkeypatch: pytest.MonkeyPatch)
tests/test_flow_futu_price_route.py:15
Function
test_futu_status_endpoint_ok
(monkeypatch: pytest.MonkeyPatch)
tests/test_flow_futu_price_route.py:40
Function
test_futu_status_endpoint_returns_body_when_adapter_raises
( monkeypatch: pytest.MonkeyPatch, )
tests/test_flow_futu_price_route.py:63
Method
test_generate_report
(self)
tests/test_backtest_validation.py:148
Function
test_get_history_kline_returns_bars
()
tests/test_futu_adapter.py:248
Function
test_get_nexus_adapter_default_returns_nexus_adapter
Default (no env vars) must return NexusAdapter — legacy path unchanged.
tests/test_execution_engine.py:239
Function
test_get_nexus_adapter_explicit_legacy_returns_nexus_adapter
(monkeypatch)
tests/test_execution_engine.py:251
Function
test_get_nexus_adapter_legacy_path_unchanged
Legacy path must never construct a ledger regardless of OMS_LEDGER env.
tests/test_oms_ledger.py:672
Function
test_get_nexus_adapter_oms_hyperliquid_dry_run_returns_oms_adapter
OMS + Hyperliquid + dry_run=True must return OmsNexusAdapter without SDK.
tests/test_execution_engine.py:289
Function
test_get_nexus_adapter_oms_hyperliquid_without_dry_run_raises
OMS + Hyperliquid without dry_run must fail closed with a clear RuntimeError.
tests/test_execution_engine.py:275
Function
test_get_nexus_adapter_oms_paper_default_no_ledger_file
OMS + paper + default (in_memory) config must not create any SQLite file.
tests/test_oms_ledger.py:633
Function
test_get_nexus_adapter_oms_paper_returns_oms_adapter
OMS engine with paper exchange must return OmsNexusAdapter.
tests/test_execution_engine.py:262
Function
test_get_nexus_adapter_oms_sqlite_injects_ledger
OMS + paper + sqlite config must create and inject a SqliteLedger.
tests/test_oms_ledger.py:649
Function
test_get_order_status_maps_all_statuses
(fake_response: str, expected_status: str)
tests/test_hyperliquid_adapter.py:151
Function
test_get_order_status_maps_all_statuses
(fake_response: str, expected_status: str)
tests/test_futu_adapter.py:206
Function
test_get_order_status_maps_filled
After adapter reports 'filled', order state must be FILLED.
tests/test_oms.py:300
Function
test_get_portfolio_health_returns_data
()
tests/test_futu_adapter.py:218
Function
test_get_rt_data_returns_snapshot
()
tests/test_futu_adapter.py:261
Function
test_get_synthetic_prompt_when_node_missing_from_file
Topology nodes (e.g. n0) exist in NODE_REGISTRY before a row is written to JSON.
tests/test_agent_prompt_routes.py:49
Function
test_global_leaderboard_includes_local_run
(lb_client: tuple[TestClient, str])
tests/test_leaderboard_local_provider.py:45
Method
test_happy_path
(self)
tests/test_data_loaders.py:145
Function
test_healthcheck_returns_ok
()
tests/test_hyperliquid_adapter.py:191
Function
test_healthcheck_returns_ok
()
tests/test_futu_adapter.py:274
Method
test_healthy_mix
(self)
tests/test_backtest_validation.py:101
Method
test_hk
(self)
tests/test_data_loaders.py:79
Method
test_hk_short_padded
(self)
tests/test_data_loaders.py:84
Function
test_hl_api_base_env_constant_is_exported
HL_API_BASE_ENV must be importable and used to override the API base URL.
tests/test_exchange_config.py:106
Method
test_hourly
(self)
tests/test_data_loaders.py:121
Function
test_hyperliquid_dry_run
(monkeypatch)
tests/test_exchange_config.py:58
Function
test_hyperliquid_with_live_flag
(monkeypatch)
tests/test_exchange_config.py:45
Function
test_hyperliquid_without_live_flag_raises
(monkeypatch)
tests/test_exchange_config.py:38
Function
test_in_memory_ledger_append_and_list_events
()
tests/test_oms_ledger.py:154
Function
test_in_memory_ledger_events_isolated_per_order
()
tests/test_oms_ledger.py:165
Function
test_in_memory_ledger_get_by_client_id
()
tests/test_oms_ledger.py:119
Function
test_in_memory_ledger_get_by_idempotency_key
()
tests/test_oms_ledger.py:127
Function
test_in_memory_ledger_list_open_orders
()
tests/test_oms_ledger.py:144
Function
test_in_memory_ledger_satisfies_protocol
()
tests/test_oms_ledger.py:174
Function
test_in_memory_ledger_upsert_and_load
()
tests/test_oms_ledger.py:110
Function
test_in_memory_ledger_upsert_overwrites
()
tests/test_oms_ledger.py:135
Function
test_indicator_keys_count
()
tests/test_technical_indicators.py:22
Function
test_infer_daily_ms_timestamps
()
tests/test_perp_bar_interval_infer.py:16
Function
test_infer_daily_unix_seconds_timestamps
Seconds-based OHLCV must not be divided by 1000 (would look like ~86s bars).
tests/test_perp_bar_interval_infer.py:23
Function
test_infer_reconciles_when_median_far_below_configured_bar
Mis-inferred sub-hour spacing vs configured daily → trust interval_sec.
tests/test_perp_bar_interval_infer.py:31
Function
test_inner_local_provider_leaderboard_matches
(lb_client: tuple[TestClient, str])
tests/test_leaderboard_local_provider.py:59
Function
test_inner_local_provider_rows_history
(lb_client: tuple[TestClient, str])
tests/test_leaderboard_local_provider.py:72
← previous
next →
2,001–2,100 of 2,298, ranked by callers