MCPcopy Create free account

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

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

↓ 26 callersMethodwalk
Run one ordered phase; role predicates receive their own typed arguments.
agent/src/agent/grounding/registry.py:87
↓ 25 callersFunction_client
Build a TestClient with runtime root redirected under tmp_path.
agent/tests/test_longbridge_runtime.py:32
↓ 25 callersFunction_connection
(value: Any)
agent/src/tools/trading_connector_tool.py:53
↓ 25 callersFunction_engine
(**overrides)
agent/tests/test_korea_equity_engine.py:31
↓ 25 callersFunction_frame
(rows: list[list[float]], dates: int | None = None)
agent/tests/factors/test_base.py:32
↓ 25 callersFunction_info_table
Render an information-table XML document from row dicts. Issuer names are XML-escaped because real filings carry ampersands (``National Fire
agent/tests/test_institutional_holdings_tool.py:42
↓ 25 callersFunction_install_imap_fakes
Replace ``imaplib.IMAP4``/``IMAP4_SSL`` with recording fakes.
agent/tests/test_email_connection_test.py:70
↓ 25 callersFunction_json_result
(payload: dict[str, Any])
agent/src/tools/trading_connector_tool.py:49
↓ 25 callersFunction_local_client
Return a TestClient that simulates a loopback caller.
agent/tests/test_security_auth_api.py:19
↓ 25 callersFunction_open_market
An unsettled binary market as gamma serializes it.
agent/tests/test_prediction_market_tool.py:31
↓ 25 callersMethod_parse_response
Convert a LangChain AIMessage (or AIMessageChunk) to ``LLMResponse``. Single source for reasoning: ``additional_kwargs["reasoning_content"]``
agent/src/providers/chat.py:664
↓ 25 callersFunction_request
(**overrides)
agent/tests/test_paper_order_lifecycle.py:33
↓ 25 callersFunction_response
Build a minimal stand-in for a ``requests.Response``. Args: text: Body used by the XML path. payload: Object returned by ``.json(
agent/tests/test_research_papers_tool.py:164
↓ 25 callersFunctionassign_ids
Assign stable ids to a batch of requests. Explicit ids are honoured and must be unique; requests without an id get ``pt-<index>`` in list ord
agent/src/tools/paper_trade/order_lifecycle.py:106
↓ 25 callersMethodcommit
(self)
agent/tests/test_session_search_concurrent_consumers.py:93
↓ 25 callersMethodfrom_mapping
Build a table from ``{(base_currency, date): rate}`` pairs. Args: mapping: Each value is units of ``quote_currency`` per 1 unit o
agent/src/entities/cashflow.py:589
↓ 25 callersFunctionget_llm_credentials
Resolve API key, base URL, and model from provider/model env vars. Centralizes the ``provider → env_var_name → os.getenv → credential`` chain
agent/src/providers/capabilities.py:386
↓ 25 callersFunctionget_provider_capabilities
Return the capability record for a provider/model pair. Args: provider: Configured provider name. model: Configured model name, u
agent/src/providers/capabilities.py:304
↓ 25 callersMethodlist_entries
Return all persisted memory entries, filename-sorted.
agent/src/memory/persistent.py:317
↓ 25 callersFunctionpatch_module_os
Point ``module.os`` at a stand-in carrying ``overrides``. Args: monkeypatch: The test's ``monkeypatch`` fixture. module: The modu
agent/tests/module_os_helpers.py:31
↓ 25 callersMethodrefresh
Return the scripted snapshot or raise the scripted error.
agent/tests/test_cli_portfolio.py:36
↓ 25 callersMethodrequire_positions
Return holdings positions, refusing any other export outright. Returns: The parsed positions, possibly empty for an empty portfol
agent/src/portfolio/extraetf.py:219
↓ 25 callersFunctionvalidate_payload
Validate ``payload`` against a contract schema; return error strings. Empty list = valid. Deterministic order: schema-declared order for req
agent/src/tools/paper_trade/schema.py:652
↓ 24 callersFunction_build_runner
Build a runner wired entirely to the tracker stubs, with overrides.
agent/tests/test_runtime_runner.py:146
↓ 24 callersMethod_handle_message
Handle an incoming message: check permissions, issue pairing codes in DMs, or forward to bus.
agent/src/channels/base.py:254
↓ 24 callersFunction_make_engine
(**overrides)
agent/tests/test_china_a_engine.py:49
↓ 24 callersFunction_run
(**kwargs: Any)
agent/tests/test_orderbook_depth_tool.py:56
↓ 24 callersFunction_sdk_config
Build an SDK config, preferring one connection's OS-vault credentials. A connection-scoped call never receives raw credentials from MCP or Web
agent/src/trading/service.py:81
↓ 24 callersMethodactivate
Move a ``new`` order to ``open`` (accepted for matching).
agent/src/tools/paper_trade/order_lifecycle.py:169
↓ 24 callersMethodclose
Best-effort release of HTTP clients owned by this adapter. LangChain may lend multiple adapters the same cached HTTPX clients. Those
agent/src/providers/chat.py:359
↓ 24 callersMethodcorrection_prompt
Build per-figure feedback for one rejected model draft (spec 6). Each rejected figure gets one line: the figure as written, the role it
agent/src/agent/grounding/release.py:176
↓ 24 callersMethodfind_relevant
Keyword search across all entries, weighted by importance.
agent/src/memory/persistent.py:366
↓ 24 callersFunctiongetChartTheme
()
frontend/src/lib/chart-theme.ts:59
↓ 24 callersFunctionmake
(**overrides)
agent/tests/test_background_store_recovery.py:25
↓ 24 callersFunctionobserved_over
Mask of the cells whose every input was observed on each of its last ``n`` bars. A comparison or ``np.fmin`` turns an operand that is missing bec
agent/src/factors/base.py:423
↓ 24 callersMethodon_bar
(self, symbol, bar, timestamp)
agent/tests/test_plan_rejected.py:423
↓ 24 callersMethodremove
Remove a memory entry by title or filename stem. One title can exist under several memory types, each in its own file (``{memory_type
agent/src/memory/persistent.py:649
↓ 24 callersMethodtick
Run one poll/dispatch pass. Args: now_ms: Optional explicit reference time. Defaults to ``now_fn``.
agent/src/scheduled_research/executor.py:287
↓ 23 callersFunction_install
Monkeypatch ``_fetch_raw_book`` to return ``book`` and record call args.
agent/tests/test_orderbook_depth_tool.py:44
↓ 23 callersFunction_make_engine
(**overrides)
agent/tests/test_global_futures_engine.py:47
↓ 23 callersFunction_make_server_config
Create a minimal MCPServerConfig-like object for testing.
agent/tests/test_mcp_specs_cache.py:33
↓ 23 callersFunction_raw_book
Build a ccxt-shaped OrderBook dict, as ``fetch_order_book`` returns it.
agent/tests/test_orderbook_depth_tool.py:27
↓ 23 callersFunction_spec
(**overrides: object)
agent/tests/scheduling/test_system_jobs.py:55
↓ 23 callersFunction_trip_with_timestamp
(broker: str | None, tripped_at: str)
agent/tests/test_sweep_latch.py:35
↓ 23 callersFunctionappend_record
Append one hash-chained record to a JSONL ledger, durably. Reads and verifies the ledger's ENTIRE existing chain under an exclusive advisory
agent/src/governance/ledger.py:369
↓ 23 callersFunctionbar_returns
Per-bar simple returns, defined only where the prior price is positive. ``close.pct_change()`` silently assumes ``price[t-1] > 0``. That holds fo
agent/backtest/metrics.py:255
↓ 23 callersFunctionbroker_dir
Return the per-broker state directory under the live root. Args: broker: Broker key, e.g. ``"robinhood"``. Normalized to lower-case and
agent/src/live/paths.py:33
↓ 23 callersFunctionbs_greeks
Compute the five Black-Scholes-Merton Greeks. Args: S: Underlying spot price. K: Strike price. T: Time to expiry in years
agent/src/quantlib/options.py:268
↓ 23 callersFunctioncommit_mandate
Write a mandate — the ONLY code path that activates live-trading authority. Re-validates that ``proposal_id`` is live and that the resolved profi
agent/src/live/mandate/commit.py:400
↓ 23 callersMethodconnect
(self, host, port, *, clientId, timeout, readonly=True, account="")
agent/tests/test_ibkr_local.py:41
↓ 23 callersMethodemit
Build and publish an event in one step. Args: session_id: Session ID. event_type: Event type. data: Event
agent/src/session/events.py:171
↓ 23 callersFunctionload_pending_action
Load strict pending evidence; malformed state raises and fails closed.
agent/src/live/pending_action.py:267
↓ 23 callersFunctionredact_payload
Recursively redact sensitive keys in a structured payload. Walks dicts and lists; any dict value whose key :func:`is_sensitive_arg` marks sen
agent/src/tools/redaction.py:354
↓ 23 callersFunctionsample
(n_rows=3, times=None)
agent/tests/quantlib/test_neutralization.py:24
↓ 23 callersMethodsave_task
Save or overwrite task state. Args: task: SwarmTask instance.
agent/src/swarm/task_store.py:48
↓ 23 callersMethodsubmit
(prompt: string)
frontend/src/components/chat/Composer.tsx:61
↓ 23 callersFunctionxirr
Money-weighted return of an irregularly dated cash-flow series. Solves ``sum(amount_i / (1 + r) ** t_i) == 0`` where ``t_i`` is the year offs
agent/src/quantlib/fundmath.py:491
↓ 22 callersFunction_block
Render a figures block, which every draft with a role needs.
agent/tests/test_grounding_release.py:145
↓ 22 callersFunction_capture_kwargs
Run build_llm in a replaced environment and return the adapter kwargs. Args: env: Full environment for the call; every other variable is
agent/tests/test_llm_reasoning_effort.py:91
↓ 22 callersFunction_codes
(outcome)
agent/tests/test_paper_trade_rejections.py:108
↓ 22 callersFunction_job
( job_id: str = "job-001", *, schedule: str = "1000", next_run_at: int = 0, status: JobSta
agent/tests/test_scheduled_research_executor.py:35
↓ 22 callersFunction_load_module_from_file
Load a Python module from a file path via importlib. Args: file_path: Path to the ``.py`` file. module_name: Logical module name.
agent/backtest/runner.py:220
↓ 22 callersFunction_make_equity
Create a synthetic equity curve.
agent/tests/test_validation.py:59
↓ 22 callersFunction_store
(tmp_path: Path)
agent/tests/test_goal_store.py:21
↓ 22 callersFunction_with_profile
Add connector profile metadata to an operation payload.
agent/src/trading/service.py:1442
↓ 22 callersFunctioncalls
()
agent/tests/claude_cli_helpers.py:83
↓ 22 callersMethodcreate_session
Create and persist a session. Args: session: Session instance to create. Returns: The persisted Session.
agent/src/session/store.py:63
↓ 22 callersMethodend
The source offset where a normalized span ending at ``index`` ends.
agent/src/agent/grounding/figures.py:289
↓ 22 callersFunctionextract_data_points
Extract recognizable financial data points from a markdown report. Covers multi-column tables and ``label: value unit`` lines. De-duplicates
agent/src/tools/report_audit_tool.py:213
↓ 22 callersFunctioninfer_market
Infer market key from a ticker symbol. Resolution order: 1. Crypto pair spellings (``BTC-USDT``, ``ETH/USD`` …). 2. Explicit exchange su
agent/backtest/correlation.py:20
↓ 22 callersMethodkill
(self)
agent/tests/test_bash_tool.py:30
↓ 22 callersFunctionload_config
Load eToro settings from ``~/.vibe-trading/etoro.json`` and env fallbacks.
agent/src/trading/connectors/etoro/client.py:151
↓ 22 callersFunctionpair_trades_fifo
Pair buys and sells per symbol using FIFO to compute per-roundtrip PnL. Reversal fees are shared proportionally between the closing quantity and
agent/src/tools/trade_journal_tool.py:76
↓ 22 callersMethodregister_artifact
Register a new artifact, assigning an ID and timestamps. Returns: The assigned ``artifact_id``.
agent/src/strategy_store/store.py:191
↓ 22 callersMethodrender
Build the Rich renderable shown while the run is active.
agent/cli/_legacy.py:795
↓ 22 callersFunctionrun_bench_strict
Strict-mode bench: like ``run_bench`` but with mandatory random control. Args: zoo: Zoo id (e.g. ``alpha101``, ``gtja191``, ``qlib158``,
agent/src/factors/bench_runner_strict.py:319
↓ 22 callersMethodupsert_rows
Insert or replace evidence rows. Returns the number of rows written. Raises: ValueError: When any row carries a NaN/Inf numeric f
agent/src/strategy_discovery/evidence_store.py:234
↓ 22 callersFunctionwrite_live_action
Fan a redacted live-action record out to up to three sinks (SPEC §5). The record is redacted via :func:`src.tools.redaction.redact_payload` FIRST
agent/src/live/audit.py:248
↓ 21 callersFunction_cn_a
(cash=100000.0, positions=(), orders=(), frames=None, symbols=None, open_days=frozenset({_DAY}), fro
agent/tests/test_paper_trade_rejections.py:82
↓ 21 callersFunction_codes
(result: ValidationResult)
agent/tests/test_grounding_release.py:137
↓ 21 callersFunction_make_trades
Create TradeRecord list from PnL values.
agent/tests/test_validation.py:34
↓ 21 callersFunction_mandate
(expires_in_days: int = 30, **caps_overrides: Any)
agent/tests/test_mandate_enforcement.py:95
↓ 21 callersFunction_run_adjustments
( engine: _AdjustmentEngine, weights: dict[str, list[float]], *, execution_prices: dict[str, l
agent/tests/test_base_engine.py:73
↓ 21 callersFunction_store
(tmp_path: Path)
agent/tests/scheduling/test_system_jobs.py:51
↓ 21 callersFunction_strict_engine
(**overrides)
agent/tests/test_crypto_engine.py:54
↓ 21 callersFunctionchannel_field_hints
Return UI field metadata for one channel. Hand-written hints win when present; otherwise the adapter's ``default_config()`` is inspected. Unk
agent/src/channels/config_meta.py:431
↓ 21 callersMethodcheck
(self, task_id: Optional[str] = None)
agent/src/tools/background_tools.py:460
↓ 21 callersMethodlist_jobs
Return jobs, optionally filtered by status. Args: status: When provided, include only jobs whose status matches this
agent/src/scheduled_research/store.py:198
↓ 21 callersFunctionprice_caliber
Return the adjustment caliber of ``source``'s served prices. Args: source: Loader that served the prices. market: Market the symb
agent/backtest/loaders/registry.py:376
↓ 21 callersMethodresult
(self, name)
agent/tests/test_readonly_replay_after_microcompact.py:203
↓ 21 callersFunctionsplit_values_secrets
Split a raw config section into non-secret values and masked secrets. Each key is classified via :func:`is_secret_key`: a hand-written hint's
agent/src/channels/config_meta.py:495
↓ 20 callersFunction_block
(*rows: str)
agent/tests/test_grounding_figures_contract.py:94
↓ 20 callersFunction_is_china_futures
Check whether a futures code belongs to a Chinese exchange. Recognises two forms: 1. ``<product><delivery>.<exchange>`` where exchange is o
agent/backtest/engines/_market_hooks.py:384
↓ 20 callersFunction_module_name
Return a unique module name for import tests.
agent/tests/test_backtest_runner_security.py:12
↓ 20 callersFunction_place
(connector, **place_kwargs)
agent/tests/test_sdk_order_gate.py:143
↓ 20 callersFunction_run_visitor
Parse *source*, run the visitor, return (violations, warnings).
tools/test_ci_env_var_gate.py:32
↓ 20 callersFunction_store
(tmp_path: Path)
agent/tests/test_scheduled_research_executor.py:31
↓ 20 callersFunction_strict_frame
( dates: pd.DatetimeIndex, *, price: float = 100.0, mark: list[float] | None = None, execu
agent/tests/test_crypto_engine.py:69
↓ 20 callersFunction_strict_json_loads
(text: str)
agent/tests/test_strategy_discovery_refresh.py:51
↓ 20 callersFunction_tool
()
agent/tests/test_strategy_discovery_refresh.py:81
← previousnext →201–300 of 26,887, ranked by callers