MCPcopy Create free account

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

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

↓ 3 callersFunction_run
(tmp_path: Path, worker_result: WorkerResult)
agent/tests/test_swarm_output_contract.py:180
↓ 3 callersFunction_run
(weights: list[float], run_dir: Path)
agent/tests/test_vietnam_backtest_smoke.py:54
↓ 3 callersFunction_run
Run a worker that calls one tool returning ``tool_result`` and return the tool-role message content the LLM was sent on its next turn.
agent/tests/test_swarm_worker_tool_result_truncation.py:76
↓ 3 callersMethod_run
(self, monkeypatch, query, markets_by_exchange, yahoo=None)
agent/tests/test_symbol_search_tool.py:715
↓ 3 callersMethod_run
(self, buy: list[dict[str, Any]], sell: list[dict[str, Any]])
agent/tests/test_dragon_tiger_tool.py:174
↓ 3 callersFunction_run_both_code_orders
(engine_type, weights)
agent/tests/test_base_engine.py:108
↓ 3 callersFunction_run_cli
Drive the real argparse dispatcher, returning its exit code.
agent/tests/scheduling/test_system_job_protection.py:157
↓ 3 callersFunction_run_loop
Run an AgentLoop turn, recording sleep durations. Args: monkeypatch: pytest monkeypatch fixture (patches sleep + delay knobs). tm
agent/tests/test_stream_retry_escalation.py:341
↓ 3 callersFunction_run_one_tool_call
Drive one tool call through ``AgentLoop`` with a real ``TraceWriter``. Args: registry: Stub registry supplying the tool result. t
agent/tests/test_redaction_shared.py:399
↓ 3 callersFunction_run_sequence
()
agent/tests/test_paper_trade_multiday.py:104
↓ 3 callersFunction_run_to_dict
Public projection of a (live-hydrated) :class:`SwarmRun`. ``timed_out`` flips on only for the ``run_swarm`` wait-budget path. It does not cha
agent/mcp_server.py:2900
↓ 3 callersFunction_run_to_wire_text
(payload: dict, market_data, calendar_client=None)
agent/tests/test_paper_trade_determinism.py:135
↓ 3 callersFunction_run_with_metrics
(tmp_path: Path)
agent/tests/test_cli_backtest_summary.py:19
↓ 3 callersFunction_runner_id_for
Return the persistent-runner identity key for ``broker`` (SPEC §7.5).
agent/cli/_legacy.py:3561
↓ 3 callersMethod_runtime
(self)
agent/tests/test_run_outcome_module.py:173
↓ 3 callersFunction_safe_arith
Evaluate a numeric arithmetic expression in the exact-Decimal domain. The expression is parsed and evaluated recursively with Decimal arithmetic,
agent/src/tools/financial_rigor_tool.py:122
↓ 3 callersFunction_safe_call
(obj: Any, name: str)
agent/src/trading/connectors/ibkr/local.py:676
↓ 3 callersFunction_safe_error
Sanitised user-facing error string for unexpected exceptions. Always returns a fixed phrase — never echoes the exception message or type, bot
agent/src/api/alpha_routes.py:128
↓ 3 callersFunction_safe_known_path
(root: Path, relative: str)
agent/evals/harness/artifacts.py:90
↓ 3 callersFunction_safe_read
Call a connector read fn, returning ``None`` on any error (fail-closed).
agent/src/live/sdk_order_gate.py:1002
↓ 3 callersFunction_sanitize_data_map
Drop structurally-invalid OHLC bars from every fetched frame. Each loader only drops NaN rows, so a bar that violates the OHLC invariants (``
agent/backtest/runner.py:2212
↓ 3 callersMethod_save
(self, records: list[Hypothesis])
agent/src/hypotheses/registry.py:382
↓ 3 callersFunction_save_value_workbook
Preserve text literally: these exports contain values, not formulas.
agent/src/quantlib/valuation/artifact.py:1011
↓ 3 callersMethod_scope_from_envelope
(self, envelope: dict[str, Any])
agent/src/channelsui/gateway_services.py:121
↓ 3 callersFunction_scrub_detail
Mask every secret value of *section* found in *text* (defense in depth).
agent/src/api/channels_config_routes.py:291
↓ 3 callersFunction_seat
(name: str, amount: float, trade_id: str, side: str)
agent/tests/test_dragon_tiger_tool.py:155
↓ 3 callersFunction_sec_get_json
GET ``url`` as JSON through the shared SEC-bucket throttle. Args: url: Fully-qualified SEC endpoint URL. Returns: The decode
agent/backtest/loaders/sec_edgar_client.py:81
↓ 3 callersFunction_sector_frame
(labels: list[list] | None = None)
agent/tests/factors/test_fundamental_ind_neutral_samples.py:49
↓ 3 callersMethod_seed_sdm_row
(self, tmp_path, status)
agent/tests/test_strategy_discovery_facade.py:875
↓ 3 callersFunction_seed_web_chat_session
Reproduce what the web composer persists: raw title, wrapped message.
agent/tests/test_session_auto_title_wrapped_prompt.py:104
↓ 3 callersFunction_select_flows
Apply a valuation policy to a series' flows. Args: series: Source series, already date-ordered by its own constructor. valuations
agent/src/quantlib/fundmath.py:196
↓ 3 callersMethod_send
(self, content: str, **flags: Any)
agent/src/channels/attempt_progress.py:28
↓ 3 callersMethod_send_request
Send a JSON-RPC request via HTTP and wait for response.
agent/src/channels/signal.py:1433
↓ 3 callersMethod_send_room_content
Send m.room.message with E2EE options.
agent/src/channels/matrix.py:420
↓ 3 callersMethod_send_typing
Send a typing START/STOP message via signal-cli.
agent/src/channels/signal.py:1381
↓ 3 callersFunction_sends_top_level_reasoning_effort
Combine the allowlist flag with the endpoint-host checks.
agent/src/providers/llm.py:1468
↓ 3 callersFunction_series
()
agent/tests/quantlib/test_fundmath_nonfinite_waterfall_inputs.py:14
↓ 3 callersMethod_series
(self, values: list[float])
agent/tests/test_regime.py:78
↓ 3 callersFunction_service
Build a SessionService against a throwaway runtime root.
agent/tests/test_principal_wiring.py:23
↓ 3 callersFunction_service
(tmp_path: Path, monkeypatch)
agent/tests/test_session_tool_trail.py:29
↓ 3 callersFunction_session_labels
The 48 legitimate continuous labels: 09:35..11:30, 13:05..15:00.
agent/tests/test_paper_trade_5m_payload.py:41
↓ 3 callersFunction_session_labels
(day: str = _DAY)
agent/tests/test_paper_trade_5m_engine.py:39
↓ 3 callersFunction_set_longbridge_environment
(monkeypatch, values)
agent/tests/test_sdk_connectors.py:321
↓ 3 callersMethod_set_typing
Best-effort typing indicator update.
agent/src/channels/matrix.py:699
↓ 3 callersFunction_settlement_bar
(fill: Any)
agent/backtest/engines/argentina_equity.py:376
↓ 3 callersFunction_sha256
(data: bytes)
agent/tests/test_paper_trade_determinism.py:205
↓ 3 callersFunction_sha256_hex
(text: str)
agent/src/governance/ledger.py:130
↓ 3 callersMethod_should_use_reply_in_thread
Return whether a group reply should create a Feishu thread/topic.
agent/src/channels/feishu.py:1675
↓ 3 callersFunction_sig_render_table
Render a markdown pipe-table as fixed-width plain text.
agent/src/channels/signal.py:105
↓ 3 callersFunction_sign_before_currency
Where a sign glued to the left of a number's currency mark stands ("−$1,847.78"). The minus is normalized to "-" before this is read. Args:
agent/src/agent/grounding/figures.py:556
↓ 3 callersFunction_skill_names
()
agent/tests/test_load_skill_paging.py:26
↓ 3 callersFunction_snippet
Trim an article body to a bounded plain-text snippet. Args: text: Raw body/summary value (any type). Returns: A whitespace-c
agent/src/tools/stock_news_tool.py:88
↓ 3 callersFunction_source_names_in_skill
Extract the source names listed in the SKILL.md Source Overview table. Returns: The set of lowercase source identifiers named in the firs
agent/tests/test_data_routing_sources_subset.py:28
↓ 3 callersFunction_spcx_us_ledger
A ledger that locked SPCX.US and observed 8/7–8/12 OHLC bars.
agent/tests/test_agent_grounding.py:1844
↓ 3 callersFunction_spec
()
agent/tests/test_mandate_enforcement.py:75
↓ 3 callersMethod_split_elements_by_table_limit
Split card elements into groups with at most *max_tables* table elements each. Feishu cards have a hard limit of one table per card (API erro
agent/src/channels/feishu.py:1190
↓ 3 callersFunction_split_sentences
Split text into sentences. Handles English period/question/exclamation and Chinese period boundaries. Filters empty results.
agent/src/memory/compression.py:72
↓ 3 callersFunction_sse
(*events: dict)
agent/tests/test_openai_codex_replay.py:62
↓ 3 callersMethod_stop_typing
Stop typing indicator for a chat.
agent/src/channels/weixin.py:1269
↓ 3 callersFunction_stored_section
Return the channel's current on-disk config section.
agent/src/api/channels_config_routes.py:130
↓ 3 callersFunction_strict_json_load
Parse ``text`` rejecting non-RFC-8259 NaN/Infinity tokens.
agent/tests/test_validation.py:352
↓ 3 callersFunction_string_list
Coerce a frontmatter value to a tuple of non-empty strings.
agent/src/scheduled_research/playbooks.py:263
↓ 3 callersMethod_strip_bot_mention
(self, text: str)
agent/src/channels/slack.py:716
↓ 3 callersFunction_strip_model_prefix
(model: str)
agent/src/providers/openai_codex.py:420
↓ 3 callersFunction_strip_rich_tags
Remove Rich markup from plain-text output.
agent/cli/_legacy.py:263
↓ 3 callersFunction_strip_surrogates
Drop unpaired surrogate code points from ``text``.
agent/cli/input.py:66
↓ 3 callersFunction_strip_url_userinfo
Return a URL string without embedded credentials; non-URLs pass through.
agent/src/channels/config_meta.py:488
↓ 3 callersFunction_stub_channel_runtime_deps
Isolate the runtime singleton from real config files and session stores. ``state._get_channel_runtime`` resolves ``load_channels_config`` and
agent/tests/test_channel_runtime_reset.py:18
↓ 3 callersFunction_stub_fetcher
(closes_map: dict[str, list[float]])
agent/tests/test_risk_xray.py:205
↓ 3 callersFunction_stub_panel
(monkeypatch: pytest.MonkeyPatch, n_rows: int = 80, n_cols: int = 8)
agent/tests/factors/test_alpha_compare.py:59
↓ 3 callersFunction_suffix_of
Return the upper-cased exchange suffix of a symbol, or ``""`` when none.
agent/src/tools/stock_news_tool.py:76
↓ 3 callersFunction_summarize_response
(response: requests.Response, *, stream: bool = False)
agent/tests/mcp_http_test_helpers.py:123
↓ 3 callersFunction_summary_scalars
``(field, value)`` for every scalar of a summary artifact; lists are not descended. A CSV contributes its first data row by (casefolded) header,
agent/src/agent/grounding/evidence.py:306
↓ 3 callersMethod_symbol_for_claim
Return one canonical evidence symbol explicitly named in a claim.
agent/src/agent/grounding/policies.py:2398
↓ 3 callersFunction_symbol_from_csv_filename
Map a run-dir CSV stem (``BYN_V`` -> ``BYN.V``) to a canonical symbol. A stem without a known venue suffix (a bare ``AAPL``) maps to None, becaus
agent/src/agent/grounding/evidence.py:354
↓ 3 callersFunction_symbol_full
(item: dict[str, Any])
agent/src/trading/connectors/etoro/instruments.py:502
↓ 3 callersFunction_symlink_or_skip
Create a symlink when the host allows it; otherwise skip the test. Windows can reject symlink creation with WinError 1314 when the caller does
agent/tests/api/test_positions_sectors.py:79
↓ 3 callersFunction_tail_cut_index
First index of the preserved ``body`` tail that fits ``budget`` tokens. Walks back from the end accumulating each message's estimated tokens and
agent/src/agent/context_compact.py:371
↓ 3 callersMethod_tamper_row
Bypass the validated write path exactly like an external editor.
agent/tests/test_strategy_discovery_store.py:225
↓ 3 callersFunction_tap_cred_headers
Placeholder headers TAP resolves server-side — never a raw key. The one multi-secret ``alpaca`` credential (fields ``key_id`` + ``secret_key``)
agent/src/trading/connectors/alpaca/sdk.py:198
↓ 3 callersFunction_terminal_mark
The most recent valuation record in a series, if any. Selects the same record :func:`residual_value` would report the amount of, but also ret
agent/src/quantlib/fundmath.py:1424
↓ 3 callersFunction_text
(value: str, field_name: str, *, maximum: int = 2000, empty: bool = False)
agent/src/pixel_agents/office.py:61
↓ 3 callersFunction_text
(value: Any, *, name: str, allow_none: bool = True)
agent/src/factors/research_contract.py:38
↓ 3 callersFunction_times_and_amounts
Convert flows into year offsets from the first date, plus amounts. Args: flows: Date-ordered flows. days_per_year: Day basis, e.g
agent/src/quantlib/fundmath.py:228
↓ 3 callersFunction_timestamp_matches_claim_date
Match an evidence timestamp against the date cell of a claim. A year-less cell (``08-05``) matches on month and day. That can match the wrong
agent/src/agent/grounding/evidence.py:420
↓ 3 callersFunction_to_compact_date
Convert a ``YYYY-MM-DD`` date into Eastmoney's ``YYYYMMDD`` form. Args: value: Date string in any pandas-parseable form. Returns:
agent/backtest/loaders/eastmoney_loader.py:35
↓ 3 callersFunction_to_epoch_seconds
Convert a ``YYYY-MM-DD`` date to a UTC epoch-second bound. Args: date_str: Inclusive date string. end_of_day: When ``True`` push
agent/backtest/loaders/finnhub_loader.py:74
↓ 3 callersFunction_to_finnhub_symbol
Translate a project symbol into Finnhub's ticker convention. Args: code: Project-side symbol, e.g. ``AAPL.US`` or a bare ``MSFT``. R
agent/backtest/loaders/finnhub_loader.py:58
↓ 3 callersFunction_tokenize_for_bm25
Tokenize text for BM25 scoring. Uses the same regex pattern as persistent.py to ensure consistent token extraction across the memory subsyste
agent/src/memory/semantic_links.py:63
↓ 3 callersFunction_tool_call_then_final
()
agent/tests/test_swarm_worker_tool_result_truncation.py:109
↓ 3 callersFunction_tool_rows
Invoke one quote tool and return its ``rows`` (empty on no data).
agent/backtest/loaders/gildata_loader.py:236
↓ 3 callersFunction_trade_client
(cfg: OKXConfig)
agent/src/trading/connectors/okx/sdk.py:606
↓ 3 callersFunction_truncate
Return *text* clipped to *limit* characters with an ellipsis marker. Args: text: Value to clip; coerced to ``str``. limit: Maximu
agent/src/openbb_bridge/context_injector.py:62
↓ 3 callersFunction_ts_code
(code: str)
agent/src/tools/tushare_fallbacks.py:91
↓ 3 callersFunction_two_iteration_result
Drive a worker through exactly two measured iterations: a tool turn (usage0) then a final text turn (usage1).
agent/tests/test_swarm_cache_source.py:388
↓ 3 callersFunction_two_symbol_metrics
(tmp_path)
agent/tests/test_grounding_september28_safety.py:39
↓ 3 callersFunction_unique_link
Find a bundled file under ``subdir`` that exactly one skill owns. Deriving the fixture from the corpus keeps the test from rotting when a ski
agent/tests/test_read_file_skill_relative.py:33
↓ 3 callersFunction_unwrap
Unwrap the Toss API's ``{"result": ...}`` envelope, present on every response.
agent/src/trading/connectors/toss/sdk.py:596
↓ 3 callersFunction_us_daily_frame
()
agent/tests/test_akshare_nona_share_interval.py:13
↓ 3 callersFunction_usable_metrics
True when a combined metrics dict carries real numbers (not an error).
agent/src/shadow_account/backtester.py:123
← previousnext →3,101–3,200 of 26,887, ranked by callers