MCPcopy Create free account

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

Functions8,953 in github.com/HKUDS/Vibe-Trading

↓ 3 callersFunction_yahoo_quotes
()
agent/tests/test_symbol_search_tool.py:55
↓ 3 callersFunctionabbreviateNum
(v: number)
frontend/src/lib/formatters.ts:90
↓ 3 callersMethodaccount_usage
Account usage and move the goal to budget_limited if needed.
agent/src/goal/store.py:767
↓ 3 callersFunctionadvance_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 callersMethodappend_message
Append a message to the session JSONL log. Args: message: Message to append.
agent/src/session/store.py:142
↓ 3 callersMethodapply_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 callersFunctionasRecord
(value: unknown)
frontend/src/lib/swarmStatus.ts:9
↓ 3 callersMethodbind_tools
(self, tools: list[dict[str, Any]])
agent/src/providers/openai_codex.py:364
↓ 3 callersFunctioncalcEMA
(data: number[], period: number)
frontend/src/lib/indicators.ts:12
↓ 3 callersFunctioncalcMA
(data: number[], period: number)
frontend/src/lib/indicators.ts:3
↓ 3 callersMethodcalc_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 callersMethodcancel_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 callersFunctioncik_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 callersFunctionclear_advisory_providers
Remove all registered advisory providers.
agent/src/live/advisory/__init__.py:253
↓ 3 callersFunctionclear_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 callersMethodclose
(self)
agent/tests/test_loader_retry_helpers.py:192
↓ 3 callersFunctioncmd_connector_check
Check selected or explicit trading connector profile.
agent/cli/_legacy.py:3840
↓ 3 callersFunctioncmd_connector_start
Start a live remote MCP connector runner.
agent/cli/_legacy.py:4212
↓ 3 callersFunctioncmd_connector_status
Show connector status.
agent/cli/_legacy.py:4197
↓ 3 callersFunctioncmd_interactive
Interactive mode with welcome screen, slash commands, and agent conversation.
agent/cli/_legacy.py:1878
↓ 3 callersFunctioncmd_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 callersFunctioncmd_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 callersFunctioncmd_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 callersFunctioncmd_sessions
List chat sessions.
agent/cli/_legacy.py:2632
↓ 3 callersFunctioncmd_skills
List available skills.
agent/cli/_legacy.py:2330
↓ 3 callersFunctioncmd_swarm_run_live
Run a swarm preset with Rich Live dashboard.
agent/cli/_legacy.py:2119
↓ 3 callersFunctioncompare_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 callersFunctionconnectCharts
()
frontend/src/lib/echarts.ts:29
↓ 3 callersFunctioncriterionCovered
(snapshot: GoalSnapshot, criterion: GoalSnapshot["criteria"][number])
frontend/src/pages/Agent.tsx:179
↓ 3 callersFunctioncross_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 callersMethoddaily
(self, ts_code, start_date, end_date)
agent/tests/test_loader_retry_helpers.py:354
↓ 3 callersMethoddescribe_table
Return schema metadata for a supported table.
agent/backtest/loaders/tushare_fundamentals.py:129
↓ 3 callersFunctiondetect_source
Infer the best loader source for a normalized symbol.
agent/src/market_data.py:34
↓ 3 callersFunctiondouble_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 callersFunctionexact_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 callersMethodexecute
Synthesize, persist, and return a ``mandate.proposal`` payload. Args: **kwargs: ``broker`` and ``ceilings`` required; optional ``
agent/src/tools/propose_mandate_tool.py:103
↓ 3 callersMethodexecute
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 callersMethodexecute
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 callersMethodexecute
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 callersMethodexecute
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 callersMethodexecute
Execute the tool and return a JSON string.
agent/src/agent/tools.py:39
↓ 3 callersFunctionextract_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 callersFunctionfeed_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 callersFunctionformFromConfig
(config: QVerisConfig)
frontend/src/components/settings/QVerisSettings.tsx:70
↓ 3 callersFunctionformatMetricVal
(k: string, v: number)
frontend/src/lib/formatters.ts:54
↓ 3 callersFunctionformat_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 callersFunctionformat_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 callersMethodformat_tool_result
Format a tool execution result as a message.
agent/src/agent/context.py:268
↓ 3 callersMethodfrom_mapping
Build a config from a JSON-like mapping, normalizing the profile.
agent/src/trading/connectors/binance/sdk.py:103
↓ 3 callersMethodfrom_mapping
Build a config from a JSON-like mapping.
agent/src/trading/connectors/dhan/sdk.py:88
↓ 3 callersMethodfrom_mapping
Build a config from a JSON-like mapping, normalizing profile/URL.
agent/src/trading/connectors/trading212/sdk.py:73
↓ 3 callersMethodfrom_mapping
(cls, data: Mapping[str, Any] | None = None)
agent/src/trading/connectors/shoonya/sdk.py:85
↓ 3 callersMethodfrom_mapping
Build a config from a JSON-like mapping, normalizing the profile.
agent/src/trading/connectors/tiger/sdk.py:82
↓ 3 callersMethodfrom_mapping
Build a config from a JSON-like mapping, normalizing the profile.
agent/src/trading/connectors/longbridge/sdk.py:76
↓ 3 callersMethodfrom_mapping
Build a config from a JSON-like mapping, normalizing the profile.
agent/src/trading/connectors/alpaca/sdk.py:65
↓ 3 callersMethodfrom_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 callersMethodget_account_snapshot
(self, config)
agent/tests/test_sdk_order_gate.py:43
↓ 3 callersFunctionget_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 callersMethodget_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 callersMethodget_contract_multiplier
Forex: multiplier is 1.0 (size is in currency units).
agent/backtest/engines/forex.py:134
↓ 3 callersMethodget_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 callersMethodget_quote
(self, symbol, *, config=None)
agent/tests/test_sdk_order_gate.py:286
↓ 3 callersMethodhandle_event
(self, event_type: str, data: dict[str, Any])
agent/cli/ui/rail.py:319
↓ 3 callersFunctionhandle_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 callersFunctionhead_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 callersFunctionheartbeats_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 callersMethodhydrate_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 callersFunctionisAuthRequiredError
(error: unknown)
frontend/src/lib/api.ts:18
↓ 3 callersFunctionis_approved
Check whether *sender_id* has been approved on *channel*.
agent/src/channels/pairing/store.py:144
↓ 3 callersMethodjobs
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 callersMethodlink_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 callersMethodlist_claims
Return claims for a goal.
agent/src/goal/store.py:496
↓ 3 callersMethodlist_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 callersMethodlist_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 callersFunctionload_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 callersFunctionload_selected_profile_id
Load the selected trading profile id.
agent/src/trading/profiles.py:69
↓ 3 callersMethodload_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 callersFunctionloader_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 callersFunctionmake_single_server_agent_json
Write a minimal agent.json with one remote MCP server.
agent/tests/mcp_http_test_helpers.py:59
↓ 3 callersFunctionmap_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 callersFunctionnext_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 callersFunctionnormalizeRunStatus
(value: unknown)
frontend/src/lib/swarmStatus.ts:27
↓ 3 callersFunctionon_event
(event_type: str, data: Dict[str, Any])
agent/cli/_legacy.py:1006
↓ 3 callersFunctionprint_banner
Render the cold-start banner once before the prompt appears.
agent/cli/ui/banner.py:55
↓ 3 callersFunctionprofiles_dir
()
agent/src/shadow_account/storage.py:28
↓ 3 callersFunctionprovider_diagnostics
Build a redacted provider diagnostic snapshot. Returns: Redacted provider/model/package/env/proxy/capability details.
agent/src/providers/llm.py:507
↓ 3 callersMethodpublish_inbound
Publish a message from a channel to the agent.
agent/src/channels/bus/queue.py:19
↓ 3 callersFunctionread_daily_count
Return today's order count for ``broker`` (UTC rollover; 0 on any miss).
agent/src/live/daily_count.py:28
↓ 3 callersFunctionreap_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 callersMethodrecover_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 callersMethodrefresh
(self)
agent/cli/ui/rail.py:315
↓ 3 callersFunctionregister_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 callersMethodreindex_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 callersFunctionrender_answer
Render assistant Markdown, upgrading pipe tables to Rich tables.
agent/cli/ui/transcript.py:70
↓ 3 callersMethodreset
()
frontend/src/hooks/__tests__/useSSE.test.ts:39
↓ 3 callersMethodreview
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 callersFunctionrouteParts
()
wiki/docs/main.js:62
↓ 3 callersFunctionrun_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 callersMethodsave
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 callersFunctionscan_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
← previousnext →1,001–1,100 of 8,953, ranked by callers