MCPcopy Create free account

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

Functions30,405 in github.com/HKUDS/Vibe-Trading

↓ 4 callersMethodpoll
Forward status and opt-in reasoning, excluding answer drafts/results.
agent/src/channels/attempt_progress.py:36
↓ 4 callersFunctionpositive_env_int
Read a positive integer env var, warning and falling back on invalid values.
agent/backtest/loaders/base.py:450
↓ 4 callersFunctionprepare_adaptation
Create a child, seed its config, and return the generation instructions. Args: strategy_id: Existing SDM strategy id, with its ``sdm:`` p
agent/src/strategy_discovery/adaptation_workflow.py:18
↓ 4 callersFunctionprofiles_dir
()
agent/src/shadow_account/storage.py:29
↓ 4 callersMethodprospective_fill_price
Return the price this engine would fill at on this bar. Mirrors the sizing path: the bar's open, with slippage applied in the trade d
agent/backtest/engines/base.py:780
↓ 4 callersFunctionpublic_reasoning_effort
Return an approved reasoning-effort label for run metadata. Args: value: Candidate reasoning-effort label, matched case-insensitively.
agent/src/swarm/models.py:106
↓ 4 callersMethodpublish
(self, topic, event, payload)
agent/src/data_gateway/streams.py:257
↓ 4 callersMethodpublish
Publish an event to a session channel in a thread-safe way. Args: event: Event carrying the destination session ID.
agent/src/session/events.py:154
↓ 4 callersFunctionqualified_path
Render the full "Parent > Child" address of one section. Args: sections: Sections in the document order produced by split_sections.
agent/src/product/resources/skills.py:238
↓ 4 callersMethodquery
(self, sql: str, params: dict[str, str] | None = None)
agent/src/tools/paper_trade/limits_cn_a.py:210
↓ 4 callersMethodquit
(self)
agent/tests/test_email_connection_test.py:196
↓ 4 callersMethodread
Read settings from the first available configuration file. Returns: A settings mapping from the canonical, legacy, or example fil
agent/src/providers/settings.py:251
↓ 4 callersFunctionread_frozen_input
Read the bytes described by a snapshot entry, or refuse changed input.
agent/backtest/frozen.py:28
↓ 4 callersFunctionread_records
(path: Path)
agent/tests/harness_eval/thread_fixture.py:33
↓ 4 callersFunctionread_workbook
(tmp_path, monkeypatch, rows, second_sheet=False)
agent/tests/test_doc_reader_excel_literal_text.py:18
↓ 4 callersMethodrecord_decay_snapshot
Record a decay monitoring snapshot, assigning an auto-increment ID. Returns: The assigned snapshot ID.
agent/src/strategy_store/store.py:386
↓ 4 callersMethodrecord_final_answer
Record the released answer as a final assistant item. Args: content: Released answer text. Empty text is ignored.
agent/src/agent/loop_conversation.py:73
↓ 4 callersMethodrecords_into
Check whether appending to a message list should update the durable turn. Args: messages: Destination list, checked by object ide
agent/src/agent/loop_conversation.py:23
↓ 4 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:336
↓ 4 callersFunctionreject
(code: UpdateRejectionCode, detail: string)
desktop/electron/src/update-verification.ts:317
↓ 4 callersFunctionreject_live_execution_objective
Reject direct live-trading or order-execution goal text. Args: objective: Research goal objective. Raises: ValueError: If th
agent/src/goal/policy.py:60
↓ 4 callersFunctionremote_arguments
Return IBKR's argument-free account/position request payload.
agent/src/trading/connectors/ibkr/mcp.py:32
↓ 4 callersFunctionrender
(content)
agent/tests/test_email_rich_delivery.py:213
↓ 4 callersFunctionrender_block
(*, detailed: bool = False)
agent/src/trading/capability_matrix.py:105
↓ 4 callersFunctionrepair_provider_messages
Repair tool blocks for one provider request without changing history. Args: messages: Messages about to be sent to a provider. Retur
agent/src/providers/messages.py:153
↓ 4 callersFunctionreplay_run
Evaluate a stored run against explicit cases or its exact original prompt.
agent/evals/harness/suite.py:46
↓ 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:312
↓ 4 callersFunctionreplay_suite
Replay each case against its own stored run without rewriting prompts.
agent/evals/harness/suite.py:94
↓ 4 callersFunctionrequest
(path: string, options?: RequestInit, timeoutMs?: number)
frontend/src/lib/api.ts:445
↓ 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:568
↓ 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_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:207
↓ 4 callersFunctionresolve_instrument_id
Resolve a user symbol to an eToro ``instrumentId`` for trading APIs.
agent/src/trading/connectors/etoro/instruments.py:295
↓ 4 callersMethodresolved_backend
Return the supported backend name or raise when unavailable. Returns: ``disabled`` when the sandbox is off, else ``sandbox-exec``
agent/src/tools/sandbox.py:375
↓ 4 callersMethodround_size
Delegate to active symbol's sub-engine.
agent/backtest/engines/composite.py:301
↓ 4 callersMethodrun
(emit: Callable[[AIMessageChunk], None], cancel_event: threading.Event)
agent/src/providers/claude_cli.py:585
↓ 4 callersMethodrun
(self, *, user_message: str, history, session_id: str)
agent/tests/test_session_thread_events.py:433
↓ 4 callersFunctionrun_parent
(registry: ToolRegistry, script: list[Any], run_dir: Path, **kwargs: Any)
agent/tests/test_spawn_agent_tool.py:130
↓ 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:1334
↓ 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
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 callersFunctionsave_result_parts
Save immutable parts that fit through the actual read_file JSON envelope. Args: content: Complete, already redacted result text.
agent/src/product/result_artifacts.py:143
↓ 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:93
↓ 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 callersFunctionscenario_grid
Calculate pre-expiry mark-to-market P&L over spot and volatility. The entry cost is pinned once using the entry spot/IV and includes entry co
agent/backtest/options_payoff.py:401
↓ 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 callersFunctionserialize_task
Project a SwarmTask into its public per-task dict. Args: task: Swarm task to expose to a reader. Returns: Public task fields
agent/src/swarm/serialization.py:10
↓ 4 callersFunctionsetData
(data: OptionsChainData | null)
frontend/src/components/options/OptionsChainTable.tsx:144
↓ 4 callersMethodset_loop
Set the asyncio event loop, usually during api_server startup. Args: loop: Asyncio loop used to dispatch events to subscriber que
agent/src/session/events.py:146
↓ 4 callersFunctionset_reply
(reply: dict[str, Any])
agent/tests/claude_cli_helpers.py:131
↓ 4 callersMethodsettings
(legacy: bool)
agent/src/product/tool_policy.py:62
↓ 4 callersFunctionshould_cancel
()
agent/tests/test_chat_llm_streaming.py:235
↓ 4 callersFunctionsource_catalog
Describe configured local connections without exposing secret values. Args: settings: The currently persisted portfolio settings.
agent/src/portfolio/config.py:97
↓ 4 callersMethodstart
Start rendering the spinner if it is idle. Args: verb: Optional status verb. Omit it to pick a verb for the new turn.
agent/cli/stream.py:118
↓ 4 callersMethodstart
Start the Feishu bot with WebSocket long connection.
agent/src/channels/feishu.py:713
↓ 4 callersMethodstart
Record the turn's start and the user message exactly as sent. Args: prompt: The user's text as typed. message: The us
agent/src/session/runtime.py:74
↓ 4 callersMethodstart_all
Start all channels and the outbound dispatcher.
agent/src/channels/manager.py:260
↓ 4 callersFunctionstart_goal
(session_id: str, **budget: Any)
agent/tests/test_spawn_agent_tool.py:658
↓ 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 callersFunctionstream
(request: Request, topics: str = Query(min_length=1, max_length=1024))
agent/src/data_gateway/api.py:73
↓ 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 callersMethodsubscribe
Subscribe to a session event stream asynchronously. Args: session_id: Session to subscribe to. last_event_id: Last ev
agent/src/session/events.py:318
↓ 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 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 callersMethodtime_to_expiry
Calculate time remaining to expiry in years. Args: current_date: Current date. Returns: Time to expiry in ye
agent/backtest/engines/options_portfolio.py:179
↓ 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 callersFunctiontrace_event
(stage)
tools/gateway_soak.py:137
↓ 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 callersFunctiontushare_client
Return a lazy read client; each Pro query enters shared acquisition. Args: token: Existing authorized token. Omission uses configured/SDK
agent/src/data_gateway/skill_sources.py:32
↓ 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
Reject malformed or inconsistent observations before writing anything.
tools/github_traffic/archive.py:33
↓ 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 callersFunctionverifyWindowsUpdateCandidate
( candidate: UpdateCandidate, policy: UpdateVerificationPolicy, inspectSignature: SignatureInspector = i
desktop/electron/src/update-verification.ts:53
↓ 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/evals/grounding/evidence.py:339
↓ 4 callersMethodwaiting
Return the inputs no turn has claimed, oldest first. Args: session_id: Session ID. Returns: Unclaimed inputs
agent/src/session/pending_inputs.py:141
↓ 4 callersMethodwatch
Fail the run after two consecutive observations beyond the idle threshold. Args: trace: Sink for the terminal failure trace.
agent/src/agent/loop_watchdog.py:45
↓ 4 callersMethodwrite
(self, entry: dict[str, Any])
agent/src/live/audit.py:111
↓ 4 callersMethodwriteLog
(message: string)
desktop/electron/src/backend-manager.ts:302
↓ 4 callersFunctionzip_members
Return ``{member name: bytes}`` for every file inside a ZIP payload.
agent/src/br_data/_download.py:29
← previousnext →3,001–3,100 of 30,405, ranked by callers