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
↓ 7 callers
Function
_split_telegram_markdown
Split raw Telegram Markdown without leaving fenced code blocks unbalanced.
agent/src/channels/telegram.py:46
↓ 7 callers
Function
_to_yahoo_interval
Map a project interval string to Yahoo's chart interval string. Args: interval: Backtest interval such as ``1D`` or ``1H``. Returns:
agent/backtest/loaders/yahoo_loader.py:81
↓ 7 callers
Function
_to_yfinance_interval
Map project interval strings to yfinance interval strings. Args: interval: Backtest interval such as ``1D`` or ``5m``. Returns:
agent/backtest/loaders/yfinance_loader.py:84
↓ 7 callers
Function
_trade_ctx
Open an ``OpenSecTradeContext`` against the local OpenD gateway.
agent/src/trading/connectors/futu/sdk.py:1044
↓ 7 callers
Function
_trd_env_enum
Return the ``TrdEnv`` enum value for this profile's environment.
agent/src/trading/connectors/futu/sdk.py:1068
↓ 7 callers
Function
_turn_items
(service: SessionService, session_id: str, turn_id: str)
agent/tests/test_session_conversation_kernel.py:174
↓ 7 callers
Function
_valid_mandate_state
Build a committed, unexpired active-mandate snapshot for stubbing.
agent/tests/test_api_live_runtime.py:46
↓ 7 callers
Function
_wire_proposals
( monkeypatch: pytest.MonkeyPatch, store: ScheduledResearchJobStore )
agent/tests/scheduling/test_system_job_protection.py:126
↓ 7 callers
Function
_write
(path: Path, kind: str, close: int)
agent/tests/test_local_loader_source_revision.py:12
↓ 7 callers
Function
_write_csv
Write a small CSV artifact.
agent/tests/test_run_artifact_tool.py:70
↓ 7 callers
Function
_write_run
(tmp_path: Path, config: dict | None)
agent/tests/test_validation_cli_settings.py:13
↓ 7 callers
Function
_write_runtime_file
(tmp_path, values: dict[str, str])
agent/tests/test_longbridge_credentials.py:37
↓ 7 callers
Function
accrued_interest
Interest earned by the seller between the last coupon and settlement. Dirty price = clean price + accrued interest. :func:`bond_price` returns th
agent/src/quantlib/fixedincome.py:148
↓ 7 callers
Function
analyze_mc_results
Summarise the terminal distribution of a simulated price matrix. Args: paths: Price matrix of shape ``(n_paths, n_steps + 1)`` as returne
agent/src/quantlib/risk.py:590
↓ 7 callers
Function
apply_constraints_frame
Apply constraints row by row to a signed weight frame. Args: frame: Optimizer output (dates x codes), signed weights. constraints
agent/backtest/constraints.py:183
↓ 7 callers
Function
archive_segments
Sealed segments for a ledger, oldest first. Args: path: Active ledger path, e.g. ``.../audit_chain.jsonl``. Returns: Archive
agent/src/governance/ledger.py:605
↓ 7 callers
Function
bootstrap_statistic
Percentile-bootstrap confidence interval for an arbitrary statistic. Resamples ``data`` with replacement ``n_bootstrap`` times, recomputes the
agent/src/quantlib/timeseries.py:771
↓ 7 callers
Function
br_date
``dd/mm/yyyy`` or ``yyyy-mm-dd`` -> ``yyyy-mm-dd``; anything else -> ``None``.
agent/src/br_data/_download.py:63
↓ 7 callers
Function
call
(args, **kw)
agent/tests/test_market_csv_artifact.py:37
↓ 7 callers
Method
cancel
(self, job)
agent/src/data_gateway/history_store.py:492
↓ 7 callers
Method
cancel_requested
Check for a regular cancellation marker without following symlinks. Args: run_id: ID of the run whose owner is polling for cancel
agent/src/swarm/store.py:227
↓ 7 callers
Function
carino_factor
Return the Carino logarithmic scaling factor for one return pair. The factor is ``(ln(1 + Rp) - ln(1 + Rb)) / (Rp - Rb)``. When the two returns
agent/src/quantlib/attribution.py:341
↓ 7 callers
Function
case_paths
Discover evaluator cases; fixture JSON is never mistaken for a case.
agent/evals/harness/suite.py:25
↓ 7 callers
Method
catalog
List available tools for discovery. Returns: One line per discoverable tool, with its exact name and bounded description.
agent/src/product/tool_loading.py:82
↓ 7 callers
Function
channelsConfig
(overrides: Record<string, unknown> = {})
frontend/src/components/settings/__tests__/ChannelSettings.test.tsx:381
↓ 7 callers
Method
chat
(self, *_args, **_kwargs)
agent/tests/test_session_features.py:90
↓ 7 callers
Function
child_registry
Project the parent's registry onto the tools a child may use. Args: parent: The registry the parent agent was built with. workspa
agent/src/tools/spawn_agent_tool.py:301
↓ 7 callers
Function
claim_sessions_dir
Claim a sessions directory for one live session service. Args: sessions_dir: Sessions directory the service will read and write.
agent/src/session/runtime_lock.py:50
↓ 7 callers
Function
cmd_live_authorize
Initiate OAuth authorization for a configured live broker channel. Args: broker: Broker key such as robinhood. Returns: Succ
agent/cli/commands/live.py:113
↓ 7 callers
Function
cmd_live_status
Show live broker configuration, runner status, halt state, and mandate. Args: broker: Broker key. None uses the default broker. Retu
agent/cli/commands/live.py:264
↓ 7 callers
Function
collect_ohlcv_paths
Map each symbol code to the absolute path of its OHLCV CSV. Globs ``<run_dir>/artifacts/ohlcv_*.csv``; the code is the filename minus the ``o
agent/src/tools/backtest_summary.py:44
↓ 7 callers
Method
communicate
(self, timeout: float | None = None)
agent/tests/test_bash_tool.py:31
↓ 7 callers
Function
compareSemanticVersions
(left: string, right: string)
desktop/electron/src/update-verification.ts:237
↓ 7 callers
Function
contentText
(content: unknown)
frontend/src/lib/threadItems.ts:108
↓ 7 callers
Function
copy_root
Copy-trading routes share one path for demo and real (no ``/demo`` prefix). Every other root above encodes paper/live in the path, which is half
agent/src/trading/connectors/etoro/client.py:255
↓ 7 callers
Method
create
(self, **spec)
agent/src/data_gateway/history_store.py:347
↓ 7 callers
Method
create_session
Create a new session. Args: title: Session title. config: Session configuration, including any per-session overrides.
agent/src/session/service.py:170
↓ 7 callers
Function
credit_spread_analysis
Time-series view of an issuer's spread: level, z-score and percentile. .. warning:: ``historical_percentile`` is a **whole-sample** rank,
agent/src/quantlib/credit.py:581
↓ 7 callers
Function
deflated_sharpe_ratio
Deflate an observed Sharpe by the number of strategies searched. Args: observed_sharpe: Best observed Sharpe, per-observation. n_
agent/src/quantlib/multipletesting.py:339
↓ 7 callers
Method
delete_session
Delete an idle session, its search rows and its research goals. Args: session_id: Session id. Returns: Wheth
agent/vibe_trading/client.py:383
↓ 7 callers
Method
denies
Check the tool name against the applicable deny prefixes. Args: name: Tool name to check. legacy_defaults: Whether to
agent/src/product/tool_policy.py:79
↓ 7 callers
Function
direct_alpha
Direct Alpha -- an annualized excess return over a public index. Every flow, of every kind (contribution, distribution or valuation mark), is
agent/src/quantlib/fundmath.py:1769
↓ 7 callers
Function
discover_channel_names
Return all built-in channel module names by scanning the package (zero imports).
agent/src/channels/registry.py:122
↓ 7 callers
Method
discover_links
Find top-k most similar entries via BM25. Args: entry_title: Title of the source entry (used to exclude self). entry_
agent/src/memory/semantic_links.py:179
↓ 7 callers
Function
discover_plugins
Discover valid plugins and return field-safe diagnostics for invalid ones. Results are cached per plugin root and reused while every manifest kee
agent/src/trading/local_plugins.py:236
↓ 7 callers
Function
distributed_capital
Total capital returned by the fund, as a positive magnitude. Args: series: The cash flows. distribution_kinds: Kind labels counte
agent/src/quantlib/fundmath.py:631
↓ 7 callers
Method
drain_notifications
(self)
agent/tests/test_agent_loop_no_assistant_prefill.py:115
↓ 7 callers
Function
execute
(**kwargs)
agent/tests/test_gildata_stock_selection.py:36
↓ 7 callers
Method
execute
Append evidence to a goal. Args: **kwargs: Tool arguments from the model. Returns: JSON envelope with the ev
agent/src/tools/goal_tool.py:495
↓ 7 callers
Method
execute
Fetch dragon-tiger appearances (and seats when ``code`` is given). Args: **kwargs: ``date`` (required, YYYY-MM-DD) and optional `
agent/src/tools/dragon_tiger_tool.py:224
↓ 7 callers
Method
expose
Load known names atomically without adding tools absent from the registry. Args: names: Nonempty list of exact tool names selecte
agent/src/product/tool_loading.py:99
↓ 7 callers
Function
feature_available
Check the current credential and opt-in before using a vendor capability.
agent/src/config/gildata_features.py:27
↓ 7 callers
Function
find_exact
Resolve an exact command name or alias. Args: name: Command name or alias, optionally with a leading slash. Returns: Matchin
agent/cli/commands/slash_router.py:171
↓ 7 callers
Method
finish_turn
Close a turn once, recording the prompt if execution never opened it. Args: turn_id: Turn or attempt ID. prompt: The
agent/src/session/runtime.py:465
↓ 7 callers
Method
flush
Persist any text accumulated since the last snapshot.
agent/src/session/checkpoint.py:89
↓ 7 callers
Function
format
(value: number)
frontend/src/pages/__tests__/Portfolio.test.tsx:469
↓ 7 callers
Method
from_rates
Build a table from a sequence of individual quotes. Args: rates: The quotes, all against ``quote_currency``. quote_cu
agent/src/entities/cashflow.py:560
↓ 7 callers
Function
gateways
(tmp_path)
agent/tests/test_data_gateway.py:19
↓ 7 callers
Method
get_artifact
Get a single artifact by ID. Returns ``None`` if not found.
agent/src/strategy_store/sqlite_store.py:459
↓ 7 callers
Method
get_channel
Get a channel by name.
agent/src/channels/manager.py:632
↓ 7 callers
Function
get_config_path
Return the active config file path. Prefers the first existing candidate. If an explicit path is provided, returns that path directly. If no
agent/src/config/paths.py:70
↓ 7 callers
Function
get_sessions_dir
Return the user-level directory holding chat session records.
agent/src/config/paths.py:37
↓ 7 callers
Function
get_shared_index
Access the process-wide session search index. Returns: The shared SessionSearchIndex, created on first use.
agent/src/session/search.py:368
↓ 7 callers
Method
get_strategy_evidence
(self, *args, **kwargs)
agent/tests/test_strategy_discovery_tools.py:76
↓ 7 callers
Function
get_uploads_dir
Return the user-level directory holding uploaded files.
agent/src/config/paths.py:52
↓ 7 callers
Function
halt_path
Return the path to the global kill-switch sentinel. Returns: ``<runtime_root>/live/HALT``. The file is NOT created here; use :fun
agent/src/live/halt.py:46
↓ 7 callers
Method
health
(self)
agent/src/factors/registry.py:316
↓ 7 callers
Method
history
(self, limit)
agent/tests/test_portfolio_routes.py:33
↓ 7 callers
Function
hose_tick_size
Return the HOSE tick unit (bước giá) applying at *price*. Args: price: Price in VND. Returns: The tick unit in VND. Prices a
agent/backtest/engines/vietnam_equity.py:93
↓ 7 callers
Method
invoke
Bound actual source work, retaining timed-out threads in their slots.
agent/src/data_gateway/service.py:275
↓ 7 callers
Method
is_duplicate
Check if a memory with similar content was recently written. Uses a 30-second sliding window to catch rapid-fire duplicates from retr
agent/src/memory/persistent.py:496
↓ 7 callers
Function
is_live_broker
Return whether an MCP server denotes a live-trading broker. Detection is by config key OR by URL host, so a live-broker URL parked under an a
agent/src/live/registry.py:77
↓ 7 callers
Function
is_path_within
Check whether *path* resides within *root* directory.
agent/src/channels/utils.py:55
↓ 7 callers
Method
is_run_stale
Check whether a running swarm has exceeded its silence threshold. Args: run: Run to inspect. now: Reference time. Def
agent/src/swarm/store.py:408
↓ 7 callers
Function
is_trading_state_tool
Whether a tool places, modifies or cancels orders or changes trading state. A tool that is not read-only and is either a live-broker order tool
agent/src/tools/spawn_agent_tool.py:92
↓ 7 callers
Function
load_cached_result
Load the cached backtest result matching this window and journal. The cache is keyed by shadow + run parameters; a different window or a re-e
agent/src/shadow_account/backtester.py:354
↓ 7 callers
Function
load_config
Load local IBKR settings from ``~/.vibe-trading/ibkr-local.json``.
agent/src/trading/connectors/ibkr/local.py:149
↓ 7 callers
Function
load_config
Load Tiger settings from ``~/.vibe-trading/tiger.json``.
agent/src/trading/connectors/tiger/sdk.py:156
↓ 7 callers
Function
load_corpus
Convert raw JSON corpus to MemoryRecord list, IDF dict, and avg doc length. Returns: Tuple of (records, idf_dict, avg_doc_len).
agent/tests/memory/benchmarks/runner.py:250
↓ 7 callers
Function
load_profile
Load a ShadowProfile back from disk. Raises: FileNotFoundError: No profile with that id.
agent/src/shadow_account/storage.py:77
↓ 7 callers
Function
load_queries
Convert raw JSON queries to QueryRecord list.
agent/tests/memory/benchmarks/runner.py:298
↓ 7 callers
Function
loader_cache_get
Return a cached DataFrame for one payload, or ``None`` on any miss. Misses include: cache disabled, range not yet settled, entry absent, or a
agent/backtest/loaders/base.py:680
↓ 7 callers
Method
mark_running
Mark the attempt as running and record when execution began.
agent/src/session/models.py:238
↓ 7 callers
Function
match_commands
Find slash commands that fuzzy-match the input's command token. Args: input_text: Raw input line, possibly empty. Leading whitespace and
agent/cli/commands/slash_router.py:141
↓ 7 callers
Function
mixed_caliber_warning
Build the mixed-caliber warning for a served basket, or None. ``stamps`` maps each served symbol to the (source, caliber) pair that served it
agent/backtest/loaders/registry.py:413
↓ 7 callers
Function
msteams_validate_content_length
Validate an inbound ``Content-Length`` before allocating for the body. Args: raw: The raw header value, or ``None`` when absent. Ret
agent/src/channels/msteams.py:71
↓ 7 callers
Method
next
(self)
agent/tests/test_history_source.py:17
↓ 7 callers
Function
normalize_currency
Normalize a currency code to its canonical uppercase form. Codes are upper-cased and stripped. Length is deliberately not constrained to thre
agent/src/entities/models.py:68
↓ 7 callers
Function
pending_action_path
(broker: str)
agent/src/live/pending_action.py:263
↓ 7 callers
Function
portfolio_style_exposure
Aggregate asset exposures into a portfolio exposure. Args: holdings: Portfolio weights by asset. Need not sum to 1; the weights are
agent/src/quantlib/factormodel.py:479
↓ 7 callers
Function
precision_at_k
P@K: fraction of top-K retrieved items that appear in ground truth. Args: retrieved: Ranked list of retrieved memory IDs. expecte
agent/tests/memory/benchmarks/metrics.py:14
↓ 7 callers
Function
profile_compatibility
Return compatibility metadata for a built-in or local profile.
agent/src/portfolio/compatibility.py:126
↓ 7 callers
Function
progress
(value)
agent/src/research_lab/service.py:174
↓ 7 callers
Function
public_model_metadata
Filter a public model identifier for endpoint and credential patterns. Args: value: Candidate model identifier. Returns: The
agent/src/swarm/models.py:86
↓ 7 callers
Method
read
Read a bounded page of complete, hash-verified chunks without sampling.
agent/src/data_gateway/history_store.py:715
↓ 7 callers
Function
read_daily_count
Return today's order count for ``broker`` (UTC rollover; 0 on any miss).
agent/src/live/daily_count.py:108
↓ 7 callers
Function
reconcile_binance_account
Compare immutable local state with one complete USD-M observation. Raises: ValueError: If the source is incomplete, timestamps are incohe
agent/backtest/binance_account_reconciliation.py:314
↓ 7 callers
Method
record
Record the result of an executed call in the progress ledger. Args: name: Tool name used to group observations. key:
agent/src/product/tool_progress.py:69
↓ 7 callers
Function
refresh
(settingsOverride?: PortfolioSettings)
frontend/src/pages/Portfolio.tsx:171
↓ 7 callers
Method
refresh
Update the attached live display if one is present.
agent/cli/ui/rail.py:333
← previous
next →
1,501–1,600 of 30,405, ranked by callers