MCPcopy Create free account

hub / github.com/HKUDS/Vibe-Trading / functions

Functions26,887 in github.com/HKUDS/Vibe-Trading

↓ 20 callersMethodauthorize_tool_call
(self, tool_name, arguments, **kwargs)
agent/tests/test_agent_loop_deterministic_cache.py:209
↓ 20 callersFunctionbuild_llm
Construct the configured LangChain chat model. Args: model_name: Model name; defaults to LANGCHAIN_MODEL_NAME. callbacks: Optiona
agent/src/providers/llm.py:1645
↓ 20 callersMethodcheck_available
Check if this tool's dependencies are met. Override in subclasses to check for API keys, packages, etc. Tools that return False are e
agent/src/agent/tools.py:44
↓ 20 callersFunctionclassify_tool
Classify one remote tool via the 3-tier precedence ladder. The curated map is authoritative: when it names the tool, its class is returned re
agent/src/live/classification.py:52
↓ 20 callersFunctioncombine_factors
Combine factor panels into one composite score. Args: panels: Factor name -> panel (time x asset) of factor values. returns: Forw
agent/src/quantlib/combination.py:316
↓ 20 callersMethodconnect
()
agent/src/channels/mochat.py:417
↓ 20 callersFunctiondelay
(milliseconds: number)
desktop/electron/src/backend-manager.ts:440
↓ 20 callersMethodfill
Execute part or all of an unfinished order at ``price``. Status follows JoinQuant's names, not the everyday sense of "filled": a part
agent/src/tools/paper_trade/order_lifecycle.py:197
↓ 20 callersMethodget_content
Return the full documentation for a skill (used by the load_skill tool). Falls back to disk lookup for user skills created mid-session.
agent/src/agent/skills.py:166
↓ 20 callersMethodget_quote
(self, symbol, *, config=None)
agent/tests/test_sdk_order_gate.py:953
↓ 20 callersFunctionpurged_kfold_splits
K contiguous test blocks, each with training purged and embargoed. Folds are contiguous in time rather than shuffled: shuffling destroys the
agent/src/quantlib/crossvalidation.py:227
↓ 20 callersFunctionresolve_min_interval
Resolve a per-provider minimum request interval from the environment. Args: env_name: Env var carrying an override in seconds (e.g.
agent/backtest/loaders/_http.py:129
↓ 20 callersMethodupdate_status
Update a goal status with stale-goal and completion validation.
agent/src/goal/store.py:701
↓ 20 callersFunctionzscore
Cross-sectional z-score per row (axis=1, sample std). Rows with zero or NaN standard deviation become NaN — never silent zero.
agent/src/factors/base.py:87
↓ 19 callersFunction_buy
(symbol=_SYM, qty=100, limit=None)
agent/tests/test_paper_trade_rejections.py:94
↓ 19 callersMethod_get_conn
Get or create the SQLite connection (WAL mode).
agent/src/session/search.py:172
↓ 19 callersFunction_issue
(tmp_path: Path, figure: str, ref: str, *calls: tuple[str, dict])
agent/tests/test_grounding_container_field_refs.py:52
↓ 19 callersFunction_ledger
A ledger that has retrieved one AAPL.US quote through *tool*.
agent/tests/test_agent_output_discipline.py:173
↓ 19 callersFunction_parse_historical
Convert an FMP historical-price body into an ascending OHLCV frame. Stable API returns a top-level array; legacy ``{"historical": [...]}`` sh
agent/backtest/loaders/fmp_loader.py:220
↓ 19 callersFunction_run_strict
( engine: CryptoEngine, data_map: dict[str, pd.DataFrame], targets: dict[str, list[float]], )
agent/tests/test_crypto_engine.py:100
↓ 19 callersFunction_set_creds
Patch the loader's config accessors directly (no config-cache dependency).
agent/tests/test_tickerall_loader.py:64
↓ 19 callersFunction_write_backtest
Write the files a completed backtest leaves behind, run card last.
agent/tests/test_grounding_backtest_outputs.py:73
↓ 19 callersFunction_write_mandate
(live_runtime: Path, mandate: Mandate)
agent/tests/test_mandate_enforcement.py:125
↓ 19 callersFunctionbootstrap_sharpe_ci
Resample daily returns to estimate Sharpe confidence interval. Args: equity_curve: Equity time series. n_bootstrap: Number of boo
agent/backtest/validation.py:152
↓ 19 callersMethodbuild_config
(self, profile_config, overrides)
agent/tests/test_etoro_live_actions.py:23
↓ 19 callersFunctioncompact_result_for_agent
Drop redundant copies of one MCP result before it reaches the agent. ``_normalize_call_tool_result`` keeps every surface programmatic callers of
agent/src/tools/mcp.py:1254
↓ 19 callersMethodexecute
Run one read-only snapshot query. Args: **kwargs: ``action`` plus that action's parameters — ``stock_ids``, ``sta
agent/src/tools/taiwan_stock_data_tool.py:1092
↓ 19 callersMethodget_contract_multiplier
(self, symbol: str)
agent/tests/test_nonpositive_prices.py:221
↓ 19 callersMethodget_goal_snapshot
Return a JSON-safe goal snapshot.
agent/src/goal/store.py:587
↓ 19 callersMethodrecord
Record an executed call; synthetic skips must not enter this ledger.
agent/src/agent/tool_progress.py:78
↓ 19 callersFunctionregister_internal
Register *fn* under the literal key *name*. MODULE/TEST-ONLY: the production surface is the explicit dict entries at the bottom of this modul
agent/src/scheduling/registry.py:76
↓ 19 callersFunctionrun_dcf
Run a complete DCF from a flat mapping of named inputs. This is the entry point :mod:`contracts` was written for: every required field is nam
agent/src/quantlib/valuation/dcf.py:1258
↓ 19 callersFunctionscenario
()
agent/tests/test_scheduled_research_executor.py:63
↓ 18 callersFunction_dcf_inputs
A small, valid ``run_dcf`` inputs mapping (target capital structure).
agent/tests/quantlib/valuation/test_artifact.py:67
↓ 18 callersFunction_decay_row
A row that passes every Phase 1 gate (non-borderline by construction): 20 trades, adequate quality, comfortable breakeven, long coverage — so
agent/tests/test_strategy_discovery_facade.py:684
↓ 18 callersFunction_engine
(**overrides)
agent/tests/test_india_equity_engine.py:21
↓ 18 callersFunction_flow
Build a CashFlow on 2024-01-<day> for terse test construction.
agent/tests/test_entities_spine.py:36
↓ 18 callersFunction_ledger
(tmp_path: Path)
agent/tests/test_grounding_shape_hardening.py:55
↓ 18 callersFunction_payload
(**overrides)
agent/tests/test_paper_trade_v12_schema.py:77
↓ 18 callersFunction_read
Return a README's text. Args: name: File name relative to the repository root. Returns: The file contents.
agent/tests/test_readme_counts.py:78
↓ 18 callersFunction_screened_ledger
Return a ledger that screened broadly, then locked one candidate.
agent/tests/test_agent_grounding.py:1438
↓ 18 callersMethod_session
Intraday bars inside a trading session, so the index carries the overnight gaps a real one does.
agent/tests/test_cross_market_annualization.py:144
↓ 18 callersFunctionanalyze_trade_journal
Parse a trade journal and return a JSON analysis. Args: file_path: Path to CSV/Excel file. analysis_type: "full" | "profile" | "b
agent/src/tools/trade_journal_tool.py:675
↓ 18 callersFunctionbrinson_fachler
Decompose one period's active return into allocation, selection and interaction. Sector returns may be omitted only where the corresponding weigh
agent/src/quantlib/attribution.py:209
↓ 18 callersMethodclose
Close the database connection.
agent/src/session/search.py:474
↓ 18 callersFunctiondeclared_parameter
Show a parameter to the reader and declare the same value and label.
agent/tests/grounding_parameter_helpers.py:4
↓ 18 callersFunctionexecute
(**kwargs)
agent/tests/test_gildata_fin_query.py:33
↓ 18 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/technical_indicator_tool.py:322
↓ 18 callersMethodflush
Persist any text accumulated since the last snapshot.
agent/src/session/checkpoint.py:76
↓ 18 callersMethodfor_scope
Return a handle over the same task table bound to another owner.
agent/src/tools/background_tools.py:167
↓ 18 callersMethodget_account_snapshot
(self, config)
agent/tests/test_sdk_order_gate.py:75
↓ 18 callersMethodget_current_snapshot
Return the current goal plus ledger rows for a session.
agent/src/goal/store.py:579
↓ 18 callersMethodis_allowed
Check sender permission: star > allowlist > pairing store > deny.
agent/src/channels/base.py:240
↓ 18 callersMethodlist_criteria
Return criteria for a goal.
agent/src/goal/store.py:481
↓ 18 callersMethodoptimize
Validate caps even when a singleton needs no weight optimization. The base singleton path preserves the supplied allocation, including
agent/backtest/optimizers/turnover_aware.py:95
↓ 18 callersFunctionrender_signal_engine
Render the SignalEngine Python source for a profile. Args: profile: ShadowProfile carrying the rules to replay. Returns: Pyt
agent/src/shadow_account/codegen.py:180
↓ 18 callersFunctionrun_comps
Run a full comparable-companies valuation: EV bridge, multiples, implied range. Args: target: The company being valued. peers: Th
agent/src/quantlib/valuation/comps.py:1136
↓ 18 callersFunctionrun_worker
Run one worker task, releasing the per-task LLM client on exit. Builds a fresh :class:`ChatLLM` for the task and guarantees it is closed even
agent/src/swarm/worker.py:533
↓ 18 callersFunctionsafe_run_dir
Validate a run directory used by generated-code tools. Args: p: User/LLM-supplied run directory. `~` expansion is supported. Returns
agent/src/tools/path_utils.py:383
↓ 18 callersFunctiontool
Build an OpenAI-format function tool with no parameters. Args: name: Tool name, also used as its description. Returns: The t
agent/tests/claude_cli_helpers.py:172
↓ 17 callersFunction_client
(fake_llm: _FakeStreamingLLM)
agent/tests/test_chat_llm_streaming.py:60
↓ 17 callersFunction_engine
(**overrides)
agent/tests/test_vietnam_equity_engine.py:21
↓ 17 callersFunction_instantiate_tools
()
agent/tests/test_strategy_discovery_tools.py:116
↓ 17 callersFunction_make_cache_key
Build a content-based cache key for MCP tool discovery results. Every field that can change the tool specs a server returns must participate
agent/src/tools/mcp.py:222
↓ 17 callersFunction_make_job
( job_id: str = "job-001", prompt: str = "analyse AAPL momentum", schedule: str = "60000", )
agent/tests/test_scheduled_research_store.py:29
↓ 17 callersFunction_run_cli
Drive the real argparse dispatcher, returning its exit code.
agent/tests/test_playbooks_surface.py:104
↓ 17 callersFunction_to_yfinance_symbol
Convert project symbols into yfinance symbols. Args: code: Project symbol, for example ``AAPL.US``, ``700.HK``, or ``TD.TO``.
agent/backtest/loaders/yfinance_loader.py:54
↓ 17 callersFunction_write_config
(run_dir: Path, **extra: Any)
agent/tests/test_backtest_records_bench.py:94
↓ 17 callersFunctionagent_artifact_dir
Return the canonical artifacts directory for one task within a run. The single source of truth for this path — shared with the retry loop in
agent/src/swarm/worker.py:449
↓ 17 callersFunctionbase_inputs
Fresh copy of the worked example's ``run_dcf`` inputs mapping. Args: structure: ``"target"`` supplies ``target_equity_weight``/
agent/tests/quantlib/valuation/test_dcf.py:88
↓ 17 callersMethodcompute
Lazy-import the alpha module and run its ``compute(panel)``. Raises: KeyError: alpha_id unknown. SkipAlpha: required
agent/src/factors/registry.py:325
↓ 17 callersMethodis_available
Probe public candles with a short timeout (honours proxy env).
agent/backtest/loaders/okx.py:109
↓ 17 callersFunctionload_panel
Load an entity x date x metric panel file into an ``EntityPanel``. The ingest module's generic counterpart to ``load_cashflows``, for data th
agent/src/entities/ingest.py:1230
↓ 17 callersFunctionmonte_carlo_test
Shuffle trade PnL order to test path significance. Null hypothesis: the observed Sharpe / max-drawdown is no better than a random ordering of
agent/backtest/validation.py:33
↓ 17 callersFunctionneutralize_factor
Remove specified exposures separately at every input observation time. Args: factor: Numeric time-by-asset panel at any frequency, includ
agent/src/quantlib/neutralization.py:204
↓ 17 callersFunctionproject_three_statement
Project linked income, cash flow and balance-sheet statements forward. Args: opening: The opening balance sheet plus trailing revenue. Mu
agent/src/quantlib/valuation/threestatement.py:666
↓ 17 callersFunctionrender_verdict
Render a PASS/FAIL verdict from per-point verification results. Each result with a ``fetched_value`` is judged against the reported value at
agent/src/tools/report_audit_tool.py:348
↓ 17 callersMethodrepeat
(self, tmp_path: Path)
agent/tests/test_agent_output_discipline.py:957
↓ 17 callersFunctionresolve_internal
Return the callable registered under the EXACT key *name*. Exact-key dict lookup only — never a prefix match, never a parse, never a fallback
agent/src/scheduling/registry.py:103
↓ 17 callersMethodrow_count
Total number of stored evidence rows.
agent/src/strategy_discovery/evidence_store.py:364
↓ 17 callersMethodsave
Persist one record, replacing any previous copy of it.
agent/src/tools/background_store.py:110
↓ 17 callersMethodsave
Atomically persist the job set. Write sequence (durable even under SIGKILL): temp file in the same dir → ``os.fsync`` the temp fd → `
agent/src/live/runtime/jobstore.py:131
↓ 17 callersMethodto_dict
Return a JSON-serializable profile snapshot.
agent/src/trading/types.py:63
↓ 16 callersFunction_chain_router
Return a ``_sec_get`` stub serving a whole quarter's chain of filings. Each entry is ``{adsh, form, file_date, cover, rows}``: ``cover`` is the
agent/tests/test_institutional_holdings_tool.py:209
↓ 16 callersFunction_compute_profile
Build the trading profile dict. Args: df: Standardized DataFrame (datetime parsed, sorted). May carry dividend cash rows; tho
agent/src/tools/trade_journal_tool.py:237
↓ 16 callersFunction_declared
(prose: str, *lines: str)
agent/tests/test_grounding_document_figures.py:76
↓ 16 callersMethod_emit
Fire an event via the callback.
agent/src/agent/loop.py:1729
↓ 16 callersFunction_fetch
(from_date: str, to_date: str, frame: pd.DataFrame | None = None)
agent/tests/test_paper_trade_strategy_path.py:78
↓ 16 callersFunction_flow
Small constructor to keep the isolated unit tests below readable.
agent/tests/quantlib/valuation/test_comps.py:60
↓ 16 callersFunction_fts_hit
Build one EDGAR full-text search hit in the live ``_source`` shape.
agent/tests/test_institutional_holdings_tool.py:143
↓ 16 callersFunction_host
Return the host ``api_server`` module for shared deps and monkeypatched symbols.
agent/src/api/live_routes.py:335
↓ 16 callersFunction_ingest
( ledger: GroundingLedger, query: str, candidates: list[dict[str, Any]], call_id: str = "resol
agent/tests/test_grounding_resolution_context.py:47
↓ 16 callersFunction_inject_mock_transport
Route the probe's fresh ``httpx.AsyncClient`` through a MockTransport.
agent/tests/test_channels_config_api.py:187
↓ 16 callersFunction_install_strategy
(name: str, source: str)
agent/tests/test_paper_trade_strategy_path.py:83
↓ 16 callersFunction_ledger_with_upload
A ledger whose run directory sits beside, not above, the upload.
agent/tests/test_grounding_document_figures.py:65
↓ 16 callersFunction_make_config
(**overrides: Any)
agent/tests/test_mcp_client_adapter.py:80
↓ 16 callersFunction_outcome
( *, orders, cash=100000.0, positions=(), path_model="bar_median", market_data=None,
agent/tests/test_paper_trade_5m_engine.py:168
↓ 16 callersFunction_overrides
Build the local-connector override dict, rejecting malformed numerics. Args: kwargs: Raw tool arguments. Returns: Override m
agent/src/tools/trading_connector_tool.py:200
↓ 16 callersMethod_plan_open_order
Price an opening order without mutating portfolio state. ``observe=False`` plans a trial inside a capital-fit search: a rejection the
agent/backtest/engines/base.py:1619
↓ 16 callersFunction_request
(strategy_path: str, *, from_date: str = _DAY, to_date: str = _DAY, cash: float = 50000.0, positi
agent/tests/test_paper_trade_strategy_path.py:97
← previousnext →301–400 of 26,887, ranked by callers