MCPcopy Create free account

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

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

↓ 7 callersFunctionregister_research_lab_routes
Mount a single catalog/job API backed by the CLI's shared service.
agent/src/api/research_lab_routes.py:25
↓ 7 callersMethodreject
Move an unfinished order to ``rejected``; terminal orders are frozen.
agent/src/tools/paper_trade/order_lifecycle.py:162
↓ 7 callersFunctionremaining_timeout
Cap socket/retry waits by the caller's aggregate acquisition deadline.
agent/backtest/loaders/acquisition.py:18
↓ 7 callersMethodrequest_cancel
Queue cancellation beside the run record for its owning process. Args: run_id: ID of the pending or running swarm to signal.
agent/src/swarm/store.py:186
↓ 7 callersFunctionrequire_longbridge_credentials
Return resolved credentials or raise a field-only diagnostic error.
agent/src/trading/connectors/longbridge/credentials.py:114
↓ 7 callersFunctionrequires_account_selection
Report whether a profile's account-scoped reads must name one account. A remote MCP server such as Robinhood's serves every account behind one
agent/src/trading/connections.py:56
↓ 7 callersFunctionresolve_data_refs
Resolve nested JSON/CSV references and record their calculation basis. Args: value: Argument tree; references use a sole ``__data_ref__``
agent/src/tools/data_refs.py:50
↓ 7 callersMethodresolved_transport
Resolve the effective transport from explicit type or implied fields.
agent/src/config/schema.py:409
↓ 7 callersFunctionretrieve_top_k
Retrieve top-K memory IDs by scoring. Args: query_tokens: Tokenized query. corpus: All memory records. treatment: If True
agent/tests/memory/benchmarks/runner.py:196
↓ 7 callersFunctionrun
()
agent/tests/test_data_gateway_streams.py:18
↓ 7 callersMethodsave_snapshot
Append one immutable snapshot. Args: payload: The full snapshot envelope produced by :meth:`src.portfolio.service
agent/src/portfolio/store.py:79
↓ 7 callersFunctionscenario
()
agent/tests/scheduling/test_kernel_sleep_hint.py:39
↓ 7 callersFunctionsensitivity_grid
Value-per-share sensitivity to WACC and perpetuity terminal growth. Every cell re-runs the full model (discount the explicit FCFFs at that WA
agent/src/quantlib/valuation/dcf.py:1059
↓ 7 callersFunctionservice
(tmp_path, *, rates=None)
agent/tests/test_extraetf_integration.py:32
↓ 7 callersMethodsettings
(self)
agent/tests/test_portfolio_routes.py:21
↓ 7 callersMethodsettle_day
Day-order semantics: cancel every unfinished order at session end. ``new``, ``open``, partially ``filled`` and ``pending_cancel`` orders
agent/src/tools/paper_trade/order_lifecycle.py:280
↓ 7 callersMethodsetup
(self, tmp_path: Path)
agent/tests/test_skill_writer_tools.py:209
↓ 7 callersFunctionsplit_sections
Map a markdown document to its heading structure. A section runs from its heading to the next heading of the same or shallower level, so it i
agent/src/product/resources/skills.py:161
↓ 7 callersFunctionsummarize_bars
Summarize existing records without claiming an exchange calendar is complete. Args: payload: Parsed market-data envelope before artifact
agent/src/data_gateway/bar_summary.py:7
↓ 7 callersMethodsymbol_info
(self, name: str)
agent/tests/test_mt5_connector.py:170
↓ 7 callersMethodto_dict
(self)
agent/src/research_artifacts/models.py:55
↓ 7 callersFunctiontrial
(root, name, config, manifest, *, parameters)
agent/tests/test_research_lab_execution.py:542
↓ 7 callersFunctiontw_is_etf
Return whether *symbol* should use the ETF columns (tick table, tax rate). Heuristic: a code that starts with ``0`` (a ``.TW`` / ``.TWO`` suffix
agent/backtest/engines/taiwan_equity.py:186
↓ 7 callersFunctionuseAnalysisState
(key: string, initial: T)
frontend/src/hooks/useAnalysisState.ts:14
↓ 7 callersFunctionvalidate_dag
Validate task IDs, dependency references, cycles and upstream data bindings. Args: tasks: Tasks and their declared dependencies. Rai
agent/src/swarm/task_store.py:132
↓ 7 callersFunctionvalue_position
Calculate USD/CNY market value and unrealized P/L. Args: row: A normalized position row; it is updated in place. rates: Currency
agent/src/portfolio/normalization.py:199
↓ 7 callersFunctionverify_chain_with_archives
Verify a ledger's whole history, sealed segments included. Walks the archives oldest-first and then the active file, checking that each segme
agent/src/governance/ledger.py:710
↓ 7 callersFunctionvpin
Compute Volume-Synchronized Probability of Toxicity (VPIN - Easley et al. 2012). VPIN = sum_{i=t-N+1}^t |V_B,i - V_S,i| / (N * V) aggregating
agent/src/quantlib/microstructure.py:132
↓ 7 callersFunctionwalk_forward
Select parameters on training data only, then execute frozen OOS folds. Every trial uses the ordinary execution engine. Test folds start flat and
agent/src/research_lab/studies.py:83
↓ 7 callersFunctionwith_security_warnings
Annotate and neutralize selected untrusted string fields in a payload. Every selected string field is (1) scanned for prompt-injection patterns
agent/src/security/scanner.py:177
↓ 7 callersFunctionxirr
Annual internal rate of return of irregularly dated amounts. Amounts are holder-perspective, matching ``CashFlow.amount``: money paid out is
agent/src/quantlib/performance.py:828
↓ 6 callersMethod__init__
(self, risk_free_rate: float = 0.02, iv_skew: float = 0.0, iv_curvature: float = 0.0, default
agent/src/skills/options-strategy/example_signal_engine.py:36
↓ 6 callersFunction_agent
(llm: _CapturingLLM, run_dir: Path)
agent/tests/test_agent_goal_context.py:58
↓ 6 callersFunction_align_pandas_reference
Reference implementation of _align() using pure pandas operations. This replicates the original scalar reindex+ffill logic from before the ve
agent/tests/test_signal_alignment_perf.py:86
↓ 6 callersFunction_annualised_hv
Independent oracle: rolling log-return std scaled by ``sqrt(bars/yr)``.
agent/tests/test_options_hv_bars_per_year.py:24
↓ 6 callersMethod_api_post
( self, endpoint: str, body: dict | None = None, *, auth: bool = True,
agent/src/channels/weixin.py:309
↓ 6 callersFunction_appearance_payload
A datacenter appearance payload with two board rows.
agent/tests/test_dragon_tiger_tool.py:20
↓ 6 callersFunction_as_float
(value: Any)
agent/src/trading/connectors/kis/sdk.py:930
↓ 6 callersFunction_as_label_spans
Normalise label end times into positional spans. Args: label_end_times: Either a pandas Series whose index is the label start
agent/src/quantlib/crossvalidation.py:110
↓ 6 callersFunction_assert_all_counts
(pattern: str, expected: int)
agent/tests/test_distribution_skill_manifest.py:56
↓ 6 callersFunction_assert_balances
Independently recompute assets vs. liabilities + equity and assert equality. Args: bs: The balance sheet to check.
agent/tests/quantlib/valuation/test_threestatement.py:41
↓ 6 callersFunction_assert_date_error
(result)
agent/tests/test_trade_journal_invalid_datetime.py:33
↓ 6 callersFunction_assert_quantity_error
(result, tmp_path)
agent/tests/test_trade_journal_invalid_quantity.py:39
↓ 6 callersFunction_attribution_load_position_weights
Read the book Brinson should attribute from ``positions.csv``. A run closes every position on its last bar (``end_of_backtest``), so the fina
agent/src/api/attribution_core.py:527
↓ 6 callersFunction_audit
( broker, session_id, *, kind, outcome, mandate, intent, broker_request, broker_response, gate_decision, e
agent/src/live/sdk_order_gate.py:1031
↓ 6 callersMethod_audit
Write one live-action audit record for a tick outcome. Audit failures are swallowed (logged) so a ledger problem can never make a *bl
agent/src/live/runtime/runner.py:836
↓ 6 callersFunction_bars_to_frame
Reshape Sina ``{d,o,h,l,c,v}`` bars into the standard OHLCV frame. Args: bars: List of per-day dicts with ``d/o/h/l/c/v`` keys. s
agent/backtest/loaders/sina_loader.py:75
↓ 6 callersFunction_base
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/trading.py:20
↓ 6 callersFunction_body
Parse a JSON tool response.
agent/tests/test_read_file_skill_relative.py:32
↓ 6 callersMethod_body
( self, messages: list[dict[str, Any]], *, stream: bool, replay_reason
agent/src/providers/openai_codex.py:746
↓ 6 callersFunction_build_panel
Hand-built 2-date x 3-symbol panel; every row has distinct values.
agent/tests/factors/test_fundamental_expansion_samples.py:67
↓ 6 callersFunction_build_parser
()
agent/src/pixel_agents/cli.py:10
↓ 6 callersFunction_cache_frame
(value: float = 1.0)
agent/tests/test_loader_retry_helpers.py:214
↓ 6 callersFunction_call
(call_id: str)
agent/tests/test_session_records_consolidation.py:15
↓ 6 callersFunction_call
(call_id: str, name: str = "get_market_data", arguments: dict | None = None)
agent/tests/test_session_thread_replay.py:15
↓ 6 callersMethod_capture
Run build_llm for the Anthropic provider and return adapter kwargs. Patches the temperature-safe subclass factory rather than the module
agent/tests/test_llm_reasoning_effort.py:437
↓ 6 callersFunction_check
(mandate: Mandate, intent: OrderIntent)
agent/tests/test_mandate_forex.py:85
↓ 6 callersMethod_check_open
(self)
agent/vibe_trading/client.py:331
↓ 6 callersMethod_clean_cjk
Collapse unigram/bigram tokens back into readable CJK display text. ``_prepare_cjk`` stores a CJK run as unigrams-then-bigrams so FTS5 can
agent/src/memory/search_index.py:507
↓ 6 callersFunction_client
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/sdk.py:78
↓ 6 callersFunction_client
(tmp_path, monkeypatch)
agent/tests/test_research_artifact_api.py:13
↓ 6 callersFunction_cn_a_data
(from_date: str = _DAY, to_date: str = _DAY)
agent/tests/test_paper_trade_validation.py:62
↓ 6 callersFunction_collapse_ws
(value: Any)
agent/cli/ui/rail.py:70
↓ 6 callersFunction_collect
Every event the stream yields until the first idle heartbeat.
agent/tests/test_session_thread_events.py:87
↓ 6 callersFunction_commit_mandate
(live_runtime: Path)
agent/tests/test_readonly_default.py:103
↓ 6 callersFunction_compact_match
Return a short, single-line match excerpt for warning metadata.
agent/src/security/scanner.py:258
↓ 6 callersMethod_connect
(self)
agent/src/tools/paper_trade/accounts.py:63
↓ 6 callersMethod_connect
(self)
agent/src/live/runtime/decision_budget.py:65
↓ 6 callersFunction_convert_messages
Convert loop messages into Responses ``instructions`` + ``input`` items.
agent/src/providers/openai_codex.py:471
↓ 6 callersFunction_correlated_panel
()
agent/tests/test_risk_xray_contributions.py:33
↓ 6 callersFunction_daily
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_5m_session.py:73
↓ 6 callersFunction_decimal
(value: Any, default: Decimal = Decimal("0"))
agent/src/portfolio/service.py:149
↓ 6 callersFunction_dedupe_finish_reason
Recover the final reason from relays that repeat it on each chunk.
agent/src/providers/response.py:70
↓ 6 callersMethod_delta_chunk
(self, delta: dict, model: str = "kimi-k2-thinking")
agent/tests/test_kimi_reasoning_content.py:322
↓ 6 callersFunction_detect_market_for_align
Lightweight market detection for ffill_limit calculation.
agent/backtest/engines/base.py:137
↓ 6 callersFunction_df
()
agent/tests/test_price_caliber.py:27
↓ 6 callersFunction_document
(value=100)
agent/tests/test_financial_research_artifact_tool.py:15
↓ 6 callersFunction_draft
()
agent/tests/test_scheduled_research_confirmation.py:20
↓ 6 callersFunction_emit
(payload: object)
agent/src/research_artifacts/cli_handlers.py:19
↓ 6 callersMethod_emit_event
Persist an event and forward it if the source is still active.
agent/src/swarm/runtime.py:534
↓ 6 callersFunction_enable_tap
(monkeypatch, fake_forward)
agent/tests/test_alpaca_tap_routing.py:164
↓ 6 callersFunction_encode
Serialize a quantlib result into JSON-safe data. Dataclasses become dicts, enums become their value, numpy and pandas objects become plain co
agent/src/tools/quantlib_tool.py:196
↓ 6 callersMethod_ensure_fallback_workers
(self)
agent/src/channels/mochat.py:616
↓ 6 callersFunction_envelope
Build the standard JSON response.
agent/src/tools/doc_reader_tool.py:89
↓ 6 callersFunction_envelope
Common payload header stamped on every read result.
agent/src/trading/connectors/mt5/reads.py:46
↓ 6 callersFunction_equity_rows
(count: int)
agent/tests/test_backtest_summary.py:72
↓ 6 callersFunction_err
(msg: str)
agent/src/factors/cli_handlers.py:129
↓ 6 callersFunction_exact
Convert any numeric to an exact Decimal, avoiding float binary traps. Raises: ValueError: If ``value`` is a bool or is NaN / infinite, so
agent/src/tools/financial_rigor_tool.py:63
↓ 6 callersFunction_exchange
Build a ccxt Binance client bound to the configured market/environment.
agent/src/trading/connectors/binance/sdk.py:799
↓ 6 callersFunction_execute
(**overrides)
agent/tests/test_options_strategy_compare_tool.py:37
↓ 6 callersFunction_execute_key_gated
Run a key-gated MCP tool, preserving its env-var-named error. If a credential is missing, use the tool's own actionable error response. Args
agent/mcp_server.py:2362
↓ 6 callersFunction_export
(columns: list[str], rows: list[dict[str, str]])
agent/tests/test_extraetf_reader.py:131
↓ 6 callersFunction_extract_product
Extract product code from futures symbol. Handles CME conventions: - Product + month-code + year: ESZ4, CLF25, GCM2025 - Product + Y
agent/backtest/engines/global_futures.py:138
↓ 6 callersFunction_fetch_price_series
Fetch daily price frames for each code via the loader fallback chains. Args: codes: Asset codes as supplied by the caller (used as result
agent/backtest/correlation.py:268
↓ 6 callersFunction_fixture_5m
(day: str = _DAY)
agent/tests/test_paper_trade_5m_session.py:31
↓ 6 callersFunction_formula_in_note
Find the derivation a note states. The whole note is tried first, then each segment between result separators ("0.666 × 0.97 = 0.646"); separ
agent/evals/grounding/policies.py:423
↓ 6 callersFunction_frame
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_tool.py:107
↓ 6 callersFunction_frame
(rows, codes=("A", "B"))
agent/tests/test_rebalance_notes.py:18
↓ 6 callersFunction_frame
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_golden_cn_a.py:68
↓ 6 callersMethod_from_row
(row: sqlite3.Row)
agent/src/research_artifacts/store.py:149
← previousnext →1,601–1,700 of 30,405, ranked by callers