MCPcopy Create free account

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

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

↓ 4 callersFunctionformatIntervalHuman
(sec: number)
web/src/lib/backtestInterval.ts:42
↓ 4 callersFunctioniso_utc_to_ms
Parse ``YYYY-MM-DD`` or ISO datetime into epoch milliseconds (UTC).
src/backtest/bars.py:25
↓ 4 callersFunctionkSharpe
(r: LeaderboardRow)
web-v2/src/app/pages/LeaderboardV2OriginalPage.tsx:279
↓ 4 callersMethodlist_events
(self, client_order_id: str)
src/oms/ledger.py:148
↓ 4 callersFunctionload_bars_csv_only
Offline: read cache file only (no network).
src/backtest/ohlcv_csv_cache.py:128
↓ 4 callersMethodload_orders
(self)
src/oms/ledger.py:200
↓ 4 callersFunctionload_strategy_interval_sec
Parse ``STRATEGY_INTERVAL_SEC`` (seconds between strategy loop iterations). Returns a clamped integer in ``[1, 86400]``. Invalid values fall
src/config/cadence.py:28
↓ 4 callersMethodlog_reasoning
Structured reasoning log for OpenClaw UI rendering.
src/agents/base_agent.py:33
↓ 4 callersFunctionmerged_quant_analysis_for_universe
Per-symbol ``quant_analysis`` rows from Tier-0 ``by_symbol`` (multi-asset) or primary.
src/main.py:797
↓ 4 callersFunctionnewId
()
web-v2/src/app/pages/StudioV2Page.tsx:109
↓ 4 callersFunctionnexus_tool_specs
Legacy: returns Nexus adapter tools. New code should prefer @register_tool.
src/llm/tool_registry.py:238
↓ 4 callersFunctionnode
(id: string)
web/src/lib/topologyLayers.test.ts:5
↓ 4 callersFunctionnormalize_trade_row_for_api
Map persisted exchange-shaped rows to the HTTP/API contract (superset, non-destructive). Ledger lines follow Binance ``myTrades`` (``isBuyer``, `
src/backtest/exchange_trade_format.py:138
↓ 4 callersFunctiononChange
()
web-v2/src/app/components/ui/use-mobile.ts:12
↓ 4 callersFunctionprompt_settings_by_actor
Convenience lookup: actor_id -> settings (first wins).
src/config/agent_prompts.py:147
↓ 4 callersFunctionreadHubCssNumber
(name: string, fallback: number)
web-v2/src/app/components/NexusStarSystem.tsx:102
↓ 4 callersFunctionreadHubCssNumber
(name: string, fallback: number)
web/src/components/NexusStarSystem.tsx:115
↓ 4 callersFunctionregime_coverage_check
Check how many distinct market conditions are covered. Returns ------- { "regimes_covered": set of labels, "count": numbe
src/backtest/validation.py:78
↓ 4 callersFunctionregister_loader
(cls: Type[Any])
src/backtest/loaders/registry.py:26
↓ 4 callersFunctionresolve_loader
Return the first loader instance for *market* following the fallback chain.
src/backtest/loaders/registry.py:36
↓ 4 callersFunctionreturns_from_equity
Compute simple returns between consecutive equity points.
src/backtest/metrics.py:27
↓ 4 callersFunctionsaveAll
(strategies: SavedStrategy[])
web/src/lib/strategyStorage.ts:50
↓ 4 callersFunctionsharpe_ratio
Annualized Sharpe ratio assuming zero risk-free rate. Short runs often have **near-zero sample volatility** while the mean bar return is slightly
src/backtest/metrics.py:55
↓ 4 callersFunctiontrade_row_fee_usd
Fee in quote terms for analytics (supports Binance ``commission`` or legacy ``fee_usd``).
src/backtest/exchange_trade_format.py:213
↓ 4 callersFunctionuseCarousel
()
web-v2/src/app/components/ui/carousel.tsx:35
↓ 4 callersFunctionuseFormField
()
web-v2/src/app/components/ui/form.tsx:45
↓ 4 callersFunctionuseSidebar
()
web-v2/src/app/components/ui/sidebar.tsx:47
↓ 4 callersFunctionvalidate_sample_size
Check whether the backtest has enough observations. - At least 100 bars of data - At least 30 trades for statistical significance
src/backtest/validation.py:125
↓ 4 callersFunctionwarn_if_aggressive_cadence
Emit a stderr hint when LLM is on but the loop is faster than a typical desk cycle.
src/config/cadence.py:59
↓ 4 callersFunctionwithSearchParams
(targetBase: string, request: Request)
web/src/server/flowProxy.ts:48
↓ 3 callersFunction_account_paths
(*, runs_dir: Path, account_id: str)
src/paper_account.py:103
↓ 3 callersFunction_all_weather_signal
Multi-indicator signal (buy/sell/hold, source_tag) using EMA/SMA + MACD + ADX + RSI. Goal: avoid buying downtrends and avoid overreacting in low-
src/trading/desk_inputs.py:83
↓ 3 callersFunction_apply_result
Update order fields from an ExchangeOrderResult dict, then transition state.
src/oms/oms.py:54
↓ 3 callersFunction_backtest_paths_response
(result: MultiStepResult)
src/api/backtest_routes.py:113
↓ 3 callersFunction_base_state
(*, nexus_bundle: dict[str, Any])
tests/test_agentic_trading_e2e.py:93
↓ 3 callersFunction_build_run_snapshot
Snapshot for the *overall* system run (flow events → NexusPayload).
src/api/pm_routes.py:345
↓ 3 callersFunction_build_snapshot
(run_dir: Path, *, trades_limit: int = 5000)
src/api/pm_routes.py:135
↓ 3 callersFunction_cache_dir
()
src/llm/decision_cache.py:19
↓ 3 callersFunction_default_vetoes
()
src/tier1/presets.py:39
↓ 3 callersFunction_ema_confirms_uptrend
True if EMA materially above SMA; True when data missing (do not block for lack of TA).
src/trading/desk_inputs.py:168
↓ 3 callersFunction_ep
(nexus_context: dict[str, Any] | None, name: str)
src/agents/retail_hype_tracker.py:9
↓ 3 callersFunction_evaluation_block
( *, result: MultiStepResult, initial_cash: float, )
src/api/backtest_routes.py:88
↓ 3 callersFunction_flow_bt_extra
Attach synthetic bar step/time to FlowEvents during backtest (for UI timelines).
src/main.py:99
↓ 3 callersFunction_infer_interval_sec_from_bars
(bars: list[list[float]])
src/backtest/run_demo.py:97
↓ 3 callersFunction_init_llm
Initialise the LLM client. Raises ValueError if no API key.
src/llm/agent_llm_client.py:134
↓ 3 callersFunction_last_price
(sym: str)
src/main.py:1032
↓ 3 callersFunction_load_local_summary
(run_id: str)
src/api/leadpage_routes.py:430
↓ 3 callersFunction_map_hl_status
Map Hyperliquid API status strings to ExchangeAdapter conventions.
src/adapters/hyperliquid_adapter.py:42
↓ 3 callersFunction_max_api_steps
()
src/api/backtest_routes.py:50
↓ 3 callersFunction_normalize_frame
(df: pd.DataFrame)
src/backtest/loaders/futu_loader.py:38
↓ 3 callersFunction_provider_keys
Return provider -> shared secret, sourced from env. Supported formats: - JSON: {"providerA":"keyA","providerB":"keyB"} - CSV: providerA:k
src/api/leadpage_routes.py:181
↓ 3 callersFunction_read_settings
()
src/api/runtime_settings_routes.py:25
↓ 3 callersFunction_reasoning_entry
( *, node: str, thought: str, decision: Any | None = None, extra: dict[str, Any] | None =
src/llm/arbitrator_llm.py:33
↓ 3 callersFunction_reasoning_entry
( *, node: str, thought: str, decision: Any | None = None, extra: dict[str, Any] | None =
src/workflow/weighted_arbitrator.py:61
↓ 3 callersFunction_register
(name: str, bp: StrategyBlueprint)
src/tier1/presets.py:22
↓ 3 callersFunction_resolve_backtest_dir
(run_id: str)
src/api/pm_routes.py:100
↓ 3 callersFunction_resolve_run_log
(run_id: str)
src/api/flow_stream_server.py:132
↓ 3 callersFunction_safe_text
Clean up common formatting glitches from LLM output.
src/api/studio_routes.py:559
↓ 3 callersFunction_sanitize_leaderboard_ts
Reject bar indices and other non-epoch values masquerading as timestamps.
src/api/leadpage_routes.py:463
↓ 3 callersFunction_snap
(ts_ms: int, eq: float = 10_000.0)
tests/test_perp_bar_interval_infer.py:6
↓ 3 callersFunction_truthy
(val: str | None)
src/config/exchange_env.py:54
↓ 3 callersFunction_zscore
(s: pd.Series, n: int)
scripts/token_screeners/wyckoff_scanner.py:210
↓ 3 callersFunctionbase_asset
(sym: str)
src/nexus_data/symbols.py:31
↓ 3 callersFunctionbear_evidence_lines
Risk / skepticism lines from Tier-0 contracts.
src/workflow/tier2_context.py:104
↓ 3 callersFunctionbuild_pairs
(universe: Iterable[str], *, max_pairs: int = 21)
src/market/universe.py:38
↓ 3 callersFunctionbull_evidence_lines
Constructive thesis lines from Tier-0 contracts (primary ticker rows).
src/workflow/tier2_context.py:47
↓ 3 callersMethodcalc_commission
(self, size: float, price: float, is_open: bool)
src/backtest/engines/perp.py:119
↓ 3 callersMethodcancel_order
( self, *, symbol: str, exchange_order_id: str, )
src/adapters/futu.py:721
↓ 3 callersMethodcancel_order
Cancel an order. If the order has no ``venue_order_id`` (e.g. was never confirmed by the exchange), it is marked CANCELLED locally wi
src/oms/oms.py:248
↓ 3 callersFunctionclamp_int
(v: int, *, lo: int, hi: int)
src/llm/structured_output.py:51
↓ 3 callersFunctiondatabase_url
()
src/storage/leadpage_db.py:15
↓ 3 callersFunctiondefaultSession
()
web-v2/src/app/pages/StudioPage.tsx:37
↓ 3 callersFunctiondefaultSession
()
web/src/app/studio/page.tsx:38
↓ 3 callersFunctionedgeKey
(a: number, b: number)
web-v2/src/app/components/NexusStarSystem.tsx:268
↓ 3 callersFunctionedgeKey
(a: number, b: number)
web/src/components/NexusStarSystem.tsx:288
↓ 3 callersFunctioneffective_portfolio_desk_bridge
``Tactical_Parameters.Portfolio_Desk_Bridge`` from the active Tier-1 blueprint, or defaults (all off).
src/tier1/__init__.py:56
↓ 3 callersFunctionf
(x: float | None, *, default: float)
src/storage/leadpage_db.py:447
↓ 3 callersMethodfetch_data
Fetch OHLCV and order book for a ticker.
src/agents/market_scan.py:43
↓ 3 callersFunctionfetch_futu_ohlcv_bars
Fetch the last ``limit`` candles from Futu OpenD (HK/US equities, etc.). Requires ``futu-api``, OpenD reachable at ``FUTU_OPEND_HOST`` / ``FUTU_O
src/backtest/bars.py:169
↓ 3 callersFunctionfmtN
(v: number | null | undefined, d: number)
web/src/features/trade/StrategyStudio.tsx:693
↓ 3 callersFunctionfmtNum
(x: number | null | undefined, maxFrac = 4)
web/src/features/monitor/components/LiveMonitorPanel.tsx:41
↓ 3 callersFunctionfmtPrice
(v: number | null | undefined, currency: string = "USD")
web/src/features/futu/FutuWorkspace.tsx:26
↓ 3 callersFunctiongetPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string, )
web-v2/src/app/components/ui/chart.tsx:308
↓ 3 callersFunctionget_arbitrator_mode
Get the arbitrator mode from the active deploy config. Returns ``"weighted_convergence"``, ``"agent_llm"``, or ``None`` if no deploy config i
src/config/deploy_loader.py:71
↓ 3 callersFunctionget_flow_repo
()
src/flow_log.py:79
↓ 3 callersMethodget_history_kline
( self, *, symbol: str, interval: str = "1d", limit: int = 100, )
src/adapters/futu.py:838
↓ 3 callersMethodget_order_by_client_id
(self, client_order_id: str)
src/oms/ledger.py:123
↓ 3 callersMethodget_order_by_client_id
(self, client_order_id: str)
src/oms/ledger.py:204
↓ 3 callersFunctionget_preset
(name: str)
src/tier1/presets.py:31
↓ 3 callersFunctioninsert_local_backtest_result_if_missing
Idempotent insert for `.runs/backtests/<run_id>/summary.json` style payloads.
src/storage/leadpage_db.py:494
↓ 3 callersFunctioninterval_sec_to_ccxt_timeframe
Map bar length to a CCXT timeframe string (falls back to ``1d``). ``2592000`` is treated as **~30d** and maps to exchange **monthly** (``1M``) ca
src/backtest/bars.py:36
↓ 3 callersFunctioninterval_sec_to_futu_interval
Map bar length in seconds to :meth:`FutuAdapter.get_history_kline` interval strings. Monthly (~30d) uses ``1mon`` to avoid clashing with minute `
src/backtest/bars.py:55
↓ 3 callersFunctionlegacy_deterministic_stance_preview
Deterministic stance preview (Tier-0 consensus + backtest momentum).
src/workflow/tier2_context.py:273
↓ 3 callersMethodlist_open_orders
(self)
src/oms/ledger.py:218
↓ 3 callersFunctionlist_presets
()
src/tier1/presets.py:27
↓ 3 callersFunctionllm_output_retries
Preferred default retries for LLM structured outputs. Config-first: read from `config/app.default.json` → `llm.output_retries`. Env override
src/llm/structured_output.py:74
↓ 3 callersFunctionllm_required
Return True when ``AIMM_LLM_REQUIRED`` is set to a truthy value. When ``llm_required()`` is True, callers should refuse to start unless ``
src/config/llm_mode.py:28
↓ 3 callersFunctionllm_strict_json_enabled
Preferred default strict-json toggle for LLM structured outputs. Config-first: read from `config/app.default.json` → `llm.strict_json`. Env o
src/llm/structured_output.py:86
↓ 3 callersFunctionload
()
web-v2/src/app/pages/BacktestsPage.tsx:58
↓ 3 callersFunctionload
()
web/src/features/feed/FeedPage.tsx:35
← previousnext →201–300 of 2,298, ranked by callers