MCPcopy Create free account

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

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

↓ 9 callersFunctionscaffold_connector
Create a read-only local connector starter for a developer to fill in. Args: connector_id: Lowercase connector id used for the directory
agent/src/trading/plugin_scaffold.py:49
↓ 9 callersFunctionstate_hash
Return ``sha256(JCS(value))`` as lowercase hex (AM-4-1).
agent/src/tools/paper_trade/state_hash.py:165
↓ 9 callersFunctionstore
()
agent/src/api/connection_routes.py:63
↓ 9 callersFunctionvalidate_timezone
Raise ``ValueError`` when *tz* is not a resolvable IANA timezone key. ``None`` is always valid and means legacy UTC semantics. Resolution goes
agent/src/scheduling/triggers.py:172
↓ 8 callersFunction_adapter
(client: httpx.Client, model: str, **overrides: Any)
agent/tests/test_llm_responses_self_heal.py:187
↓ 8 callersFunction_alternating_close
Deterministic zigzag whose 30-bar rolling std is non-zero and stable.
agent/tests/test_options_hv_bars_per_year.py:31
↓ 8 callersFunction_analyze
(tmp_path, monkeypatch, rows, mode="full", filter_expr="", excel=False)
agent/tests/test_trade_journal_invalid_datetime.py:14
↓ 8 callersFunction_artifact_problem
( bundle: ArtifactBundle, key: str, *, missing_invalid: bool )
agent/evals/harness/assertions.py:51
↓ 8 callersFunction_assert_profile
Fail closed when the account does not match the declared environment.
agent/src/trading/connectors/tiger/sdk.py:593
↓ 8 callersFunction_bars
(days, closes, volume=1000.0)
agent/tests/test_argentina_equity_engine.py:34
↓ 8 callersFunction_bars
(closes: list[float])
agent/tests/test_offline_benchmark.py:29
↓ 8 callersFunction_body
实体长度(绝对值)。 Args: o: 开盘价序列。 c: 收盘价序列。 Returns: 每根K线的实体长度。
agent/src/skills/candlestick/example_signal_engine.py:22
↓ 8 callersFunction_bound_mandate
(account_ref: str = ACCOUNT, **caps: Any)
agent/tests/test_robinhood_live_account_binding.py:68
↓ 8 callersFunction_build_codex_token_storage
Build the Vibe-owned Codex token store. The path deliberately does not use oauth-cli-kit's default storage, because that backend imports and
agent/src/providers/openai_codex.py:96
↓ 8 callersFunction_build_direct_agent
( tmp_path: Path, resolver_result: str, )
agent/tests/test_agent_grounding.py:162
↓ 8 callersFunction_build_panel
Hand-built 2-date x 4-symbol panel, two industries of two names each.
agent/tests/factors/test_fundamental_ind_neutral_samples.py:54
↓ 8 callersFunction_build_parser
Build the CLI parser with subcommands and compatibility flags.
agent/cli/_legacy.py:5466
↓ 8 callersFunction_build_synthetic_dataset
Build data_map, signal_map, codes for testing.
agent/tests/test_signal_alignment_perf.py:68
↓ 8 callersMethod_calc_equity
Total equity = free cash + sum(margin + unrealised) per position. Uses vectorized numpy path when _calc_pnl/_calc_margin are not over
agent/backtest/engines/base.py:1532
↓ 8 callersMethod_calc_pnl
Realised PnL for a closed position.
agent/backtest/engines/base.py:900
↓ 8 callersFunction_clear_environment
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_longbridge_credentials.py:25
↓ 8 callersFunction_collect
(agen)
agent/tests/test_openbb_bridge/test_adapter.py:79
↓ 8 callersFunction_compute_bollinger
Bollinger Bands: upper, middle (SMA), lower.
agent/src/tools/technical_indicator_tool.py:246
↓ 8 callersFunction_configured_api_key
Return the current API auth key, if configured. Resolves the ``VIBE_TRADING_API_KEY`` alias server-side via :func:`get_env_config` so both ``
agent/src/api/security.py:355
↓ 8 callersFunction_daily_index
(start: str = "2026-01-02", periods: int = 30)
agent/tests/test_shadow_account.py:2069
↓ 8 callersFunction_dated
Attach consecutive calendar days starting 2024-01-01 to a value list.
agent/tests/quantlib/test_risk.py:231
↓ 8 callersFunction_detect_source
Infer legacy source name from symbol (back-compat for metrics/engine). Args: code: Ticker / symbol string. Returns: Source n
agent/backtest/runner.py:871
↓ 8 callersFunction_eastmoney_payload
A suggest payload spanning A-share, HK, and US markets.
agent/tests/test_symbol_search_tool.py:21
↓ 8 callersFunction_engine
(*codes: str, **config)
agent/tests/test_global_futures_pricing_assumptions.py:41
↓ 8 callersFunction_envelope
Return the newest rows that fit the result budget.
agent/src/tools/br_market_data_tool.py:60
↓ 8 callersFunction_envelope
Build the full MCP JSON-RPC response around a StockDailyQuote result.
agent/tests/test_gildata_loader.py:40
↓ 8 callersFunction_err
(msg: str)
agent/src/tools/doc_reader_tool.py:76
↓ 8 callersFunction_etoro_overrides
Build override dict for eToro tools, including optional credential overrides.
agent/src/tools/trading_connector_tool.py:228
↓ 8 callersFunction_execute
()
agent/tests/test_parallel_search.py:69
↓ 8 callersFunction_extract_product
Extract product code from futures symbol. The returned code is the one the product tables are keyed by, whatever casing the caller used: 'AU2
agent/backtest/engines/china_futures.py:134
↓ 8 callersFunction_fetch_cn_a
(ch_frames, net_frames, symbols=("600519.SH",), **kwargs)
agent/tests/test_paper_trade_readiness.py:115
↓ 8 callersFunction_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/longbridge/sdk.py:808
↓ 8 callersFunction_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/okx/sdk.py:666
↓ 8 callersFunction_float_or_none
Convert a Longbridge SDK numeric value (Decimal/int) to float for JSON serialization.
agent/src/trading/connectors/longbridge/sdk.py:816
↓ 8 callersFunction_frame
(open_price=100.0, ts=_TS)
agent/tests/test_plan_rejected.py:79
↓ 8 callersFunction_human
(text)
agent/tests/test_openbb_bridge/test_adapter.py:65
↓ 8 callersFunction_install_strategy
(name: str, source: str)
agent/tests/paper_trade_5m_fixtures.py:324
↓ 8 callersFunction_intraday
Two on-grid continuous 5m bars; labels are bar ENDS.
agent/tests/test_paper_trade_5m_limit_price.py:53
↓ 8 callersFunction_is_a_share
(code: str)
agent/backtest/loaders/baostock_loader.py:158
↓ 8 callersFunction_is_cleared
True when ``content`` is a layer-1 cleared-result marker.
agent/src/agent/context_compact.py:193
↓ 8 callersFunction_ledger
(tmp_path, payload)
agent/tests/test_grounding_keyed_metric_paths.py:30
↓ 8 callersFunction_ledger_with_locked_listed_identity
(tmp_path: Path)
agent/tests/test_grounding_registry.py:33
↓ 8 callersFunction_ledger_with_rows
(tmp_path: Path, rows: list[dict])
agent/tests/test_grounding_percent_unit_fields.py:26
↓ 8 callersFunction_lens_text
Return the raw text of one lens file. Args: slug: Lens file stem, e.g. ``munger-inversion``. Returns: Raw markdown text.
agent/tests/test_investor_lenses_skill.py:82
↓ 8 callersFunction_list
(current: Path | None = None, **kwargs)
agent/tests/test_backtest_runs_tool.py:62
↓ 8 callersFunction_llm_settings_payload
(base_url: str = "https://api.openai.com/v1")
agent/tests/test_security_auth_api.py:226
↓ 8 callersMethod_load_metrics
Load metrics.csv from a run directory. A run's metrics row can carry a non-numeric column (e.g. ``benchmark_ticker``) alongside the n
agent/src/session/service.py:872
↓ 8 callersFunction_local_ms
Epoch-ms of a wall-clock time in an IANA zone (``fold=0`` = first occurrence).
agent/tests/test_scheduled_research_executor.py:25
↓ 8 callersMethod_make_loader
(self)
agent/tests/test_tushare_loader.py:277
↓ 8 callersFunction_make_ohlcv_df
Build a minimal OHLCV DataFrame matching tushare's column layout.
agent/tests/test_tushare_loader.py:125
↓ 8 callersFunction_make_store
(tmp_path: Path)
agent/tests/test_strategy_discovery_hard_gates.py:67
↓ 8 callersFunction_mandate
()
agent/tests/test_etoro_live_actions.py:71
↓ 8 callersFunction_market_payload
(symbol: str = "562500.SS")
agent/tests/test_agent_grounding.py:65
↓ 8 callersFunction_measure_usage
Return full token usage for a single LLM call, real if available. Prefers the provider-reported counts attached to the response by :func:`Cha
agent/src/swarm/worker.py:194
↓ 8 callersFunction_message_chunks_from_events
(events: Iterable[dict[str, Any]])
agent/src/providers/openai_codex.py:632
↓ 8 callersFunction_ns
(**overrides: Any)
agent/tests/test_alpha_bench_horizon.py:210
↓ 8 callersFunction_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/alpaca/sdk.py:887
↓ 8 callersFunction_outcome
( *, orders: list[dict], five: dict[str, pd.DataFrame], cash: float = 100000.0, positions:
agent/tests/test_paper_trade_5m_limit_price.py:148
↓ 8 callersFunction_overlapping_labels
Label i resolves `horizon` bars later, so labels overlap heavily.
agent/tests/quantlib/test_crossvalidation.py:27
↓ 8 callersFunction_panel
(n: int = 5)
agent/tests/factors/test_registry.py:111
↓ 8 callersFunction_parse_candles
Convert a TickerAll candles body into an ascending OHLCV frame, trimmed to the window. Args: payload: Decoded JSON body (a list, or ``{ca
agent/backtest/loaders/tickerall_loader.py:397
↓ 8 callersFunction_patch_gate
(monkeypatch, *, mandate, halted=False)
agent/tests/test_etoro_live_actions.py:98
↓ 8 callersFunction_position_to_dict
(item: Any)
agent/src/trading/connectors/okx/sdk.py:712
↓ 8 callersFunction_price_frame
Build a tz-naive trade_date-indexed OHLCV frame like a loader returns.
agent/tests/test_shadow_account.py:1257
↓ 8 callersFunction_probe_entry
(tmp_path: Path, body: str)
agent/tests/test_runner_env.py:391
↓ 8 callersFunction_proposal
()
agent/tests/test_cli_live.py:504
↓ 8 callersFunction_read
( ledger: GroundingLedger, run_dir: Path, artifact: str, call_id: str, **kwargs )
agent/tests/test_grounding_prior_run_reuse.py:46
↓ 8 callersFunction_ref
(index: int, dotted: bool = False, field: str = "contribution_pct")
agent/tests/test_grounding_indexed_field_refs.py:47
↓ 8 callersFunction_reference
Recompute a bar reference independently of the engine. ``money()`` is ``Decimal(str(x))`` and the frozen tick is 2dp HALF_UP; both are restat
agent/tests/test_paper_trade_5m_limit_price.py:71
↓ 8 callersFunction_rejects_unc
Raise ValueError if `p` starts with a UNC share prefix.
agent/src/tools/path_utils.py:48
↓ 8 callersFunction_request
(messages)
agent/tests/test_openbb_bridge/test_adapter.py:73
↓ 8 callersFunction_resolve_console
Return the shared CLI console, or a caller-supplied override.
agent/cli/commands/chat.py:23
↓ 8 callersFunction_run
(**kw)
agent/tests/test_options_pricing_degenerate.py:20
↓ 8 callersFunction_run
( monkeypatch, tmp_path: Path, llm: _ScriptedChatLLM, event_callback=None, max_iterations:
agent/tests/test_swarm_worker_content_filter.py:65
↓ 8 callersFunction_run_worker
Run a swarm worker against the scripted LLM, recording sleep durations. Args: monkeypatch: pytest monkeypatch fixture (patches sleep + de
agent/tests/test_stream_retry_escalation.py:124
↓ 8 callersFunction_schedule
(symbol: str = "BTC-USDT-PERP", version: str = "abc123", coefficient: float | None = None)
agent/tests/test_perpetual_risk.py:31
↓ 8 callersFunction_seed_state
Write a durable last-known runtime_state.json for ``broker`` directly.
agent/tests/test_runtime_reconcile.py:52
↓ 8 callersFunction_serve_once
Run handler(client_sock) on one accepted connection; returns the port.
agent/tests/test_baostock_socket_deadline.py:32
↓ 8 callersFunction_strategy_payload
(path: str, **overrides: Any)
agent/tests/paper_trade_5m_fixtures.py:317
↓ 8 callersFunction_transport
Build a fake transport returning candidates with the given ref codes.
agent/tests/test_gildata_codes.py:13
↓ 8 callersFunction_unsupported_etoro
(profile: TradingProfile, capability: str)
agent/src/trading/service.py:811
↓ 8 callersFunction_usage
(iteration=1, tokens_in=100, tokens_out=10)
agent/tests/test_live_decision_budget.py:18
↓ 8 callersFunction_usdm_config
(**changes: object)
agent/tests/test_binance_usdm_readonly.py:119
↓ 8 callersFunction_verdict
(ledger: GroundingLedger, value: str, expression: str)
agent/tests/test_grounding_percent_unit_fields.py:38
↓ 8 callersFunction_write_csv
(path: Path, header: List[str], rows: List[List[Any]])
agent/tests/test_attribution_api.py:33
↓ 8 callersMethod_write_json
(path: Path, data: Any)
agent/src/core/state.py:80
↓ 8 callersFunction_write_md
Write a dummy .md file with basic frontmatter.
agent/tests/memory/test_hierarchy.py:17
↓ 8 callersFunction_write_run_state
Real-runtime state.json + engine metrics.csv for a fixture run. The Phase 2 hard gates read ``state.json`` (runtime-written, ``{"status": "su
agent/tests/test_strategy_discovery_harness.py:253
↓ 8 callersFunctionabbreviateNum
(v: number)
frontend/src/lib/formatters.ts:90
↓ 8 callersFunctionadapt_artifact
Return a new strategy artifact derived from *parent*. Does not write.
agent/src/strategy_store/adaptation.py:40
↓ 8 callersFunctionbenford_check
First-digit Benford's-law check on a list of financial values. Args: values: Numeric values to inspect. Returns: Dict with `
agent/src/tools/financial_rigor_tool.py:309
↓ 8 callersFunctionbenjamini_hochberg
Control the false discovery rate across many simultaneous tests. Bonferroni controls the probability of *any* false positive and is far too s
agent/src/quantlib/multipletesting.py:393
↓ 8 callersMethodbetween
Select flows within an inclusive date window. Args: start: Earliest date to keep, inclusive. ``None`` leaves the window
agent/src/entities/cashflow.py:377
↓ 8 callersFunctionbody
(**kwargs)
agent/tests/test_shannon_routes.py:36
↓ 8 callersFunctionbroker_halt_path
Return the path to a per-broker kill-switch sentinel. Args: broker: Broker key, e.g. ``"robinhood"``. Returns: ``<runtime_ro
agent/src/live/halt.py:56
← previousnext →1,001–1,100 of 26,887, ranked by callers