MCPcopy Create free account

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

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

Functiontest_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
Functiontest_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
Functiontest_buy_stronger_with_more_consensus
7/9 → higher confidence than 5/9 (same agent composite).
tests/test_threshold_calibration.py:99
Functiontest_cancel_accepted_order
Cancelling an ACCEPTED order must transition it to CANCELLED.
tests/test_oms.py:282
Functiontest_cancel_order_returns_cancelled
()
tests/test_hyperliquid_adapter.py:127
Functiontest_cancel_order_returns_cancelled
()
tests/test_futu_adapter.py:168
Functiontest_cancel_result
()
tests/test_exchange_protocol.py:113
Methodtest_case_insensitive
(self)
tests/test_data_loaders.py:99
Functiontest_clamp_too_large
()
tests/test_cadence.py:28
Methodtest_clears_llm_env_on_weighted
(self)
tests/test_backtest_config.py:105
Methodtest_cli_leverage
(self)
tests/test_backtest_config.py:90
Methodtest_cli_mode_overrides_deploy
(self)
tests/test_backtest_parity_integration.py:65
Methodtest_cli_override_wins_over_deploy
(self)
tests/test_backtest_config.py:60
Functiontest_close_only_returns_core_indicators
()
tests/test_technical_indicators.py:30
Functiontest_compute_basic_metrics_smoke
()
tests/test_backtest_metrics.py:35
Functiontest_conditional_path_map_uses_end_sentinel
()
tests/test_workflow_routing.py:24
Functiontest_consensus_empty_state
()
tests/test_tier0_consensus.py:6
Functiontest_consensus_news_shock_blocks
()
tests/test_tier0_consensus.py:13
Methodtest_daily
(self)
tests/test_data_loaders.py:116
Functiontest_default_exchange_config_is_paper
(monkeypatch)
tests/test_exchange_config.py:16
Functiontest_default_interval_matches_product_default
()
tests/test_cadence.py:13
Methodtest_defaults
(self)
tests/test_backtest_config.py:39
Methodtest_deploy_active_signal
(self)
tests/test_backtest_config.py:111
Methodtest_deploy_config_loaded
(self)
tests/test_backtest_config.py:46
Methodtest_deploy_no_file_fallback
(self)
tests/test_backtest_config.py:85
Functiontest_direction_change_flips_position
Changing signal direction closes old → opens new.
tests/test_backtest_engine_risk_bind.py:72
Functiontest_documentation_table
Trace the formula at key (composite, consensus) points.
tests/test_threshold_calibration.py:137
Functiontest_dry_run_cancel_order_does_not_call_client
()
tests/test_hyperliquid_adapter.py:208
Functiontest_dry_run_cancel_order_does_not_call_client
()
tests/test_futu_adapter.py:179
Functiontest_dry_run_place_order_does_not_call_client
()
tests/test_hyperliquid_adapter.py:48
Functiontest_dry_run_place_order_does_not_call_client
()
tests/test_futu_adapter.py:83
Functiontest_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
Functiontest_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
Functiontest_each_agent_emits_schema_version_and_id
()
tests/test_tier0_contract.py:10
Methodtest_empty_input
(self)
tests/test_data_loaders.py:138
Functiontest_ensure_bars_cached_hit_without_network
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/test_ohlcv_csv_cache.py:97
Functiontest_ensure_bars_cached_uses_fetch_when_missing
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/test_ohlcv_csv_cache.py:64
Methodtest_env_ai_market_maker_use_llm
(self)
tests/test_backtest_parity_integration.py:114
Methodtest_env_arbitrator_mode
(self)
tests/test_backtest_config.py:75
Methodtest_env_deploy_path
(self)
tests/test_backtest_parity_integration.py:119
Methodtest_env_use_llm
(self)
tests/test_backtest_config.py:80
Functiontest_exchange_order_result_all_fields
()
tests/test_exchange_protocol.py:77
Functiontest_exchange_order_result_optional_error
()
tests/test_exchange_protocol.py:95
Functiontest_explicit_env_override
()
tests/test_cadence.py:17
Methodtest_fails_below_threshold
(self)
tests/test_backtest_validation.py:84
Methodtest_fallback_chains_defined
(self)
tests/test_data_loaders.py:55
Functiontest_fetch_futu_ohlcv_bars_uses_adapter
(monkeypatch: pytest.MonkeyPatch)
tests/test_backtest_futu_bars.py:15
Functiontest_fetch_market_depth_returns_orders
()
tests/test_futu_adapter.py:233
Functiontest_fetch_open_orders_returns_list
()
tests/test_hyperliquid_adapter.py:160
Functiontest_fetch_positions_returns_list
()
tests/test_hyperliquid_adapter.py:184
Functiontest_flat_book_low_confidence_entry
Flat book with directional-but-low confidence → BUY via flat-book policy.
tests/test_execution_intent.py:61
Methodtest_four_hour_falls_back_to_day
(self)
tests/test_data_loaders.py:126
Functiontest_full_ohlcv_populates_hlc_volume_indicators
()
tests/test_technical_indicators.py:43
Functiontest_funding_fee_applies
Funding fees are deducted.
tests/test_backtest_engine_risk_bind.py:55
Functiontest_futu_price_endpoint_502_when_adapter_raises
(monkeypatch: pytest.MonkeyPatch)
tests/test_flow_futu_price_route.py:82
Functiontest_futu_price_endpoint_ok
(monkeypatch: pytest.MonkeyPatch)
tests/test_flow_futu_price_route.py:15
Functiontest_futu_status_endpoint_ok
(monkeypatch: pytest.MonkeyPatch)
tests/test_flow_futu_price_route.py:40
Functiontest_futu_status_endpoint_returns_body_when_adapter_raises
( monkeypatch: pytest.MonkeyPatch, )
tests/test_flow_futu_price_route.py:63
Methodtest_generate_report
(self)
tests/test_backtest_validation.py:148
Functiontest_get_history_kline_returns_bars
()
tests/test_futu_adapter.py:248
Functiontest_get_nexus_adapter_default_returns_nexus_adapter
Default (no env vars) must return NexusAdapter — legacy path unchanged.
tests/test_execution_engine.py:239
Functiontest_get_nexus_adapter_explicit_legacy_returns_nexus_adapter
(monkeypatch)
tests/test_execution_engine.py:251
Functiontest_get_nexus_adapter_legacy_path_unchanged
Legacy path must never construct a ledger regardless of OMS_LEDGER env.
tests/test_oms_ledger.py:672
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_get_nexus_adapter_oms_paper_returns_oms_adapter
OMS engine with paper exchange must return OmsNexusAdapter.
tests/test_execution_engine.py:262
Functiontest_get_nexus_adapter_oms_sqlite_injects_ledger
OMS + paper + sqlite config must create and inject a SqliteLedger.
tests/test_oms_ledger.py:649
Functiontest_get_order_status_maps_all_statuses
(fake_response: str, expected_status: str)
tests/test_hyperliquid_adapter.py:151
Functiontest_get_order_status_maps_all_statuses
(fake_response: str, expected_status: str)
tests/test_futu_adapter.py:206
Functiontest_get_order_status_maps_filled
After adapter reports 'filled', order state must be FILLED.
tests/test_oms.py:300
Functiontest_get_portfolio_health_returns_data
()
tests/test_futu_adapter.py:218
Functiontest_get_rt_data_returns_snapshot
()
tests/test_futu_adapter.py:261
Functiontest_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
Functiontest_global_leaderboard_includes_local_run
(lb_client: tuple[TestClient, str])
tests/test_leaderboard_local_provider.py:45
Methodtest_happy_path
(self)
tests/test_data_loaders.py:145
Functiontest_healthcheck_returns_ok
()
tests/test_hyperliquid_adapter.py:191
Functiontest_healthcheck_returns_ok
()
tests/test_futu_adapter.py:274
Methodtest_healthy_mix
(self)
tests/test_backtest_validation.py:101
Methodtest_hk
(self)
tests/test_data_loaders.py:79
Methodtest_hk_short_padded
(self)
tests/test_data_loaders.py:84
Functiontest_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
Methodtest_hourly
(self)
tests/test_data_loaders.py:121
Functiontest_hyperliquid_dry_run
(monkeypatch)
tests/test_exchange_config.py:58
Functiontest_hyperliquid_with_live_flag
(monkeypatch)
tests/test_exchange_config.py:45
Functiontest_hyperliquid_without_live_flag_raises
(monkeypatch)
tests/test_exchange_config.py:38
Functiontest_in_memory_ledger_append_and_list_events
()
tests/test_oms_ledger.py:154
Functiontest_in_memory_ledger_events_isolated_per_order
()
tests/test_oms_ledger.py:165
Functiontest_in_memory_ledger_get_by_client_id
()
tests/test_oms_ledger.py:119
Functiontest_in_memory_ledger_get_by_idempotency_key
()
tests/test_oms_ledger.py:127
Functiontest_in_memory_ledger_list_open_orders
()
tests/test_oms_ledger.py:144
Functiontest_in_memory_ledger_satisfies_protocol
()
tests/test_oms_ledger.py:174
Functiontest_in_memory_ledger_upsert_and_load
()
tests/test_oms_ledger.py:110
Functiontest_in_memory_ledger_upsert_overwrites
()
tests/test_oms_ledger.py:135
Functiontest_indicator_keys_count
()
tests/test_technical_indicators.py:22
Functiontest_infer_daily_ms_timestamps
()
tests/test_perp_bar_interval_infer.py:16
Functiontest_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
Functiontest_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
Functiontest_inner_local_provider_leaderboard_matches
(lb_client: tuple[TestClient, str])
tests/test_leaderboard_local_provider.py:59
Functiontest_inner_local_provider_rows_history
(lb_client: tuple[TestClient, str])
tests/test_leaderboard_local_provider.py:72
← previousnext →2,001–2,100 of 2,298, ranked by callers