MCPcopy Create free account

hub / github.com/HKUDS/Vibe-Trading / types & classes

Types & classes1,150 in github.com/HKUDS/Vibe-Trading

↓ 57 callersClassPersistentMemory
File-based persistent memory that survives across sessions. Design: - Frozen snapshot injected into system prompt at session start (prese
agent/src/memory/persistent.py:141
↓ 37 callersClassLLMResponse
LLM response. Attributes: content: Text content (final answer or thinking text). tool_calls: List of tool call requests.
agent/src/providers/chat.py:52
↓ 37 callersClassSwarmStore
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:113
↓ 36 callersClassPosition
An open position in a single instrument. Args: symbol: Instrument identifier. direction: 1 for long, -1 for short. entry_
agent/backtest/models.py:14
↓ 28 callersClassRegistry
In-memory registry of all discoverable alphas across zoo subdirectories.
agent/src/factors/registry.py:201
↓ 25 callersClassGoalStore
SQLite-backed store for finance research goals.
agent/src/goal/store.py:102
↓ 19 callersClassEnvConfig
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:311
↓ 18 callersClassHypothesisRegistry
File-backed registry for research hypotheses.
agent/src/hypotheses/registry.py:145
↓ 18 callersClassScheduledResearchJobStore
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:59
↓ 18 callersClassSkillsLoader
Load skills from bundled skills/ directory and user skills directory. Attributes: skills: Loaded skill list (bundled + user-created).
agent/src/agent/skills.py:93
↓ 18 callersClass_OrderTracker
Records the order in which the runner reaches each tick stage.
agent/tests/test_runtime_runner.py:105
↓ 17 callersClassLiveActionEvent
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:107
↓ 17 callersClassToolCallRequest
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:32
↓ 16 callersClassEvidenceInput
Input for appending traceable evidence to a goal.
agent/src/goal/models.py:96
↓ 16 callersClassSwarmAgentSpec
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:60
↓ 15 callersClassFundFlowTool
Fetch order-bucket net capital inflow (main/large/medium/small) for stocks.
agent/src/tools/fund_flow_tool.py:141
↓ 15 callersClassSectorInfoTool
Look up sector / concept board membership for a stock, or rank boards.
agent/src/tools/sector_tool.py:245
↓ 15 callersClassSwarmRun
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:146
↓ 15 callersClassSwarmTask
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:88
↓ 14 callersClassAgentLoop
ReAct Agent core loop. Attributes: registry: Tool registry. llm: ChatLLM client. memory: Workspace memory. max_it
agent/src/agent/loop.py:514
↓ 14 callersClassChinaAEngine
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:20
↓ 14 callersClassFinancialStatementsTool
Fetch a stock's three financial statements or key per-period indicators.
agent/src/tools/financial_statements_tool.py:402
↓ 14 callersClassShadowRule
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:21
↓ 13 callersClassBacktestConfigSchema
Validates backtest config.json before execution.
agent/backtest/runner.py:55
↓ 13 callersClassTaskStore
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:16
↓ 13 callersClassWorkerResult
Return value after worker execution completes. Attributes: status: WorkerStatus — completed|failed|timeout|token_limit|incomplete.
agent/src/swarm/models.py:196
↓ 13 callersClass_StubLLMResponse
Minimal stand-in for ChatLLM's response object.
agent/tests/test_agent_loop_terminal_state.py:25
↓ 12 callersClassMarketScreenerTool
Rank a full market's listed instruments by change%, volume or turnover.
agent/src/tools/market_screener_tool.py:167
↓ 11 callersClassHeartbeatTimer
Background thread that emits keepalive ticks while a tool runs. Use as a context manager around a single tool invocation: with Heartbeat
agent/src/agent/progress.py:123
↓ 11 callersClassJobStore
Crash-safe, on-disk persistence for the scheduler's job set. The store is a thin durable envelope around a list of :class:`Job`. It owns only
agent/src/live/runtime/jobstore.py:76
↓ 11 callersClassSwarmEvent
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:125
↓ 11 callersClassTradingProfile
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:21
↓ 11 callersClassTurnoverAwareOptimizer
Mean-variance weights penalized for turnover against prior weights. Attributes: risk_aversion: Weight on the variance term (lambda).
agent/backtest/optimizers/turnover_aware.py:36
↓ 10 callersClassMandate
Immutable bounded-autonomy mandate for one live broker channel. Loaded read-only at session boot from the user-side protected store. The agen
agent/src/live/mandate/model.py:114
↓ 10 callersClassRiskParityOptimizer
Spinu (2013)-style inverse-vol seed + Newton-style refinement.
agent/backtest/optimizers/risk_parity.py:14
↓ 10 callersClassStockNewsTool
Read-only per-stock and global financial news headlines.
agent/src/tools/stock_news_tool.py:238
↓ 10 callersClass_FakeChunk
agent/tests/test_chat_llm_streaming.py:14
↓ 9 callersClassAuditRow
Completion audit row for one criterion.
agent/src/goal/models.py:155
↓ 9 callersClassDataLoader
Finnhub US-equity daily OHLCV loader (key-gated, throttled HTTP).
agent/backtest/loaders/finnhub_loader.py:145
↓ 9 callersClassDataLoader
Eastmoney OHLCV loader (free, throttled HTTP, no auth).
agent/backtest/loaders/eastmoney_loader.py:52
↓ 9 callersClassDataLoader
Financial Modeling Prep US-equity OHLCV loader (key-gated, HTTP).
agent/backtest/loaders/fmp_loader.py:76
↓ 9 callersClassDataLoader
Fetch US-equity daily OHLCV bars from Tiingo (key-gated REST).
agent/backtest/loaders/tiingo_loader.py:134
↓ 9 callersClassLockupExpiryTool
Surface Chinese A-share restricted-share unlock (限售解禁) schedules.
agent/src/tools/lockup_expiry_tool.py:281
↓ 9 callersClassMCPServerAdapter
Synchronous wrapper around the async FastMCP client.
agent/src/tools/mcp.py:312
↓ 9 callersClassResearchReportsTool
Fetch A-share sell-side research reports plus market consensus EPS.
agent/src/tools/research_reports_tool.py:57
↓ 9 callersClassUniverseConstraint
Layer (b): user-set universe the agent picks symbols WITHIN. Not a ticker whitelist — that would kill agent discovery. The agent selects indi
agent/src/live/mandate/model.py:68
↓ 9 callersClass_FakeConnector
Minimal connector module stand-in capturing place_order calls.
agent/tests/test_sdk_order_gate.py:27
↓ 9 callersClass_StubRegistry
Mimic the slice of ``Registry`` interface ``run_bench_strict`` uses.
agent/tests/factors/test_bench_strict.py:175
↓ 8 callersClassConsentMeta
Provenance proving the user (not the agent) authored this mandate. Attributes: created_at: ISO-8601 UTC timestamp the user committed the
agent/src/live/mandate/model.py:91
↓ 8 callersClassDataLoader
Mootdx-backed A-share OHLCV loader (TCP-direct, no auth).
agent/backtest/loaders/mootdx_loader.py:67
↓ 8 callersClassDataLoader
Tushare-backed OHLCV loader.
agent/backtest/loaders/tushare.py:51
↓ 8 callersClassFredMacroTool
Fetch a single FRED macroeconomic time series from the St. Louis Fed.
agent/src/tools/fred_macro_tool.py:50
↓ 8 callersClassGlobalEquityEngine
US / HK equity engine, selected by *market* parameter. Config keys: - slippage_us: default 0.0005 - slippage_hk: default 0.001
agent/backtest/engines/global_equity.py:26
↓ 8 callersClassInteractiveContext
State bag handed to slash-command handlers and the run loop. Attributes: session_id: Active session id (populated lazily on first turn).
agent/cli/main.py:327
↓ 8 callersClassSwarmRuntime
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:49
↓ 8 callersClassTushareFundamentalProvider
Small DataProvider contract for Tushare financial statement tables.
agent/backtest/loaders/tushare_fundamentals.py:110
↓ 8 callersClassWebSearchTool
Search the web via ddgs across several free engines and return top results.
agent/src/tools/web_search_tool.py:135
↓ 8 callersClass_Broker
In-memory broker stub recording the order of injected calls.
agent/tests/test_runtime_flatten.py:20
↓ 8 callersClass_FakeResponse
Small response stub for the loader's embedded HTTP client.
agent/tests/test_qveris_loader.py:24
↓ 8 callersClass_FakeScheduler
agent/tests/test_runtime_runner.py:358
↓ 8 callersClass_ScriptedChatLLM
Scripted ChatLLM that returns queued responses in order.
agent/tests/test_swarm_worker_content_filter.py:39
↓ 7 callersClassAgentConfig
Top-level structured agent config.
agent/src/config/schema.py:445
↓ 7 callersClassCheckResult
Result of a single preflight check.
agent/src/preflight.py:22
↓ 7 callersClassDataLoader
Sina Finance US-equity daily OHLCV loader (free, HTTP/JSONP, no auth).
agent/backtest/loaders/sina_loader.py:123
↓ 7 callersClassDataLoader
Yahoo Finance US/HK equity OHLCV loader (free, direct HTTP, no auth).
agent/backtest/loaders/yahoo_loader.py:157
↓ 7 callersClassDragonTigerTool
Query the Eastmoney A-share dragon-tiger (龙虎榜) disclosure board.
agent/src/tools/dragon_tiger_tool.py:153
↓ 7 callersClassFeedSpec
Machine-readable metadata for one RSSHub feed route. Attributes: name: Stable feed identifier used in configs (e.g. ``"sina_announcements
agent/backtest/loaders/rsshub_events.py:108
↓ 7 callersClassHardCaps
Layer (a): user-set quantitative ceilings. Funding is enforced BROKER-SIDE (Robinhood dedicated agentic account balance) and is the absolute
agent/src/live/mandate/model.py:38
↓ 7 callersClassMCPRemoteToolSpec
Resolved metadata for one remote MCP tool. Attributes: annotations: Server-asserted MCP tool annotations (``readOnlyHint`` /
agent/src/tools/mcp.py:91
↓ 7 callersClassMockAdvisory
Configurable mock advisory provider. Args: verdict: Verdict to return on every :meth:`review` call. concerns: Concern strings att
agent/src/live/advisory/mock.py:22
↓ 7 callersClassOrderIntent
Broker-agnostic normalized order, units explicit. Attributes: symbol: Normalized upper-case symbol (e.g. ``AAPL``, ``BTC-USDT``).
agent/src/live/enforcement.py:106
↓ 7 callersClassProviderStreamError
Raised when provider streaming fails before a complete response.
agent/src/providers/chat.py:83
↓ 7 callersClassRSSHubEventProvider
Point-in-time-safe event/sentiment provider backed by RSSHub. Attributes: base_url: Root of the RSSHub instance (no trailing slash).
agent/backtest/loaders/rsshub_events.py:288
↓ 7 callersClassRegistryError
Raised on registry-level configuration errors.
agent/src/factors/registry.py:132
↓ 7 callersClassScheduledResearchJob
Immutable record describing a scheduled research / backtest job. Attributes: id: Unique job identifier (caller-supplied UUID or slug).
agent/src/scheduled_research/models.py:85
↓ 7 callersClassSecFilingsTool
List recent SEC filings and optionally one XBRL us-gaap metric series.
agent/src/tools/sec_filings_tool.py:41
↓ 7 callersClassShadowProfile
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:50
↓ 7 callersClassShareholderCountTool
Fetch A-share quarterly shareholder counts with QoQ change and avg holding.
agent/src/tools/shareholder_count_tool.py:39
↓ 7 callersClass_MockAdapter
Minimal MCPServerAdapter stand-in with recording call_tool.
agent/tests/test_mandate_enforcement.py:52
↓ 6 callersClassAttributionBreakdown
Delta PnL attribution between user's realized trades and shadow. All PnL fields are in the journal's account currency.
agent/src/shadow_account/models.py:85
↓ 6 callersClassEventBus
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
↓ 6 callersClassIWenCaiSearchTool
Run an iWenCai (问财) natural-language A-share research query.
agent/src/tools/iwencai_tool.py:148
↓ 6 callersClassJob
A scheduled live-runtime job. ``next_run_at`` is mutable by design: the scheduler advances it in place after each fire (a frozen DTO would fo
agent/src/live/runtime/scheduler.py:52
↓ 6 callersClassLinkAutopilotBacktestTool
Read run_card.json metrics and link the run to a hypothesis. After a backtest completes, its metrics live in ``run_card.json``. The existing
agent/src/tools/autopilot_tool.py:540
↓ 6 callersClassMarginTradingTool
Fetch daily A-share margin-financing / short-selling balances.
agent/src/tools/margin_trading_tool.py:128
↓ 6 callersClassMessageBus
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
↓ 6 callersClassQVerisConfig
QVeris local configuration.
agent/src/tools/qveris_tool.py:34
↓ 6 callersClassScaffoldSignalEngineTool
Write a contract-correct ``signal_engine.py`` stub for a hypothesis. The backtest runner requires a ``SignalEngine`` class that is constructi
agent/src/tools/autopilot_tool.py:418
↓ 6 callersClassSessionStore
Filesystem-backed persistent storage. Directory structure:: sessions/ ├── {session_id}/ │ ├── session.json │
agent/src/session/store.py:16
↓ 6 callersClassTradeRecord
A completed round-trip trade. Args: symbol: Instrument identifier. direction: 1 for long, -1 for short. entry_price: Entr
agent/backtest/models.py:39
↓ 6 callersClass_ContentFilterLoopLLM
LLM stub returning scripted content_filter_triggered responses.
agent/tests/test_agent_loop_content_filter.py:17
↓ 6 callersClass_FakeStreamingLLM
agent/tests/test_chat_llm_streaming.py:40
↓ 5 callersClassAlphaCompareTool
Compare >= 2 named alphas head-to-head and rank them by an IC metric.
agent/src/tools/alpha_compare_tool.py:44
↓ 5 callersClassAlphaMeta
Strict metadata schema; matches the ``__alpha_meta__`` dict literal.
agent/src/factors/registry.py:87
↓ 5 callersClassChannelManager
Manages chat channels and coordinates message routing. Responsibilities: - Initialize enabled channels (Telegram, Discord, Slack, etc.) -
agent/src/channels/manager.py:36
↓ 5 callersClassDataLoader
AKShare universal OHLCV loader (free, no auth).
agent/backtest/loaders/akshare_loader.py:61
↓ 5 callersClassDataLoader
OKX crypto OHLCV loader.
agent/backtest/loaders/okx.py:38
↓ 5 callersClassFutuLoader
Fetch HK and China A-share bars from Futu OpenAPI. Requires FutuOpenD running locally (https://www.futunn.com/download/openAPI) and the envir
agent/backtest/loaders/futu.py:84
↓ 5 callersClassIndiaEquityEngine
NSE / BSE cash-equity (delivery) engine. Config keys (all optional; defaults shown in the module docstring): - allow_short: bool, default F
agent/backtest/engines/india_equity.py:38
↓ 5 callersClassMessage
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:84
next →1–100 of 1,150, ranked by callers