MCPcopy Create free account

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

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

↓ 6 callersFunction_sized
(engine: GlobalEquityEngine, symbol: str, raw: float)
agent/tests/test_global_equity_hk_lot_sizes.py:32
↓ 6 callersFunction_source
(lines)
agent/tests/test_signal_output_timing.py:11
↓ 6 callersFunction_spec
()
agent/tests/test_swarm_grounding.py:243
↓ 6 callersFunction_split_alphas_by_universe_support
Split the selection into (benchable, excluded) for this universe. ``fund:*`` inputs are served from SEC US filings, which only the sp500 pane
agent/src/tools/alpha_bench_tool.py:997
↓ 6 callersMethod_stop_typing_keepalive
(self, room_id: str, *, clear_typing: bool)
agent/src/channels/matrix.py:724
↓ 6 callersFunction_store
(args: argparse.Namespace)
agent/src/research_artifacts/cli_handlers.py:14
↓ 6 callersFunction_store
()
agent/tests/test_strategy_discovery_refresh.py:97
↓ 6 callersFunction_str_field
Return the first non-empty str value found for *keys*, stripped.
agent/src/channels/mochat.py:79
↓ 6 callersFunction_strategy_source
A minimal SignalEngine selling each target symbol held at call start. With ``universe`` it declares UNIVERSE and orders exactly those symbols;
agent/tests/paper_trade_5m_fixtures.py:334
↓ 6 callersFunction_summary
(ic_count: int)
agent/tests/test_factor_api.py:44
↓ 6 callersFunction_surface_body
(**over: Any)
agent/tests/test_options_routes.py:268
↓ 6 callersFunction_to_float
Coerce a possibly-string numeric field to float. Args: value: Raw value from a payload. Returns: The float, or ``None`` when
agent/src/tools/prediction_market_tool.py:285
↓ 6 callersFunction_to_float
Coerce a Shoonya API field to float, tolerating empty strings. Shoonya frequently returns ``""`` for unset numeric fields (e.g. ``netavgprc``,
agent/src/trading/connectors/shoonya/sdk.py:635
↓ 6 callersFunction_tokenize
Lowercase, split, and strip common punctuation from each token. Em and en dashes separate words like spaces do. Typographic quotes and the el
agent/src/tools/sentiment_tool.py:56
↓ 6 callersFunction_tool_call_response
()
agent/tests/test_swarm_worker_cancel.py:99
↓ 6 callersFunction_trade_context
(cfg: LongbridgeConfig)
agent/src/trading/connectors/longbridge/sdk.py:710
↓ 6 callersFunction_trading_client
(cfg: AlpacaConfig)
agent/src/trading/connectors/alpaca/sdk.py:828
↓ 6 callersFunction_trading_common_args
Build shared optional trading connector arguments.
agent/mcp_server.py:1787
↓ 6 callersFunction_transient_error
Build a ProviderStreamError mimicking a transient mid-stream reset.
agent/tests/test_stream_retry_escalation.py:99
↓ 6 callersFunction_turn
(log: ThreadLog, turn_id: str, prompt: str, *, end: str | None = "completed")
agent/tests/test_session_thread_replay.py:40
↓ 6 callersFunction_v12_result
(**overrides)
agent/tests/test_paper_trade_v12_schema.py:120
↓ 6 callersFunction_valid_body
(**kw: Any)
agent/tests/test_alpha_compare_api.py:59
↓ 6 callersFunction_validate_bracket_artifact
Validate a caller-supplied maintenance-bracket artifact. ``binanceusdm.fetch_leverage_tiers()`` routes to Binance's signed ``GET /fapi/v1/lev
agent/backtest/loaders/ccxt_loader.py:114
↓ 6 callersFunction_verdict
Validate a fundamentals answer against a run with no market evidence.
agent/tests/test_grounding_percentage_points.py:39
↓ 6 callersFunction_verdict
(header: str, *, from_address: str = "victim@example.com")
agent/tests/test_email_authentication_results.py:203
↓ 6 callersFunction_write_equity
(run_dir: Path, dates: List[str], portfolio_returns: np.ndarray, benchmark_returns: np.ndarray)
agent/tests/test_attribution_api.py:56
↓ 6 callersFunction_write_equity_csv
(path: Path, rows: list[dict])
agent/tests/test_backtest_summary.py:87
↓ 6 callersMethod_write_json
(path: Path, data: Dict[str, Any], *, indent: Optional[int] = 2)
agent/src/session/store.py:342
↓ 6 callersFunction_write_mandate
(live_runtime: Path, *, max_order_notional_usd: float = 750.0)
agent/tests/test_enforcement_l6.py:177
↓ 6 callersFunction_write_manifest
(path: Path, payload)
agent/tests/test_strategy_discovery_refresh.py:92
↓ 6 callersMethod_write_transaction
Open an immediate write transaction for cross-connection safety.
agent/src/strategy_store/sqlite_store.py:275
↓ 6 callersFunction_zip
(name: str, text: str, encoding: str = "latin-1")
agent/tests/test_br_data.py:42
↓ 6 callersMethodaclose
(self)
agent/tests/test_session_features.py:93
↓ 6 callersFunctionallowed_file_roots
Return all roots allowed for document and broker-file reads.
agent/src/tools/path_utils.py:209
↓ 6 callersFunctionargentina_sell_allowed
Acquired shares may be resold; additional certificates must be credited.
agent/backtest/engines/argentina_equity.py:623
↓ 6 callersFunctionasNumber
(value: unknown)
frontend/src/lib/swarmStatus.ts:17
↓ 6 callersFunctionattach_tool_call_thought_signatures
Attach Gemini thought signatures to assistant replay tool calls. Args: message: Assistant message with outbound tool calls to annotate in
agent/src/providers/messages.py:173
↓ 6 callersFunctionauthHeaders
()
frontend/src/lib/apiAuth.ts:18
↓ 6 callersMethodavailable_cash
Spendable funds for an order at timestamp, without changing equity. Default preserves legacy immediate-settlement capital across markets.
agent/backtest/engines/base.py:622
↓ 6 callersFunctionbasel_traffic_light
Place an exception count in the Basel supervisory zone. The zone is cut on the cumulative binomial probability of the observed count under th
agent/src/quantlib/var_backtest.py:542
↓ 6 callersMethodbash_policy
Validate the selected bash policy at the enforcement boundary. Args: legacy_defaults: Whether to select the Claude CLI policy.
agent/src/product/tool_policy.py:91
↓ 6 callersFunctionbootstrap_sharpe
Bootstrap a confidence interval for an annualised Sharpe ratio. A point Sharpe with no interval is not evidence: an interval that straddles z
agent/src/quantlib/timeseries.py:827
↓ 6 callersFunctionbuild_config
Resolve profile settings and approved overrides, without a secret file.
agent/src/trading/connectors/openalgo/sdk.py:172
↓ 6 callersFunctionbuild_filtered_registry
Build a ToolRegistry with only specified tools. Local-tools-only filtered builder. Swarm workers should call :func:`build_swarm_registry` ins
agent/src/tools/__init__.py:375
↓ 6 callersFunctionbuild_style_exposures
Assemble a style exposure matrix from raw characteristics. Args: characteristics: Raw values, rows indexed by asset, one column per
agent/src/quantlib/factormodel.py:309
↓ 6 callersMethodcancel_all
Request owner-scoped cancellation and optionally wait for actual reaping.
agent/src/tools/background_tools.py:453
↓ 6 callersMethodcancel_all
Cancel every in-flight internal task; bounded (module docstring). Cancellation lands at the task's await point on the next loop pass
agent/src/scheduled_research/internal_dispatch.py:182
↓ 6 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:517
↓ 6 callersFunctioncap_rows
Bound a per-symbol row list to keep tool payloads within budget.
agent/src/market_data.py:193
↓ 6 callersFunctioncheck_balance_sheet
Assert that a balance sheet balances, or raise naming the residual. Args: balance_sheet: The balance sheet to check. tolerance: L
agent/src/quantlib/valuation/threestatement.py:427
↓ 6 callersFunctionclearAnalysisState
(key: string)
frontend/src/hooks/useAnalysisState.ts:7
↓ 6 callersFunctioncointegration_test
Engle-Granger two-step cointegration test. H0 = no cointegrating relationship. Two individually non-stationary series are cointegrated when s
agent/src/quantlib/timeseries.py:147
↓ 6 callersFunctioncollar
(**kwargs)
agent/tests/test_numeric_calculation_contract.py:70
↓ 6 callersFunctioncompute_half_life
Estimate mean-reversion half-life of a spread by delta regression. Regresses ``ΔS_t`` on ``S_{t-1}`` (Ornstein-Uhlenbeck discretisation) and
agent/src/quantlib/timeseries.py:194
↓ 6 callersFunctioncompute_idf
Compute IDF scores from a token corpus. Formula: IDF(t) = log((N - n + 0.5) / (n + 0.5) + 1) where N = total document count, n = documents co
agent/src/memory/semantic_links.py:73
↓ 6 callersFunctioncompute_sleep_ms
Compute how long the loop should sleep before its next check. Args: jobs: The current job set. now_ms: The reference time in epoc
agent/src/live/runtime/scheduler.py:146
↓ 6 callersFunctionconstructed_schedule
A schedule whose XIRR is exactly ``rate``, by construction. Four irregularly dated inflows are chosen freely; the single opening outflow is t
agent/tests/quantlib/test_fundmath.py:74
↓ 6 callersMethodcontext
(self, universe, metadata)
agent/tests/test_data_availability.py:99
↓ 6 callersMethoddashboard
Read one coherent snapshot; derive each agent's load from its tasks.
agent/src/pixel_agents/office.py:193
↓ 6 callersFunctiondatacenter_rejection
Return the datacenter's complaint when it rejected a report query. The datacenter answers HTTP 200 with ``success: false`` both for a query it
agent/backtest/loaders/eastmoney_client.py:70
↓ 6 callersMethoddefault_config
()
agent/tests/test_channel_config_meta.py:766
↓ 6 callersFunctiondelayed_execution
Shift a signal forward to model the lag between decision and fill. A signal computed from a bar's data cannot be traded on that same bar. Shiftin
agent/src/quantlib/impact.py:295
↓ 6 callersMethoddiagnostics
Return non-blocking diagnostics for assertion messages.
agent/tests/mcp_http_test_helpers.py:40
↓ 6 callersFunctiondiff_manifests
Diff two manifests, naming exactly what changed. Args: a: The earlier (or "baseline") manifest. b: The later (or "candidate") man
agent/src/governance/manifest.py:481
↓ 6 callersFunctiondigest
Hash a file's exact bytes.
agent/src/research_lab/execution.py:36
↓ 6 callersFunctiondiscount_fcff
Discount every projection year's FCFF to present value. Args: fcff_years: The FCFF bridge, e.g. from :func:`fcff_bridge`. wacc_ra
agent/src/quantlib/valuation/dcf.py:869
↓ 6 callersFunctiondispatch
Dispatch a swarm slash command. Args: argument_text: Text after the slash command, including an optional subcommand and its a
agent/cli/commands/swarm.py:10
↓ 6 callersMethoddispatch
Return a compact JSON 404 for non-WebSocket HTTP requests.
agent/src/channelsui/gateway_services.py:142
↓ 6 callersFunctiondisplay_item
Return the client view of one thread item. Args: item: Thread item to project into client-visible fields. Returns: The displ
agent/src/session/thread_display.py:27
↓ 6 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:203
↓ 6 callersMethodevaluate
( self, account: AccountState, frames: dict[str, MarketRiskFrame], price_field
agent/backtest/perpetual_risk.py:381
↓ 6 callersMethodexecute
Fetch news headlines for one stock or the broad market. Args: **kwargs: ``scope`` ('stock' | 'global', default 'stock'), ``code``
agent/src/tools/stock_news_tool.py:312
↓ 6 callersMethodexecute
Fetch margin-trading rows and return a JSON envelope string. Args: **kwargs: ``code`` (required, str) and ``days`` (optional int)
agent/src/tools/margin_trading_tool.py:165
↓ 6 callersMethodexecute
Run one step and return the single in-band JSON document string.
agent/src/tools/paper_trade/tool.py:658
↓ 6 callersFunctionexternal_flows
Select the boundary-crossing flows and restate them portfolio-side. The returned amounts are the **negation** of ``CashFlow.amount``: the input
agent/src/quantlib/performance.py:352
↓ 6 callersFunctionextract_excerpts
Return ordered, bounded passages for the document or its first matching item. Args: html: Decoded primary-document HTML. item: No
agent/src/tools/_sec_filing_text.py:211
↓ 6 callersMethodfee
Total fee for one fill, quantized to 2dp ROUND_HALF_UP.
agent/src/tools/paper_trade/rules.py:168
↓ 6 callersFunctionfetch
()
agent/tests/test_local_loader_source_revision.py:49
↓ 6 callersFunctionfetch_data_map
Fetch and sanitize bars through the canonical loader registry. This is the shared entry point for backtest execution and reconstruction consu
agent/backtest/runner.py:2123
↓ 6 callersMethodfinish
(self, result: dict, elapsed: float)
agent/tests/test_cli_conversation.py:273
↓ 6 callersMethodget
(self, name: str)
agent/tests/test_load_skill_allowlist.py:123
↓ 6 callersFunctiongetDesktopMessages
(locale: DesktopLocale)
desktop/electron/src/locales.ts:250
↓ 6 callersMethodget_current_goal
Return the current goal for a session.
agent/src/goal/store.py:465
↓ 6 callersFunctionget_data_dir
Return and create the runtime data directory derived from config path. Args: config_path: Optional explicit config file path. Return
agent/src/config/paths.py:90
↓ 6 callersMethodget_descriptions
Return skills grouped by category for the system prompt. Returns: Grouped skill list with category headers, or a marker when no s
agent/src/product/resources/skills.py:84
↓ 6 callersMethodget_row_data
(self)
agent/tests/test_history_source.py:21
↓ 6 callersMethodget_session
Return a session by ID. Args: session_id: Session ID. Returns: The stored session, or None when no session r
agent/src/session/service.py:192
↓ 6 callersFunctionhistory_endpoint
Resolve an endpoint without retrying a failing data request. Args: sdk: Imported AKShare module. name: Current or legacy endpoint
agent/backtest/loaders/akshare_compat.py:15
↓ 6 callersFunctionhk_counter_currency
Return the currency HKEX's code allocation assigns to a ``.HK`` code. Args: code: Ticker / symbol string, optionally ``local:``-prefixed.
agent/backtest/engines/_market_hooks.py:352
↓ 6 callersFunctionhose_round_up
Quantize *price* up onto the HOSE tick grid.
agent/backtest/engines/vietnam_equity.py:117
↓ 6 callersFunctionindustry_roster
(labels=None, *, include_industry=True)
agent/tests/test_nifty100_sector_vwap.py:20
↓ 6 callersFunctioninfo_root
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/client.py:233
↓ 6 callersMethodinject
Record a message the loop added on its own (``<system>`` notes). Args: message: Injected message containing content and an option
agent/src/session/runtime.py:219
↓ 6 callersFunctionis_content_filter_triggered
Recognize a finish reason that indicates content moderation. Args: finish_reason: Raw provider finish reason. Non-string values are treat
agent/src/providers/content_filter.py:30
↓ 6 callersFunctionis_runner_alive
Report whether a runner's heartbeat is fresh enough to call it alive. Args: runner_id: The runner to check. now_ms: Reference tim
agent/src/live/runtime/liveness.py:127
↓ 6 callersFunctionkrx_round_down
Truncate *price* down onto the tick grid (KRX ``절사``).
agent/backtest/engines/korea_equity.py:99
↓ 6 callersMethodlist_artifacts
List artifacts with composable filters, newest first.
agent/src/strategy_store/store.py:226
↓ 6 callersMethodlist_runs
List runs by descending creation time. Args: limit: Maximum number of runs to return. Pass a nonnegative count. Returns:
agent/src/swarm/store.py:244
↓ 6 callersMethodlist_strategies
(self, *args, **kwargs)
agent/tests/test_strategy_discovery_tools.py:68
↓ 6 callersFunctionload_alpha_meta_from_py
AST-extract the ``__alpha_meta__`` dict literal from a zoo module. No import is performed — purely static parsing. Raises ``RegistryError`` on
agent/src/factors/registry.py:151
← previousnext →1,801–1,900 of 30,405, ranked by callers