MCPcopy Create free account

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

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

↓ 4 callersFunctionrender_hint_bar
Return a Rich :class:`Text` row with ``left`` and right-aligned ``right``. The bar always fits the terminal width: * If ``left + right``
agent/cli/components/hint_bar.py:27
↓ 4 callersFunctionreplay_snapshot
Render the book as a JSON-ready, replay-comparable snapshot. Keys are sorted so two runs over identical inputs produce identical snapshots; D
agent/src/tools/paper_trade/order_lifecycle.py:284
↓ 4 callersFunctionrequest
(path: string, options?: RequestInit, timeoutMs?: number)
frontend/src/lib/api.ts:429
↓ 4 callersMethodrequest_sweep
Ask for a delivery sweep as soon as the loop is free. Called from the session event listener, so it runs on whichever thread publishe
agent/src/scheduled_research/executor.py:527
↓ 4 callersFunctionrequire_auth
Validate Bearer token for sensitive API endpoints. Returns: The authenticated :class:`~src.session.models.Principal`. Routes that
agent/src/api/security.py:571
↓ 4 callersFunctionrequire_positive
Check a value that is meaningless at or below zero. Args: value: The value to check, e.g. a share count or a discount rate. name:
agent/src/quantlib/valuation/contracts.py:138
↓ 4 callersFunctionresolve
()
frontend/src/components/charts/__tests__/ShannonPortfolio.test.tsx:112
↓ 4 callersFunctionresolve_delivery_target
Resolve an opaque ref or raise a user-facing validation error.
agent/src/channels/targets.py:42
↓ 4 callersFunctionresolve_industry_board
Resolve the single Eastmoney industry board (行业板块) name for an A-share. Unlike the membership view (``spt=3``), which mixes industry and concept
agent/src/tools/sector_tool.py:206
↓ 4 callersFunctionresolve_instrument_id
Resolve a user symbol to an eToro ``instrumentId`` for trading APIs.
agent/src/trading/connectors/etoro/instruments.py:295
↓ 4 callersMethodround_size
Delegate to active symbol's sub-engine.
agent/backtest/engines/composite.py:294
↓ 4 callersMethodrun
()
agent/src/providers/claude_cli.py:596
↓ 4 callersFunctionrun_preflight
Run all preflight checks and print results. Args: console: Rich console for output. Creates one if not provided. Returns: Li
agent/src/preflight.py:303
↓ 4 callersFunctionrunner_requires_account
Return whether a live runner broker's reads and orders must name an account. Args: connector: Broker key, e.g. ``"robinhood"``. Retu
agent/src/trading/service.py:1338
↓ 4 callersMethodsafe_fallback
Return a deterministic fail-closed answer after repeated rejection.
agent/src/agent/grounding/release.py:365
↓ 4 callersFunctionsample_points
Draw a random sample, clamped to [3, 30], ordered by line number. Args: points: Data points returned by :func:`extract_data_points`.
agent/src/tools/report_audit_tool.py:287
↓ 4 callersMethodsave
Append a revision, or return the identical existing revision.
agent/src/research_artifacts/store.py:182
↓ 4 callersMethodsave
Persist non-empty values; blank fields leave an existing secret unchanged. Args: connection_id: Identifier of the local connectio
agent/src/trading/credentials.py:76
↓ 4 callersMethodsave
Validate and persist a connection, replacing any row with its id. Args: connection: Connection to store. Returns:
agent/src/trading/connections.py:212
↓ 4 callersMethodsave_relations
Write .relations.json sidecar file beside the memory file. Uses atomic write (write to temp file + rename) to ensure thread safety an
agent/src/memory/semantic_links.py:232
↓ 4 callersFunctionscale_pence_to_currency
Convert GBp-quoted OHLC prices to GBP (÷100) when the source says GBp. Args: frame: OHLCV frame with float price columns. currenc
agent/backtest/loaders/base.py:65
↓ 4 callersFunctionscenario
()
agent/tests/test_dingtalk_message_flow.py:36
↓ 4 callersFunctionscenario
()
agent/tests/test_channel_manager_health.py:103
↓ 4 callersFunctionscenario
()
agent/tests/test_verdict.py:127
↓ 4 callersFunctionscheduler_status
Return configuration and runtime state without starting the scheduler.
agent/src/scheduled_research/service.py:62
↓ 4 callersFunctionscrub_secrets
Return diagnostic text with every non-empty secret value replaced. Transport and rejection messages can echo the request or credential by acc
agent/src/channels/token_probe.py:48
↓ 4 callersMethodsearch
(self, query, max_results)
agent/tests/memory/test_tier2_integration.py:210
↓ 4 callersFunctionsearch_instruments
Search eToro instruments by ticker, free-text query, or asset class. Args: query: Symbol (``BTC``, ``AAPL``), discovery text, or asset-cl
agent/src/trading/connectors/etoro/instruments.py:157
↓ 4 callersMethodselect
(self, mailbox: str = "INBOX")
agent/tests/test_email_connection_test.py:124
↓ 4 callersFunctionselected_features
Return recognized, individually selected features in settings order.
agent/src/config/gildata_features.py:21
↓ 4 callersMethodsend
Send a message through Discord using discord.py.
agent/src/channels/discord.py:494
↓ 4 callersFunctionsetData
(data: OptionsChainData | null)
frontend/src/components/options/OptionsChainTable.tsx:144
↓ 4 callersFunctionsetDays
(days: number)
frontend/src/pages/Correlation.tsx:52
↓ 4 callersFunctionset_reply
(reply: dict[str, Any])
agent/tests/claude_cli_helpers.py:131
↓ 4 callersFunctionsource_order_env_var
Return the env var name overriding ``market``'s source order. ``"a_share"`` -> ``"MARKET_DATA_ORDER_A_SHARE"``.
agent/backtest/loaders/registry.py:490
↓ 4 callersMethodstart
Start the Feishu bot with WebSocket long connection.
agent/src/channels/feishu.py:713
↓ 4 callersMethodstart_all
Start all channels and the outbound dispatcher.
agent/src/channels/manager.py:260
↓ 4 callersMethodstarttls
(self, context: Any = None)
agent/tests/test_email_connection_test.py:184
↓ 4 callersMethodstop
Stop the background loop and wait for it to finish. Idempotent. When disabled or not started, this is a no-op. The kernel sets the wa
agent/src/scheduled_research/executor.py:269
↓ 4 callersMethodstop_all
Stop all channels and the dispatcher.
agent/src/channels/manager.py:277
↓ 4 callersFunctionstoredLang
()
wiki/site.js:33
↓ 4 callersMethodstreamable_length
Return how much of a streaming answer may be shown live. Held back: everything from the figures block's fence on (the model's declara
agent/src/agent/grounding/ledger.py:217
↓ 4 callersFunctionstrip_figures_block
Return the text to release: the draft without any declaration block.
agent/src/agent/grounding/figures.py:873
↓ 4 callersFunctionstyle_drift
Summarise how a portfolio's exposures moved over time. Args: exposure_history: Rows indexed by date in chronological order, one
agent/src/quantlib/factormodel.py:530
↓ 4 callersMethodsymbol_info_tick
(self, name: str)
agent/tests/test_mt5_connector.py:173
↓ 4 callersFunctionsystem_job_specs
Return every declared production system-job spec (immutable tuple).
agent/src/scheduling/system_jobs.py:277
↓ 4 callersMethodtail
()
desktop/electron/src/backend-manager.ts:298
↓ 4 callersFunctionthree_scenario_valuation
Bull / base / bear target prices from EPS-growth and target-PE assumptions. Future EPS = ``current_eps × (1 + growth) ** years``; target price =
agent/src/tools/financial_rigor_tool.py:387
↓ 4 callersMethodto_dict
Return the connection as a JSON-serializable mapping. Returns: A mapping of the metadata fields; it carries no secret values.
agent/src/trading/connections.py:143
↓ 4 callersFunctionto_usd
Convert value into USD, failing closed when a rate is unavailable.
agent/src/portfolio/fx.py:39
↓ 4 callersFunctiontry_register_openbb_routes
Mount the OpenBB Workspace routes when the optional extra is installed. Args: app: The FastAPI application to mount onto. Returns:
agent/src/openbb_bridge/__init__.py:27
↓ 4 callersFunctionunquote
(value: string)
desktop/electron/src/secure-credentials.ts:196
↓ 4 callersMethodupdate_status
Transition an artifact to a new status. Sets ``disabled_at`` and ``disabled_reason`` when transitioning to ``DISABLED``. Returns the
agent/src/strategy_store/store.py:254
↓ 4 callersFunctionvalidate_model_registration
Validate that *artifact* carries the minimum model-registration fields. A model registration without a stated intended use or a stated limita
agent/src/strategy_store/models.py:245
↓ 4 callersFunctionverify_export
Re-verify a chain purely from an export — no source ledger file needed. First checks the export envelope itself (``export_hash``, recomputed the
agent/src/governance/ledger.py:548
↓ 4 callersMethodverify_hash
Recompute ``manifest_hash`` from the other fields and compare. Useful after deserializing a persisted manifest (``from_dict`` / ``fro
agent/src/governance/manifest.py:251
↓ 4 callersFunctionverify_valuation
Derive valuation ratios from raw per-share inputs (exact decimal). Each optional input, when supplied and non-zero, contributes its metric(s).
agent/src/tools/financial_rigor_tool.py:192
↓ 4 callersFunctionvif_test
Score each regressor's variance inflation factor for multicollinearity. VIF measures how much a coefficient's variance is inflated by correlation
agent/src/quantlib/timeseries.py:722
↓ 4 callersFunctionvisit
(item: Any, dotted: str)
agent/src/agent/grounding/evidence.py:335
↓ 4 callersFunctionwrapper
(self, *args, **kwargs)
agent/src/goal/store.py:99
↓ 4 callersMethodwrite
(self, entry: dict[str, Any])
agent/src/live/audit.py:113
↓ 4 callersMethodwriteLog
(message: string)
desktop/electron/src/backend-manager.ts:302
↓ 4 callersMethodwrite_text_entry
Write an entry with one potentially large text field. Args: entry: Base trace entry. Mutated before writing. field: T
agent/src/agent/trace.py:114
↓ 4 callersMethodwrite_tool_result
Write a tool_result entry, offloading large results to disk. Args: call_id: Provider tool call ID. result: Raw tool r
agent/src/agent/trace.py:142
↓ 4 callersFunctionzip_members
Return ``{member name: bytes}`` for every file inside a ZIP payload.
agent/src/br_data/_download.py:29
↓ 3 callersMethod__init__
( self, *, model: str, temperature: float = 0.0, timeout: int = 120,
agent/src/providers/openai_codex.py:713
↓ 3 callersFunction_account_arg
Build the arguments dict a remote MCP account/positions/orders call needs. The CLI ``--account`` flag and the agent-facing tools both surface as
agent/src/trading/service.py:1504
↓ 3 callersFunction_account_client
(cfg: OKXConfig)
agent/src/trading/connectors/okx/sdk.py:599
↓ 3 callersFunction_account_id
Return the configured TickerAll account id, stripped (``""`` if unset).
agent/backtest/loaders/tickerall_loader.py:111
↓ 3 callersMethod_account_llm_usage
Persist reported usage and notify spending monitors before more work. Args: run_dir: Active run's artifact directory.
agent/src/agent/loop.py:1486
↓ 3 callersFunction_account_payload
()
agent/tests/test_binance_usdm_readonly.py:17
↓ 3 callersFunction_accounts_base_url
(domain: str)
agent/src/channels/feishu.py:410
↓ 3 callersFunction_add_user_message
(session_id: str)
agent/tests/test_goal_api.py:30
↓ 3 callersFunction_agent_config
(server)
agent/tests/test_trading_connections.py:17
↓ 3 callersFunction_aligned
(panel: pd.DataFrame, reference: pd.DataFrame)
agent/src/quantlib/neutralization.py:58
↓ 3 callersFunction_analyze
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, rows: str)
agent/tests/test_trade_journal_strict_json.py:17
↓ 3 callersFunction_answer
(ref)
agent/tests/test_grounding_unknown_single_refs.py:29
↓ 3 callersFunction_apply_microcompact_gate
Mirror AgentLoop layer-1 gate (``loop.py`` ~572-573).
agent/tests/test_loop_helpers.py:27
↓ 3 callersFunction_arg_value
(args: Any, *keys: str)
agent/cli/ui/rail.py:97
↓ 3 callersFunction_artifact_ref
``path`` as a ref names it: below the active run, else below its parent. A backtest an earlier turn left is a sibling of the active run, so `
agent/src/agent/grounding/evidence.py:243
↓ 3 callersMethod_artifact_scope
The backtest output a ref names by run directory or file, or None. Backtest output is named the way the model named the run: its run
agent/src/agent/grounding/policies.py:1054
↓ 3 callersFunction_as_dict
(value: Any)
agent/src/tools/backtest_runs_tool.py:39
↓ 3 callersFunction_as_iter
(value: Any)
agent/src/trading/connectors/alpaca/sdk.py:879
↓ 3 callersFunction_as_list
(value: Any)
agent/src/trading/connectors/dhan/sdk.py:611
↓ 3 callersFunction_as_list
(value: Any)
agent/src/trading/connectors/shoonya/sdk.py:661
↓ 3 callersFunction_assemble
Discover + live-wrap the robinhood channel for a given allowlist.
agent/tests/test_readonly_default.py:82
↓ 3 callersFunction_assemble
Discover + live-wrap the scalable channel for a given allowlist.
agent/tests/test_scalable_connector.py:288
↓ 3 callersFunction_assert_invalid_runtime_file_is_redaction_safe
(tmp_path, secret_value: str)
agent/tests/test_longbridge_credentials.py:175
↓ 3 callersFunction_assert_no_abs
(msg: str)
agent/tests/test_error_path_redaction.py:26
↓ 3 callersFunction_assert_trees_frozen
(runtime_before: dict[str, str], cwd_before: dict[str, str], cwd: Path)
agent/tests/test_paper_trade_purity.py:140
↓ 3 callersFunction_assert_unchanged
(engine, positions=None)
agent/tests/test_base_engine.py:101
↓ 3 callersFunction_ast_config_keys
Collect string literals read off the backtest config dict in a module. Matches ``config.get("key")``, ``config["key"]`` and the same two forms on
agent/backtest/runner.py:1312
↓ 3 callersFunction_attach_price_features
Attach price-context features in place, batching one fetch per symbol. Groups roundtrips by symbol, fetches each symbol's price window once over
agent/src/shadow_account/extractor.py:248
↓ 3 callersMethod_attempt_dir
(self, session_id: str, attempt_id: str)
agent/src/session/store.py:52
↓ 3 callersFunction_attribution_run_brinson
Run ``brinson_fachler`` and serialize the result into the response shape. Args: mode: One of ``"symbol"``, ``"asset_class"``, ``"invested
agent/src/api/attribution_core.py:460
↓ 3 callersMethod_audit
Write one live-action audit event and return the redacted record. The returned record (identical to what was written to the ledger) is
agent/src/live/order_guard.py:754
↓ 3 callersFunction_auth_credential_from_header_or_query
Return the supplied API credential from the permitted source.
agent/src/api/security.py:369
↓ 3 callersFunction_auto_cluster
Pick a cluster count via simple silhouette heuristic (fallback k=2). Uses the supplied numeric features; scales by z-score to avoid any single
agent/src/shadow_account/extractor.py:394
↓ 3 callersFunction_auto_title_endpoint
(app)
agent/tests/test_session_auto_title_wrapped_prompt.py:125
↓ 3 callersFunction_badges
Return the feature badges in document order. Args: text: Full README text. Returns: The numeric ``<sub>`` badge texts that s
agent/tests/test_readme_counts.py:228
← previousnext →2,601–2,700 of 26,887, ranked by callers