MCPcopy Create free account

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

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

↓ 1 callersFunction_qty_by_symbol
(positions: Sequence["Position"])
agent/src/tools/paper_trade/corporate_actions.py:261
↓ 1 callersFunction_qualified_type_name
Return a stable type name without calling the value's representation.
agent/src/tools/mcp.py:1481
↓ 1 callersFunction_quantlib_module_count
Count the `src/quantlib` submodules the badge claims. Counted the same way the function total is: a submodule that exports an `__all__` is on
agent/tests/test_readme_counts.py:166
↓ 1 callersMethod_quarantine
(self, cause: str)
agent/src/scheduled_research/store.py:241
↓ 1 callersMethod_quarantine
Rename the corrupt store aside as ``<name>.corrupt-<ts>``. Args: cause: Reason string (logged only). Returns:
agent/src/live/runtime/jobstore.py:165
↓ 1 callersFunction_quarterly_flow_frames
Return true-quarter flow frames, deriving fiscal Q4 from 10-K full years. Filers like AAPL report Q4 only inside the 10-K full-year frame, so a
agent/backtest/loaders/fundamentals_loader.py:135
↓ 1 callersFunction_query_claude_cli_models
(executable: str)
agent/src/providers/claude_cli_models.py:74
↓ 1 callersMethod_queue_key_for_message
Return the final vibe-trading session key used for ordered Telegram ingress.
agent/src/channels/telegram.py:1350
↓ 1 callersFunction_queue_prompt
Stash ``prompt`` on ``ctx.pending_prompt`` for the REPL loop to run.
agent/cli/commands/research_playbook.py:372
↓ 1 callersFunction_quote_price
(payload: dict[str, Any])
agent/src/portfolio/service.py:184
↓ 1 callersFunction_quote_price
Live USD price for the intent symbol: connector quote first, loaders next.
agent/src/live/sdk_order_gate.py:961
↓ 1 callersMethod_quote_price
Return a live USD price for the intent's symbol, fail-closed. Args: intent: The order intent whose symbol is priced. Ret
agent/src/live/order_guard.py:294
↓ 1 callersFunction_quote_summary_request
Issue one crumb-gated quoteSummary GET, retrying once on a 401.
agent/backtest/loaders/yahoo_client.py:327
↓ 1 callersFunction_quote_to_dict
(item: Any)
agent/src/trading/connectors/tiger/sdk.py:700
↓ 1 callersFunction_quote_to_dict
(row: Mapping[str, Any])
agent/src/trading/connectors/futu/sdk.py:1326
↓ 1 callersFunction_quote_to_dict
(item: Any)
agent/src/trading/connectors/okx/sdk.py:753
↓ 1 callersFunction_raise_if_incomplete
Raise :class:`IncompleteHistoryError` when a 200 response is short of the window. A served response reports ``truncated`` (the walk could not cov
agent/backtest/loaders/tickerall_loader.py:368
↓ 1 callersMethod_random_wechat_uin
X-WECHAT-UIN: random uint32 → decimal string → base64. Matches the reference plugin's ``randomWechatUin()`` in api.ts. Generated fres
agent/src/channels/weixin.py:240
↓ 1 callersFunction_rank_ic
Spearman correlation of one cross-section; ``None`` when unestimable.
agent/src/quantlib/combination.py:137
↓ 1 callersFunction_rate
(value: Any, key: str)
agent/backtest/engines/argentina_equity.py:843
↓ 1 callersFunction_rates
(*rows: tuple)
agent/tests/test_mt5_loader.py:37
↓ 1 callersMethod_rates
Fetch a validated quote or fall back to one coherent cached quote.
agent/src/portfolio/service.py:1162
↓ 1 callersFunction_rates_by_instrument_id
(payload: Any)
agent/src/trading/connectors/etoro/instruments.py:458
↓ 1 callersFunction_rates_to_frame
Map a ``copy_rates_range`` structured array to the loader frame contract.
agent/backtest/loaders/mt5_loader.py:162
↓ 1 callersFunction_raw_live_server_config_entry
Best-effort raw lookup used only to explain invalid live config.
agent/cli/_legacy.py:3388
↓ 1 callersFunction_raw_server_entry_uses_wildcard
Return whether a raw MCP server entry uses a wildcard enabledTools list.
agent/cli/_legacy.py:3422
↓ 1 callersFunction_read
Wrap adapter.call_tool into a READ callable with a normalized payload. The MCP adapter returns ``{"status": "error", ...}`` envelopes instead
agent/src/api/live_routes.py:723
↓ 1 callersFunction_read_action_ids
(broker: str)
agent/src/live/daily_count.py:174
↓ 1 callersFunction_read_bench_metrics
Read the strategy metrics a bench row records from ``metrics.csv``. Args: run_path: Run directory containing ``artifacts/metrics.csv``.
agent/src/tools/backtest_tool.py:75
↓ 1 callersMethod_read_daily_count
Return today's order count via the shared per-broker counter.
agent/src/live/order_guard.py:744
↓ 1 callersFunction_read_duckdb
( db_path: str, query: str, col_map: dict[str, str], date_fmt: str | None )
agent/backtest/loaders/local_loader.py:254
↓ 1 callersMethod_read_first
Read the first responsive broker read tool, fail-closed. Routes through the plain ``MCPServerAdapter.call_tool`` path (NOT the guard)
agent/src/live/order_guard.py:654
↓ 1 callersMethod_read_group_id
(metadata: dict[str, Any])
agent/src/channels/mochat.py:940
↓ 1 callersFunction_read_image
(path: Path)
agent/src/tools/doc_reader_tool.py:347
↓ 1 callersFunction_read_json
(path: Path)
agent/evals/harness/artifacts.py:99
↓ 1 callersFunction_read_json_artifact
Parse and envelope a small JSON artifact (run_card or manifest-listed). Returns the ``{"artifact", "run_dir", "json", "size_bytes"}`` envelope, o
agent/src/tools/run_artifact_tool.py:382
↓ 1 callersFunction_read_loader_cache_frame
( cache_path: Path, source_revision: str | None = None )
agent/backtest/loaders/base.py:723
↓ 1 callersMethod_read_longbridge_isolated
Read Longbridge in a throwaway subprocess and parse its payload. Returns: The worker's account/positions/quotes payload.
agent/src/portfolio/service.py:1124
↓ 1 callersMethod_read_media_bytes
( self, media_ref: str, )
agent/src/channels/dingtalk.py:488
↓ 1 callersFunction_read_mt5_config
Best-effort read of the shared mt5.json ({} on missing/corrupt).
agent/backtest/loaders/mt5_loader.py:67
↓ 1 callersFunction_read_pickle_cache
Load a pickle cache, authenticating its keyed HMAC sidecar. None on failure. The HMAC is verified before ``pickle.loads`` so a locally-tampered b
agent/src/tools/alpha_bench_tool.py:221
↓ 1 callersFunction_read_positions_symbols
Read the symbol column names from a wide-format ``positions.csv``. Args: path: Path to ``artifacts/positions.csv`` (header ``
agent/src/api/runs_routes.py:483
↓ 1 callersFunction_read_prompt_source
Resolve prompt text from CLI args, file, stdin, or interactive input.
agent/cli/_legacy.py:289
↓ 1 callersFunction_read_rows
Split an export into its format, header and data rows. Args: text: The decoded export. Returns: The detected format, the hea
agent/src/portfolio/extraetf.py:391
↓ 1 callersFunction_read_spec
()
agent/tests/test_killswitch_blocks_orders.py:63
↓ 1 callersFunction_read_text
Read a text-like file with encoding fallback.
agent/src/tools/doc_reader_tool.py:396
↓ 1 callersFunction_readme_chains
Return every fallback chain a README's bullet list writes out. Args: name: README file name relative to the repository root. Returns
agent/tests/test_readme_counts.py:695
↓ 1 callersFunction_readme_loader_names
Return the loader names a README's tree line lists, in order.
agent/tests/test_readme_counts.py:576
↓ 1 callersFunction_realtime_payload
()
agent/tests/test_northbound_tool.py:15
↓ 1 callersMethod_reap_stale
Pure: mark non-terminal tasks failed; derive run status from tasks.
agent/src/swarm/store.py:475
↓ 1 callersFunction_reasons_source
(reasons: list)
agent/tests/test_paper_trade_strategy_path.py:342
↓ 1 callersMethod_recall
(self, kwargs: dict)
agent/src/tools/remember_tool.py:124
↓ 1 callersFunction_recent_block
Return the ``filings.recent`` mapping from a submissions payload, or ``None``.
agent/src/tools/sec_filings_tool.py:238
↓ 1 callersMethod_recipient_params
Build recipient params for signal-cli JSON-RPC methods.
agent/src/channels/signal.py:1344
↓ 1 callersFunction_reconcile
Mutate *job* toward *spec* in place; return human-readable change notes. Touches ONLY spec-owned fields (source_type / executor_kind / intern
agent/src/scheduling/system_jobs.py:350
↓ 1 callersFunction_record
(session: str, at: int, symbol: str = "AAPL")
agent/tests/test_verdict.py:83
↓ 1 callersMethod_record_backtest_metrics
Parse metric figures from a successful backtest's run-dir artifacts.
agent/src/agent/grounding/evidence.py:901
↓ 1 callersFunction_record_bench_if_declared
Record the run in the bench history of the artifact its config declares. A backtest cannot tell which registered artifact it serves, so the link
agent/src/tools/backtest_tool.py:106
↓ 1 callersMethod_record_dropped_target_adjustments
Note every same-direction resize that hold mode is about to drop. Only a change in the TARGET counts. A held position's weight drifts
agent/backtest/engines/base.py:1697
↓ 1 callersFunction_record_handle
(channel: DingTalkChannel)
agent/tests/test_dingtalk_message_flow.py:25
↓ 1 callersFunction_record_live_action
Call ``write_live_action`` with the keyword contract, fall back positional. The frozen contract is ``write_live_action(event, *, event_callba
agent/src/live/order_guard.py:865
↓ 1 callersMethod_record_risk_snapshot
( self, timestamp: pd.Timestamp, price_field: str, snapshot: RiskSnapshot,
agent/backtest/engines/crypto.py:242
↓ 1 callersFunction_record_sec_fact
Merge one fact into the period record identified by its ``(start, end)``. A period is filed once as the primary period and then repeated as a
agent/src/tools/financial_statements_tool.py:502
↓ 1 callersFunction_record_unreported_llm_call
Count a call whose provider reported no usage, without inventing tokens. Args: run_dir: Active run's artifact directory. summary:
agent/src/agent/llm_usage.py:124
↓ 1 callersMethod_record_verdict_if_terminal
Persist the run's verdict once its session reaches a terminal state. Channel-less jobs have no outbox, so this sweep is the only place their
agent/src/scheduled_research/executor.py:704
↓ 1 callersFunction_records
(frame: "pd.DataFrame")
agent/src/tools/paper_trade/limits_cn_a.py:133
↓ 1 callersFunction_records
( values: Iterable[str | Mapping[str, Any]] | None, *, name: str, )
agent/src/factors/research_contract.py:58
↓ 1 callersFunction_records_at
The backtest records a path-like ref token names. A directory or file relative to the run (or absolute) names what lies at or under it. A fil
agent/src/agent/grounding/policies.py:2627
↓ 1 callersMethod_recover_context_overflow
Learn the real window from a context-length error and compact to it. A model missing from ``context_windows.json`` runs on the default
agent/src/agent/loop.py:1402
↓ 1 callersFunction_recover_correlated_fill
Attribute an exact quantity fill to the signed broker position delta.
agent/src/live/sdk_order_gate.py:620
↓ 1 callersMethod_recover_interrupted_attempts
Finalize attempts that could not outlive the previous process. A newly constructed service has no live AgentLoop instances. Any attem
agent/src/session/service.py:129
↓ 1 callersFunction_recover_pending_order
Resolve one Alpaca submission by exact identity, never by resubmission.
agent/src/live/sdk_order_gate.py:542
↓ 1 callersFunction_recover_staging
Resolve ``.migrating-*`` leftovers from an interrupted earlier run. A leftover whose final name already exists, or whose source entry is stil
agent/src/config/migrate.py:57
↓ 1 callersFunction_redact_env_flag
Report whether an env var is set without exposing its value.
agent/src/providers/llm.py:877
↓ 1 callersFunction_redact_env_source
Map a resolved `.env` candidate to a stable, leak-free label. Returns a symbolic slot label (never the absolute path) so a stale or shadowed
agent/src/providers/llm.py:825
↓ 1 callersFunction_redact_home
Render ``path`` with the home prefix collapsed to ``~`` so user-facing errors never leak the absolute home directory (CWE-209).
agent/src/swarm/presets.py:38
↓ 1 callersFunction_redact_provider_error
Redact configured secret/proxy values from provider errors.
agent/src/providers/chat.py:225
↓ 1 callersFunction_redact_proxy_url
Return a credential-free proxy URL label.
agent/src/providers/llm.py:928
↓ 1 callersFunction_redact_query_secrets
Replace ``api_key=``/``ticket=`` values with a fixed placeholder.
agent/src/api/security.py:267
↓ 1 callersFunction_redact_token_usage
Keep usage counts without admitting credentials through a usage map. Args: value: Usage count or nested mapping to scrub. sink: S
agent/src/tools/redaction.py:402
↓ 1 callersMethod_redirect_host_allowed
(self, current_url: str, next_url: str)
agent/src/channels/dingtalk.py:355
↓ 1 callersMethod_reference_price
(self, day: str, sym_data: data.SymbolData)
agent/src/tools/paper_trade/engine.py:397
↓ 1 callersMethod_reference_price_from_bar
(self, bar: Any)
agent/src/tools/paper_trade/engine.py:401
↓ 1 callersMethod_references_bot_message
Return True when a Discord reply targets a message authored by this bot.
agent/src/channels/discord.py:793
↓ 1 callersFunction_refresh_codex_token
Refresh through oauth-cli-kit without accepting its stale fallback. Args: token: Current token carrying the rotating refresh credential.
agent/src/providers/openai_codex.py:286
↓ 1 callersMethod_refresh_loop
(self)
agent/src/channels/mochat.py:533
↓ 1 callersMethod_refresh_panels
(self, subscribe_new: bool)
agent/src/channels/mochat.py:584
↓ 1 callersMethod_refresh_token
(self)
agent/src/tools/mcp.py:149
↓ 1 callersMethod_refs_file_lock
Cross-process lock while merging and writing refs state.
agent/src/channels/msteams.py:679
↓ 1 callersFunction_refuse_duplicate_positions
Refuse one instrument listed twice under a single portfolio ID. The same instrument under two different portfolio IDs is two genuine position
agent/src/portfolio/extraetf.py:334
↓ 1 callersFunction_refuse_multiline_record
Refuse a csv record whose fields span more than one physical line. extraETF writes one record per line and never quotes an embedded newline. A
agent/src/portfolio/extraetf.py:471
↓ 1 callersFunction_regime_for_bar
( index: int, benchmarks: Sequence[float | None], benchmark_window: int, bear_threshold: float
agent/src/strategy_discovery/evidence_harness.py:284
↓ 1 callersMethod_register_app_commands
(self)
agent/src/channels/discord.py:202
↓ 1 callersFunction_register_data_slash_commands
Surface data partner settings in the shared slash registry.
agent/cli/main.py:89
↓ 1 callersMethod_register_event_callbacks
(self)
agent/src/channels/matrix.py:596
↓ 1 callersFunction_register_institutional_slash_commands
Append the institutional research workflow commands to the registry. ``/comps``, ``/dcf``, ``/attrib``, ``/memo``, ``/earnings`` and ``/screen``
agent/cli/commands/slash_router.py:69
↓ 1 callersFunction_register_live_slash_commands
Surface connector live-trading slash commands in the shared registry. Discoverability fix (SPEC.md Consent §4 + §9 audit): ``/connector``, ``
agent/cli/main.py:37
↓ 1 callersFunction_register_mirrored_tool
Register one read-only tool on the MCP surface using its own schema. Args: tool_cls: A ``BaseTool`` subclass with ``name`` / ``descriptio
agent/mcp_server.py:2835
↓ 1 callersMethod_register_optional_event
Register an event handler only when the SDK supports it.
agent/src/channels/feishu.py:708
↓ 1 callersFunction_register_research_playbook_slash_command
Append ``/playbook`` — the scheduled-research template catalogue. Registered here for the same reason the institutional group is: this module
agent/cli/commands/slash_router.py:124
← previousnext →7,001–7,100 of 26,887, ranked by callers