Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
30,405 in github.com/HKUDS/Vibe-Trading
⨍
Functions
30,405
◇
Types & classes
3,299
↳
Endpoints
266
↓ 8 callers
Function
_call
(call_id, name, **arguments)
agent/tests/test_swarm_shell_sandbox.py:46
↓ 8 callers
Function
_clear_environment
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_longbridge_credentials.py:25
↓ 8 callers
Function
_collect
(agen)
agent/tests/test_openbb_bridge/test_adapter.py:75
↓ 8 callers
Function
_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:357
↓ 8 callers
Function
_csvs
(directory: Path)
agent/tests/test_tool_output_dir_write_roots.py:59
↓ 8 callers
Function
_daily_index
(start: str = "2026-01-02", periods: int = 30)
agent/tests/test_shadow_account.py:2314
↓ 8 callers
Function
_dated
Attach consecutive calendar days starting 2024-01-01 to a value list.
agent/tests/quantlib/test_risk.py:231
↓ 8 callers
Function
_eastmoney_payload
A suggest payload spanning A-share, HK, and US markets.
agent/tests/test_symbol_search_tool.py:25
↓ 8 callers
Function
_endpoint_model
Scope learned wire behavior to a protocol, endpoint and model.
agent/src/providers/adapters/common.py:12
↓ 8 callers
Function
_engine
(*codes: str, **config)
agent/tests/test_global_futures_pricing_assumptions.py:41
↓ 8 callers
Function
_envelope
Return the newest rows that fit the result budget.
agent/src/tools/br_market_data_tool.py:61
↓ 8 callers
Function
_envelope
Build the full MCP JSON-RPC response around a StockDailyQuote result.
agent/tests/test_gildata_loader.py:40
↓ 8 callers
Function
_err
(msg: str)
agent/src/tools/doc_reader_tool.py:78
↓ 8 callers
Function
_etoro_overrides
Build override dict for eToro tools, including optional credential overrides.
agent/src/tools/trading_connector_tool.py:228
↓ 8 callers
Function
_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 callers
Function
_fetch_cn_a
(ch_frames, net_frames, symbols=("600519.SH",), **kwargs)
agent/tests/test_paper_trade_readiness.py:115
↓ 8 callers
Function
_finite
Return ``value`` when finite, else ``None`` (strict-JSON safe).
agent/backtest/risk_xray.py:39
↓ 8 callers
Function
_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/longbridge/sdk.py:808
↓ 8 callers
Function
_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/okx/sdk.py:666
↓ 8 callers
Function
_fix_tool_pairs
Repair the compacted tail in place, retaining surviving message identities.
agent/src/session/compaction_ops.py:210
↓ 8 callers
Function
_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 callers
Function
_frame
(open_price=100.0, ts=_TS)
agent/tests/test_plan_rejected.py:79
↓ 8 callers
Function
_human
(text)
agent/tests/test_openbb_bridge/test_adapter.py:61
↓ 8 callers
Function
_intraday
Two on-grid continuous 5m bars; labels are bar ENDS.
agent/tests/test_paper_trade_5m_limit_price.py:53
↓ 8 callers
Function
_is_a_share
(code: str)
agent/backtest/loaders/baostock_loader.py:230
↓ 8 callers
Function
_is_cleared
True when ``content`` is a layer-1 cleared-result marker.
agent/src/session/compaction_ops.py:104
↓ 8 callers
Function
_ledger
(tmp_path, payload)
agent/tests/test_grounding_keyed_metric_paths.py:34
↓ 8 callers
Function
_ledger_with_locked_listed_identity
(tmp_path: Path)
agent/tests/test_grounding_registry.py:37
↓ 8 callers
Function
_ledger_with_rows
(tmp_path: Path, rows: list[dict])
agent/tests/test_grounding_percent_unit_fields.py:30
↓ 8 callers
Function
_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:86
↓ 8 callers
Function
_list
(current: Path | None = None, **kwargs)
agent/tests/test_backtest_runs_tool.py:66
↓ 8 callers
Function
_llm_settings_payload
(base_url: str = "https://api.openai.com/v1")
agent/tests/test_security_auth_api.py:229
↓ 8 callers
Function
_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 callers
Function
_lookup_factory
(extra: tuple = ())
agent/tests/test_session_conversation_kernel.py:383
↓ 8 callers
Function
_make_bracket_artifact
( *, symbol: str = "BTC/USDT:USDT", brackets: list[dict] | None = None, **overrides, )
agent/tests/test_ccxt_perpetual_loader.py:89
↓ 8 callers
Method
_make_loader
(self)
agent/tests/test_tushare_loader.py:277
↓ 8 callers
Function
_make_ohlcv_df
Build a minimal OHLCV DataFrame matching tushare's column layout.
agent/tests/test_tushare_loader.py:125
↓ 8 callers
Function
_make_store
(tmp_path: Path)
agent/tests/test_strategy_discovery_hard_gates.py:67
↓ 8 callers
Function
_mandate
()
agent/tests/test_etoro_live_actions.py:71
↓ 8 callers
Function
_market_payload
(symbol: str = "562500.SS")
agent/tests/test_agent_grounding.py:74
↓ 8 callers
Function
_mcp_wrapper
()
agent/tests/test_paper_trade_tool.py:401
↓ 8 callers
Function
_ns
(**overrides: Any)
agent/tests/test_alpha_bench_horizon.py:210
↓ 8 callers
Function
_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/alpaca/sdk.py:887
↓ 8 callers
Function
_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 callers
Function
_overlapping_labels
Label i resolves `horizon` bars later, so labels overlap heavily.
agent/tests/quantlib/test_crossvalidation.py:27
↓ 8 callers
Function
_panel
(n: int = 5)
agent/tests/factors/test_registry.py:111
↓ 8 callers
Function
_patch_gate
(monkeypatch, *, mandate, halted=False)
agent/tests/test_etoro_live_actions.py:98
↓ 8 callers
Method
_path
(self, job, index, temporary=False)
agent/src/data_gateway/history_store.py:211
↓ 8 callers
Function
_payload
(day: str = _DAY, **overrides: Any)
agent/tests/test_paper_trade_5m_golden.py:67
↓ 8 callers
Function
_payload
(**overrides)
agent/tests/test_paper_trade_v13_request.py:43
↓ 8 callers
Function
_position_to_dict
(item: Any)
agent/src/trading/connectors/okx/sdk.py:712
↓ 8 callers
Function
_price_frame
Build a tz-naive trade_date-indexed OHLCV frame like a loader returns.
agent/tests/test_shadow_account.py:1502
↓ 8 callers
Function
_profile
()
agent/tests/test_shadow_result_cache.py:25
↓ 8 callers
Function
_proposal
()
agent/tests/test_cli_live.py:498
↓ 8 callers
Function
_read
( ledger: GroundingLedger, run_dir: Path, artifact: str, call_id: str, **kwargs )
agent/tests/test_grounding_prior_run_reuse.py:54
↓ 8 callers
Function
_rectangle
()
agent/tests/quantlib/test_volatility_surface.py:27
↓ 8 callers
Function
_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 callers
Function
_request
(messages)
agent/tests/test_openbb_bridge/test_adapter.py:69
↓ 8 callers
Function
_returns
(value: float)
agent/tests/test_grounding_container_field_refs.py:148
↓ 8 callers
Function
_run
(**kw)
agent/tests/test_options_pricing_degenerate.py:20
↓ 8 callers
Function
_run
Parse a real request and match it against the synthetic 5m session.
agent/tests/test_paper_trade_v13_schema.py:200
↓ 8 callers
Function
_run
(payload: dict[str, Any], *, loader: Any = None)
agent/tests/test_paper_trade_5m_golden.py:82
↓ 8 callers
Function
_run
( monkeypatch, tmp_path: Path, llm: _ScriptedChatLLM, event_callback=None, max_iterations:
agent/tests/test_swarm_worker_content_filter.py:74
↓ 8 callers
Function
_run_node
Run a real node whose model issues the given tool calls; return its workspace and tool results.
agent/tests/test_swarm_shell_sandbox.py:89
↓ 8 callers
Function
_run_node
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:137
↓ 8 callers
Function
_schedule
(symbol: str = "BTC-USDT-PERP", version: str = "abc123", coefficient: float | None = None)
agent/tests/test_perpetual_risk.py:31
↓ 8 callers
Function
_seed_state
Write a durable last-known runtime_state.json for ``broker`` directly.
agent/tests/test_runtime_reconcile.py:52
↓ 8 callers
Function
_sell
(limit=None, qty=100, symbol=_SYM)
agent/tests/test_paper_trade_5m_engine.py:211
↓ 8 callers
Function
_serve_once
Run handler(client_sock) on one accepted connection; returns the port.
agent/tests/test_baostock_socket_deadline.py:32
↓ 8 callers
Function
_stub_backtest_result
(profile: ShadowProfile)
agent/tests/test_shadow_account.py:883
↓ 8 callers
Function
_stub_loader
(monkeypatch, source, *, fetch)
agent/tests/test_loader_health.py:248
↓ 8 callers
Function
_transport
Build a fake transport returning candidates with the given ref codes.
agent/tests/test_gildata_codes.py:13
↓ 8 callers
Function
_transport
(monkeypatch, handler)
agent/tests/test_openalgo_connector.py:66
↓ 8 callers
Function
_unsupported_etoro
(profile: TradingProfile, capability: str)
agent/src/trading/service.py:835
↓ 8 callers
Function
_usage
(iteration=1, tokens_in=100, tokens_out=10)
agent/tests/test_live_decision_budget.py:18
↓ 8 callers
Function
_usdm_config
(**changes: object)
agent/tests/test_binance_usdm_readonly.py:119
↓ 8 callers
Function
_verdict
(ledger: GroundingLedger, value: str, expression: str)
agent/tests/test_grounding_percent_unit_fields.py:42
↓ 8 callers
Function
_write_csv
(path: Path, header: List[str], rows: List[List[Any]])
agent/tests/test_attribution_api.py:33
↓ 8 callers
Method
_write_json
(path: Path, data: Any)
agent/src/core/state.py:80
↓ 8 callers
Function
_write_md
Write a dummy .md file with basic frontmatter.
agent/tests/memory/test_hierarchy.py:17
↓ 8 callers
Function
_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 callers
Method
_write_transaction
Open an immediate write transaction for cross-connection safety.
agent/src/goal/store.py:250
↓ 8 callers
Function
abbreviateNum
(v: number)
frontend/src/lib/formatters.ts:92
↓ 8 callers
Method
account
Measure and record usage for a provider attempt. Args: messages: Messages sent to the provider. response: Response su
agent/src/swarm/node.py:404
↓ 8 callers
Function
adapt_artifact
Return a new strategy artifact derived from *parent*. Does not write.
agent/src/strategy_store/adaptation.py:40
↓ 8 callers
Function
benford_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 callers
Function
benjamini_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 callers
Method
between
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 callers
Function
body
(**kwargs)
agent/tests/test_shannon_routes.py:36
↓ 8 callers
Function
broker_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
↓ 8 callers
Function
build_config
Resolve credentials atomically, then apply profile and region overlays. The public return type and call signature are unchanged. Credential sourc
agent/src/trading/connectors/longbridge/sdk.py:145
↓ 8 callers
Function
buy_and_hold_return
Total buy-and-hold return as a price relative, not a compounded product. ``(1 + close.pct_change()).prod() - 1`` telescopes to ``P_end / P_start
agent/backtest/metrics.py:362
↓ 8 callers
Function
call
()
agent/tests/test_mcp_new_tools.py:316
↓ 8 callers
Method
call_soon_threadsafe
(self, fn, *args)
agent/tests/scheduling/test_kernel.py:195
↓ 8 callers
Method
cancel
(self, identity)
agent/src/data_gateway/scans.py:101
↓ 8 callers
Function
check_connection
Check a connector profile without mutating broker state.
agent/src/trading/service.py:194
↓ 8 callers
Function
check_crypto_liquidation
Check if a crypto position should be liquidated. Fires when equity in the position (margin + unrealized) falls at or below the maintenance ma
agent/backtest/engines/_market_hooks.py:667
↓ 8 callers
Function
check_mandate
Evaluate one order intent against the mandate (fail-closed). Checks run in a fixed order and the first failure produces the verdict: exclude-
agent/src/live/enforcement.py:476
↓ 8 callers
Function
compute_ic_series
Compute daily Spearman rank correlation (IC) between factor values and returns. Vectorised via ``rank().corrwith()`` (Spearman = Pearson on ranks
agent/src/factors/factor_analysis_core.py:8
↓ 8 callers
Function
compute_importance
Compute importance via Ebbinghaus-inspired decay formula.
agent/src/memory/persistent.py:83
← previous
next →
1,201–1,300 of 30,405, ranked by callers