Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
8,953 in github.com/HKUDS/Vibe-Trading
⨍
Functions
8,953
◇
Types & classes
1,150
↳
Endpoints
64
↓ 3 callers
Function
_llm_settings_payload
(base_url: str = "https://api.openai.com/v1")
agent/tests/test_security_auth_api.py:155
↓ 3 callers
Function
_load_neonize
()
agent/src/channels/whatsapp.py:64
↓ 3 callers
Function
_load_universe_panel
Load OHLCV(+amount, +vwap) wide panel for the requested universe. Returns a dict keyed by panel column (open/high/low/close/volume/amount/vwap)
agent/src/tools/alpha_bench_tool.py:85
↓ 3 callers
Method
_log_response_error
Log Matrix response errors — auth errors at ERROR level, rest at WARNING.
agent/src/channels/matrix.py:669
↓ 3 callers
Function
_make_agent_json
(tmp_path: Path, server_name: str, *, port: int, **server_kwargs: Any)
agent/tests/test_mcp_streamable_http_integration.py:38
↓ 3 callers
Function
_make_agent_json
(tmp_path: Path, server_name: str, *, port: int, **server_kwargs: Any)
agent/tests/test_mcp_sse_integration.py:34
↓ 3 callers
Method
_make_headers
Build per-request headers (new UIN each call, matching reference).
agent/src/channels/weixin.py:247
↓ 3 callers
Function
_make_qq_channel
(http: _FakeHttp)
agent/tests/test_url_target_security.py:110
↓ 3 callers
Function
_make_run
(tmp_path: Path)
agent/tests/test_swarm_dag_gating.py:34
↓ 3 callers
Function
_make_run
(run_id: str, status: RunStatus)
agent/tests/test_swarm_retry.py:20
↓ 3 callers
Function
_make_synthetic_event
Build a synthetic ``message.add`` event dict.
agent/src/channels/mochat.py:88
↓ 3 callers
Function
_make_tonghuashun_rows
Build Tonghuashun-format rows from (datetime, symbol, side, qty, price). Tonghuashun requires columns: 成交时间 / 证券代码 / 操作 (see `trade_journal_p
agent/tests/test_shadow_account.py:71
↓ 3 callers
Function
_manifest_text
()
agent/tests/test_distribution_skill_manifest.py:19
↓ 3 callers
Function
_mapping_or_raw
(value: Any)
agent/src/trading/connectors/trading212/sdk.py:511
↓ 3 callers
Method
_merge_basic_fields
Merge fundamental columns from daily_basic API. Args: result: Existing OHLCV frames. codes: All requested codes.
agent/backtest/loaders/tushare.py:174
↓ 3 callers
Function
_message_field
(message: Any, *names: str)
agent/src/channels/whatsapp.py:111
↓ 3 callers
Function
_missing_fields
(cfg: OKXConfig)
agent/src/trading/connectors/okx/sdk.py:603
↓ 3 callers
Function
_module_name
Return a unique module name for import tests.
agent/tests/test_backtest_runner_security.py:12
↓ 3 callers
Method
_normalize
Normalize nonnegative weights to sum 1.
agent/backtest/optimizers/base.py:124
↓ 3 callers
Function
_normalize_columns
( df: pd.DataFrame, col_map: dict[str, str], date_fmt: str | None, )
agent/backtest/loaders/local_loader.py:66
↓ 3 callers
Function
_normalize_symbol
Normalize forex symbol to 'XXX/YYY' format.
agent/backtest/engines/_market_hooks.py:243
↓ 3 callers
Method
_normalize_target_name
(value: str)
agent/src/channels/slack.py:297
↓ 3 callers
Function
_now_ms
Return the current wall-clock time in epoch milliseconds. Returns: Milliseconds since the Unix epoch.
agent/src/live/runtime/liveness.py:39
↓ 3 callers
Method
_ok
Render a success envelope as a JSON string. Args: market: Market label (e.g. ``"a_share"``, ``"us"``, ``"global"``).
agent/src/tools/stock_news_tool.py:382
↓ 3 callers
Function
_ok_call_result
Build a CallToolResult that mimics a successful remote call. The adapter's normalizer copies ``data`` / ``structured_content`` / text content
agent/tests/test_swarm_m4_e2e.py:113
↓ 3 callers
Method
_on_message
Parse inbound message, download attachments, and publish to the bus.
agent/src/channels/qq.py:489
↓ 3 callers
Function
_order_error
Build a fail-closed error payload carrying profile/guard context.
agent/src/trading/connectors/okx/sdk.py:514
↓ 3 callers
Function
_pad_cik
Normalize a CIK to the SEC's zero-padded 10-digit string form. Args: cik: A CIK as an int or a string that may already be padded or carry
agent/backtest/loaders/sec_edgar_client.py:95
↓ 3 callers
Function
_parse_bool
Parse a string (or ``None``) into a boolean. Truthy values (case-insensitive): ``"1"``, ``"true"``, ``"yes"``, ``"on"``. Everything else — in
agent/src/config/accessor.py:89
↓ 3 callers
Function
_past_expiry
()
agent/tests/test_runtime_runner.py:89
↓ 3 callers
Function
_post_registration
POST form-encoded data to the registration endpoint, return parsed JSON. The registration endpoint returns JSON even on HTTP errors (e.g. poll
agent/src/channels/feishu.py:379
↓ 3 callers
Function
_preview_tool_arguments
Return a short, redacted argument preview for streamed events.
agent/src/swarm/worker.py:780
↓ 3 callers
Function
_price_frame
()
agent/tests/test_rsshub_events_lookahead.py:38
↓ 3 callers
Function
_print_channels_status
Render IM channel status.
agent/cli/_legacy.py:2894
↓ 3 callers
Function
_print_json_result
Print a machine-readable run summary.
agent/cli/_legacy.py:256
↓ 3 callers
Function
_print_qveris_config
Render local QVeris config.
agent/cli/_legacy.py:3030
↓ 3 callers
Function
_proposal
Return a minimal valid proposal payload for commit_mandate.
agent/tests/test_mandate_commit_security.py:17
↓ 3 callers
Function
_proposal_path
Return the contained proposal path for a valid opaque proposal id.
agent/src/live/mandate/commit.py:155
↓ 3 callers
Function
_pts
(n: int)
agent/tests/test_report_audit_tool.py:78
↓ 3 callers
Function
_qualify_a_share
Append .SH/.SZ/.BJ suffix to a bare A-share ticker.
agent/src/tools/trade_journal_parsers.py:132
↓ 3 callers
Function
_ramp
Monotonic close series of length n — drives RSI toward an extreme.
agent/tests/test_shadow_scanner.py:124
↓ 3 callers
Method
_read_json
(path: Path)
agent/src/session/store.py:238
↓ 3 callers
Function
_read_metrics
Read metrics from metrics.csv, return formatted string dict.
agent/cli/_legacy.py:322
↓ 3 callers
Function
_read_trace
(run_dir: str)
agent/tests/test_agent_loop_content_filter.py:98
↓ 3 callers
Function
_redact_base_url_for_log
Return a diagnostic-safe base URL label for logs.
agent/src/providers/llm.py:323
↓ 3 callers
Function
_ref_decay_linear
(df: pd.DataFrame, n: int)
agent/tests/test_factor_operators.py:74
↓ 3 callers
Function
_ref_ts_rank
(df: pd.DataFrame, n: int)
agent/tests/test_factor_operators.py:36
↓ 3 callers
Method
_refresh_targets
(self, subscribe_new: bool)
agent/src/channels/mochat.py:543
↓ 3 callers
Function
_registry
(args: argparse.Namespace)
agent/src/hypotheses/cli_handlers.py:61
↓ 3 callers
Method
_remember_channel
(self, channel: Any)
agent/src/channels/discord.py:388
↓ 3 callers
Method
_render
(self)
agent/cli/stream.py:171
↓ 3 callers
Function
_require_ccxt
()
agent/src/trading/connectors/binance/sdk.py:599
↓ 3 callers
Function
_require_ib_async
()
agent/src/trading/connectors/ibkr/local.py:419
↓ 3 callers
Function
_resolve_field_name
(schema: Any, field: str)
agent/backtest/loaders/fundamentals_loader.py:321
↓ 3 callers
Function
_resolve_key
Return the configured Tiingo API key, or an empty string when unset. Returns: The trimmed ``TIINGO_API_KEY`` value, or ``""`` when absent
agent/backtest/loaders/tiingo_loader.py:46
↓ 3 callers
Function
_resolve_loader
Return the first available data loader for ``asset_class``. Raises: UniverseDataUnavailable: When no loader in the market's fallback chai
agent/src/live/enforcement.py:619
↓ 3 callers
Function
_retry
Call ``fn`` up to ``tries`` times with exponential backoff.
agent/src/tools/alpha_bench_tool.py:452
↓ 3 callers
Function
_robot_payload
An iWenCai robot-data response nesting two security rows.
agent/tests/test_iwencai_tool.py:22
↓ 3 callers
Function
_root
Return the Shadow Account root directory (auto-created).
agent/src/shadow_account/storage.py:21
↓ 3 callers
Function
_rule_to_context
Flatten a ShadowRule into the scalar fields the template consumes.
agent/src/shadow_account/codegen.py:72
↓ 3 callers
Function
_run
Run an AgentLoop turn against the given scripted LLM. Args: monkeypatch: pytest monkeypatch fixture (zeroes the retry sleep). tmp
agent/tests/test_agent_loop_stream_retry.py:107
↓ 3 callers
Function
_run
(tmp_path: Path, worker_result: WorkerResult)
agent/tests/test_swarm_output_contract.py:106
↓ 3 callers
Function
_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:1517
↓ 3 callers
Function
_runner_id_for
Return the persistent-runner identity key for ``broker`` (SPEC §7.5).
agent/cli/_legacy.py:3330
↓ 3 callers
Function
_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:114
↓ 3 callers
Function
_safe_call
(obj: Any, name: str)
agent/src/trading/connectors/ibkr/local.py:487
↓ 3 callers
Function
_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:120
↓ 3 callers
Function
_sample_result
()
agent/tests/test_options_chain_tool.py:15
↓ 3 callers
Method
_save
(self, records: list[Hypothesis])
agent/src/hypotheses/registry.py:359
↓ 3 callers
Function
_save_handcrafted_proposal
Persist a proposal with an arbitrary single profile + ceiling snapshot. Lets a test exercise commit-time validation against a profile the clampin
agent/tests/test_consent_commit.py:245
↓ 3 callers
Method
_scope_from_envelope
(self, envelope: dict[str, Any])
agent/src/channelsui/gateway_services.py:121
↓ 3 callers
Function
_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:74
↓ 3 callers
Function
_seed
(store: ScheduledResearchJobStore, **overrides: object)
agent/tests/test_scheduled_routes.py:43
↓ 3 callers
Method
_send_request
Send a JSON-RPC request via HTTP and wait for response.
agent/src/channels/signal.py:1375
↓ 3 callers
Method
_send_room_content
Send m.room.message with E2EE options.
agent/src/channels/matrix.py:418
↓ 3 callers
Method
_send_typing
Send a typing START/STOP message via signal-cli.
agent/src/channels/signal.py:1323
↓ 3 callers
Method
_session_file
(self, session_id: str)
agent/src/session/store.py:45
↓ 3 callers
Method
_set_typing
Best-effort typing indicator update.
agent/src/channels/matrix.py:691
↓ 3 callers
Method
_should_use_reply_in_thread
Return whether a group reply should create a Feishu thread/topic.
agent/src/channels/feishu.py:1589
↓ 3 callers
Function
_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:90
↓ 3 callers
Function
_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 callers
Function
_split_telegram_markdown
Split raw Telegram Markdown without leaving fenced code blocks unbalanced.
agent/src/channels/telegram.py:46
↓ 3 callers
Method
_stop_typing
Stop typing indicator for a chat.
agent/src/channels/weixin.py:1266
↓ 3 callers
Function
_strip_rich_tags
Remove Rich markup from plain-text output.
agent/cli/_legacy.py:251
↓ 3 callers
Function
_strip_surrogates
Drop unpaired surrogate code points from ``text``.
agent/cli/input.py:66
↓ 3 callers
Function
_stub_panel
(monkeypatch: pytest.MonkeyPatch, n_rows: int = 80, n_cols: int = 8)
agent/tests/factors/test_alpha_compare.py:59
↓ 3 callers
Function
_suffix_of
Return the upper-cased exchange suffix of a symbol, or ``""`` when none.
agent/src/tools/stock_news_tool.py:78
↓ 3 callers
Function
_summarize_response
(response: requests.Response, *, stream: bool = False)
agent/tests/mcp_http_test_helpers.py:123
↓ 3 callers
Function
_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:33
↓ 3 callers
Function
_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 callers
Function
_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 callers
Function
_trade_client
(cfg: OKXConfig)
agent/src/trading/connectors/okx/sdk.py:589
↓ 3 callers
Function
_wide_from_fetched
Stack per-code OHLCV frames into wide panels keyed by field.
agent/src/tools/alpha_bench_tool.py:422
↓ 3 callers
Function
_write_alpha
(zoo_dir: Path, short_id: str, zoo_id: str, *, body: str = GOOD_COMPUTE, meta: str | None = None)
agent/tests/factors/test_registry.py:66
↓ 3 callers
Function
_write_chart_artifacts
(run_dir: Path)
agent/tests/test_run_card.py:152
↓ 3 callers
Function
_write_full_journal
(tmp_path: Path)
agent/tests/test_trade_journal.py:365
↓ 3 callers
Function
_write_journal
Write a plain-utf8 Tonghuashun-style CSV the parser can ingest.
agent/tests/test_shadow_account.py:64
↓ 3 callers
Method
_write_json
(path: Path, data: Any)
agent/src/core/state.py:66
↓ 3 callers
Function
_write_mandate
(live_runtime: Path)
agent/tests/test_killswitch_blocks_orders.py:72
↓ 3 callers
Function
_write_run_card
(run_dir: Path, metrics: dict | None)
agent/tests/test_autopilot_phase3.py:173
← previous
next →
901–1,000 of 8,953, ranked by callers