Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
30,405 in github.com/HKUDS/Vibe-Trading
⨍
Functions
30,405
◇
Types & classes
3,299
↳
Endpoints
266
↓ 29 callers
Method
query_strategies
(self, *args, **kwargs)
agent/tests/test_strategy_discovery_tools.py:72
↓ 29 callers
Method
register_artifact
(self, artifact: Artifact, **kwargs)
agent/src/strategy_store/adaptation.py:37
↓ 29 callers
Function
run_bench
Run a bench end-to-end and return the API-shaped summary. Args: zoo: Zoo id (e.g. ``gtja191``, ``alpha101``, ``qlib158``). univer
agent/src/factors/bench_runner.py:144
↓ 29 callers
Method
stream_chat
(self, messages, **kwargs)
agent/tests/test_swarm_context.py:42
↓ 29 callers
Method
transaction
(self)
agent/src/data_gateway/history_store.py:109
↓ 29 callers
Function
validate_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:781
↓ 28 callers
Function
_panel
Build a return frame generated by a known market model.
agent/tests/quantlib/test_eventstudy.py:19
↓ 28 callers
Function
_run
(payload, *, five=None)
agent/tests/test_paper_trade_cancellation.py:52
↓ 28 callers
Function
_sdk_module
Import the SDK connector module for a ``broker_sdk`` connector key.
agent/src/trading/service.py:40
↓ 28 callers
Method
from_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
↓ 28 callers
Function
get_console
Return the shared console instance. Returns: The shared Rich Console used by the CLI.
agent/cli/theme.py:143
↓ 27 callers
Function
_dingtalk_section
(**overrides: Any)
agent/tests/test_channels_config_api.py:136
↓ 27 callers
Method
_frame
(index)
agent/tests/test_cross_market_annualization.py:140
↓ 27 callers
Function
_make_engine
(**overrides)
agent/tests/test_forex_engine.py:40
↓ 27 callers
Function
_normalize_symbol
Normalize a symbol onto one canonical identity for exact comparison.
agent/src/product/identity/normalize.py:90
↓ 27 callers
Function
_payload
(**overrides: Any)
agent/tests/paper_trade_5m_fixtures.py:289
↓ 27 callers
Function
_run
(coro: Any)
agent/tests/test_email_connection_test.py:66
↓ 27 callers
Method
addEventListener
(type: string, handler: ESHandler)
frontend/src/hooks/__tests__/useSSE.test.ts:19
↓ 27 callers
Method
create_session
Create and persist a session. Args: session: Session with an unused ID. Returns: The supplied session, after
agent/src/session/store.py:82
↓ 27 callers
Function
next_due
Return the first due epoch-ms strictly after ``after_ms``. Supports the scheduled-research schedule format: a bare positive integer string fo
agent/src/scheduling/triggers.py:206
↓ 27 callers
Method
on_bar
(self, symbol, bar, timestamp)
agent/tests/test_plan_rejected.py:423
↓ 27 callers
Function
scan_figures
Locate and classify every number in the prose of a draft (spec §3). * ``exempt`` — a date, time, security-code digits, line-leading ordinal,
agent/evals/grounding/figures.py:1254
↓ 26 callers
Function
_base_run
(run_id: str = "r", *, timeout: int = 300, retries: int = 0)
agent/tests/test_swarm_status_hydration.py:52
↓ 26 callers
Function
_calc_options_metrics
Calculate options backtest metrics. Args: equity: Equity series. initial_cash: Initial capital. trades: List of trade rec
agent/backtest/engines/options_portfolio.py:737
↓ 26 callers
Function
_cancel
(at="09:40", order_id="alpha")
agent/tests/test_paper_trade_cancellation.py:48
↓ 26 callers
Function
_install_smtp_fakes
Replace ``smtplib.SMTP``/``SMTP_SSL`` with recording fakes.
agent/tests/test_email_connection_test.py:142
↓ 26 callers
Function
_ledger_with_upload
A ledger whose run directory sits beside, not above, the upload.
agent/tests/test_grounding_document_figures.py:69
↓ 26 callers
Function
_reload_base_with_bottleneck
Reload base.py with bottleneck enabled or disabled.
agent/tests/test_factor_operators.py:21
↓ 26 callers
Function
_w
(**kwargs)
agent/tests/test_factor_costs.py:21
↓ 26 callers
Function
call
(tool, **kwargs)
agent/tests/test_quantlib_tool.py:30
↓ 26 callers
Method
close
Close the SQLite connection, primarily for isolated test cleanup.
agent/src/research_artifacts/store.py:143
↓ 26 callers
Method
get_bench_history
Get bench history for an artifact, newest first. Args: artifact_id: Artifact whose bench rows are returned. limit: Ma
agent/src/strategy_store/store.py:121
↓ 26 callers
Method
ingest_tool_result
(self, **kwargs)
agent/tests/test_agent_loop_deterministic_cache.py:222
↓ 26 callers
Method
run_once
Run ONE fail-closed tick in fixed order; return the outcome dict. Ordering (each step short-circuits the tick on failure): 1. **Halt
agent/src/live/runtime/runner.py:419
↓ 25 callers
Function
_client
Build a TestClient with runtime root redirected under tmp_path.
agent/tests/test_longbridge_runtime.py:32
↓ 25 callers
Function
_connection
(value: Any)
agent/src/tools/trading_connector_tool.py:53
↓ 25 callers
Function
_engine
(**overrides)
agent/tests/test_korea_equity_engine.py:31
↓ 25 callers
Function
_frame
(rows: list[list[float]], dates: int | None = None)
agent/tests/factors/test_base.py:32
↓ 25 callers
Function
_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:46
↓ 25 callers
Function
_install_imap_fakes
Replace ``imaplib.IMAP4``/``IMAP4_SSL`` with recording fakes.
agent/tests/test_email_connection_test.py:70
↓ 25 callers
Function
_is_tool_success
Return True if the tool result does not look like an error response.
agent/src/product/tool_results.py:42
↓ 25 callers
Function
_json_result
(payload: dict[str, Any])
agent/src/tools/trading_connector_tool.py:49
↓ 25 callers
Function
_local_client
Return a TestClient that simulates a loopback caller.
agent/tests/test_security_auth_api.py:22
↓ 25 callers
Function
_open_market
An unsettled binary market as gamma serializes it.
agent/tests/test_prediction_market_tool.py:31
↓ 25 callers
Function
_request
(**overrides)
agent/tests/test_paper_order_lifecycle.py:33
↓ 25 callers
Function
_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 callers
Method
abort
Close an interrupted or failed turn. Args: status: Loop status to close with, typically cancelled or failed. reason:
agent/cli/conversation.py:133
↓ 25 callers
Function
assign_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:107
↓ 25 callers
Function
cached_loader_fetch
Fetch one DataFrame through the opt-in local cache. Convenience wrapper over :func:`loader_cache_get` / :func:`loader_cache_put` for the comm
agent/backtest/loaders/base.py:740
↓ 25 callers
Method
cancel
(self)
agent/tests/test_api_live_runtime.py:259
↓ 25 callers
Function
get_gateway
Return the process-wide gateway shared by API, tools and CLI.
agent/src/data_gateway/__init__.py:12
↓ 25 callers
Method
get_goal_snapshot
Return a JSON-safe goal snapshot.
agent/src/goal/store.py:588
↓ 25 callers
Method
list_entries
Return all persisted memory entries, filename-sorted.
agent/src/memory/persistent.py:320
↓ 25 callers
Function
records_at
(directory: Path)
agent/tests/recording_helpers.py:14
↓ 25 callers
Method
refresh
Return the scripted snapshot or raise the scripted error.
agent/tests/test_cli_portfolio.py:39
↓ 25 callers
Method
request
( self, method: str, path: str, *, params: Mapping[str, Any] | None =
agent/src/trading/connectors/etoro/client.py:280
↓ 25 callers
Method
require_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 callers
Method
run
(self)
tools/gateway_soak_history.py:105
↓ 25 callers
Function
run_node
Run one child turn and publish its task result. Args: agent_spec: Worker specification for role, model, tools, skills, and limits.
agent/src/swarm/node.py:824
↓ 25 callers
Method
tick
Run one poll/dispatch pass. Args: now_ms: Optional explicit reference time. Defaults to ``now_fn``.
agent/src/scheduled_research/executor.py:287
↓ 24 callers
Method
__new__
(cls, *args: object, **kwargs: object)
agent/tests/test_sdk_connectors.py:196
↓ 24 callers
Function
_build_runner
Build a runner wired entirely to the tracker stubs, with overrides.
agent/tests/test_runtime_runner.py:146
↓ 24 callers
Method
_handle_message
Handle an incoming message: check permissions, issue pairing codes in DMs, or forward to bus.
agent/src/channels/base.py:254
↓ 24 callers
Function
_make_engine
(**overrides)
agent/tests/test_china_a_engine.py:49
↓ 24 callers
Function
_read_document
( ledger: GroundingLedger, path: Path, call_id: str, text: str = REPORT, )
agent/tests/test_grounding_document_figures.py:54
↓ 24 callers
Function
_reasons
(result: Any)
agent/tests/test_grounding_role_hardening.py:119
↓ 24 callers
Function
_run
(**kwargs: Any)
agent/tests/test_orderbook_depth_tool.py:56
↓ 24 callers
Function
_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:83
↓ 24 callers
Method
activate
Move a ``new`` order to ``open`` (accepted for matching).
agent/src/tools/paper_trade/order_lifecycle.py:170
↓ 24 callers
Method
bars
Reuse existing market-aware routes, preserving their provenance.
agent/src/data_gateway/service.py:365
↓ 24 callers
Method
emit
Build and publish an event in one step. Args: session_id: Destination session ID. event_type: Event name.
agent/src/session/events.py:217
↓ 24 callers
Method
end
The source offset where a normalized span ending at ``index`` ends.
agent/evals/grounding/figures.py:321
↓ 24 callers
Method
find_relevant
Keyword search across all entries, weighted by importance.
agent/src/memory/persistent.py:369
↓ 24 callers
Function
getChartTheme
()
frontend/src/lib/chart-theme.ts:59
↓ 24 callers
Function
make
(**overrides)
agent/tests/test_background_store_recovery.py:25
↓ 24 callers
Function
observed_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 callers
Function
run_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:326
↓ 24 callers
Function
safe_run_dir
Validate a run directory used by generated-code tools. Args: p: User/LLM-supplied run directory. `~` expansion is supported. Returns
agent/src/tools/path_utils.py:432
↓ 24 callers
Method
status
Return bounded progress; failed symbols are available separately.
agent/src/data_gateway/scans.py:73
↓ 24 callers
Method
stream
(self, *args: object, **kwargs: object)
agent/tests/test_openai_codex.py:444
↓ 23 callers
Function
_declared
(prose: str, *lines: str)
agent/tests/test_grounding_document_figures.py:80
↓ 23 callers
Function
_install
Monkeypatch ``_fetch_raw_book`` to return ``book`` and record call args.
agent/tests/test_orderbook_depth_tool.py:44
↓ 23 callers
Function
_intraday
On-grid continuous 5m bars; labels are bar ENDS (09:30 is the auction).
agent/tests/test_paper_trade_5m_partial_fills.py:76
↓ 23 callers
Function
_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:469
↓ 23 callers
Function
_make_engine
(**overrides)
agent/tests/test_global_futures_engine.py:47
↓ 23 callers
Function
_make_server_config
Create a minimal MCPServerConfig-like object for testing.
agent/tests/test_mcp_specs_cache.py:33
↓ 23 callers
Function
_raw_book
Build a ccxt-shaped OrderBook dict, as ``fetch_order_book`` returns it.
agent/tests/test_orderbook_depth_tool.py:27
↓ 23 callers
Function
_spec
(**overrides: object)
agent/tests/scheduling/test_system_jobs.py:55
↓ 23 callers
Function
_trip_with_timestamp
(broker: str | None, tripped_at: str)
agent/tests/test_sweep_latch.py:35
↓ 23 callers
Method
add
Accept one input at the end of the queue. Args: session_id: Session ID. content: Message text to queue. q
agent/src/session/pending_inputs.py:154
↓ 23 callers
Function
append_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 callers
Function
bar_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:259
↓ 23 callers
Function
broker_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 callers
Function
bs_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 callers
Function
commit_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 callers
Method
connect
()
agent/src/channels/mochat.py:417
↓ 23 callers
Method
discard
Release the cached runtime after its session has been deleted. Args: session_id: Session ID whose cached runtime should be remove
agent/src/session/runtime.py:580
↓ 23 callers
Method
get_quote
(self, symbol, *, config=None)
agent/tests/test_sdk_order_gate.py:981
↓ 23 callers
Function
load_pending_action
Load strict pending evidence; malformed state raises and fails closed.
agent/src/live/pending_action.py:267
↓ 23 callers
Function
redact_tool_result
Redact one tool result for trace persistence and event previews. The single choke point for a tool-result string: callers redact once and han
agent/src/tools/redaction.py:654
← previous
next →
201–300 of 30,405, ranked by callers