MCPcopy Create free account

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

Functions30,405 in github.com/HKUDS/Vibe-Trading

↓ 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
A ledger that has retrieved one AAPL.US quote through *tool*.
agent/tests/test_agent_output_discipline.py:162
↓ 18 callersFunction_make_bar
(close: float = 60000.0, open_: float | None = None)
agent/tests/test_crypto_engine.py:38
↓ 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:1339
↓ 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:677
↓ 18 callersFunctionanswer
(text: str)
agent/tests/test_spawn_agent_tool.py:72
↓ 18 callersMethodauto_compact
Summarize older messages while preserving a recent tail. Args: messages: Message list, replaced in place when a summary is produc
agent/src/session/compaction.py:320
↓ 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 callersMethodcheck
Record a stop reason when the goal has reached its token budget. Args: snapshot: Goal snapshot with its token budget and usage, i
agent/src/product/goals.py:68
↓ 18 callersMethodcompute
Lazy-import the alpha module and run its ``compute(panel)``. Raises: KeyError: alpha_id unknown. SkipAlpha: required
agent/src/factors/registry.py:325
↓ 18 callersFunctionestimate_tokens
Estimate tokens from the JSON representation of a value. Args: value: Value to serialize, with unsupported objects converted to strings.
agent/src/session/context_budget.py:72
↓ 18 callersFunctionexample_fact
(**overrides)
agent/tests/test_research_financial_facts.py:14
↓ 18 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/technical_indicator_tool.py:331
↓ 18 callersMethodexecute
(self, **kwargs: Any)
agent/tests/test_spawn_agent_tool.py:103
↓ 18 callersMethodget_current_snapshot
Return the current goal plus ledger rows for a session.
agent/src/goal/store.py:580
↓ 18 callersMethodis_allowed
Check sender permission: star > allowlist > pairing store > deny.
agent/src/channels/base.py:240
↓ 18 callersMethodlist
Return alpha IDs matching the (optional) filters.
agent/src/factors/registry.py:268
↓ 18 callersMethodlist_criteria
Return criteria for a goal.
agent/src/goal/store.py:482
↓ 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 callersFunctionparse_frontmatter
Parse YAML-like frontmatter and body from a markdown file. Recognizes plain and quoted strings, bracketed lists, and booleans. Args:
agent/src/product/resources/frontmatter.py:16
↓ 18 callersMethodrelease
(_)
agent/src/data_gateway/service.py:332
↓ 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 callersFunctionresolve_config
Resolve once from supplied settings and, for custom providers, the vault. Args: model_name: Optional model override. environment:
agent/src/providers/settings.py:80
↓ 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:1142
↓ 18 callersFunctionrun_options_backtest
Options backtest entry point. Day-by-day simulation: 1. Read underlying price for the current day 2. Mark all open option positions to ma
agent/backtest/engines/options_portfolio.py:219
↓ 18 callersFunctionsafe_path
Resolve `p` under `workdir` and ensure it stays inside. Args: p: User-supplied path (relative or absolute). ``~`` expansion is
agent/src/tools/path_utils.py:101
↓ 18 callersFunctionsample
(rows=40, seed=11)
agent/tests/quantlib/test_combination.py:27
↓ 18 callersMethodterminate
(self)
agent/tests/test_portfolio_routes.py:150
↓ 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
↓ 18 callersMethodtouch
Record activity at the current wall-clock time.
agent/src/kernel/state.py:24
↓ 18 callersFunctionvalidate_financial_facts
Validate shape, temporal identity and internal evidence consistency. A 'verified' label remains an assertion by the research author, not inde
agent/src/research_artifacts/financial_facts.py:69
↓ 18 callersFunctionvalidate_ohlc
Drop, flag, or reject bars that violate OHLC invariants. Loaders only drop NaN rows, so structurally dirty bars — ``high < low``, a non-posit
agent/backtest/loaders/base.py:284
↓ 17 callersFunction_baseline_target
(name: str = "TARGET", **overrides: object)
agent/tests/quantlib/valuation/test_comps.py:99
↓ 17 callersFunction_drive
Run a sequence of tool calls through the loop's tool-call path. Args: agent: The loop under test. tool_name: Tool to invoke.
agent/tests/test_agent_loop_deterministic_cache.py:48
↓ 17 callersFunction_engine
(**overrides)
agent/tests/test_vietnam_equity_engine.py:21
↓ 17 callersMethod_get_request_payload
(self, *args: object, **kwargs: object)
agent/tests/test_llm.py:400
↓ 17 callersFunction_instantiate_tools
()
agent/tests/test_strategy_discovery_tools.py:118
↓ 17 callersFunction_issue
(tmp_path: Path, figure: str, ref: str, *calls: tuple[str, dict])
agent/tests/test_grounding_container_field_refs.py:56
↓ 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:223
↓ 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_observed
(outcome)
agent/tests/test_paper_trade_5m_partial_fills.py:227
↓ 17 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:1730
↓ 17 callersFunction_run_cli
Drive the real argparse dispatcher, returning its exit code.
agent/tests/test_playbooks_surface.py:86
↓ 17 callersFunction_write_config
(run_dir: Path, **extra: Any)
agent/tests/test_backtest_records_bench.py:98
↓ 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 callersMethodcall_tool
( self, remote_name: str, arguments: dict, *, local_name: str | None = None )
agent/tests/test_advisory.py:56
↓ 17 callersFunctionconnect
Open the store. Read-only connections never create the file. Raises: FileNotFoundError: On a read-only open when no sync has run yet.
agent/src/br_data/store.py:139
↓ 17 callersFunctionexecute
(**kwargs)
agent/tests/test_gildata_fin_query.py:40
↓ 17 callersMethodget_artifact
(self, artifact_id)
agent/tests/test_strategy_discovery_facade.py:145
↓ 17 callersMethodindex_entry
Upsert a memory entry into the index. Args: entry_id: 6-char hex identifier. title: Memory title. descrip
agent/src/memory/search_index.py:327
↓ 17 callersMethodis_available
Probe public candles with a short timeout (honours proxy env).
agent/backtest/loaders/okx.py:116
↓ 17 callersFunctionis_sensitive_arg
Return whether a tool-argument / payload key name should be redacted. A key is sensitive when its normalized (stripped, lower-cased) form either
agent/src/tools/redaction.py:284
↓ 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:34
↓ 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 callersFunctionpartial
()
tools/gateway_live_scenarios.py:180
↓ 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 callersFunctionproject_turn
Project one turn's items onto the legacy display row. Args: items: Thread items in write order, possibly spanning multiple turns.
agent/src/session/replay.py:243
↓ 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 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 callersMethodrun
Start a background task and return its task_id. Args: command: Shell command to execute. Returns: JSON strin
agent/src/tools/background_tools.py:297
↓ 17 callersMethodrun_gc
Run garbage collection on memory store. Args: dry_run: If True (default), log actions without modifying files. Returns:
agent/src/memory/lifecycle.py:220
↓ 17 callersFunctionsafe_filename
Replace unsafe path characters with underscores.
agent/src/channels/utils.py:103
↓ 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 callersFunctionwalk_forward_analysis
Split backtest into sequential windows, check consistency. Assign each observed return to exactly one window. Later windows use the preceding
agent/backtest/validation.py:248
↓ 16 callersFunction_backtest
(ledger: GroundingLedger, run_dir: Path, call_id: str)
agent/tests/test_grounding_backtest_outputs.py:145
↓ 16 callersFunction_block
(*rows: str)
agent/tests/test_grounding_figures_contract.py:97
↓ 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:213
↓ 16 callersFunction_client
(fake_llm: _FakeStreamingLLM)
agent/tests/test_chat_llm_streaming.py:38
↓ 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:239
↓ 16 callersMethod_engine_diagnostics
(self)
agent/tests/test_global_equity_hk_lot_sizes.py:144
↓ 16 callersFunction_ensure_registered
Import every known loader module so ``@register`` decorators fire. Safe to call multiple times — only runs the imports once. Concurrent calle
agent/backtest/loaders/registry.py:81
↓ 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:147
↓ 16 callersFunction_host
Return the host ``api_server`` module for shared deps and monkeypatched symbols.
agent/src/api/live_routes.py:335
↓ 16 callersMethod_identical_call_key
Build a stable key identifying a deterministic tool invocation.
agent/src/product/tool_replay.py:150
↓ 16 callersFunction_ingest
( ledger: GroundingLedger, query: str, candidates: list[dict[str, Any]], call_id: str = "resol
agent/tests/test_grounding_resolution_context.py:51
↓ 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_make_config
(**overrides: Any)
agent/tests/test_mcp_client_adapter.py:80
↓ 16 callersFunction_outcome
( *, orders: list[dict], five: dict[str, pd.DataFrame], cash: float = 100_000.0, positions
agent/tests/test_paper_trade_5m_partial_fills.py:163
↓ 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 callersFunction_produce
Run a real producer node whose model issues the given tool calls, then answers.
agent/tests/test_swarm_produced_file_handoff.py:50
↓ 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
↓ 16 callersFunction_router
Return a ``_sec_get`` stub that answers by URL, as the live endpoints do. Full-text search is filtered by the ``ciks`` parameter the way the live
agent/tests/test_institutional_holdings_tool.py:181
↓ 16 callersFunction_row
(date_str: str, open_, high, low, close, volume)
agent/tests/test_yahoo_loader.py:40
↓ 16 callersFunction_run
(run_dir: Path, *, success: bool = True, exit_code: int = 0)
agent/tests/test_backtest_records_bench.py:108
↓ 16 callersFunction_run
(coro)
agent/tests/test_vibe_trading_sdk.py:170
↓ 16 callersFunction_seed
(store: ScheduledResearchJobStore, **overrides: object)
agent/tests/test_scheduled_routes.py:48
↓ 16 callersFunction_seed
Populate a tmp memory dir with one entry per type.
agent/tests/test_cli_memory.py:17
↓ 16 callersFunction_trade
( symbol: str = "X", pnl: float = 100.0, direction: int = 1, exit_reason: str = "signal",
agent/tests/test_metrics.py:37
↓ 16 callersMethod_write
(self, item_type: str, message: Optional[Dict[str, Any]], **payload: Any)
agent/src/session/runtime.py:330
↓ 16 callersMethodacquire
(self, source, until, cost=1)
agent/src/data_gateway/scheduling.py:127
← previousnext →401–500 of 30,405, ranked by callers