Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ types & classes
Types & classes
2,943 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
↓ 169 callers
Class
GroundingLedger
Run-scoped identity state machine and evidence ledger.
agent/src/agent/grounding/ledger.py:88
↓ 140 callers
Class
PersistentMemory
File-based persistent memory that survives across sessions.
agent/src/memory/persistent.py:204
↓ 95 callers
Class
LLMResponse
LLM response. Attributes: content: Text content (final answer or thinking text). tool_calls: List of tool call requests.
agent/src/providers/chat.py:114
↓ 84 callers
Class
SwarmStore
File-based persistence store for SwarmRun. Each run is stored under base_dir/{run_id}/. run.json uses atomic writes (write to .tmp then renam
agent/src/swarm/store.py:119
↓ 78 callers
Class
Registry
In-memory registry of all discoverable alphas across zoo subdirectories.
agent/src/factors/registry.py:205
↓ 68 callers
Class
Position
An open position in a single instrument. Args: symbol: Instrument identifier. direction: 1 for long, -1 for short. entry_
agent/backtest/models.py:14
↓ 67 callers
Class
ScheduledResearchJobStore
Durable, crash-safe persistence for scheduled research jobs. The store is a thin envelope around a dict of :class:`~src.scheduled_research.mo
agent/src/scheduled_research/store.py:78
↓ 60 callers
Class
AgentLoop
ReAct Agent core loop. Attributes: registry: Tool registry. llm: ChatLLM client. memory: Workspace memory. max_it
agent/src/agent/loop.py:170
↓ 60 callers
Class
ToolRegistry
Tool registry.
agent/src/agent/tools.py:68
↓ 52 callers
Class
InstitutionalHoldingsTool
Query SEC Form 13F-HR institutional holdings three ways.
agent/src/tools/institutional_holdings_tool.py:1711
↓ 43 callers
Class
GoalStore
SQLite-backed store for finance research goals.
agent/src/goal/store.py:106
↓ 43 callers
Class
SwarmTask
A task node in the Swarm DAG. Each task is bound to an agent. Dependencies are declared via depends_on, and blocked_by tracks remaining incom
agent/src/swarm/models.py:203
↓ 42 callers
Class
EtfHoldingsTool
Look through an ETF to its constituents, or search the ETF universe.
agent/src/tools/etf_holdings_tool.py:1680
↓ 41 callers
Class
MessageBus
Async message bus that decouples chat channels from the agent core. Channels push messages to the inbound queue, and the agent processes them
agent/src/channels/bus/queue.py:8
↓ 41 callers
Class
SwarmAgentSpec
Role definition for a single agent in a Swarm. Parsed from YAML presets, describes the agent's identity, available tools, and constraints. A
agent/src/swarm/models.py:175
↓ 40 callers
Class
EtoroConfig
eToro connector connection settings. Args: api_key: eToro Public API key (shared across demo and real paths). user_key: eToro use
agent/src/trading/connectors/etoro/client.py:59
↓ 37 callers
Class
TraceWriter
JSONL trace writer, one record per line, crash-safe. Attributes: dir_path: Directory containing ``trace.jsonl`` and sidecar blobs.
agent/src/agent/trace.py:64
↓ 37 callers
Class
TurnoverAwareOptimizer
Mean-variance weights penalized for turnover against prior weights. Attributes: risk_aversion: Weight on the variance term (lambda).
agent/backtest/optimizers/turnover_aware.py:38
↓ 36 callers
Class
CashFlow
A single dated cash amount in one currency. Attributes: date: Settlement date. ``datetime`` and ISO-8601 strings are accepted
agent/src/entities/cashflow.py:127
↓ 36 callers
Class
ChinaAEngine
A-share market engine. Config keys: - commission_rate: default 0.00025 (万2.5) - commission_min: default 5.0 (RMB) - stamp_tax:
agent/backtest/engines/china_a.py:23
↓ 36 callers
Class
ConnectionStore
Owner-only metadata store; secret values live in the OS credential vault. Args: path: Registry file path. Defaults to ``connections.json`
agent/src/trading/connections.py:152
↓ 36 callers
Class
ToolCallRequest
Tool call request returned by the LLM. Attributes: id: Tool call ID (used to match tool_result messages). name: Tool name.
agent/src/providers/chat.py:85
↓ 35 callers
Class
SessionStore
Filesystem-backed persistent storage. Directory structure:: sessions/ ├── {session_id}/ │ ├── session.json │
agent/src/session/store.py:17
↓ 34 callers
Class
CashFlowSeries
An ordered, immutable collection of ``CashFlow`` in one currency. Flows are sorted by date at construction with a stable sort, so several flo
agent/src/entities/cashflow.py:202
↓ 34 callers
Class
SkillsLoader
Load skills from bundled skills/ directory and user skills directory. Attributes: skills: Loaded skill list (bundled + user-created).
agent/src/agent/skills.py:100
↓ 32 callers
Class
EtoroClient
Thin REST client for eToro Public API.
agent/src/trading/connectors/etoro/client.py:273
↓ 31 callers
Class
EventBus
Session-scoped event bus with subscribers and buffered events. V5: Inject the asyncio event loop with ``set_loop()``, and use ``call_soon_thr
agent/src/session/events.py:57
↓ 29 callers
Class
ScheduledResearchJob
Mutable persisted state for a scheduled research / backtest job. Attributes: id: Unique job identifier (caller-supplied UUID or slug).
agent/src/scheduled_research/models.py:196
↓ 28 callers
Class
CompositeEngine
Cross-market engine with shared capital pool. Sub-engines are stateless rule providers. All positions, capital, and trades live here (inherit
agent/backtest/engines/composite.py:120
↓ 28 callers
Class
_Broker
In-memory broker stub recording the order of injected calls.
agent/tests/test_runtime_flatten.py:20
↓ 27 callers
Class
BenchResult
Backtest result for an artifact.
agent/src/strategy_store/models.py:142
↓ 27 callers
Class
InMemoryStrategyStore
Dict/list-backed reference implementation of ``StrategyStoreProtocol``. Thread-safe via ``threading.RLock``. Intended for tests and as a templat
agent/src/strategy_store/store.py:173
↓ 27 callers
Class
OutboundMessage
Message to send to a chat channel. ``metadata`` can carry routing (``message_id``, …), trace flags (``_progress``), and optional ``OUTBOUND_M
agent/src/channels/bus/events.py:40
↓ 27 callers
Class
TradingProfile
A user-selectable trading connector profile. Args: id: Stable profile id used by CLI/tools. connector: Broker/connector key, e.g.
agent/src/trading/types.py:38
↓ 26 callers
Class
EnvConfig
Root configuration model composing all environment variable groups. Instantiating with no arguments reads every recognised env var from ``os.
agent/src/config/env_schema.py:744
↓ 26 callers
Class
OrderBook
The bar-agnostic lifecycle: orders in, statuses and fills out. The book never reads the clock and never touches money floats; fill quantities
agent/src/tools/paper_trade/order_lifecycle.py:122
↓ 26 callers
Class
Session
A multi-turn conversation session. Attributes: session_id: Unique identifier. title: User-visible session title. status:
agent/src/session/models.py:143
↓ 25 callers
Class
Artifact
Artifact file metadata.
agent/src/api/models.py:10
↓ 25 callers
Class
PortfolioService
Aggregate every enabled read-only source into one immutable snapshot. The service reads; it never places or cancels an order. A source that c
agent/src/portfolio/service.py:196
↓ 25 callers
Class
TaskStore
File-based persistence layer for tasks. Each task is stored at run_dir/tasks/task-{id}.json. Attributes: run_dir: Root directory of
agent/src/swarm/task_store.py:17
↓ 25 callers
Class
TechnicalIndicatorTool
Compute common technical indicators for a symbol. Fetches OHLCV data through the existing loader pipeline, then computes RSI, MACD, Bollinger
agent/src/tools/technical_indicator_tool.py:265
↓ 25 callers
Class
_OrderTracker
Records the order in which the runner reaches each tick stage.
agent/tests/test_runtime_runner.py:106
↓ 24 callers
Class
MemoryLifecycle
Lifecycle management for persistent memory: quality scoring, decay, GC. Wraps a PersistentMemory instance and provides reinforcement, garbage
agent/src/memory/lifecycle.py:71
↓ 24 callers
Class
PortfolioStore
SQLite-backed history of immutable portfolio snapshots plus an FX cache.
agent/src/portfolio/store.py:34
↓ 24 callers
Class
SemanticLinker
Manages BM25-based semantic links between memory entries. Responsible for discovering related memories via BM25 similarity scoring, persistin
agent/src/memory/semantic_links.py:158
↓ 24 callers
Class
SwarmRun
Complete state of a single Swarm preset execution. Persisted as .swarm/runs/{id}/run.json; the top-level aggregate root. Attributes:
agent/src/swarm/models.py:261
↓ 23 callers
Class
BackgroundManager
Background thread execution + notification queue, addressed by owner. One instance is a *handle*: it carries the scope its methods read and write
agent/src/tools/background_tools.py:134
↓ 23 callers
Class
FinancialStatementsTool
Fetch a stock's three financial statements or key per-period indicators.
agent/src/tools/financial_statements_tool.py:786
↓ 23 callers
Class
HypothesisRegistry
File-backed registry for research hypotheses.
agent/src/hypotheses/registry.py:145
↓ 23 callers
Class
LiveActionEvent
One immutable live-action audit record (SPEC.md Consent §5). Attributes: kind: The live-action kind (``order_placed`` | ``order_rejected`
agent/src/live/audit.py:173
↓ 22 callers
Class
BackgroundTaskStore
One JSON record per task, written atomically under a fixed root.
agent/src/tools/background_store.py:98
↓ 22 callers
Class
ChatOpenAIWithReasoning
ChatOpenAI that preserves provider reasoning across invoke + stream. langchain-openai 0.3.x drops non-standard fields in three paths:
agent/src/providers/llm.py:270
↓ 22 callers
Class
ShadowRule
One human-readable if-then rule distilled from profitable roundtrips. Attributes: rule_id: Stable ID like "R1", "R2". human_text:
agent/src/shadow_account/models.py:60
↓ 22 callers
Class
ValuationError
Base class for every refusal a valuation model makes.
agent/src/quantlib/valuation/contracts.py:47
↓ 22 callers
Class
WorkerResult
Return value after worker execution completes. Attributes: status: WorkerStatus — completed|failed|timeout|token_limit|incomplete.
agent/src/swarm/models.py:329
↓ 21 callers
Class
FundFlowTool
Fetch order-bucket net capital inflow (main/large/medium/small) for stocks.
agent/src/tools/fund_flow_tool.py:173
↓ 21 callers
Class
ProviderStreamError
Raised when provider streaming fails before a complete response.
agent/src/providers/chat.py:169
↓ 21 callers
Class
ScheduledResearchExecutor
Background poller that dispatches due scheduled research jobs. The tick loop, wakeup, start/stop lifecycle and retry backoff live in a :class
agent/src/scheduled_research/executor.py:145
↓ 20 callers
Class
DataLoader
Forex/metals OHLCV from the local MT5 terminal (Windows, opt-in extra).
agent/backtest/loaders/mt5_loader.py:183
↓ 20 callers
Class
DataLoader
Gildata A-share/HK/CN-index OHLCV loader (token-gated, MCP-over-HTTP).
agent/backtest/loaders/gildata_loader.py:325
↓ 20 callers
Class
DataLoader
AKShare universal OHLCV loader (free, no auth).
agent/backtest/loaders/akshare_loader.py:103
↓ 20 callers
Class
MemoryHierarchy
Manages hierarchical directory structure for memory entries. Provides O(category_size) routed access to memory files organized by memory_type
agent/src/memory/hierarchy.py:34
↓ 20 callers
Class
ResearchPapersTool
Search academic finance papers and convert them into factor briefs.
agent/src/tools/research_papers_tool.py:1461
↓ 20 callers
Class
ShadowProfile
User's extracted trading shadow. Attributes: shadow_id: "shadow_<8-hex>" unique ID. created_at: ISO8601 UTC timestamp. jo
agent/src/shadow_account/models.py:93
↓ 19 callers
Class
BackgroundScope
Which conversation or worker owns a background task. The host that builds the tool registry supplies this. It never appears in a model-visibl
agent/src/tools/background_tools.py:31
↓ 19 callers
Class
CredentialStore
Store secrets in Keychain/Credential Manager/Secret Service via keyring. The ``keyring`` package is an optional extra: it is imported the first t
agent/src/trading/credentials.py:23
↓ 19 callers
Class
ResearchArtifactStore
Persist research revisions without modifying GoalStore or SDM records.
agent/src/research_artifacts/store.py:68
↓ 19 callers
Class
SwarmRuntime
Swarm DAG orchestration engine. Manages the full lifecycle of a swarm run: creation, scheduling, execution, and cancellation. Each run execut
agent/src/swarm/runtime.py:343
↓ 19 callers
Class
_AdjustmentEngine
agent/tests/test_base_engine.py:23
↓ 18 callers
Class
FixtureLoader
The network leg's structural shape, served entirely from CSV fixtures. ``calls`` records every request so a test can prove a step issued exactly
agent/tests/paper_trade_5m_fixtures.py:183
↓ 18 callers
Class
MCPServerAdapter
Synchronous wrapper around the async FastMCP client.
agent/src/tools/mcp.py:540
↓ 18 callers
Class
PositionState
Exchange-independent open-position accounting state.
agent/backtest/perpetual_risk.py:133
↓ 18 callers
Class
ReadFileTool
Read file contents with optional line limit.
agent/src/tools/read_file_tool.py:81
↓ 18 callers
Class
StockNewsTool
Read-only per-stock and global financial news headlines.
agent/src/tools/stock_news_tool.py:264
↓ 18 callers
Class
SwarmEvent
Swarm event log entry. Appended to events.jsonl; supports SSE streaming and post-run audit. Attributes: type: Event type, e.g. "run_
agent/src/swarm/models.py:240
↓ 17 callers
Class
BacktestConfigSchema
Validates backtest config.json before execution.
agent/backtest/runner.py:80
↓ 17 callers
Class
DataLoader
Yahoo Finance global-equity OHLCV loader (free, direct HTTP, no auth).
agent/backtest/loaders/yahoo_loader.py:188
↓ 17 callers
Class
PortfolioSettingsStore
Owner-only JSON store containing no broker credentials.
agent/src/portfolio/config.py:241
↓ 17 callers
Class
TushareFundamentalProvider
Small DataProvider contract for Tushare financial statement tables.
agent/backtest/loaders/tushare_fundamentals.py:118
↓ 17 callers
Class
_Response
agent/tests/test_grounding_release.py:610
↓ 16 callers
Class
AccountState
Single-asset USDT account state without open-order margin.
agent/backtest/perpetual_risk.py:195
↓ 16 callers
Class
AccountState
RM-injected ledger snapshot. The engine trusts but echoes its hash (R7).
agent/src/tools/paper_trade/schema.py:216
↓ 16 callers
Class
Attempt
A strategy execution attempt corresponding to one pipeline run. Attributes: attempt_id: Unique identifier. session_id: Owning ses
agent/src/session/models.py:247
↓ 16 callers
Class
ChannelManager
Manages chat channels and coordinates message routing. Responsibilities: - Initialize enabled channels (Telegram, Discord, Slack, etc.) -
agent/src/channels/manager.py:63
↓ 16 callers
Class
CompressionPipeline
Three-level compression pipeline for memory entries.
agent/src/memory/compression.py:163
↓ 16 callers
Class
DataLoader
TickerAll hosted-MT5 forex/metals OHLCV loader (key-gated, HTTP, no terminal).
agent/backtest/loaders/tickerall_loader.py:209
↓ 16 callers
Class
DecisionSettings
Operator settings shared by the REST, CLI and Web control surfaces.
agent/src/live/runtime/decision_budget.py:25
↓ 16 callers
Class
EvidenceInput
Input for appending traceable evidence to a goal.
agent/src/goal/models.py:96
↓ 16 callers
Class
GlobalEquityEngine
US / HK / Canada / UK equity engine selected by *market*. Config keys: - slippage_us: default 0.0005 - slippage_hk: default 0.001
agent/backtest/engines/global_equity.py:60
↓ 16 callers
Class
Message
A session message such as user input or system output. Attributes: message_id: Unique identifier. session_id: Owning session ID.
agent/src/session/models.py:202
↓ 16 callers
Class
OrderIntent
Broker-agnostic normalized order, units explicit. Attributes: symbol: Normalized upper-case symbol (e.g. ``AAPL``, ``BTC-USDT``).
agent/src/live/enforcement.py:113
↓ 16 callers
Class
SchedulerKernel
Background tick loop with wakeup, backoff and an injectable clock. The loop calls ``on_tick(now_ms)`` once per tick, isolates its exceptions
agent/src/scheduling/kernel.py:70
↓ 16 callers
Class
SessionService
Session lifecycle service. Attributes: store: Session persistence store. event_bus: SSE event bus. runs_dir: Root runs di
agent/src/session/service.py:77
↓ 16 callers
Class
TaiwanStockDataTool
Query the local published Taiwan stock database.
agent/src/tools/taiwan_stock_data_tool.py:253
↓ 16 callers
Class
WebSearchTool
Search configured providers and free engines, returning top results.
agent/src/tools/web_search_tool.py:135
↓ 16 callers
Class
WorkspaceMemory
Shared workspace state between tools during a single agent run. Attributes: run_dir: Current run directory path. counters: Tool i
agent/src/agent/memory.py:14
↓ 16 callers
Class
_FakeChunk
agent/tests/test_chat_llm_streaming.py:15
↓ 15 callers
Class
AdaptationPatch
Allowed description-driven changes. Signal fields are not on this type.
agent/src/strategy_store/adaptation.py:26
↓ 15 callers
Class
Assumption
A caller-supplied judgement, carried through to the result. Attributes: name: What is being assumed, e.g. ``"terminal_growth"``.
agent/src/quantlib/valuation/contracts.py:75
↓ 15 callers
Class
ChatLLM
LLM chat client with function calling support. Uses build_llm() to obtain a provider model and bind_tools() to attach tool definitions. Attr
agent/src/providers/chat.py:332
next →
1–100 of 2,943, ranked by callers