MCPcopy Create free account

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

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

↓ 2,094 callersMethodget
(self, name: str)
src/llm/tool_registry.py:176
↓ 373 callersMethodappend
(self, rec: dict[str, Any])
src/harness/run_memory.py:85
↓ 208 callersFunctioncn
(...inputs: ClassValue[])
web-v2/src/app/components/ui/utils.ts:4
↓ 122 callersMethodget
(key: string)
web/src/features/supervisor/lib/supervisorMemoryCache.ts:38
↓ 69 callersMethodset
(key: string, patch: Omit<Entry, "key" | "updatedAt">)
web/src/features/supervisor/lib/supervisorMemoryCache.ts:47
↓ 35 callersMethodget
( self, path: str, *, params: dict[str, Any] | None = None, timeout_s:
src/nexus_data/client.py:48
↓ 33 callersFunctionengine
()
src/storage/leadpage_db.py:187
↓ 31 callersFunction_float_or_none
Coerce scalars for leaderboard math (handles numpy / Decimal from JSON or ORM).
src/api/leadpage_routes.py:441
↓ 31 callersMethodall
(self)
src/llm/tool_registry.py:182
↓ 30 callersFunctionload_app_settings
(path: Path | None = None)
src/config/app_settings.py:122
↓ 29 callersMethodclose
(self)
src/oms/ledger.py:266
↓ 28 callersFunctionfirst_float
(obj: Any, *keys: str, default: float = 0.0)
src/nexus_data/payload_extract.py:21
↓ 25 callersFunction_f
(val: Any, default: float = 0.0)
src/workflow/weight_assigner.py:35
↓ 25 callersFunctionresolve_backtest_config
Merge deploy config, environment, and CLI overrides.
src/backtest/config.py:21
↓ 22 callersFunctionflowApiBase
()
web/src/server/flowProxy.ts:18
↓ 18 callersFunction_instrument_node
Wrap graph nodes with start/end + reasoning telemetry.
src/main.py:133
↓ 18 callersFunctionset_nexus_adapter
(adapter: Any)
src/adapters/nexus_adapter.py:393
↓ 17 callersFunction_last_scalar
(a: np.ndarray | None, default: float = float("nan"))
src/tools/technical_indicators.py:31
↓ 17 callersFunction_now
()
src/storage/leadpage_db.py:201
↓ 17 callersFunction_write_job
Persist job progress so multi-worker servers can poll reliably.
src/api/backtest_routes.py:58
↓ 17 callersFunctionflowAuthHeaders
()
web/src/app/api/_flowAuth.ts:2
↓ 17 callersFunctionload_fund_policy
Load the canonical FundPolicy from `config/policy.default.json` (or an explicit path). This is intentionally strict: missing/invalid policy sho
src/config/policy_loader.py:166
↓ 16 callersFunction_reasoning_entry
Unified reasoning payload for state + FlowEvent.
src/main.py:70
↓ 16 callersFunctionas_dict
(obj: Any)
src/nexus_data/payload_extract.py:46
↓ 16 callersFunctionget_nexus_adapter
Return the singleton execution adapter. Default (AI_MARKET_MAKER_EXECUTION_ENGINE=legacy): NexusAdapter paper path, unchanged. Opt-in (AI_MAR
src/adapters/nexus_adapter.py:330
↓ 16 callersFunctionproxyJson
(targetUrl: string, opts: ProxyOptions = {})
web/src/server/flowProxy.ts:33
↓ 16 callersFunctionrequire_user_id
(request: Request)
src/api/auth_routes.py:56
↓ 15 callersFunction_clamp
(v: float, lo: float = 0.0, hi: float = 1.0)
src/workflow/weight_assigner.py:42
↓ 15 callersFunctionasString
(v: unknown)
web-v2/src/app/components/NexusLegacyConsole.tsx:12
↓ 15 callersFunctionfmtUsd
(x: number | null | undefined)
web/src/features/monitor/components/LiveMonitorPanel.tsx:36
↓ 14 callersFunction_confidence
(composite: float, bullish_n: int)
tests/test_threshold_calibration.py:140
↓ 14 callersFunction_make_config
(**overrides: Any)
tests/test_hyperliquid_adapter.py:23
↓ 14 callersFunction_make_config
()
tests/test_futu_adapter.py:35
↓ 14 callersFunctionasString
(v: unknown)
web-v2/src/app/pages/AgentDetailPage.tsx:15
↓ 14 callersFunctiongetFlowApiOrigin
()
web/src/lib/flowApiOrigin.ts:6
↓ 14 callersFunctiongetPlatformAuthHeader
()
web/src/app/api/platform/_session.ts:21
↓ 14 callersFunctionrun_tool_calling_chat
Run an OpenAI chat with optional tool calls (bounded). Returns (final_text, tool_events) where tool_events is a list of {name, args, result}.
src/llm/openai_client.py:24
↓ 13 callersFunction_int
(name: str, v: object, *, lo: int, hi: int, default: int)
src/config/app_settings.py:211
↓ 13 callersFunction_log
(msg: str, log_file: str | None = None)
scripts/token_screeners/screener_runner.py:81
↓ 13 callersFunctionasString
(v: unknown)
web-v2/src/app/components/NexusOpsMesh.tsx:6
↓ 13 callersFunctionf
(key: str)
src/config/policy_loader.py:46
↓ 13 callersMethodsubmit_order
Place a new order via the adapter and track it internally. Idempotency: If ``idempotency_key`` resolves to an order already in th
src/oms/oms.py:162
↓ 12 callersFunction_base_result
( *, status: str, symbol: str = "BTC/USDT", side: str = "buy", qty: float = 0.1, price
tests/test_oms.py:23
↓ 12 callersFunction_make_order
( client_order_id: str = "coid-1", idempotency_key: str = "idem-1", state: OrderState = OrderState
tests/test_oms_ledger.py:30
↓ 12 callersFunctionbuild_tier0_contract_json
Map node id + primary symbol analysis dict to the canonical Tier-0 JSON object.
src/schemas/tier0_contract.py:237
↓ 12 callersFunctionload_exchange_config
(*, env: Mapping[str, str] | None = None)
src/config/exchange_env.py:58
↓ 11 callersFunction_i
(x: Any, default: int = 0)
src/tier1/resolvers.py:45
↓ 11 callersFunction_normalize_linear
Map [raw_min, raw_max] → [0, 1], clamp at bounds.
src/workflow/weight_assigner.py:51
↓ 11 callersFunction_submit
(oms: Oms, *, nonce: str = "n1", **kwargs: Any)
tests/test_oms.py:180
↓ 11 callersFunctionread_jsonl_dict_records
Read ``.jsonl`` rows as dicts. Supports **legacy** files where a single line held a JSON array of records (older engine bug).
src/backtest/trade_book.py:33
↓ 10 callersMethod_record
Upsert the order snapshot and append an event. No-op when no ledger is set.
src/oms/oms.py:107
↓ 10 callersFunction_sse
(data: str)
src/api/pm_routes.py:56
↓ 10 callersFunctionrun_multi_step_backtest
Run a deterministic multi-step backtest and persist artifacts under ``.runs/``.
src/backtest/loop.py:57
↓ 10 callersFunctionset_env_from_config
Apply resolved config to process environment.
src/backtest/config.py:139
↓ 10 callersFunctionuse_llm_arbitrator
Return True when an LLM provider key is configured. Legacy ``AI_MARKET_MAKER_USE_LLM=0`` forces False.
src/config/llm_env.py:20
↓ 9 callersFunctionasStr
(v: unknown)
web-v2/src/app/components/AgentPromptSettingsPanel.tsx:20
↓ 9 callersFunctionasString
(v: unknown)
web-v2/src/app/components/NexusLiveMonitorPanel.tsx:30
↓ 9 callersFunctioncoerceUnixMs
Parse API timestamps that may be seconds or ms, or numeric strings.
web/src/features/monitor/components/LiveMonitorPanel.tsx:60
↓ 9 callersFunctioncompute_global_weighted_score
Compute the global weighted composite score and confidence. Formula (from v4 config): composite = Σ(agent_weight × agent_composite)
src/workflow/weight_assigner.py:404
↓ 9 callersFunctionderive_trade_intent
Map thesis (stance + confidence) → portfolio-facing intent contract.
src/workflow/execution_intent.py:24
↓ 9 callersFunctionparse_json_object
Best-effort JSON object extraction from model text. Returns a dict if a JSON object can be parsed, else None.
src/llm/json_parse.py:17
↓ 9 callersMethodrun
( self, bars_by_symbol: dict[str, list[list[float]]], signal_fn, *, ru
src/backtest/engines/perp.py:227
↓ 9 callersFunctiontruncate
(s: string, max = MAX_LEN)
web/src/lib/agentCardPreview.ts:5
↓ 8 callersFunction_tier0_nexus_context
(state: HedgeFundState)
src/main.py:91
↓ 8 callersMethod_transition
Move to new_state unless already in a terminal state. Terminal states are a one-way door: calling _transition() on a terminal order i
src/oms/order.py:70
↓ 8 callersFunctionasNum
(v: unknown)
web-v2/src/app/components/BacktestResultsPanel.tsx:37
↓ 8 callersFunctionasString
(v: unknown)
web-v2/src/app/components/NexusTopologyMap.tsx:6
↓ 8 callersMethoddecide
(self, ctx: PortfolioDecisionContext)
src/trading/policy_manager.py:58
↓ 8 callersFunctiondetect_market_regime
Classify a price series as bull / bear / sideways. Parameters ---------- close_prices : sequence of closing prices. ret_threshold_pct
src/backtest/validation.py:17
↓ 8 callersFunctionfmtNum
(v: unknown, digits = 2)
web-v2/src/app/pages/LeaderboardProviderPage.tsx:31
↓ 8 callersFunctionllm_mode_enabled
(env: Mapping[str, str] | None = None)
src/config/llm_mode.py:14
↓ 8 callersFunctiontier0_contracts_by_agent
Last-wins index by agent id (e.g. ``1.1``) for Tier-1 convenience.
src/schemas/tier0_contract.py:254
↓ 8 callersFunctiontoFiniteNumber
Coerce API scalars (e.g. legacy string decimals) for display and local sort fallbacks.
web-v2/src/app/pages/LeaderboardV2OriginalPage.tsx:35
↓ 8 callersFunctionunwrap_data
If ``payload`` is ``{success, data}``, return ``data``; else return ``payload``.
src/nexus_data/payload_extract.py:12
↓ 8 callersMethodupsert_order
(self, order: OmsOrder)
src/oms/ledger.py:172
↓ 7 callersFunction_f
(x: Any, default: float = 0.0)
src/schemas/tier0_contract.py:27
↓ 7 callersFunction_to_floats
(xs: Iterable[float])
src/backtest/metrics.py:8
↓ 7 callersFunction_tool_http_error
(exc: HTTPException)
src/api/studio_routes.py:552
↓ 7 callersMethodlist_events
(self, client_order_id: str)
src/oms/ledger.py:250
↓ 7 callersFunctionload_agent_prompt_settings
(path: Path | None = None)
src/config/agent_prompts.py:100
↓ 7 callersFunctionload_oms_config
Load OMS ledger config from the environment. Raises: ValueError: if AI_MARKET_MAKER_OMS_LEDGER is set to an unsupported value.
src/config/oms_config.py:30
↓ 7 callersFunctionnormalize_futu_symbol
Normalize a symbol to Futu convention. - HK stocks: '0700.HK' or '700.HK' → 'HK.00700' - US stocks: 'AAPL.US' or 'AAPL' → 'US.AAPL' - Cry
src/adapters/futu.py:66
↓ 7 callersFunctionohlcv_cache_path
(cache_dir: Path, symbol: str, timeframe: str)
src/backtest/ohlcv_csv_cache.py:30
↓ 7 callersMethodplace_smart_order
( self, *, symbol: str, side: OrderSide, qty: float, order_typ
src/adapters/nexus_adapter.py:101
↓ 7 callersMethodto_dict
(self)
scripts/token_screeners/wyckoff_scanner.py:114
↓ 7 callersMethodto_public_dict
(self)
src/config/agent_prompts.py:53
↓ 7 callersFunctionvalidate_date_range
Validate that start_date <= end_date.
src/backtest/loaders/base.py:14
↓ 6 callersFunction_auth_signed_or_401
If signatures are configured/required, validate HMAC signature. Headers: - x-leadpage-signature: hex(HMAC_SHA256(key, canonical_message))
src/api/leadpage_routes.py:356
↓ 6 callersFunction_cfg
(**kw)
tests/test_trading_policy.py:16
↓ 6 callersMethod_close
( self, symbol: str, exit_price: float, reason: str, *, exit_t
src/backtest/engines/perp.py:366
↓ 6 callersFunction_ctx
(**kw)
tests/test_trading_policy.py:31
↓ 6 callersFunction_emit_flow
(repo: FlowEventRepo | None, event: FlowEvent)
src/main.py:65
↓ 6 callersFunction_f
(x: Any, default: float = 0.0)
src/tier1/resolvers.py:38
↓ 6 callersFunction_invert
Invert a 0–1 scale so high raw → bullish low / bearish.
src/workflow/weight_assigner.py:46
↓ 6 callersFunction_nth_bullish
First *n* agents bullish, rest neutral.
tests/test_threshold_calibration.py:42
↓ 6 callersFunction_read_jsonl
(path: Path, *, limit: int | None = None)
src/api/leadpage_routes.py:401
↓ 6 callersFunction_to_futu_symbol
(code: str)
src/backtest/loaders/futu_loader.py:23
↓ 6 callersMethodapply_slippage
(self, price: float, direction: int)
src/backtest/engines/perp.py:123
↓ 6 callersFunctionasNum
(v: unknown)
web-v2/src/app/components/BacktestInlineWidget.tsx:36
↓ 6 callersFunctionasString
(v: unknown)
web-v2/src/app/components/NexusStarSystemHero.tsx:6
next →1–100 of 2,298, ranked by callers