MCPcopy Create free account

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

Types & classes2,089 in github.com/HKUDS/Vibe-Trading

↓ 116 callersClassPersistentMemory
File-based persistent memory that survives across sessions.
agent/src/memory/persistent.py:200
↓ 53 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:115
↓ 50 callersClassInstitutionalHoldingsTool
Query SEC Form 13F-HR institutional holdings three ways.
agent/src/tools/institutional_holdings_tool.py:1710
↓ 49 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
↓ 47 callersClassLLMResponse
LLM response. Attributes: content: Text content (final answer or thinking text). tool_calls: List of tool call requests.
agent/src/providers/chat.py:83
↓ 40 callersClassEtfHoldingsTool
Look through an ETF to its constituents, or search the ETF universe.
agent/src/tools/etf_holdings_tool.py:1659
↓ 39 callersClassEtoroConfig
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
↓ 38 callersClassGroundingLedger
Run-scoped identity state machine and evidence ledger.
agent/src/agent/grounding.py:926
↓ 38 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
↓ 33 callersClassCashFlow
A single dated cash amount in one currency. Attributes: date: Settlement date. ``datetime`` and ISO-8601 strings are accepted
agent/src/entities/cashflow.py:122
↓ 33 callersClassCashFlowSeries
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:197
↓ 31 callersClassEtoroClient
Thin REST client for eToro Public API.
agent/src/trading/connectors/etoro/client.py:271
↓ 31 callersClassSkillsLoader
Load skills from bundled skills/ directory and user skills directory. Attributes: skills: Loaded skill list (bundled + user-created).
agent/src/agent/skills.py:100
↓ 30 callersClassRegistry
In-memory registry of all discoverable alphas across zoo subdirectories.
agent/src/factors/registry.py:201
↓ 29 callersClassGoalStore
SQLite-backed store for finance research goals.
agent/src/goal/store.py:106
↓ 26 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:38
↓ 25 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
↓ 24 callersClassAgentLoop
ReAct Agent core loop. Attributes: registry: Tool registry. llm: ChatLLM client. memory: Workspace memory. max_it
agent/src/agent/loop.py:781
↓ 23 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:567
↓ 23 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:173
↓ 21 callersClassHypothesisRegistry
File-backed registry for research hypotheses.
agent/src/hypotheses/registry.py:145
↓ 21 callersClassSemanticLinker
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
↓ 21 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:169
↓ 21 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:197
↓ 21 callersClassToolRegistry
Tool registry.
agent/src/agent/tools.py:54
↓ 21 callersClassTraceWriter
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
↓ 20 callersClassMemoryHierarchy
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 callersClassResearchPapersTool
Search academic finance papers and convert them into factor briefs.
agent/src/tools/research_papers_tool.py:1457
↓ 19 callersClassArtifact
Artifact file metadata.
agent/src/api/models.py:10
↓ 19 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:54
↓ 18 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
↓ 18 callersClassInMemoryStrategyStore
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:143
↓ 18 callersClassMemoryLifecycle
Lifecycle management for persistent memory: quality scoring, decay, GC. Wraps a PersistentMemory instance and provides reinforcement, garbage
agent/src/memory/lifecycle.py:71
↓ 18 callersClassSessionStore
Filesystem-backed persistent storage. Directory structure:: sessions/ ├── {session_id}/ │ ├── session.json │
agent/src/session/store.py:16
↓ 18 callersClassValuationError
Base class for every refusal a valuation model makes.
agent/src/quantlib/valuation/contracts.py:47
↓ 18 callersClass_OrderTracker
Records the order in which the runner reaches each tick stage.
agent/tests/test_runtime_runner.py:105
↓ 17 callersClassDataLoader
Forex/metals OHLCV from the local MT5 terminal (Windows, opt-in extra).
agent/backtest/loaders/mt5_loader.py:171
↓ 17 callersClassFinancialStatementsTool
Fetch a stock's three financial statements or key per-period indicators.
agent/src/tools/financial_statements_tool.py:589
↓ 17 callersClassSession
A multi-turn conversation session. Attributes: session_id: Unique identifier. title: User-visible session title. status:
agent/src/session/models.py:141
↓ 17 callersClassTechnicalIndicatorTool
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:164
↓ 16 callersClassBacktestConfigSchema
Validates backtest config.json before execution.
agent/backtest/runner.py:62
↓ 16 callersClassCompressionPipeline
Three-level compression pipeline for memory entries.
agent/src/memory/compression.py:163
↓ 16 callersClassDataLoader
TickerAll hosted-MT5 forex/metals OHLCV loader (key-gated, HTTP, no terminal).
agent/backtest/loaders/tickerall_loader.py:209
↓ 16 callersClassEvidenceInput
Input for appending traceable evidence to a goal.
agent/src/goal/models.py:96
↓ 16 callersClassFundFlowTool
Fetch order-bucket net capital inflow (main/large/medium/small) for stocks.
agent/src/tools/fund_flow_tool.py:164
↓ 16 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
↓ 16 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:255
↓ 15 callersClassPositionState
Exchange-independent open-position accounting state.
agent/backtest/perpetual_risk.py:133
↓ 15 callersClassSectorInfoTool
Look up sector / concept board membership for a stock, or rank boards.
agent/src/tools/sector_tool.py:301
↓ 15 callersClassSentimentTool
Analyze market sentiment from text and external indices. Two modes: - ``sentiment_score``: score any free-text (news headline, tweet, etc.) o
agent/src/tools/sentiment_tool.py:94
↓ 15 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:53
↓ 15 callersClassTaiwanStockDataTool
Query the local published Taiwan stock database.
agent/src/tools/taiwan_stock_data_tool.py:252
↓ 15 callersClass_StubLLMResponse
Minimal stand-in for ChatLLM's response object.
agent/tests/test_agent_loop_terminal_state.py:25
↓ 14 callersClassAssumption
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
↓ 14 callersClassCompositeEngine
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:105
↓ 14 callersClassDataLoader
CCXT-backed crypto OHLCV loader (100+ exchanges).
agent/backtest/loaders/ccxt_loader.py:185
↓ 14 callersClassDecayEvaluator
Evaluates factor/strategy health and determines status transitions. Pure logic — no I/O, no database access. Feed it metrics and get decisions.
agent/src/strategy_store/decay.py:79
↓ 14 callersClassOrderIntent
Broker-agnostic normalized order, units explicit. Attributes: symbol: Normalized upper-case symbol (e.g. ``AAPL``, ``BTC-USDT``).
agent/src/live/enforcement.py:112
↓ 14 callersClassPrincipal
Who a session belongs to, and how much that claim is worth. A ``Principal`` exists so that a number produced by this system can be traced to
agent/src/session/models.py:41
↓ 14 callersClassWorkerResult
Return value after worker execution completes. Attributes: status: WorkerStatus — completed|failed|timeout|token_limit|incomplete.
agent/src/swarm/models.py:307
↓ 14 callersClass_AdjustmentEngine
agent/tests/test_base_engine.py:23
↓ 14 callersClass_FakeChunk
agent/tests/test_chat_llm_streaming.py:14
↓ 14 callersClass_FakeEtoroModule
agent/tests/test_etoro_live_actions.py:17
↓ 14 callersClass_Response
Minimal stand-in for the ``requests.Response`` fields the tool reads.
agent/tests/test_institutional_holdings_tool.py:129
↓ 13 callersClassAccountState
Single-asset USDT account state without open-order margin.
agent/backtest/perpetual_risk.py:195
↓ 13 callersClassResearchReportsTool
Fetch A-share sell-side research reports plus market consensus EPS.
agent/src/tools/research_reports_tool.py:58
↓ 13 callersClassSdmRegisterTool
Register a new factor or strategy into the strategy store.
agent/src/tools/sdm_register_tool.py:28
↓ 13 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:234
↓ 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 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:38
↓ 12 callersClassBenchResult
Backtest result for an artifact.
agent/src/strategy_store/models.py:136
↓ 12 callersClassGlobalEquityEngine
US / HK / Canada equity engine, selected by *market* parameter. Config keys: - slippage_us: default 0.0005 - slippage_hk: default 0.0
agent/backtest/engines/global_equity.py:33
↓ 12 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:123
↓ 12 callersClassMarketScreenerTool
Rank a full market's listed instruments by change%, volume or turnover.
agent/src/tools/market_screener_tool.py:167
↓ 12 callersClassScheduledResearchJob
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:324
↓ 12 callersClassStockNewsTool
Read-only per-stock and global financial news headlines.
agent/src/tools/stock_news_tool.py:245
↓ 11 callersClassBackgroundManager
Background thread execution + notification queue.
agent/src/tools/background_tools.py:102
↓ 11 callersClassDataLoader
AKShare universal OHLCV loader (free, no auth).
agent/backtest/loaders/akshare_loader.py:75
↓ 11 callersClassDataLoader
Financial Modeling Prep US-equity OHLCV loader (key-gated, HTTP).
agent/backtest/loaders/fmp_loader.py:76
↓ 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 callersClassMemorySearchIndex
SQLite FTS5 index for memory full-text search. Supports: - Indexing individual memory entries as they are created/updated - Full-
agent/src/memory/search_index.py:113
↓ 11 callersClassNoAvailableSourceError
Raised when no data source is available for a given market.
agent/backtest/loaders/base.py:27
↓ 11 callersClassProviderStreamError
Raised when provider streaming fails before a complete response.
agent/src/providers/chat.py:118
↓ 11 callersClassRiskParityOptimizer
Equal-risk-contribution weights on the long-only simplex.
agent/backtest/optimizers/risk_parity.py:11
↓ 11 callersClassRunner
Execute entry scripts inside a run directory and collect outputs.
agent/src/core/runner.py:394
↓ 11 callersClassTushareFundamentalProvider
Small DataProvider contract for Tushare financial statement tables.
agent/backtest/loaders/tushare_fundamentals.py:110
↓ 11 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:77
↓ 11 callersClassWebSearchTool
Search the web via ddgs across several free engines and return top results.
agent/src/tools/web_search_tool.py:134
↓ 11 callersClassWorkspaceContextInjector
Format OpenBB workspace context and inject it into the user message.
agent/src/openbb_bridge/context_injector.py:78
↓ 11 callersClass_FakeStreamingLLM
agent/tests/test_chat_llm_streaming.py:40
↓ 10 callersClassChatOpenAIWithReasoning
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:251
↓ 10 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:100
↓ 10 callersClassLockupExpiryTool
Surface Chinese A-share restricted-share unlock (限售解禁) schedules.
agent/src/tools/lockup_expiry_tool.py:282
↓ 10 callersClassOptionLeg
One European option leg in a payoff calculation. Attributes: option_type: ``"call"`` or ``"put"``. strike: Positive strike price.
agent/backtest/options_payoff.py:21
↓ 10 callersClassScheduledResearchExecutor
Background poller that dispatches due scheduled research jobs.
agent/src/scheduled_research/executor.py:186
↓ 10 callersClassSecurity
A listed security identified by a ticker on a venue. A ``Security`` here is the *reference* record only. Its price history still belongs to t
agent/src/entities/models.py:227
↓ 10 callersClassSqliteStrategyStore
SQLite-backed strategy/factor artifact store. Satisfies ``StrategyStoreProtocol``. Uses WAL mode for concurrent reads, FK constraints for re
agent/src/strategy_store/sqlite_store.py:122
↓ 10 callersClass_Ctx
Minimal stand-in for ``cli.main.InteractiveContext``.
agent/tests/test_playbooks_surface.py:50
↓ 10 callersClass_FakeResponse
Small response stub for the loader's embedded HTTP client.
agent/tests/test_qveris_loader.py:24
next →1–100 of 2,089, ranked by callers