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
_yahoo_quotes
()
agent/tests/test_symbol_search_tool.py:55
↓ 3 callers
Function
abbreviateNum
(v: number)
frontend/src/lib/formatters.ts:90
↓ 3 callers
Method
account_usage
Account usage and move the goal to budget_limited if needed.
agent/src/goal/store.py:767
↓ 3 callers
Function
advance_after_fire
Advance a fired job's ``next_run_at``; report whether it should remain. Recurring jobs are re-scheduled one interval past ``now_ms`` (not past th
agent/src/live/runtime/scheduler.py:155
↓ 3 callers
Method
append_message
Append a message to the session JSONL log. Args: message: Message to append.
agent/src/session/store.py:142
↓ 3 callers
Method
apply_slippage_for_symbol
Symbol-aware slippage with correct spread. Args: symbol: Forex pair. price: Mid price. direction: 1 (buy)
agent/backtest/engines/forex.py:102
↓ 3 callers
Function
asRecord
(value: unknown)
frontend/src/lib/swarmStatus.ts:9
↓ 3 callers
Method
bind_tools
(self, tools: list[dict[str, Any]])
agent/src/providers/openai_codex.py:364
↓ 3 callers
Function
calcEMA
(data: number[], period: number)
frontend/src/lib/indicators.ts:12
↓ 3 callers
Function
calcMA
(data: number[], period: number)
frontend/src/lib/indicators.ts:3
↓ 3 callers
Method
calc_commission_for_symbol
Symbol-aware commission calculation. Args: symbol: Futures code. size: Number of contracts. price: Execut
agent/backtest/engines/china_futures.py:204
↓ 3 callers
Method
cancel_run
Signal cancellation for a running swarm. Args: run_id: ID of the run to cancel. Returns: True if cancellatio
agent/src/swarm/runtime.py:150
↓ 3 callers
Function
cik_for
Resolve a ticker symbol to its zero-padded 10-digit CIK. Args: ticker: A U.S. equity ticker (case-insensitive), e.g. ``"AAPL"``. Ret
agent/backtest/loaders/sec_edgar_client.py:162
↓ 3 callers
Function
clear_advisory_providers
Remove all registered advisory providers.
agent/src/live/advisory/__init__.py:253
↓ 3 callers
Function
clear_halt
Clear a tripped kill switch by deleting its sentinel. Clearing is a privileged surface action (never an agent tool). Clearing the global swit
agent/src/live/halt.py:111
↓ 3 callers
Method
close
(self)
agent/tests/test_loader_retry_helpers.py:192
↓ 3 callers
Function
cmd_connector_check
Check selected or explicit trading connector profile.
agent/cli/_legacy.py:3840
↓ 3 callers
Function
cmd_connector_start
Start a live remote MCP connector runner.
agent/cli/_legacy.py:4212
↓ 3 callers
Function
cmd_connector_status
Show connector status.
agent/cli/_legacy.py:4197
↓ 3 callers
Function
cmd_interactive
Interactive mode with welcome screen, slash commands, and agent conversation.
agent/cli/_legacy.py:1878
↓ 3 callers
Function
cmd_live_resume
Clear a tripped kill switch (privileged, explicit re-enable). Args: broker: Broker key, or ``None`` for the global switch. Each scope is
agent/cli/_legacy.py:3527
↓ 3 callers
Function
cmd_live_revoke
Revoke the OAuth token and delete the mandate — full channel off. Deletes the broker's OAuth token cache directory and its ``mandate.json`` s
agent/cli/_legacy.py:3549
↓ 3 callers
Function
cmd_live_start
Start the persistent live runner in the background (SPEC §7.5). Relays a start request to the R6 surface endpoint (``POST /live/runner/start`
agent/cli/_legacy.py:3603
↓ 3 callers
Function
cmd_sessions
List chat sessions.
agent/cli/_legacy.py:2632
↓ 3 callers
Function
cmd_skills
List available skills.
agent/cli/_legacy.py:2330
↓ 3 callers
Function
cmd_swarm_run_live
Run a swarm preset with Rich Live dashboard.
agent/cli/_legacy.py:2119
↓ 3 callers
Function
compare_alphas
Bench a hand-picked set of alphas head-to-head and rank them. Args: alpha_ids: The alpha ids to compare (>= 2 after de-duplication). Ids
agent/src/factors/compare_runner.py:88
↓ 3 callers
Function
connectCharts
()
frontend/src/lib/echarts.ts:29
↓ 3 callers
Function
criterionCovered
(snapshot: GoalSnapshot, criterion: GoalSnapshot["criteria"][number])
frontend/src/pages/Agent.tsx:179
↓ 3 callers
Function
cross_validate
Compare one field across sources, flag deviations over a tolerance. The median of the supplied values is used as the reference, and each sour
agent/src/tools/financial_rigor_tool.py:233
↓ 3 callers
Method
daily
(self, ts_code, start_date, end_date)
agent/tests/test_loader_retry_helpers.py:354
↓ 3 callers
Method
describe_table
Return schema metadata for a supported table.
agent/backtest/loaders/tushare_fundamentals.py:129
↓ 3 callers
Function
detect_source
Infer the best loader source for a normalized symbol.
agent/src/market_data.py:34
↓ 3 callers
Function
double_top_bottom
Detect double-top and double-bottom patterns. Args: close: Closing price series. window: Peak/valley detection window. Retur
agent/src/tools/pattern_tool.py:187
↓ 3 callers
Function
exact_calc
Evaluate an arithmetic expression with exact decimal arithmetic. Args: expr: Arithmetic expression string (numbers and ``+ - * /`` only).
agent/src/tools/financial_rigor_tool.py:348
↓ 3 callers
Method
execute
Synthesize, persist, and return a ``mandate.proposal`` payload. Args: **kwargs: ``broker`` and ``ceilings`` required; optional ``
agent/src/tools/propose_mandate_tool.py:103
↓ 3 callers
Method
execute
Append evidence to a goal. Args: **kwargs: Tool arguments from the model. Returns: JSON envelope with the ev
agent/src/tools/goal_tool.py:406
↓ 3 callers
Method
execute
Execute an iWenCai semantic search and return a JSON envelope. Args: **kwargs: ``query`` (required, str) and optional ``limit`` (
agent/src/tools/iwencai_tool.py:196
↓ 3 callers
Method
execute
Fetch dragon-tiger appearances (and seats when ``code`` is given). Args: **kwargs: ``date`` (required, YYYY-MM-DD) and optional `
agent/src/tools/dragon_tiger_tool.py:184
↓ 3 callers
Method
execute
Run the pre-trade gate, then ALLOW / DENY / PAUSE the order. Args: **kwargs: Order-tool arguments from the agent loop. R
agent/src/live/order_guard.py:125
↓ 3 callers
Method
execute
Execute the tool and return a JSON string.
agent/src/agent/tools.py:39
↓ 3 callers
Function
extract_data_points
Extract recognizable financial data points from a markdown report. Covers multi-column tables and ``label: value unit`` lines. De-duplicates
agent/src/tools/report_audit_tool.py:118
↓ 3 callers
Function
feed_specs_from_config
Build :class:`FeedSpec` objects from backtest-config dicts. Each entry must carry ``name``, ``route_template`` and ``event_type``; an optiona
agent/backtest/loaders/rsshub_events.py:142
↓ 3 callers
Function
formFromConfig
(config: QVerisConfig)
frontend/src/components/settings/QVerisSettings.tsx:70
↓ 3 callers
Function
formatMetricVal
(k: string, v: number)
frontend/src/lib/formatters.ts:54
↓ 3 callers
Function
format_code_for_route
Convert a backtest code (e.g. ``"600519.SH"``) to a route's expected form. RSSHub routes disagree on instrument formatting: some take the exchang
agent/backtest/loaders/rsshub_events.py:77
↓ 3 callers
Function
format_run_date
Normalize supported date strings into ``YYYY-MM-DD``. Args: date_str: Raw date string from request or planner artifacts. Returns:
agent/src/ui_services.py:23
↓ 3 callers
Method
format_tool_result
Format a tool execution result as a message.
agent/src/agent/context.py:268
↓ 3 callers
Method
from_mapping
Build a config from a JSON-like mapping, normalizing the profile.
agent/src/trading/connectors/binance/sdk.py:103
↓ 3 callers
Method
from_mapping
Build a config from a JSON-like mapping.
agent/src/trading/connectors/dhan/sdk.py:88
↓ 3 callers
Method
from_mapping
Build a config from a JSON-like mapping, normalizing profile/URL.
agent/src/trading/connectors/trading212/sdk.py:73
↓ 3 callers
Method
from_mapping
(cls, data: Mapping[str, Any] | None = None)
agent/src/trading/connectors/shoonya/sdk.py:85
↓ 3 callers
Method
from_mapping
Build a config from a JSON-like mapping, normalizing the profile.
agent/src/trading/connectors/tiger/sdk.py:82
↓ 3 callers
Method
from_mapping
Build a config from a JSON-like mapping, normalizing the profile.
agent/src/trading/connectors/longbridge/sdk.py:76
↓ 3 callers
Method
from_mapping
Build a config from a JSON-like mapping, normalizing the profile.
agent/src/trading/connectors/alpaca/sdk.py:65
↓ 3 callers
Method
from_mapping
Build a config from a JSON-like mapping, normalizing the profile. Args: data: Mapping with any subset of config fields.
agent/src/trading/connectors/futu/sdk.py:96
↓ 3 callers
Method
get_account_snapshot
(self, config)
agent/tests/test_sdk_order_gate.py:43
↓ 3 callers
Function
get_company_facts
Fetch the XBRL ``companyfacts`` JSON for a CIK. Args: cik: A CIK as int or string; padded to 10 digits internally. Returns:
agent/backtest/loaders/sec_edgar_client.py:196
↓ 3 callers
Method
get_contract_multiplier
Contract multiplier for the instrument. Args: symbol: Futures symbol (e.g. 'IF2406.CFFEX', 'ESZ4'). Returns:
agent/backtest/engines/futures_base.py:27
↓ 3 callers
Method
get_contract_multiplier
Forex: multiplier is 1.0 (size is in currency units).
agent/backtest/engines/forex.py:134
↓ 3 callers
Method
get_margin_rate
Look up exchange margin rate for a product. Args: symbol: Futures symbol. Returns: Margin rate (e.g. 0.10 fo
agent/backtest/engines/china_futures.py:234
↓ 3 callers
Method
get_quote
(self, symbol, *, config=None)
agent/tests/test_sdk_order_gate.py:286
↓ 3 callers
Method
handle_event
(self, event_type: str, data: dict[str, Any])
agent/cli/ui/rail.py:319
↓ 3 callers
Function
handle_pairing_command
Execute a pairing subcommand and return the reply text. This is a pure function (no side effects other than store mutations) so it can be use
agent/src/channels/pairing/store.py:206
↓ 3 callers
Function
head_and_shoulders
Detect head-and-shoulders top pattern. Args: close: Closing price series. window: Peak/valley detection window. Returns:
agent/src/tools/pattern_tool.py:155
↓ 3 callers
Function
heartbeats_dir
Return the directory holding per-runner heartbeat files. Returns: ``live_root()/runtime/heartbeats``. Not created here; written lazily by
agent/src/live/runtime/liveness.py:48
↓ 3 callers
Method
hydrate_run
Return a copy of ``run`` with live ``tasks/*.json`` merged in. ``run.json`` only gets the full snapshot at start and finalize; the pe
agent/src/swarm/store.py:284
↓ 3 callers
Function
isAuthRequiredError
(error: unknown)
frontend/src/lib/api.ts:18
↓ 3 callers
Function
is_approved
Check whether *sender_id* has been approved on *channel*.
agent/src/channels/pairing/store.py:144
↓ 3 callers
Method
jobs
Return a snapshot list of the current jobs. Returns: A new list of the live :class:`Job` objects (the list is a copy;
agent/src/live/runtime/scheduler.py:219
↓ 3 callers
Method
link_backtest
Link a run card or backtest artifact to a hypothesis. Args: hypothesis_id: Registry identifier. run_card_path: Option
agent/src/hypotheses/registry.py:269
↓ 3 callers
Method
list_claims
Return claims for a goal.
agent/src/goal/store.py:496
↓ 3 callers
Method
list_runs
List all runs sorted by created_at descending. Args: limit: Maximum number of runs to return. Returns: List
agent/src/swarm/store.py:217
↓ 3 callers
Method
list_sessions
List all sessions in descending update-time order. Args: limit: Maximum number of sessions to return. Returns:
agent/src/session/store.py:118
↓ 3 callers
Function
load_csv_records
Load CSV rows as dictionaries. Args: path: CSV file path. Returns: Parsed CSV rows. Missing or unreadable files return an em
agent/src/ui_services.py:65
↓ 3 callers
Function
load_selected_profile_id
Load the selected trading profile id.
agent/src/trading/profiles.py:69
↓ 3 callers
Method
load_support_file
Load a supporting file on demand. Args: filename: File name (e.g. examples.md). Returns: File content or Non
agent/src/agent/skills.py:35
↓ 3 callers
Function
loader_cache_range_is_final
Return whether ``end_date`` is settled enough to cache. The key is content-addressed on ``end_date`` but not on wall-clock fetch time, so cac
agent/backtest/loaders/base.py:293
↓ 3 callers
Function
make_single_server_agent_json
Write a minimal agent.json with one remote MCP server.
agent/tests/mcp_http_test_helpers.py:59
↓ 3 callers
Function
map_symbol
Translate a Vibe-Trading symbol into Yahoo's ticker convention. Args: symbol: Project-side symbol, e.g. ``AAPL.US``, ``00700.HK``, ``BTC-
agent/backtest/loaders/yahoo_client.py:69
↓ 3 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/scheduled_research/executor.py:68
↓ 3 callers
Function
normalizeRunStatus
(value: unknown)
frontend/src/lib/swarmStatus.ts:27
↓ 3 callers
Function
on_event
(event_type: str, data: Dict[str, Any])
agent/cli/_legacy.py:1006
↓ 3 callers
Function
print_banner
Render the cold-start banner once before the prompt appears.
agent/cli/ui/banner.py:55
↓ 3 callers
Function
profiles_dir
()
agent/src/shadow_account/storage.py:28
↓ 3 callers
Function
provider_diagnostics
Build a redacted provider diagnostic snapshot. Returns: Redacted provider/model/package/env/proxy/capability details.
agent/src/providers/llm.py:507
↓ 3 callers
Method
publish_inbound
Publish a message from a channel to the agent.
agent/src/channels/bus/queue.py:19
↓ 3 callers
Function
read_daily_count
Return today's order count for ``broker`` (UTC rollover; 0 on any miss).
agent/src/live/daily_count.py:28
↓ 3 callers
Function
reap_stale
Purge heartbeat sentinels of runners that have gone stale. Mirrors the swarm reaper shape: scan every heartbeat, keep the live ones, delete t
agent/src/live/runtime/liveness.py:153
↓ 3 callers
Method
recover_stale_running
Reset jobs left ``RUNNING`` by a previous executor process. This runs at most once per executor instance. Jobs that become ``RUNNING`
agent/src/scheduled_research/executor.py:209
↓ 3 callers
Method
refresh
(self)
agent/cli/ui/rail.py:315
↓ 3 callers
Function
register_advisory_provider
Register an advisory provider to be consulted on each review. Providers are consulted in registration order. Call :func:`clear_advisory_provi
agent/src/live/advisory/__init__.py:241
↓ 3 callers
Method
reindex_from_store
Rebuild the entire index from file-based session store. Args: store_base_dir: Root directory of the SessionStore (contains sessio
agent/src/session/search.py:266
↓ 3 callers
Function
render_answer
Render assistant Markdown, upgrading pipe tables to Rich tables.
agent/cli/ui/transcript.py:70
↓ 3 callers
Method
reset
()
frontend/src/hooks/__tests__/useSSE.test.ts:39
↓ 3 callers
Method
review
Return the configured verdict, or raise if configured to fail. Every invocation appends *context* to :attr:`call_history` before any
agent/src/live/advisory/mock.py:61
↓ 3 callers
Function
routeParts
()
wiki/docs/main.js:62
↓ 3 callers
Function
run_backtest
Run backtest: validate config.json + signal_engine.py, invoke built-in engine. Args: run_dir: Path to the run directory. Returns:
agent/src/tools/backtest_tool.py:15
↓ 3 callers
Method
save
Atomically persist the full job set. Write sequence: temp file in same dir -> fsync -> os.replace -> fsync parent dir. A SIGKILL at a
agent/src/scheduled_research/store.py:109
↓ 3 callers
Function
scan_prompt_injection
Return prompt-injection findings for untrusted external text. Args: text: External text to scan. field: Optional JSON field path
agent/src/security/scanner.py:80
← previous
next →
1,001–1,100 of 8,953, ranked by callers