Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
↓ 1 callers
Function
_write_json
(path: Path, value: Any)
agent/tests/harness_eval/conftest.py:164
↓ 1 callers
Method
_write_json_atomically
Write refs JSON atomically to reduce corruption risk during crashes.
agent/src/channels/msteams.py:798
↓ 1 callers
Function
_write_loader_cache_frame
( cache_path: Path, frame: pd.DataFrame, source_revision: str | None = None )
agent/backtest/loaders/base.py:835
↓ 1 callers
Function
_write_mandate
(live_runtime: Path, *, max_order_notional_usd: float)
agent/tests/test_limit_price_notional.py:116
↓ 1 callers
Function
_write_metrics_without_trade_count
(run_dir: Path)
agent/tests/test_strategy_discovery_hard_gates.py:71
↓ 1 callers
Function
_write_multi_position_fixture
Two overlapping holdings: AAA Jan 14-16 and BBB Jan 15-21 → peak 2.
agent/tests/test_strategy_discovery_harness.py:326
↓ 1 callers
Function
_write_multiple_matrix_sheet
Write the "Multiple Matrix" sheet: cross-sectional stats plus excluded-peer detail.
agent/src/quantlib/valuation/artifact.py:1260
↓ 1 callers
Function
_write_peer_detail_sheet
Write the "Peer Detail" sheet: one row per peer's bridge, metrics and multiples.
agent/src/quantlib/valuation/artifact.py:1233
↓ 1 callers
Function
_write_pickle_cache
Pickle ``panel`` + write its keyed HMAC sidecar. Failures are non-fatal.
agent/src/tools/alpha_bench_tool.py:266
↓ 1 callers
Function
_write_run_card_with_validation
(run_dir: Path)
agent/tests/test_autopilot_backtest_validation_evidence.py:46
↓ 1 callers
Function
_write_run_fixture_with_benchmark_gap
_write_run_fixture with a single unparseable benchmark cell.
agent/tests/test_strategy_discovery_harness.py:164
↓ 1 callers
Function
_write_run_fixture_with_regime_exposure
Same as _write_run_fixture but equity.csv carries a per-regime exposure column instead of none at all.
agent/tests/test_strategy_discovery_harness.py:299
↓ 1 callers
Function
_write_sensitivity_sheet
Write the "Sensitivity" sheet from a wacc x growth value-per-share grid.
agent/src/quantlib/valuation/artifact.py:1164
↓ 1 callers
Method
_write_session_to_disk
Save login session to disk for persistence across restarts.
agent/src/channels/matrix.py:360
↓ 1 callers
Method
_write_sidecar_durable
Atomically write a sidecar blob, durably where the filesystem allows. Write sequence: temp file in the same directory -> write every byte ->
agent/src/agent/trace.py:219
↓ 1 callers
Function
_write_skill
(root: Path, name: str)
agent/tests/test_load_skill_allowlist.py:26
↓ 1 callers
Function
_write_summary
Write worker summary to artifacts directory. Args: artifact_dir: Path to artifacts/{agent_id}/{task_id}/ directory. summary: Summ
agent/src/swarm/worker.py:1515
↓ 1 callers
Function
_write_synthetic_csvs
Build minimal factor/return CSVs (6 codes x 12 days, perfectly ranked).
agent/tests/test_mcp_factor_analysis_contract.py:70
↓ 1 callers
Function
_write_terminal_value_sheet
Write the "Terminal Value" sheet: both estimates, cross-checks, the full bridge.
agent/src/quantlib/valuation/artifact.py:1123
↓ 1 callers
Function
_write_text_atomic
Write *text* to *path* atomically via a temp file + rename.
agent/src/channels/pairing/store.py:36
↓ 1 callers
Function
_write_wacc_sheet
Write the "WACC Build" sheet as ``field -> value`` rows.
agent/src/quantlib/valuation/artifact.py:1114
↓ 1 callers
Function
_yahoo_article
Project one Yahoo search-news item into the shared article shape. Args: raw: A single news dict from :func:`yahoo_client.search_news`.
agent/src/tools/stock_news_tool.py:219
↓ 1 callers
Function
_yahoo_candidate
Map one Yahoo search quote to a normalized candidate, or ``None``. Yahoo carries US tickers bare, HK tickers as ``0700.HK``, and Canadian lis
agent/src/tools/symbol_search_tool.py:838
↓ 1 callers
Function
_yahoo_value
Flatten a Yahoo ``{raw, fmt, ...}`` value to plain numbers/integers. Args: value: A Yahoo quoteSummary value (``{raw, fmt, longFmt}``) or
agent/src/tools/financial_statements_tool.py:314
↓ 1 callers
Function
_z
(frame: pd.DataFrame)
agent/tests/factors/test_fundamental_valuation_samples.py:76
↓ 1 callers
Function
_z
(frame: pd.DataFrame)
agent/tests/factors/test_fundamental_expansion_samples.py:91
↓ 1 callers
Function
_zero_attribution
()
agent/src/shadow_account/backtester.py:637
↓ 1 callers
Method
_zigzag
把原始 Swing 点过滤为严格交替的 H/L 序列。 Args: raw_points: ``_find_swings`` 返回的 Swing 点(可以是其前缀)。 Returns: 交替排列的 Swing 点列表
agent/src/skills/elliott-wave/example_signal_engine.py:99
↓ 1 callers
Function
_zoo_dir_default
()
agent/src/factors/registry.py:201
↓ 1 callers
Function
_zoo_for_id
Lookup an alpha's zoo (best-effort, returns '' on failure).
agent/src/factors/cli_handlers.py:422
↓ 1 callers
Function
_zoo_of
Look up an alpha's owning zoo (best-effort; '' when unknown).
agent/src/factors/compare_runner.py:49
↓ 1 callers
Function
_zoo_progress_cb
Wrap a global progress callback so a per-zoo bench reports global counts.
agent/src/factors/compare_runner.py:57
↓ 1 callers
Function
_zscore_cross_section
Per-row z-score (mean 0, std 1). Rows with zero std become NaN. Args: df: Wide panel, ``index = date``, ``columns = instrument``. Re
agent/src/skills/multi-factor/zoo_signal_engine.py:43
↓ 1 callers
Function
abort
()
frontend/src/lib/api.ts:28
↓ 1 callers
Method
accinfo_query
(self, **kwargs: Any)
agent/tests/test_futu_account_currency.py:47
↓ 1 callers
Method
accountSummary
(self, account="")
agent/tests/test_ibkr_local.py:54
↓ 1 callers
Function
account_balance_details
Expose reported cash legs and financing without adding them to totals. Args: broker: Connector whose balance schema is being read.
agent/src/portfolio/normalization.py:300
↓ 1 callers
Function
account_cash_usd
Return broker-reported cash without guessing from missing quotes. Args: broker: The connector key selecting the account payload shape.
agent/src/portfolio/normalization.py:337
↓ 1 callers
Function
account_choices
Map a ``get_accounts`` reply to the rows an account picker shows. Args: envelope: ``MCPServerAdapter.call_tool`` result for ``get_account
agent/src/trading/connectors/robinhood/mcp.py:530
↓ 1 callers
Method
account_usage
Account usage and move the goal to budget_limited if needed.
agent/src/goal/store.py:771
↓ 1 callers
Function
activateProvider
(profile: CustomProviderProfile)
frontend/src/components/settings/CustomProviderManager.tsx:99
↓ 1 callers
Function
activityMessage
(activity: AgentActivity)
frontend/src/components/chat/__tests__/ThinkingTimeline.test.tsx:38
↓ 1 callers
Method
adapter_class
(self)
agent/tests/test_robinhood_portfolio_source.py:55
↓ 1 callers
Method
add_agent
Add a distinct planning role; an existing role is never overwritten.
agent/src/pixel_agents/office.py:98
↓ 1 callers
Method
add_job
(self, job: _Job)
agent/src/live/runtime/runner.py:102
↓ 1 callers
Method
add_nav_row
(self, day: str)
agent/src/tools/paper_trade/engine.py:476
↓ 1 callers
Function
add_tool_call
(tool_call_id: str, name: str, arguments: Any)
agent/src/providers/copilot_auth.py:224
↓ 1 callers
Method
adj_factor
(self, **_kwargs)
agent/tests/test_alpha_bench_csi300_sector.py:84
↓ 1 callers
Function
adjust
(symbol: str, from_dt, to_dt)
agent/src/tools/trade_journal_tool.py:60
↓ 1 callers
Function
advance
()
agent/tests/test_paper_accounts.py:175
↓ 1 callers
Method
advance
(attemptId: string, nextPhase: Exclude<UpdateAttemptPhase, "verified">)
desktop/electron/src/update-recovery.ts:69
↓ 1 callers
Function
advancedStatus
( live: SwarmAgentDisplayStatus, authoritative: SwarmAgentDisplayStatus, )
frontend/src/lib/swarmStatus.ts:449
↓ 1 callers
Method
after_rebalance_bar
Run the legacy post-fill bar hooks; return True to stop.
agent/backtest/engines/base.py:785
↓ 1 callers
Method
after_rebalance_bar
(self, timestamp, data_map, codes)
agent/tests/test_base_engine.py:568
↓ 1 callers
Function
agentKey
(agent: SwarmAgentStatus)
frontend/src/components/chat/SwarmDashboard.tsx:121
↓ 1 callers
Function
agentName
(id: string | null)
frontend/src/pages/PixelOffice.tsx:45
↓ 1 callers
Function
agentTokenText
(agent: SwarmAgentStatus)
frontend/src/components/chat/SwarmDashboard.tsx:125
↓ 1 callers
Function
aggregate_reports
Aggregate verdict counts by status and scenario without dropping gaps.
agent/evals/harness/report.py:11
↓ 1 callers
Method
ainvoke
Run :meth:`invoke` in a worker thread. Args: messages: Conversation so far, as LangChain messages or dicts. config: O
agent/src/providers/claude_cli.py:656
↓ 1 callers
Function
alpaca_available
Return whether the optional ``alpaca-py`` SDK can be imported.
agent/src/trading/connectors/alpaca/sdk.py:256
↓ 1 callers
Function
amount
(value: number | null, currency: string | null)
frontend/src/pages/Portfolio.tsx:582
↓ 1 callers
Function
amount
(value: Any)
agent/src/portfolio/normalization.py:314
↓ 1 callers
Function
ancestors_match
(index: int)
agent/src/agent/skills.py:352
↓ 1 callers
Function
anchored
(node: ast.AST)
agent/src/agent/grounding/policies.py:267
↓ 1 callers
Function
answer
(content: string)
frontend/src/components/chat/__tests__/MessageBubble.math.test.tsx:9
↓ 1 callers
Function
answer
()
frontend/src/pages/__tests__/SettingsClaudeCliModels.test.tsx:160
↓ 1 callers
Function
answer
(ref: str)
agent/tests/test_grounding_role_hardening.py:827
↓ 1 callers
Function
appendQueryParam
(url: string, key: string, value: string)
frontend/src/lib/api.ts:469
↓ 1 callers
Function
append_shapes
Append native text once in the existing shape-tree order.
agent/src/tools/doc_reader_tool.py:319
↓ 1 callers
Method
append_user_message
Record a user-message transcript event for the current process.
agent/src/channelsui/gateway_services.py:181
↓ 1 callers
Function
applyChrome
(lang)
wiki/docs/main.js:108
↓ 1 callers
Function
applyDocumentDirection
(code: string)
frontend/src/i18n/index.ts:87
↓ 1 callers
Function
applyProviderDefaults
(provider = selectedProvider)
frontend/src/pages/Settings.tsx:124
↓ 1 callers
Function
apply_matplotlib_cjk_font
Configure matplotlib's default font family. Returns the family name actually installed (``"sans-serif"`` meaning the CJK face is resolved, or
agent/src/shadow_account/fonts.py:102
↓ 1 callers
Function
apply_qfq
Forward-adjust raw Tushare daily bars for corporate actions. ``pro.daily`` returns *unadjusted* prices, so a close-to-close return taken acro
agent/backtest/loaders/cn_adjust.py:27
↓ 1 callers
Method
apply_slippage
Vietnam slippage (configurable), quantized onto the HOSE tick grid. A slipped price is snapped away from the trader — buys up to the next
agent/backtest/engines/vietnam_equity.py:488
↓ 1 callers
Method
apply_slippage
Slippage: unfavourable direction.
agent/backtest/engines/crypto.py:156
↓ 1 callers
Method
apply_slippage
Futures slippage.
agent/backtest/engines/china_futures.py:313
↓ 1 callers
Method
apply_slippage
Korea slippage (configurable), quantized onto the KRX tick grid. A slipped price is snapped away from the trader — buys up to the next
agent/backtest/engines/korea_equity.py:298
↓ 1 callers
Method
apply_slippage
Apply slippage, then snap to the R$0.01 grid against the trader.
agent/backtest/engines/brazil_equity.py:85
↓ 1 callers
Method
apply_slippage
(self, price, direction)
agent/tests/test_base_engine.py:41
↓ 1 callers
Function
approve_code
Approve a pending pairing code. Args: code: The pairing code to approve. restrict_channel: When set, only approve the code if its
agent/src/channels/pairing/store.py:106
↓ 1 callers
Function
archive
(source: str, call_id: str)
agent/tests/test_grounding_backtest_outputs.py:535
↓ 1 callers
Method
archive_original
Backup original file to archive/ before compression. Returns archive path or None on failure. Creates archive/ dir on demand. Uses at
agent/src/memory/compression.py:261
↓ 1 callers
Function
articleHtml
(page, lang, pages)
wiki/scripts/prerender_docs.mjs:28
↓ 1 callers
Method
assertAllowed
(name: string)
desktop/electron/src/secure-credentials.ts:129
↓ 1 callers
Function
assertCurrentMetadata
(window, pageId, lang)
tools/wiki/site.test.mjs:68
↓ 1 callers
Function
assertMainWindowSender
(sender: Electron.WebContents)
desktop/electron/src/main.ts:240
↓ 1 callers
Function
assertResolution
(resolution, expectedExecutable, message)
desktop/electron/scripts/test-backend-resolution.mjs:128
↓ 1 callers
Function
assertVerifiedUpdateArtifactUnchanged
( artifactPath: string, expectedSha256: string, )
desktop/electron/src/update-verification.ts:151
↓ 1 callers
Function
assert_exchange_endpoints
Require exact HTTPS base URLs for the two signed USD-M reads.
agent/src/trading/connectors/binance/usdm.py:30
↓ 1 callers
Function
assistant
(id: string, runId: string, minute: number)
frontend/src/pages/__tests__/AgentRunPreviewHistory.test.tsx:32
↓ 1 callers
Function
at
(idx: int)
agent/src/trading/connectors/okx/sdk.py:776
↓ 1 callers
Function
atomicTextWrite
(filePath: string, content: string)
desktop/electron/src/secure-credentials.ts:208
↓ 1 callers
Function
attempt
(attempt, **kwargs)
agent/tests/test_api_live_runtime.py:876
↓ 1 callers
Function
attr_row
(label: str, value: float)
agent/src/shadow_account/pdf_fallback.py:322
↓ 1 callers
Function
audit_chain_ledger_path
Return the path to the opt-in hash-chained live-action ledger. Returns: ``<runtime_root>/live/audit_chain.jsonl`` — a separate file from
agent/src/live/audit.py:159
↓ 1 callers
Method
audit_record
Return a trace-safe record without copying conversation text.
agent/src/agent/resolution_context.py:75
↓ 1 callers
Method
authorize_tool_call
Authorize against identity state frozen before the whole LLM batch. Args: tool_name: Requested tool. arguments: Model
agent/src/agent/grounding/identity.py:454
↓ 1 callers
Function
avg_daily_dollar_volume
Trailing average daily dollar volume (USD) for ``symbol``, fail-closed. Computed as ``mean(close * volume)`` over the trailing :data:`_ADV_WI
agent/src/live/enforcement.py:743
← previous
next →
7,801–7,900 of 26,887, ranked by callers