MCPcopy Create free account

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

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

↓ 5 callersFunction_coerce_ids
Normalise the ``alpha_ids`` argument to a clean list of ids. Accepts a list (the contract) or a comma/space-separated string (LLMs occasional
agent/src/tools/alpha_compare_tool.py:21
↓ 5 callersFunction_coerce_str
Coerce frontmatter values to a display string.
agent/src/memory/persistent.py:173
↓ 5 callersFunction_compute_sma
Simple moving average over the last *period* bars.
agent/src/tools/technical_indicator_tool.py:160
↓ 5 callersFunction_config
(codes, start, end, **extra)
agent/tests/test_argentina_backtests.py:123
↓ 5 callersFunction_console
Return the shared CLI console.
agent/cli/commands/research_playbook.py:64
↓ 5 callersMethod_convert_messages_to_history
Convert Session messages into OpenAI-format history. Keeps the readable ``[prev_run: {run_id}]`` marker instead of removing it comple
agent/src/session/service.py:807
↓ 5 callersFunction_cotahist_line
Build one 245-char COTAHIST type-01 record.
agent/tests/test_br_data.py:22
↓ 5 callersFunction_create_memory_file
Old, low-quality entry — qualified for archival (age > 7d, imp < 0.15). Frontmatter shape mirrors test_memory_gc.py's helper.
agent/tests/scheduling/test_memory_consolidation_job.py:61
↓ 5 callersFunction_dates
(kwargs: dict)
agent/src/tools/br_market_data_tool.py:48
↓ 5 callersFunction_day
(value: Any)
agent/backtest/engines/argentina_equity.py:360
↓ 5 callersFunction_decimal
(value: Any, default: Decimal = Decimal("0"))
agent/src/portfolio/normalization.py:38
↓ 5 callersFunction_deny
Audit + return a refusal for a pre-check / structural DENY.
agent/src/live/sdk_order_gate.py:810
↓ 5 callersFunction_deny_prefixes
Tool-name prefixes never offered to the model; ``""`` disables the list.
agent/src/providers/tool_policy.py:33
↓ 5 callersFunction_dhan_client
(cfg: DhanConfig)
agent/src/trading/connectors/dhan/sdk.py:583
↓ 5 callersFunction_discover_subclasses
Import all modules in this package, then collect BaseTool subclasses. Results are cached after the first call. Returns: List of conc
agent/src/tools/__init__.py:35
↓ 5 callersMethod_dispatch
(self, argv: List[str])
agent/tests/test_cli_runtime.py:133
↓ 5 callersFunction_dispatch_connector
Route parsed ``connector`` subcommands.
agent/cli/_legacy.py:5325
↓ 5 callersFunction_emit
Emit a swarm event via callback if provided. Args: callback: Optional event callback function. event_type: Event type string.
agent/src/swarm/worker.py:124
↓ 5 callersFunction_engine
(*, allow: bool)
agent/tests/test_nonpositive_prices.py:140
↓ 5 callersFunction_engine_equity_frame
equity.csv exactly as backtest/engines/base.py::_write_artifacts.
agent/tests/test_strategy_discovery_harness.py:103
↓ 5 callersFunction_envelope
Serialize a facade envelope defensively. The facade contract returns ``{"status": "ok", ...}`` or ``{"status": "error", "error": ...}`` dicts
agent/src/tools/strategy_discovery_tool.py:58
↓ 5 callersFunction_envelope
(**overrides)
agent/tests/test_paper_trade_schema.py:120
↓ 5 callersFunction_envelope
Extract the JSON envelope from mixed stdout (banner lines + JSON).
agent/tests/test_alpha_bench_strict_cli.py:81
↓ 5 callersMethod_equity
(self)
agent/tests/test_metrics.py:579
↓ 5 callersFunction_err
(msg: str)
agent/src/tools/strategy_discovery_tool.py:46
↓ 5 callersFunction_error
(exc: Exception)
agent/src/tools/sdm_status_tool.py:29
↓ 5 callersFunction_error
Serialize the error envelope: ``{"ok": false, "error", "hint"}``.
agent/src/tools/run_artifact_tool.py:80
↓ 5 callersFunction_error
Build the failure envelope as a JSON string. Args: message: Human-readable error description. Returns: A ``{"ok": false, "er
agent/src/tools/etf_holdings_tool.py:218
↓ 5 callersFunction_error
(cfg: EtoroConfig, message: str, **extra: Any)
agent/src/trading/connectors/etoro/copy_trading.py:32
↓ 5 callersFunction_error
Fail-closed error payload carrying profile/guard context.
agent/src/trading/connectors/mt5/reads.py:58
↓ 5 callersMethod_error
Render a failure envelope as a JSON string. Args: message: Human-readable error text. Returns: ``{"ok": fals
agent/src/tools/stock_news_tool.py:431
↓ 5 callersFunction_error_envelope
The shape MCPServerAdapter.call_tool returns instead of raising.
agent/tests/test_runtime_flatten.py:370
↓ 5 callersFunction_evaluate_formula
Evaluate a numeric ``+ - * /`` expression without executing code. Args: expression: An arithmetic run, possibly using ``× ÷ −`` and comma
agent/src/agent/grounding/policies.py:299
↓ 5 callersFunction_exchange_cross
(**changes: object)
agent/tests/test_binance_account_reconciliation.py:75
↓ 5 callersFunction_expected_row
Return the coerced form of equity.csv data row ``i``.
agent/tests/test_run_artifact_tool.py:40
↓ 5 callersFunction_extract_items
(payload: Any)
agent/src/trading/connectors/trading212/sdk.py:500
↓ 5 callersFunction_fact_row
( end: str, filed: str, value: float, *, form: str = "10-Q", start: str | None = None,
agent/tests/test_fundamentals_gross_profit_fallback.py:32
↓ 5 callersFunction_facts
(concept_rows: dict[str, list[dict[str, object]]])
agent/tests/test_fundamentals_gross_profit_fallback.py:21
↓ 5 callersFunction_fake_ai_message
Build the smallest object that quacks like a LangChain AIMessage.
agent/tests/test_swarm_token_tracking.py:33
↓ 5 callersFunction_fetch
(symbols: list[str])
agent/tests/test_paper_trade_golden_us.py:52
↓ 5 callersMethod_field_sources
Observed values of the evidence field ``field`` names, for ``symbol``. ``field`` is a full path (``data.tail_risk.var_95``) or its trailing
agent/src/agent/grounding/policies.py:960
↓ 5 callersFunction_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/trading212/sdk.py:527
↓ 5 callersFunction_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/tiger/sdk.py:651
↓ 5 callersFunction_fixture_frame
()
agent/tests/test_paper_trade_corporate_actions.py:70
↓ 5 callersFunction_frame
Build a signed weight frame from {date: [w...]} shorthand.
agent/tests/test_constraints.py:18
↓ 5 callersFunction_frame
(start, end, base, drift=0.0, ex=None, factor=1.0, placeholders=())
agent/tests/test_argentina_backtests.py:65
↓ 5 callersFunction_frame
Build a 2-date x 3-symbol frame from per-date row values.
agent/tests/factors/test_fundamental_expansion_price_samples.py:37
↓ 5 callersFunction_fts_hits
(index: SessionSearchIndex, term: str)
agent/tests/test_session_delete_clears_search_index.py:66
↓ 5 callersMethod_generate
(self, *args: object, **kwargs: object)
agent/tests/test_llm.py:403
↓ 5 callersFunction_generated
Execute the generated module and return its namespace.
agent/tests/test_shadow_codegen_condition_bounds.py:78
↓ 5 callersMethod_get_evidence_store
Return the evidence store, constructing the default lazily.
agent/src/strategy_discovery/facade.py:166
↓ 5 callersMethod_get_exchange
Create an exchange instance for spot or Binance USD-M swaps.
agent/backtest/loaders/ccxt_loader.py:219
↓ 5 callersFunction_get_existing_session_or_404
Return (service, session) or raise 404.
agent/src/api/sessions_routes.py:429
↓ 5 callersFunction_get_goal_store
Return the shared finance goal store.
agent/mcp_server.py:365
↓ 5 callersFunction_get_goal_store
Return the shared goal store, lazily initialized.
agent/cli/commands/goal.py:26
↓ 5 callersFunction_get_hypothesis
Return a hypothesis by id, or None when absent.
agent/src/tools/autopilot_tool.py:32
↓ 5 callersFunction_get_swarm_store
()
agent/mcp_server.py:2892
↓ 5 callersFunction_git
Run Git in an isolated test repository.
tools/test_ci_private_files_gate.py:13
↓ 5 callersFunction_group_selection_by_currency
Group a per-market selection by settlement currency. The composite backtest engine refuses a code set that spans currencies (its shared capit
agent/src/shadow_account/backtester.py:96
↓ 5 callersFunction_handle_exception
Print one-line error; emit traceback only when ``--verbose`` is set.
agent/src/factors/cli_handlers.py:168
↓ 5 callersFunction_handle_proposal_reply
Intercept a reply while a mandate proposal is outstanding. Must be called only when ``ctx.pending_proposal`` is set. A bare numeric pick is a
agent/cli/main.py:1254
↓ 5 callersFunction_hold_run
Two bars in hold mode: bar 1 opens what bar 0 did not hold.
agent/tests/test_plan_rejected.py:353
↓ 5 callersFunction_host_validate_path_param
(value: str, kind: str)
agent/src/api/scheduled_routes.py:469
↓ 5 callersFunction_inputs
(flip: bool)
agent/tests/test_turnover_direction_changes.py:11
↓ 5 callersFunction_install
( monkeypatch: pytest.MonkeyPatch, pro: _FakeTusharePro )
agent/tests/test_alpha_bench_csi300_sector.py:100
↓ 5 callersFunction_internal_roots
Return the internal root prefixes to hide, longest first. Memoized per working directory rather than globally: a set cached on first call wou
agent/src/tools/redaction.py:216
↓ 5 callersFunction_intraday
( labels: list[str], *, price: float = 10.0, volume: float = 120_000.0, all_nan: bool = False )
agent/tests/test_paper_trade_5m_payload.py:51
↓ 5 callersFunction_is_cjk
Whether a character is in the CJK ideograph range.
agent/src/agent/grounding/figures.py:1124
↓ 5 callersFunction_is_crypto
Detect crypto symbols (e.g. BTC-USDT, ETH/USDT).
agent/backtest/loaders/tushare.py:110
↓ 5 callersFunction_is_empty_code
True for None/NaN/blank securities codes from CSV/Excel cells.
agent/src/tools/trade_journal_parsers.py:281
↓ 5 callersFunction_is_hk_equity
Detect Hong Kong equity symbols (e.g. 00700.HK).
agent/backtest/loaders/tushare.py:100
↓ 5 callersFunction_is_intraday_interval
Return whether *interval* is finer than one day (minute/hour bars). Daily-and-coarser intervals (``1D``/``1W``/``1M``) carry no meaningful in
agent/backtest/loaders/yahoo_loader.py:90
↓ 5 callersMethod_is_model_written
Whether the model wrote ``path`` itself in this run.
agent/src/agent/grounding/evidence.py:1094
↓ 5 callersFunction_is_registered_price_indicator
Whether a tool registered this leaf as a price-denominated level. Args: tool: The tool whose result produced the evidence record.
agent/src/agent/grounding/evidence.py:507
↓ 5 callersFunction_is_us_equity
Detect US equity symbols (e.g. AAPL.US).
agent/backtest/loaders/tushare.py:105
↓ 5 callersFunction_job_to_response
Flatten a job for the wire, delivery record included. ``to_dict`` nests the outbox row; the API keeps it flat because the list view reads it
agent/src/api/scheduled_routes.py:408
↓ 5 callersFunction_json_error
Return a standard JSON error envelope.
agent/src/tools/goal_tool.py:16
↓ 5 callersFunction_json_safe
(value: Any)
agent/src/market_data.py:189
↓ 5 callersFunction_last500_api
Fake `_request_page` honouring the REAL Tencent fqkline contract. The API serves the LAST ≤_PAGE_SIZE bars of [start, end], not the first (ve
agent/tests/test_tencent_loader.py:146
↓ 5 callersFunction_ledger
(tmp_path: Path, payload: dict)
agent/tests/test_grounding_generic_timestamps.py:13
↓ 5 callersFunction_list_provider_models
Best-effort live model discovery with a safe editable fallback.
agent/src/api/settings_routes.py:415
↓ 5 callersFunction_load_node
(name: str, node_type: type[ast.AST], namespace: dict)
agent/tests/test_ml_strategy_skill.py:18
↓ 5 callersFunction_local_name
Strip the XML namespace from a tag, returning its local name.
agent/src/tools/etf_holdings_tool.py:527
↓ 5 callersFunction_login
Login to Shoonya API with TOTP authentication. Sessions are cached per ``user_id`` so distinct accounts never share an authenticated client.
agent/src/trading/connectors/shoonya/sdk.py:562
↓ 5 callersFunction_login
Return an authenticated KiteConnect client (access_token set).
agent/src/trading/connectors/zerodha/sdk.py:230
↓ 5 callersFunction_make_agent_spec
(max_retries: int)
agent/tests/test_swarm_retry_artifact_isolation.py:56
↓ 5 callersFunction_make_context
(**overrides: Any)
agent/tests/test_advisory.py:153
↓ 5 callersMethod_make_event
Create a SwarmEvent with current timestamp. Args: event_type: Event type string. agent_id: Optional agent identifier.
agent/src/swarm/runtime.py:491
↓ 5 callersFunction_make_frontend_with_vite
Create a fake frontend directory with a placeholder Vite binary so that ``cmd_dev``'s pre-flight check (``node_modules/.bin/vite``) passes dur
agent/tests/test_cli_setup_dev.py:270
↓ 5 callersFunction_make_run_dir
(root: Path, name: str, metrics_row: str = _METRICS_ROW)
agent/tests/test_backtest_records_bench.py:80
↓ 5 callersFunction_make_runtime
Build a SwarmRuntime backed by a tmp-path SwarmStore.
agent/tests/test_swarm_m1_config_plumbing.py:25
↓ 5 callersFunction_make_runtime
(tmp_path: Path)
agent/tests/test_swarm_retry_artifact_isolation.py:51
↓ 5 callersFunction_make_store
(tmp_path)
agent/tests/test_strategy_discovery_facade.py:157
↓ 5 callersFunction_managed_accounts
(ib: Any)
agent/src/trading/connectors/ibkr/local.py:610
↓ 5 callersFunction_manifest_entry
Build a run_card manifest entry for a file on disk (run_card 1.0 shape).
agent/tests/test_run_artifact_tool.py:75
↓ 5 callersFunction_mcp_guard
(live_runtime: Path, adapter, *, max_order_notional_usd: float = 750.0)
agent/tests/test_limit_price_notional.py:147
↓ 5 callersFunction_measured_bars_per_year
The docstring contract, computed independently of the implementation.
agent/tests/test_effective_bars_per_year_span.py:24
↓ 5 callersFunction_metrics
(port_returns, bench_returns)
agent/tests/test_metrics_tracking_error.py:28
↓ 5 callersFunction_ms
Epoch milliseconds for a wall-clock instant in a named timezone.
agent/tests/test_runtime_triggers.py:27
↓ 5 callersFunction_normalize
Convert a raw pykrx OHLCV frame into the project's canonical shape. Args: frame: pykrx output — date-indexed with Korean column names
agent/backtest/loaders/pykrx_loader.py:167
← previousnext →1,701–1,800 of 26,887, ranked by callers