MCPcopy Create free account

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

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

↓ 5 callersFunction_call
Run ``throttled_get_json`` against a canned response body.
agent/tests/test_http_jsonp_fallback.py:38
↓ 5 callersFunction_call_remote
Call a known read operation on a remote MCP connector profile. Args: profile: Connector profile whose ``transport`` is a remote MCP serve
agent/src/trading/service.py:1512
↓ 5 callersMethod_call_with_retry
Call an async Telegram API function with retry on pool/network timeout and RetryAfter.
agent/src/channels/telegram.py:873
↓ 5 callersFunction_calm_block
Independent idiosyncratic returns — pairwise correlations near zero.
agent/tests/test_regime.py:33
↓ 5 callersFunction_claimed
Extract claimed_performance rows keyed by metric. Args: abstract: Abstract text to run the brief over. Returns: ``{metric: r
agent/tests/test_research_papers_tool.py:788
↓ 5 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/test_etoro_runtime.py:15
↓ 5 callersFunction_client
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, *, channels: dict[str, Any], runtime: A
agent/tests/test_channel_noop_refresh.py:200
↓ 5 callersFunction_clip
(text: str, limit: int)
agent/cli/ui/rail.py:227
↓ 5 callersFunction_close_through
(window: int)
agent/tests/factors/test_qlib158_regression.py:14
↓ 5 callersFunction_closed_unresolved_market
A pre-oracle closed market: trading over, outcome recorded nowhere. Mirrors gamma market 12 (``will-joe-biden-get-coronavirus-before-the- ele
agent/tests/test_prediction_market_tool.py:61
↓ 5 callersFunction_cluster_to_rule
Summarize a cluster as one ShadowRule. Entry condition uses p10–p90 numeric bounds + dominant market. This is lighter than a decision tree an
agent/src/shadow_account/extractor.py:437
↓ 5 callersFunction_cn_block
One report period's ``boxitem`` fragment. Args: label: The 季度 label, e.g. ``"2025年4季度股票投资明细"``. as_of: Period end as ``YYYY-MM-DD
agent/tests/test_etf_holdings_tool.py:177
↓ 5 callersFunction_cn_row
One holdings row in Eastmoney's live seven-column markup. Args: seq: The 序号 cell; a trailing ``*`` marks an issuer cross-referenced row.
agent/tests/test_etf_holdings_tool.py:141
↓ 5 callersFunction_coerce_ids
Normalise the ``alpha_ids`` argument to a clean list of ids. Accepts a list (the contract) or a comma/space-separated string (LLMs occasional
agent/src/tools/alpha_compare_tool.py:21
↓ 5 callersFunction_coerce_str
Coerce frontmatter values to a display string.
agent/src/memory/persistent.py:175
↓ 5 callersMethod_comparable_price_records
Return every observed quote a numeric claim may be checked against. Quotes from non-OHLC tools are re-keyed onto canonical price fields and
agent/evals/grounding/evidence.py:1635
↓ 5 callersFunction_compute_sma
Simple moving average over the last *period* bars.
agent/src/tools/technical_indicator_tool.py:163
↓ 5 callersFunction_config
(codes, start, end, **extra)
agent/tests/test_argentina_backtests.py:123
↓ 5 callersFunction_console
Return the shared CLI console.
agent/cli/commands/research_playbook.py:23
↓ 5 callersFunction_contract
()
agent/tests/test_paper_trade_cancellation_contract.py:18
↓ 5 callersFunction_cotahist_line
Build one 245-char COTAHIST type-01 record.
agent/tests/test_br_data.py:26
↓ 5 callersFunction_create_memory_file
Old, low-quality entry — qualified for archival (age > 7d, imp < 0.15). Frontmatter shape mirrors test_memory_gc.py's helper.
agent/tests/scheduling/test_memory_consolidation_job.py:61
↓ 5 callersFunction_dates
(kwargs: dict)
agent/src/tools/br_market_data_tool.py:49
↓ 5 callersFunction_day
(value: Any)
agent/backtest/engines/argentina_equity.py:360
↓ 5 callersFunction_decimal
(value: Any, default: Decimal = Decimal("0"))
agent/src/portfolio/normalization.py:38
↓ 5 callersFunction_deny
Audit + return a refusal for a pre-check / structural DENY.
agent/src/live/sdk_order_gate.py:814
↓ 5 callersFunction_dhan_client
(cfg: DhanConfig)
agent/src/trading/connectors/dhan/sdk.py:583
↓ 5 callersMethod_dispatch
(self, argv: List[str])
agent/tests/test_cli_runtime.py:134
↓ 5 callersMethod_emit
Best-effort host event emission for goal mutations.
agent/src/tools/goal_tool.py:142
↓ 5 callersFunction_engine
(*, allow: bool)
agent/tests/test_nonpositive_prices.py:140
↓ 5 callersFunction_engine_equity_frame
equity.csv exactly as backtest/engines/base.py::_write_artifacts.
agent/tests/test_strategy_discovery_harness.py:103
↓ 5 callersFunction_envelope
Serialize a facade envelope defensively. The facade contract returns ``{"status": "ok", ...}`` or ``{"status": "error", "error": ...}`` dicts
agent/src/tools/strategy_discovery_tool.py:60
↓ 5 callersFunction_envelope
(**overrides)
agent/tests/test_paper_trade_schema.py:120
↓ 5 callersFunction_envelope
Extract the JSON envelope from mixed stdout (banner lines + JSON).
agent/tests/test_alpha_bench_strict_cli.py:81
↓ 5 callersMethod_equity
(self)
agent/tests/test_metrics.py:579
↓ 5 callersFunction_err
(msg: str)
agent/src/tools/strategy_discovery_tool.py:48
↓ 5 callersFunction_error
(exc: Exception)
agent/src/tools/sdm_status_tool.py:29
↓ 5 callersFunction_error
(exc: Exception)
agent/src/tools/research_artifact_tool.py:16
↓ 5 callersFunction_error
Serialize the error envelope: ``{"ok": false, "error", "hint"}``.
agent/src/tools/run_artifact_tool.py:82
↓ 5 callersFunction_error
Build the failure envelope as a JSON string. Args: message: Human-readable error description. Returns: A ``{"ok": false, "er
agent/src/tools/etf_holdings_tool.py:219
↓ 5 callersFunction_error
(cfg: EtoroConfig, message: str, **extra: Any)
agent/src/trading/connectors/etoro/copy_trading.py:32
↓ 5 callersFunction_error
Fail-closed error payload carrying profile/guard context.
agent/src/trading/connectors/mt5/reads.py:58
↓ 5 callersMethod_error
Render a failure envelope as a JSON string. Args: message: Human-readable error text. Returns: ``{"ok": fals
agent/src/tools/stock_news_tool.py:433
↓ 5 callersFunction_error_envelope
The shape MCPServerAdapter.call_tool returns instead of raising.
agent/tests/test_runtime_flatten.py:370
↓ 5 callersFunction_evaluate_formula
Evaluate a numeric ``+ - * /`` expression without executing code. Args: expression: An arithmetic run, possibly using ``× ÷ −`` and comma
agent/evals/grounding/policies.py:286
↓ 5 callersFunction_event
(file_size)
agent/tests/test_napcat_image_file_size.py:39
↓ 5 callersFunction_exchange_cross
(**changes: object)
agent/tests/test_binance_account_reconciliation.py:75
↓ 5 callersFunction_expected_row
Return the coerced form of equity.csv data row ``i``.
agent/tests/test_run_artifact_tool.py:44
↓ 5 callersFunction_extract_items
(payload: Any)
agent/src/trading/connectors/trading212/sdk.py:500
↓ 5 callersFunction_extract_max_iter
Pull ``--max-iter <N>`` (or ``--max-iter=N``) out of ``argv``.
agent/cli/main.py:1062
↓ 5 callersFunction_fact_row
( end: str, filed: str, value: float, *, form: str = "10-Q", start: str | None = None,
agent/tests/test_fundamentals_gross_profit_fallback.py:32
↓ 5 callersFunction_facts
(concept_rows: dict[str, list[dict[str, object]]])
agent/tests/test_fundamentals_gross_profit_fallback.py:21
↓ 5 callersFunction_fake_ai_message
Build the smallest object that quacks like a LangChain AIMessage.
agent/tests/test_swarm_token_tracking.py:34
↓ 5 callersFunction_fetch
(symbols: list[str])
agent/tests/test_paper_trade_golden_us.py:52
↓ 5 callersMethod_fetch_a_share
Fetch A-share history across the AKShare 1.20.46 endpoint rename.
agent/backtest/loaders/akshare_loader.py:278
↓ 5 callersMethod_fetch_candles
Paginated candle download (history endpoint for deep ranges).
agent/backtest/loaders/okx.py:227
↓ 5 callersMethod_field_sources
Observed values of the evidence field ``field`` names, for ``symbol``. ``field`` is a full path (``data.tail_risk.var_95``) or its trailing
agent/evals/grounding/policies.py:961
↓ 5 callersFunction_fields
(contract: dict)
agent/tests/test_data_availability.py:30
↓ 5 callersFunction_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/trading212/sdk.py:527
↓ 5 callersFunction_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/tiger/sdk.py:651
↓ 5 callersFunction_fixture_frame
()
agent/tests/test_paper_trade_corporate_actions.py:70
↓ 5 callersFunction_frame
Build a signed weight frame from {date: [w...]} shorthand.
agent/tests/test_constraints.py:18
↓ 5 callersFunction_frame
(start, end, base, drift=0.0, ex=None, factor=1.0, placeholders=())
agent/tests/test_argentina_backtests.py:65
↓ 5 callersFunction_frame
Build a 2-date x 3-symbol frame from per-date row values.
agent/tests/factors/test_fundamental_expansion_price_samples.py:37
↓ 5 callersFunction_fts_hits
(index: SessionSearchIndex, term: str)
agent/tests/test_session_delete_clears_search_index.py:71
↓ 5 callersFunction_generated
Execute the generated module and return its namespace.
agent/tests/test_shadow_codegen_condition_bounds.py:78
↓ 5 callersMethod_get_evidence_store
Return the evidence store, constructing the default lazily.
agent/src/strategy_discovery/facade.py:166
↓ 5 callersMethod_get_exchange
Create an exchange instance for spot or Binance USD-M swaps.
agent/backtest/loaders/ccxt_loader.py:219
↓ 5 callersFunction_get_goal_store
Return the shared finance goal store.
agent/mcp_server.py:406
↓ 5 callersFunction_get_goal_store
Return the shared goal store, lazily initialized.
agent/cli/commands/goal.py:29
↓ 5 callersFunction_get_hypothesis
Return a hypothesis by id, or None when absent.
agent/src/tools/autopilot_tool.py:32
↓ 5 callersFunction_git
Run Git in an isolated test repository.
tools/test_ci_private_files_gate.py:13
↓ 5 callersFunction_git
(root: Path, *args: str)
tools/test_ci_readme.py:13
↓ 5 callersFunction_group_selection_by_currency
Group a per-market selection by settlement currency. The composite backtest engine refuses a code set that spans currencies (its shared capit
agent/src/shadow_account/backtester.py:96
↓ 5 callersFunction_handle_exception
Print one-line error; emit traceback only when ``--verbose`` is set.
agent/src/factors/cli_handlers.py:161
↓ 5 callersFunction_handle_proposal_reply
Intercept a reply while a mandate proposal is outstanding.
agent/cli/main.py:854
↓ 5 callersFunction_hold_run
Two bars in hold mode: bar 1 opens what bar 0 did not hold.
agent/tests/test_plan_rejected.py:353
↓ 5 callersFunction_host_validate_path_param
(value: str, kind: str)
agent/src/api/scheduled_routes.py:469
↓ 5 callersFunction_inputs
(flip: bool)
agent/tests/test_turnover_direction_changes.py:11
↓ 5 callersFunction_install
( monkeypatch: pytest.MonkeyPatch, pro: _FakeTusharePro )
agent/tests/test_alpha_bench_csi300_sector.py:100
↓ 5 callersFunction_internal_roots
Return the internal root prefixes to hide, longest first. Memoized per working directory rather than globally: a set cached on first call wou
agent/src/tools/redaction.py:216
↓ 5 callersFunction_intraday
( labels: list[str], *, price: float = 10.0, volume: float = 120_000.0, all_nan: bool = False )
agent/tests/test_paper_trade_5m_payload.py:51
↓ 5 callersFunction_intraday_stamped_row
A daily bar carrying Yahoo's real session-open epoch (14:30 UTC).
agent/tests/test_yahoo_loader.py:51
↓ 5 callersFunction_is_cjk
Whether a character is in the CJK ideograph range.
agent/evals/grounding/figures.py:1151
↓ 5 callersFunction_is_crypto
Detect crypto symbols (e.g. BTC-USDT, ETH/USDT).
agent/backtest/loaders/tushare.py:118
↓ 5 callersFunction_is_empty_code
True for None/NaN/blank securities codes from CSV/Excel cells.
agent/src/tools/trade_journal_parsers.py:281
↓ 5 callersFunction_is_hk_equity
Detect Hong Kong equity symbols (e.g. 00700.HK).
agent/backtest/loaders/tushare.py:108
↓ 5 callersFunction_is_intraday_interval
Return whether *interval* is finer than one day (minute/hour bars). Daily-and-coarser intervals (``1D``/``1W``/``1M``) carry no meaningful in
agent/backtest/loaders/yahoo_loader.py:99
↓ 5 callersMethod_is_model_written
Whether the model wrote ``path`` itself in this run.
agent/evals/grounding/evidence.py:1193
↓ 5 callersFunction_is_registered_price_indicator
Whether a tool registered this leaf as a price-denominated level. Args: tool: The tool whose result produced the evidence record.
agent/evals/grounding/evidence.py:533
↓ 5 callersFunction_is_us_equity
Detect US equity symbols (e.g. AAPL.US).
agent/backtest/loaders/tushare.py:113
↓ 5 callersFunction_job_to_response
Flatten a job for the wire, delivery record included. ``to_dict`` nests the outbox row; the API keeps it flat because the list view reads it
agent/src/api/scheduled_routes.py:408
↓ 5 callersFunction_json_error
Return a standard JSON error envelope.
agent/src/tools/goal_tool.py:18
↓ 5 callersFunction_json_safe
(value: Any)
agent/src/market_data.py:260
↓ 5 callersFunction_ledger
(tmp_path: Path, payload: dict)
agent/tests/test_grounding_generic_timestamps.py:17
↓ 5 callersFunction_lines_with_offsets
Return each line of ``content`` with its character offset in it.
agent/evals/grounding/figures.py:367
↓ 5 callersFunction_list_provider_models
Best-effort live model discovery with a safe editable fallback.
agent/src/providers/discovery.py:196
↓ 5 callersFunction_load_node
(name: str, node_type: type[ast.AST], namespace: dict)
agent/tests/test_ml_strategy_skill.py:18
↓ 5 callersFunction_local_name
Strip the XML namespace from a tag, returning its local name.
agent/src/tools/etf_holdings_tool.py:528
↓ 5 callersFunction_login
Login to Shoonya API with TOTP authentication. Sessions are cached per ``user_id`` so distinct accounts never share an authenticated client.
agent/src/trading/connectors/shoonya/sdk.py:562
← previousnext →2,001–2,100 of 30,405, ranked by callers