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
↓ 2,094 callers
Method
get
(self, name: str)
src/llm/tool_registry.py:176
↓ 373 callers
Method
append
(self, rec: dict[str, Any])
src/harness/run_memory.py:85
↓ 208 callers
Function
cn
(...inputs: ClassValue[])
web-v2/src/app/components/ui/utils.ts:4
↓ 122 callers
Method
get
(key: string)
web/src/features/supervisor/lib/supervisorMemoryCache.ts:38
↓ 69 callers
Method
set
(key: string, patch: Omit<Entry, "key" | "updatedAt">)
web/src/features/supervisor/lib/supervisorMemoryCache.ts:47
↓ 35 callers
Method
get
( self, path: str, *, params: dict[str, Any] | None = None, timeout_s:
src/nexus_data/client.py:48
↓ 33 callers
Function
engine
()
src/storage/leadpage_db.py:187
↓ 31 callers
Function
_float_or_none
Coerce scalars for leaderboard math (handles numpy / Decimal from JSON or ORM).
src/api/leadpage_routes.py:441
↓ 31 callers
Method
all
(self)
src/llm/tool_registry.py:182
↓ 30 callers
Function
load_app_settings
(path: Path | None = None)
src/config/app_settings.py:122
↓ 29 callers
Method
close
(self)
src/oms/ledger.py:266
↓ 28 callers
Function
first_float
(obj: Any, *keys: str, default: float = 0.0)
src/nexus_data/payload_extract.py:21
↓ 25 callers
Function
_f
(val: Any, default: float = 0.0)
src/workflow/weight_assigner.py:35
↓ 25 callers
Function
resolve_backtest_config
Merge deploy config, environment, and CLI overrides.
src/backtest/config.py:21
↓ 22 callers
Function
flowApiBase
()
web/src/server/flowProxy.ts:18
↓ 18 callers
Function
_instrument_node
Wrap graph nodes with start/end + reasoning telemetry.
src/main.py:133
↓ 18 callers
Function
set_nexus_adapter
(adapter: Any)
src/adapters/nexus_adapter.py:393
↓ 17 callers
Function
_last_scalar
(a: np.ndarray | None, default: float = float("nan"))
src/tools/technical_indicators.py:31
↓ 17 callers
Function
_now
()
src/storage/leadpage_db.py:201
↓ 17 callers
Function
_write_job
Persist job progress so multi-worker servers can poll reliably.
src/api/backtest_routes.py:58
↓ 17 callers
Function
flowAuthHeaders
()
web/src/app/api/_flowAuth.ts:2
↓ 17 callers
Function
load_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 callers
Function
_reasoning_entry
Unified reasoning payload for state + FlowEvent.
src/main.py:70
↓ 16 callers
Function
as_dict
(obj: Any)
src/nexus_data/payload_extract.py:46
↓ 16 callers
Function
get_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 callers
Function
proxyJson
(targetUrl: string, opts: ProxyOptions = {})
web/src/server/flowProxy.ts:33
↓ 16 callers
Function
require_user_id
(request: Request)
src/api/auth_routes.py:56
↓ 15 callers
Function
_clamp
(v: float, lo: float = 0.0, hi: float = 1.0)
src/workflow/weight_assigner.py:42
↓ 15 callers
Function
asString
(v: unknown)
web-v2/src/app/components/NexusLegacyConsole.tsx:12
↓ 15 callers
Function
fmtUsd
(x: number | null | undefined)
web/src/features/monitor/components/LiveMonitorPanel.tsx:36
↓ 14 callers
Function
_confidence
(composite: float, bullish_n: int)
tests/test_threshold_calibration.py:140
↓ 14 callers
Function
_make_config
(**overrides: Any)
tests/test_hyperliquid_adapter.py:23
↓ 14 callers
Function
_make_config
()
tests/test_futu_adapter.py:35
↓ 14 callers
Function
asString
(v: unknown)
web-v2/src/app/pages/AgentDetailPage.tsx:15
↓ 14 callers
Function
getFlowApiOrigin
()
web/src/lib/flowApiOrigin.ts:6
↓ 14 callers
Function
getPlatformAuthHeader
()
web/src/app/api/platform/_session.ts:21
↓ 14 callers
Function
run_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 callers
Function
_int
(name: str, v: object, *, lo: int, hi: int, default: int)
src/config/app_settings.py:211
↓ 13 callers
Function
_log
(msg: str, log_file: str | None = None)
scripts/token_screeners/screener_runner.py:81
↓ 13 callers
Function
asString
(v: unknown)
web-v2/src/app/components/NexusOpsMesh.tsx:6
↓ 13 callers
Function
f
(key: str)
src/config/policy_loader.py:46
↓ 13 callers
Method
submit_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 callers
Function
_base_result
( *, status: str, symbol: str = "BTC/USDT", side: str = "buy", qty: float = 0.1, price
tests/test_oms.py:23
↓ 12 callers
Function
_make_order
( client_order_id: str = "coid-1", idempotency_key: str = "idem-1", state: OrderState = OrderState
tests/test_oms_ledger.py:30
↓ 12 callers
Function
build_tier0_contract_json
Map node id + primary symbol analysis dict to the canonical Tier-0 JSON object.
src/schemas/tier0_contract.py:237
↓ 12 callers
Function
load_exchange_config
(*, env: Mapping[str, str] | None = None)
src/config/exchange_env.py:58
↓ 11 callers
Function
_i
(x: Any, default: int = 0)
src/tier1/resolvers.py:45
↓ 11 callers
Function
_normalize_linear
Map [raw_min, raw_max] → [0, 1], clamp at bounds.
src/workflow/weight_assigner.py:51
↓ 11 callers
Function
_submit
(oms: Oms, *, nonce: str = "n1", **kwargs: Any)
tests/test_oms.py:180
↓ 11 callers
Function
read_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 callers
Method
_record
Upsert the order snapshot and append an event. No-op when no ledger is set.
src/oms/oms.py:107
↓ 10 callers
Function
_sse
(data: str)
src/api/pm_routes.py:56
↓ 10 callers
Function
run_multi_step_backtest
Run a deterministic multi-step backtest and persist artifacts under ``.runs/``.
src/backtest/loop.py:57
↓ 10 callers
Function
set_env_from_config
Apply resolved config to process environment.
src/backtest/config.py:139
↓ 10 callers
Function
use_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 callers
Function
asStr
(v: unknown)
web-v2/src/app/components/AgentPromptSettingsPanel.tsx:20
↓ 9 callers
Function
asString
(v: unknown)
web-v2/src/app/components/NexusLiveMonitorPanel.tsx:30
↓ 9 callers
Function
coerceUnixMs
Parse API timestamps that may be seconds or ms, or numeric strings.
web/src/features/monitor/components/LiveMonitorPanel.tsx:60
↓ 9 callers
Function
compute_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 callers
Function
derive_trade_intent
Map thesis (stance + confidence) → portfolio-facing intent contract.
src/workflow/execution_intent.py:24
↓ 9 callers
Function
parse_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 callers
Method
run
( self, bars_by_symbol: dict[str, list[list[float]]], signal_fn, *, ru
src/backtest/engines/perp.py:227
↓ 9 callers
Function
truncate
(s: string, max = MAX_LEN)
web/src/lib/agentCardPreview.ts:5
↓ 8 callers
Function
_tier0_nexus_context
(state: HedgeFundState)
src/main.py:91
↓ 8 callers
Method
_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 callers
Function
asNum
(v: unknown)
web-v2/src/app/components/BacktestResultsPanel.tsx:37
↓ 8 callers
Function
asString
(v: unknown)
web-v2/src/app/components/NexusTopologyMap.tsx:6
↓ 8 callers
Method
decide
(self, ctx: PortfolioDecisionContext)
src/trading/policy_manager.py:58
↓ 8 callers
Function
detect_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 callers
Function
fmtNum
(v: unknown, digits = 2)
web-v2/src/app/pages/LeaderboardProviderPage.tsx:31
↓ 8 callers
Function
llm_mode_enabled
(env: Mapping[str, str] | None = None)
src/config/llm_mode.py:14
↓ 8 callers
Function
tier0_contracts_by_agent
Last-wins index by agent id (e.g. ``1.1``) for Tier-1 convenience.
src/schemas/tier0_contract.py:254
↓ 8 callers
Function
toFiniteNumber
Coerce API scalars (e.g. legacy string decimals) for display and local sort fallbacks.
web-v2/src/app/pages/LeaderboardV2OriginalPage.tsx:35
↓ 8 callers
Function
unwrap_data
If ``payload`` is ``{success, data}``, return ``data``; else return ``payload``.
src/nexus_data/payload_extract.py:12
↓ 8 callers
Method
upsert_order
(self, order: OmsOrder)
src/oms/ledger.py:172
↓ 7 callers
Function
_f
(x: Any, default: float = 0.0)
src/schemas/tier0_contract.py:27
↓ 7 callers
Function
_to_floats
(xs: Iterable[float])
src/backtest/metrics.py:8
↓ 7 callers
Function
_tool_http_error
(exc: HTTPException)
src/api/studio_routes.py:552
↓ 7 callers
Method
list_events
(self, client_order_id: str)
src/oms/ledger.py:250
↓ 7 callers
Function
load_agent_prompt_settings
(path: Path | None = None)
src/config/agent_prompts.py:100
↓ 7 callers
Function
load_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 callers
Function
normalize_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 callers
Function
ohlcv_cache_path
(cache_dir: Path, symbol: str, timeframe: str)
src/backtest/ohlcv_csv_cache.py:30
↓ 7 callers
Method
place_smart_order
( self, *, symbol: str, side: OrderSide, qty: float, order_typ
src/adapters/nexus_adapter.py:101
↓ 7 callers
Method
to_dict
(self)
scripts/token_screeners/wyckoff_scanner.py:114
↓ 7 callers
Method
to_public_dict
(self)
src/config/agent_prompts.py:53
↓ 7 callers
Function
validate_date_range
Validate that start_date <= end_date.
src/backtest/loaders/base.py:14
↓ 6 callers
Function
_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 callers
Function
_cfg
(**kw)
tests/test_trading_policy.py:16
↓ 6 callers
Method
_close
( self, symbol: str, exit_price: float, reason: str, *, exit_t
src/backtest/engines/perp.py:366
↓ 6 callers
Function
_ctx
(**kw)
tests/test_trading_policy.py:31
↓ 6 callers
Function
_emit_flow
(repo: FlowEventRepo | None, event: FlowEvent)
src/main.py:65
↓ 6 callers
Function
_f
(x: Any, default: float = 0.0)
src/tier1/resolvers.py:38
↓ 6 callers
Function
_invert
Invert a 0–1 scale so high raw → bullish low / bearish.
src/workflow/weight_assigner.py:46
↓ 6 callers
Function
_nth_bullish
First *n* agents bullish, rest neutral.
tests/test_threshold_calibration.py:42
↓ 6 callers
Function
_read_jsonl
(path: Path, *, limit: int | None = None)
src/api/leadpage_routes.py:401
↓ 6 callers
Function
_to_futu_symbol
(code: str)
src/backtest/loaders/futu_loader.py:23
↓ 6 callers
Method
apply_slippage
(self, price: float, direction: int)
src/backtest/engines/perp.py:123
↓ 6 callers
Function
asNum
(v: unknown)
web-v2/src/app/components/BacktestInlineWidget.tsx:36
↓ 6 callers
Function
asString
(v: unknown)
web-v2/src/app/components/NexusStarSystemHero.tsx:6
next →
1–100 of 2,298, ranked by callers