MCPcopy Create free account

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

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

↓ 7 callersMethod_connect
Yield one short-lived connection; commit on success, rollback on error.
agent/src/strategy_discovery/evidence_store.py:218
↓ 7 callersFunction_contribution
Wrap one client contribution of ``size`` in a series. The amount is negated because ``CashFlow`` is holder-perspective: money the client pays
agent/tests/quantlib/test_performance.py:70
↓ 7 callersMethod_convert_chunk_to_generation_chunk
( # type: ignore[override] self, chunk: dict, default_chunk_class: type,
agent/src/providers/adapters/openai.py:417
↓ 7 callersFunction_daily_tape
(*symbols: str, day_close: float = 1422.0)
agent/tests/test_paper_trade_5m_session.py:131
↓ 7 callersMethod_db
(self)
agent/src/pixel_agents/office.py:89
↓ 7 callersFunction_detail
(status, artifact_id)
agent/tests/test_sdm_governance_wiring.py:38
↓ 7 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:39
↓ 7 callersMethod_dispatch
(self, argv: list[str])
agent/tests/test_cli_live.py:121
↓ 7 callersFunction_display_seqs
(thread: ThreadLog, after: int = 0)
agent/tests/test_session_thread_events.py:82
↓ 7 callersFunction_email_section
(**overrides: Any)
agent/tests/test_channels_config_api.py:147
↓ 7 callersMethod_emit
Fire an event via the callback.
agent/src/agent/runtime.py:437
↓ 7 callersFunction_engine
(*codes: str)
agent/tests/test_china_futures_pricing_assumptions.py:38
↓ 7 callersFunction_engine
( lots: dict[str, int] | None = LOTS, market: str = "hk", initial_cash: float = 1_000_000, )
agent/tests/test_global_equity_hk_lot_sizes.py:21
↓ 7 callersMethod_env
Return a minimal official-endpoint Moonshot environment.
agent/tests/test_llm_reasoning_effort.py:335
↓ 7 callersMethod_env
Return a minimal Anthropic environment with optional overrides.
agent/tests/test_llm_reasoning_effort.py:465
↓ 7 callersFunction_error
(message: str)
agent/src/tools/br_market_data_tool.py:57
↓ 7 callersFunction_execute_data_result
Execute one fake MCP tool with a parsed FastMCP result.
agent/tests/test_mcp_client_adapter.py:351
↓ 7 callersMethod_execution_commission
Apply the declared experiment multiplier to execution fees and taxes.
agent/backtest/engines/base.py:690
↓ 7 callersMethod_execution_price
Apply extra adverse slippage before the venue's tick-grid rounding.
agent/backtest/engines/base.py:697
↓ 7 callersFunction_existing_uploads
(uploads_dir: Path)
agent/tests/test_upload_api.py:27
↓ 7 callersFunction_extract_data
Return the ``data`` list from an OKX response, or ``[]`` defensively. python-okx returns a dict shaped ``{"code": "0", "data": [...]}`` on succes
agent/src/trading/connectors/okx/sdk.py:686
↓ 7 callersFunction_factors
(values)
agent/tests/test_alpha_bench_qfq.py:38
↓ 7 callersFunction_fake_response
(payload: dict, status_ok: bool = True)
agent/tests/test_research_reports_tool.py:64
↓ 7 callersFunction_fetch
(frames: dict[str, pd.DataFrame], symbols: list[str], day: str = _DAY)
agent/tests/test_paper_trade_golden_cn_a.py:78
↓ 7 callersMethod_figure_issue
Build one figure-scoped issue with value, role, span, symbol and reason.
agent/evals/grounding/policies.py:727
↓ 7 callersFunction_figures
(*rows: str)
agent/tests/test_grounding_numeric_locale_rounding.py:41
↓ 7 callersFunction_fixture
Return the hand-built four-sector single-period attribution. Returns: The :class:`BrinsonResult` for the module-level fixture.
agent/tests/quantlib/test_attribution.py:34
↓ 7 callersFunction_frame
(closes, volumes=None, start="2024-01-01")
agent/tests/test_additive_conversion.py:17
↓ 7 callersFunction_get
Perform a read-only GET request against the Trading 212 REST API.
agent/src/trading/connectors/trading212/sdk.py:393
↓ 7 callersFunction_group_codes_by_market
Group symbols by detected market type. Args: codes: List of symbol strings. Returns: Mapping market_type -> list of codes.
agent/backtest/runner.py:955
↓ 7 callersMethod_growing_equity
Equity that grows linearly from 1M to 1.2M (20% return).
agent/tests/test_metrics.py:352
↓ 7 callersFunction_guard
(adapter: _GateBroker)
agent/tests/test_robinhood_live_account_binding.py:73
↓ 7 callersFunction_guarded_probe_app
(allowed_hosts)
agent/tests/test_mcp_host_origin_guard.py:137
↓ 7 callersMethod_handle_watch_payload
(self, payload: dict[str, Any], target_kind: str)
agent/src/channels/mochat.py:682
↓ 7 callersFunction_history_after_turn_one
Loop messages after turn one ran, built by the loop's own helpers.
agent/tests/test_openai_codex_replay.py:88
↓ 7 callersFunction_host
Return the ``api_server`` module for late-access attribute reads. Tests monkeypatch ``ENV_PATH``, ``ENV_EXAMPLE_PATH``, ``_baostock_supported``
agent/src/api/settings_routes.py:163
↓ 7 callersFunction_host_RUNS_DIR
()
agent/src/api/runs_routes.py:873
↓ 7 callersFunction_install_fake_ib
(monkeypatch: pytest.MonkeyPatch, ib_cls)
agent/tests/test_ibkr_local.py:360
↓ 7 callersFunction_install_runner
Stub the runner factory; return the ``_StubScheduler`` the runner starts.
agent/tests/test_api_live_runtime.py:361
↓ 7 callersMethod_instance
(self, model: str = "kimi-k2-thinking")
agent/tests/test_kimi_reasoning_content.py:316
↓ 7 callersFunction_int_or_none
Coerce an optional whole-number argument, rejecting malformed input. Args: value: Raw argument value; ``None`` and ``""`` mean "not suppl
agent/src/tools/trading_connector_tool.py:108
↓ 7 callersFunction_intraday
(day: str, prices: dict[str, float], auction: float | None = None)
agent/tests/test_paper_trade_5m_engine.py:51
↓ 7 callersFunction_is_number
Return whether a value is a finite JSON-style number, excluding bool.
agent/evals/grounding/evidence.py:392
↓ 7 callersFunction_job
(job_id: str, **overrides)
agent/tests/test_scheduled_delivery_stale_snapshot.py:36
↓ 7 callersFunction_labels
(day: str = _DAY)
agent/tests/test_paper_trade_5m_session.py:36
↓ 7 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
↓ 7 callersFunction_leaf_name
The last field name of an evidence path, without its list index.
agent/evals/grounding/evidence.py:457
↓ 7 callersFunction_ledger
(tmp_path: Path, payload: dict, tool: str = "risk_tool")
agent/tests/test_grounding_numeric_locale_rounding.py:45
↓ 7 callersFunction_load
()
agent/src/channels/pairing/store.py:43
↓ 7 callersFunction_load_equity
Load equity curve from artifacts/equity.csv.
agent/backtest/validation.py:434
↓ 7 callersFunction_loader
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, kind: str)
agent/tests/test_local_loader_source_revision.py:35
↓ 7 callersFunction_make_agent_config
Build an AgentConfig from a server-name → config-dict map.
agent/tests/test_swarm_m2_registry_assembly.py:42
↓ 7 callersFunction_make_mandate
Build a minimal valid mandate with a caller-chosen ``expires_at``.
agent/tests/test_runtime_runner.py:58
↓ 7 callersMethod_make_price_df
Build a DataFrame with trade_date as the index name (like real loaders).
agent/tests/test_correlation.py:223
↓ 7 callersFunction_match
(request, market_data, **kwargs)
agent/tests/test_paper_trade_golden_cn_a.py:93
↓ 7 callersMethod_matches_evidence
Whether a figure equals evidence, at its own scale or a metric's. ``direct`` is compared literally. ``scaled`` absorbs fraction vs percent
agent/evals/grounding/policies.py:1618
↓ 7 callersFunction_meta
(**overrides: Any)
agent/tests/test_factor_gate_fund_prefix.py:16
↓ 7 callersFunction_metrics
(returns)
agent/tests/test_metrics_tail_shape.py:32
↓ 7 callersFunction_ms
(year: int, month: int, day: int, hour: int, minute: int)
agent/tests/test_scheduled_research_executor.py:21
↓ 7 callersFunction_normalize_frame
Normalise a Futu kline DataFrame to the standard OHLCV schema. Args: df: Raw DataFrame returned by ``request_history_kline()``. Retu
agent/backtest/loaders/futu.py:91
↓ 7 callersFunction_normalize_jid
(raw: Any)
agent/src/channels/whatsapp.py:139
↓ 7 callersFunction_normalize_side
Return ``buy``/``sell``/``dividend`` for an exact supported direction alias. Raises: ValueError: Direction is missing or unsupported.
agent/src/tools/trade_journal_parsers.py:207
↓ 7 callersFunction_numbers
Return every integer appearing in a line. Args: line: Text to scan. Returns: The integers found, as strings.
agent/tests/test_readme_counts.py:240
↓ 7 callersMethod_paginate
( self, session: requests.Session, endpoint: str, inst_id: str, start_
agent/backtest/loaders/okx.py:292
↓ 7 callersFunction_panel
(n_rows: int = 60, n_cols: int = 8, seed: int = 0)
agent/tests/factors/test_bench_strict.py:37
↓ 7 callersMethod_patch_fetch_pair
(self, monkeypatch, loader_mod, raw, additive)
agent/tests/test_additive_conversion.py:160
↓ 7 callersMethod_path_for
(self, record: TaskRecord)
agent/src/tools/background_store.py:105
↓ 7 callersFunction_pip_value
Size of 1 pip for the pair. Args: symbol: Forex pair (e.g. 'EUR/USD', 'USD/JPY', 'XAU/USD'). Returns: 1 pip in price terms (
agent/backtest/engines/forex.py:67
↓ 7 callersMethod_plan_rejection_metrics
Summarise opening plans the engine wanted but could not take. A rejected plan is invisible in the result otherwise: the run reports a
agent/backtest/engines/base.py:875
↓ 7 callersFunction_prepare_bench_panel
Load only the declared PIT fundamental inputs for the selected factors. Args: registry: Registry holding the factors being evaluated.
agent/src/tools/alpha_bench_tool.py:1155
↓ 7 callersFunction_prompt
(monkeypatch, minute: int = 0, launch_dir=None)
agent/tests/test_user_instructions.py:255
↓ 7 callersFunction_qualify_a_share
Append .SH/.SZ/.BJ suffix to a bare A-share ticker.
agent/src/tools/trade_journal_parsers.py:293
↓ 7 callersFunction_quote_ctx
Open an ``OpenQuoteContext`` against the local OpenD gateway.
agent/src/trading/connectors/futu/sdk.py:1061
↓ 7 callersFunction_read
(ledger: GroundingLedger, path: Path, call_id: str, *, limit: int | None = None)
agent/tests/test_grounding_backtest_outputs.py:155
↓ 7 callersMethod_record_event
(self, timestamp: pd.Timestamp, event_type: str, **details: Any)
agent/backtest/engines/crypto.py:229
↓ 7 callersMethod_record_fill
Append execution evidence without making it account state.
agent/backtest/engines/base.py:2376
↓ 7 callersMethod_records
Simulate fetch_market_data's real return shape: list of OHLCV dicts.
agent/tests/test_technical_indicator_tool.py:443
↓ 7 callersFunction_ref
(index: int, dotted: bool = False, field: str = "contribution_pct")
agent/tests/test_grounding_indexed_field_refs.py:52
↓ 7 callersMethod_referenced
The evidence named by an exact field, call+field, one call, or one tool. An exact evidence-field ref is accepted only when that field occurs
agent/evals/grounding/policies.py:813
↓ 7 callersFunction_registry
(specs: dict[str, dict])
agent/tests/test_bench_universe_selection.py:30
↓ 7 callersMethod_request
( self, messages: list[Any], timeout: float, **stream_options: Any )
agent/src/providers/copilot_auth.py:404
↓ 7 callersFunction_resolve_acc_id
Resolve and guard the account id by its ``trd_env``. Calls ``get_acc_list()``, keeps rows whose ``trd_env`` matches the profile, and either c
agent/src/trading/connectors/futu/sdk.py:1074
↓ 7 callersFunction_resolve_console
Return the shared CLI console.
agent/cli/commands/goal.py:24
↓ 7 callersFunction_resolve_summary
Return report.md content if it exists, otherwise fall back to text.
agent/src/swarm/node.py:278
↓ 7 callersFunction_risk_frame
( symbol: str = "BTC-USDT-PERP", *, timestamp: pd.Timestamp = pd.Timestamp("2026-07-26T00:00:00Z")
agent/tests/test_perpetual_risk.py:35
↓ 7 callersFunction_run
( tmp_path: Path, *, date: str, same_day: bool = False, warmup_bars: int = 0, expiry:
agent/tests/test_options_next_bar_fill.py:65
↓ 7 callersFunction_run
(market_data, orders=(), *, cash=1000000.0, positions=(), open_days=frozenset({_DAY}), path_model="bar_median"
agent/tests/test_paper_trade_5m_session.py:135
↓ 7 callersMethod_run
(self, monkeypatch, count: int, **kwargs: Any)
agent/tests/test_fred_macro_tool.py:218
↓ 7 callersMethod_run_attempt
Execute an Attempt in the background.
agent/src/session/service.py:643
↓ 7 callersFunction_run_cli
Drive the real argparse dispatcher, returning its exit code.
agent/tests/test_cli_strategy_evidence.py:32
↓ 7 callersFunction_run_dcf_default
(inputs: dict | None = None)
agent/tests/quantlib/valuation/test_artifact.py:103
↓ 7 callersMethod_sanitize_fts_query
Sanitize a user query for FTS5 MATCH syntax.
agent/src/session/search.py:287
↓ 7 callersFunction_save
(store: ResearchArtifactStore, **overrides)
agent/tests/test_research_artifact_comparison.py:10
↓ 7 callersFunction_scripted
Return a fn() that walks through scripted outcomes (return value or raise).
agent/tests/test_loader_retry_helpers.py:58
↓ 7 callersFunction_section_for
Return ``default_config()`` populated with dummies, or None if unloadable.
agent/tests/test_channel_config_meta.py:45
↓ 7 callersFunction_session_id
(client: TestClient, *, title: str = "goal api")
agent/tests/test_goal_api.py:26
↓ 7 callersFunction_session_labels
(day: str = _DAY)
agent/tests/test_paper_trade_5m_engine.py:43
↓ 7 callersFunction_set_key
(monkeypatch: pytest.MonkeyPatch, key: str = "secret")
agent/tests/test_auth_precedence.py:37
↓ 7 callersFunction_settings_store
()
agent/src/api/settings_routes.py:192
↓ 7 callersFunction_setup
(monkeypatch, n_alphas=8, n_days=120)
agent/tests/test_bench_multiple_testing.py:32
← previousnext →1,401–1,500 of 30,405, ranked by callers