MCPcopy Create free account

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

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

↓ 6 callersFunctionbuild_nexus_payload
Return `(payload, events)` where payload matches `web/src/types/nexus-payload.ts`.
src/api/payload_adapter.py:191
↓ 6 callersFunctionbuild_workflow
Compile LangGraph: serial perception → proposal → risk → conditional execution. Node IDs are prefixed with ``desk_`` where needed so they do not
src/main.py:1448
↓ 6 callersMethodclose
(self)
src/adapters/futu.py:853
↓ 6 callersFunctionfmtMoney
(v: unknown)
web-v2/src/app/components/NexusLiveMonitorPanel.tsx:34
↓ 6 callersFunctionfmtPct
(v: unknown, d = 2)
web-v2/src/app/pages/LeaderboardPage.tsx:50
↓ 6 callersFunctionformatChartTickLabel
Axis labels: include date when the visible range spans multiple days.
web/src/features/monitor/components/LiveMonitorPanel.tsx:69
↓ 6 callersFunctioninitial_hedge_fund_state
Defaults for ``invoke``: empty lists, no veto, optional ``proposed_signal``.
src/schemas/state.py:77
↓ 6 callersFunctionkReturn
(r: LeaderboardRow)
web-v2/src/app/pages/LeaderboardV2OriginalPage.tsx:275
↓ 6 callersFunctionmaybeCta
(cta: string | undefined)
web-v2/src/app/pages/AccountPage.tsx:165
↓ 6 callersFunctionmaybeTo
(to: string | undefined)
web-v2/src/app/pages/AccountPage.tsx:164
↓ 6 callersFunctionnewMsg
(role: ChatMsg["role"], text: string)
web-v2/src/app/pages/StudioV2Page.tsx:113
↓ 6 callersMethodplace_order
( self, *, symbol: str, side: str, qty: float, order_type: str
src/adapters/hyperliquid_adapter.py:264
↓ 6 callersMethodplace_order
( self, *, symbol: str, side: str, qty: float, order_type: str
src/adapters/futu.py:655
↓ 6 callersFunctionrecord_execution
( *, user_id: int, provider: str, signal_id: int, inbox_id: int | None, status: str,
src/storage/leadpage_db.py:741
↓ 6 callersMethodrun
Run a perpetual backtest. Delegates to ``run_perp_backtest()`` with the LangGraph workflow as the per-bar signal function. `
src/backtest/engine.py:85
↓ 6 callersFunctionsave_ohlcv_csv
(path: Path, bars: list[list[float]])
src/backtest/ohlcv_csv_cache.py:72
↓ 6 callersFunctiontrade_row_side
(tr: dict[str, Any])
src/backtest/exchange_trade_format.py:229
↓ 6 callersMethodupsert_order
(self, order: OmsOrder)
src/oms/ledger.py:116
↓ 5 callersFunction_empty_result
Neutral / NaN defaults when data is insufficient.
src/tools/technical_indicators.py:38
↓ 5 callersMethod_ensure_trade_ctx
(self)
src/adapters/futu.py:343
↓ 5 callersFunction_execute_quick_backtest
( req: QuickBacktestRequest, *, strategy: dict[str, Any] | None = None, run_id: str | None = N
src/api/backtest_routes.py:177
↓ 5 callersFunction_fake_bars
Deterministic OHLCV bars for cache tests (no network).
tests/test_ohlcv_csv_cache.py:18
↓ 5 callersMethod_infer_bar_interval_sec_from_snapshots
Median delta between consecutive bar timestamps (seconds), clamped for sanity. OHLCV rows are normally **milliseconds** since epoch (CCXT). S
src/backtest/engines/perp.py:442
↓ 5 callersFunction_match_wildcard
Simple wildcard match: '*' matches anything.
src/agents/profile_agent.py:147
↓ 5 callersFunction_settings_path
()
src/api/runtime_settings_routes.py:20
↓ 5 callersFunction_sse
(data: dict[str, Any])
src/api/signal_routes.py:76
↓ 5 callersFunction_state_backtest
()
tests/test_execution_intent.py:13
↓ 5 callersFunction_ta_rule_signal_and_source
Return (signal, source_tag) for preset logic; source is macd|rsi|ema_sma|roc|none.
src/trading/desk_inputs.py:256
↓ 5 callersFunction_to_futu_ktype
(interval: str)
src/backtest/loaders/futu_loader.py:34
↓ 5 callersMethodappend_event
( self, client_order_id: str, event_type: str, payload: dict[str, Any] | None
src/oms/ledger.py:230
↓ 5 callersFunctionccxt_to_nexus_pair_id
Map ``BTC/USDT`` → ``BTCUSDT`` for Nexus coin/OI-style IDs.
src/nexus_data/symbols.py:14
↓ 5 callersFunctioncheck_exit_reason_distribution
Score exit reason distribution against a healthy reference mix. Uses ``EXIT_REASON_HEALTHY_MAP`` as the ideal distribution. Deviation is meas
src/backtest/validation.py:202
↓ 5 callersFunctioncheck_profit_loss_ratio
Check profit factor >= 1.3 (survive fees + slippage). Returns ``passed=True`` when profit_factor is None (no trades → cannot fail).
src/backtest/validation.py:163
↓ 5 callersFunctionensure_bars_cached
Return the last ``limit`` bars, loading from CSV when possible else fetch + save.
src/backtest/ohlcv_csv_cache.py:81
↓ 5 callersFunctionensure_provider
(session: Session, provider: str)
src/storage/leadpage_db.py:205
↓ 5 callersFunctionenv_bool
(env: Mapping[str, str], name: str, *, default: bool = False)
src/config/env_parse.py:6
↓ 5 callersFunctionfetch_ccxt_ohlcv_bars
Fetch the last ``limit`` candles from a public exchange (no API keys required for OHLCV). Returns CCXT rows ``[ts_ms, open, high, low, close, vol
src/backtest/bars.py:91
↓ 5 callersFunctionfmtMetric
(x: number | null | undefined, digits = 3)
web/src/features/monitor/components/LiveMonitorPanel.tsx:128
↓ 5 callersFunctionformatTimeShort
(ts: number | null | undefined)
web/src/features/monitor/components/LiveMonitorPanel.tsx:53
↓ 5 callersFunctionformatTraceTime
(ts: string)
web/src/lib/formatTraceTime.ts:2
↓ 5 callersFunctiongenerate_quality_report
Run quality checks and return a report.
src/backtest/validation.py:400
↓ 5 callersMethodget_portfolio_health
( self, *, account_id: str | None = None, )
src/adapters/futu.py:799
↓ 5 callersFunctionintervalSecToAmountUnit
(sec: number)
web/src/lib/backtestInterval.ts:13
↓ 5 callersFunctionloadAll
()
web/src/lib/strategyStorage.ts:40
↓ 5 callersFunctionload_deploy_config
Load the active deployed configuration from disk. Returns the parsed config dict, or ``None`` if no deploy config exists or it cannot be pars
src/config/deploy_loader.py:36
↓ 5 callersFunctionload_execution_engine
Return the configured execution engine. Unknown values fall back to LEGACY.
src/config/execution_engine.py:24
↓ 5 callersFunctionload_leaderboard_submit_config
Read submission config from env vars. Required env: AIMM_LB_ENABLED=1 — Enable submission (default: 0) AIMM_LB_URL=...
src/config/leaderboard_submit.py:39
↓ 5 callersFunctionload_ohlcv_csv
(path: Path)
src/backtest/ohlcv_csv_cache.py:54
↓ 5 callersFunctionload_or_init_account
( *, runs_dir: Path, account_id: str = "default", start_usdt: float, )
src/paper_account.py:132
↓ 5 callersFunctionnominal_interval_sec_for_timeframe
Approximate spacing in seconds for labeling / synthetic bars when using explicit CCXT tf.
src/backtest/bars.py:74
↓ 5 callersFunctionnormalize_hl_symbol
Map common pair notations to Hyperliquid coin name (e.g. BTC/USDT → BTC).
src/adapters/hyperliquid_adapter.py:25
↓ 5 callersFunctionsend
(overrideText?: string)
web-v2/src/app/pages/StudioPage.tsx:138
↓ 5 callersFunctionsend
(textRaw: string)
web-v2/src/app/pages/StudioV2Page.tsx:532
↓ 5 callersFunctionsend
(overrideText?: string)
web/src/app/studio/page.tsx:130
↓ 5 callersFunctionset_flow_repo
(repo: Optional[FlowEventRepo])
src/flow_log.py:83
↓ 5 callersMethodsnapshot
(self, *, instrument: str = "spot")
src/paper_account.py:47
↓ 5 callersFunctiontier0_consensus_for_arbitrator
Aggregate Tier-0 canonical contracts into bull/bear tilts for ``signal_arbitrator``. Uses only Tier-0 JSON fields (no raw Nexus blobs). When ``ti
src/schemas/tier0_contract.py:263
↓ 5 callersMethodto_dict
(self)
src/schemas/agent_trace.py:15
↓ 5 callersMethodto_dict
(self)
scripts/token_screeners/vcp_scanner.py:175
↓ 4 callersFunction_append_jsonl
(path: Path, row: dict[str, Any])
src/api/leadpage_routes.py:424
↓ 4 callersFunction_auth_provider_db_or_env_or_401
Auth providers using DB secrets when DATABASE_URL is set; else env keys.
src/api/leadpage_routes.py:265
↓ 4 callersFunction_deep_copy
(val: Any)
src/llm/agent_llm_client.py:465
↓ 4 callersMethod_ensure_quote_ctx
(self)
src/adapters/futu.py:335
↓ 4 callersFunction_env
(key: str, default: str = "")
src/llm/agent_llm_client.py:126
↓ 4 callersFunction_env_bool
(name: str, default: bool = False)
src/config/leaderboard_submit.py:71
↓ 4 callersFunction_env_int
(name: str)
src/runs_retention.py:30
↓ 4 callersFunction_f
(x: Any, default: float = 0.0)
src/workflow/tier2_context.py:40
↓ 4 callersFunction_fmt_num
(x: float)
src/backtest/exchange_trade_format.py:58
↓ 4 callersFunction_leaderboard_row_completeness
(row: dict[str, Any])
src/api/leadpage_routes.py:78
↓ 4 callersFunction_leaderboard_row_from_summary
(*, run_id: str, summary: dict[str, Any])
src/api/leadpage_routes.py:487
↓ 4 callersFunction_load_token_csv
Load only the last N 5-minute rows; sufficient for resampling to 1h × 200 bars.
scripts/token_screeners/vcp_scanner.py:737
↓ 4 callersFunction_make_futu_env
(**overrides: Any)
tests/test_futu_adapter.py:24
↓ 4 callersFunction_normalize_debate_memo
Force a consistent debate memo format for UI + downstream arbitration. Keep only the first structured memo beginning at `Decision:` and trims
src/workflow/desk_debate.py:39
↓ 4 callersFunction_phase_confidence
(evidence: list[Evidence])
scripts/token_screeners/wyckoff_scanner.py:606
↓ 4 callersFunction_portfolio_agent_kwargs
Pass simulated position qty into portfolio math during multi-step backtests.
src/main.py:733
↓ 4 callersFunction_presented_signature
(request: Request)
src/api/leadpage_routes.py:280
↓ 4 callersFunction_profiles_dir
()
src/agents/profile_registry.py:34
↓ 4 callersFunction_resolve_arbitrator_mode
Resolve the arbitrator mode. Priority: 1. ``state.arbitrator_mode`` (from runtime settings) 2. Deploy config active file 3. Default:
src/workflow/weighted_arbitrator.py:177
↓ 4 callersFunction_row_to_order
(row: sqlite3.Row)
src/oms/ledger.py:65
↓ 4 callersFunction_safe_get
( client: NexusDataClient, path: str, *, params: dict[str, Any] | None = None, timeout_s:
src/nexus_data/feeds.py:33
↓ 4 callersFunction_sig
Build a minimal ``AgentWeightedSignal`` with real v4 weights.
tests/test_threshold_calibration.py:24
↓ 4 callersFunction_signed_required
()
src/api/leadpage_routes.py:222
↓ 4 callersFunction_take
(sym: str)
src/market/universe.py:105
↓ 4 callersFunction_to_float_array
(series: list[float] | None)
src/tools/technical_indicators.py:18
↓ 4 callersFunction_wire_name
(canonical: str)
src/llm/tool_registry.py:35
↓ 4 callersFunctionamountUnitToIntervalSec
(amount: number, unit: BarIntervalUnit)
web/src/lib/backtestInterval.ts:21
↓ 4 callersMethodanalyze
( self, ticker: str, market_data: Dict, pattern_analysis: Dict, sentim
src/agents/portfolio_management.py:277
↓ 4 callersFunctionapi
(path: string)
web-v2/src/app/pages/ControlPage.tsx:35
↓ 4 callersMethodappend_event
( self, client_order_id: str, event_type: str, payload: dict[str, Any] | None
src/oms/ledger.py:133
↓ 4 callersFunctionbuild_evaluation_frame
Return one dataframe: index rows and optional flattened backtest summaries.
src/eval_export.py:67
↓ 4 callersFunctioncalculate_technical_indicators
Compute a bundle of widely used indicators. **Close-only** (``prices`` = closes): RSI, SMA, EMA, Bollinger Bands, MACD, ROC. **With ``h
src/tools/technical_indicators.py:63
↓ 4 callersFunctioncompute_legacy_arbitrator_scores
Same bull/bear score math as the non-Tier-1 ``signal_arbitrator`` path (for transparency).
src/workflow/tier2_context.py:160
↓ 4 callersFunctiondecision_cache_enabled
Check whether the decision cache is enabled. Enabled by default when AIMM_DECISION_CACHE_DIR is set. Also enabled automatically in backtest m
src/llm/decision_cache.py:43
↓ 4 callersFunctiondefaultSession
()
web-v2/src/app/pages/StudioV2Page.tsx:117
↓ 4 callersFunctionentryBarMeta
(e: MessageLogEntry)
web/src/lib/groupBacktestMessageLog.ts:32
↓ 4 callersFunctionfetch_ccxt_ohlcv_range
Fetch OHLCV for **[since_ms, until_ms]** (inclusive close time), UTC. Paginates exchange pages (typically 500–1000 rows) so windows are **reprodu
src/backtest/bars.py:116
↓ 4 callersMethodfetch_market_depth
( self, *, symbol: str, limit: int, )
src/adapters/futu.py:821
↓ 4 callersFunctionfmtNum
(v: unknown, d = 2)
web-v2/src/app/pages/LeaderboardPage.tsx:47
↓ 4 callersFunctionfmtPct
(v: unknown, d = 2, showSign = true)
web-v2/src/app/pages/LeaderboardV2OriginalPage.tsx:71
↓ 4 callersFunctionfmtTs
(ts: unknown)
web-v2/src/app/pages/LeaderboardProviderPage.tsx:36
← previousnext →101–200 of 2,298, ranked by callers