MCPcopy Create free account

hub / github.com/HKUDS/Vibe-Trading / functions

Functions26,887 in github.com/HKUDS/Vibe-Trading

↓ 3 callersFunction_past_expiry
()
agent/tests/test_runtime_runner.py:90
↓ 3 callersFunction_patch
(monkeypatch, *, port_open=True, installed=True, snapshot=None, raises=None)
agent/tests/test_futu_check_status_envelope.py:26
↓ 3 callersFunction_patch
(monkeypatch: pytest.MonkeyPatch, codes: list[str], sectors: dict[str, str])
agent/tests/test_alpha_bench_sector_tag.py:42
↓ 3 callersMethod_patch_blocked
(monkeypatch: pytest.MonkeyPatch, *blocked: str)
agent/tests/test_akshare_loader.py:100
↓ 3 callersFunction_path_metrics
Compute path metrics, or return None when percentage returns are undefined.
agent/backtest/validation.py:126
↓ 3 callersFunction_paths_with_terminal_returns
Build a two-column price matrix whose terminal returns are exactly `returns`.
agent/tests/quantlib/test_risk.py:400
↓ 3 callersFunction_payload
(**overrides)
agent/tests/test_research_artifact_api.py:16
↓ 3 callersFunction_payload
(**overrides)
agent/tests/test_paper_trade_perf.py:93
↓ 3 callersMethod_payload
Serialize a one-message chat-completions request with the effort kwarg.
agent/tests/test_llm_reasoning_effort.py:606
↓ 3 callersFunction_pct
(value: float)
agent/tests/test_grounding_role_hardening.py:626
↓ 3 callersFunction_persist_settings_updates
Persist settings to the canonical user config with legacy migration. Args: updates: Environment keys to upsert. Returns: Eff
agent/src/api/settings_routes.py:744
↓ 3 callersFunction_persisted_error
Return a bounded, redaction-safe error for durable job state.
agent/src/scheduled_research/executor.py:136
↓ 3 callersFunction_persisted_text
Return every byte persisted under ``run_dir`` (trace JSONL + sidecars).
agent/tests/test_redaction_shared.py:432
↓ 3 callersFunction_pinned_service
(tmp_path, nav)
agent/tests/test_portfolio_service.py:886
↓ 3 callersFunction_policy_value
(generic: str, legacy: str, default: str, legacy_defaults: bool)
agent/src/providers/tool_policy.py:24
↓ 3 callersFunction_position
(symbol: str, qty: float, avg_cost: float)
agent/tests/test_paper_trade_corporate_actions.py:485
↓ 3 callersFunction_position_risk_payload
()
agent/tests/test_binance_usdm_readonly.py:69
↓ 3 callersFunction_position_signed_market_value
Extract signed USD value, using quantity or explicit side for direction.
agent/src/live/enforcement.py:420
↓ 3 callersMethod_positions
(self)
agent/tests/test_metrics.py:583
↓ 3 callersFunction_post_registration
POST form-encoded data to the registration endpoint, return parsed JSON. The registration endpoint returns JSON even on HTTP errors (e.g. poll
agent/src/channels/feishu.py:414
↓ 3 callersMethod_price
(self, S: float, hv: float, ts: pd.Timestamp, leg: Leg)
agent/src/skills/options-strategy/example_signal_engine.py:51
↓ 3 callersFunction_price_frame
()
agent/tests/test_rsshub_events_lookahead.py:38
↓ 3 callersFunction_price_limit
Determine price limit based on board. Args: symbol: Stock code (e.g. 300001.SZ, 688001.SH, 000001.SZ). Returns: Ordinary boa
agent/backtest/engines/china_a.py:162
↓ 3 callersFunction_price_pinned_closed_market
A closed market with a pinned price but no oracle record. Mirrors gamma market 239826: closed 2021, ``["0.0000004…", "0.9999995…"]``, ``umaRe
agent/tests/test_prediction_market_tool.py:84
↓ 3 callersFunction_print_channels_status
Render IM channel status.
agent/cli/_legacy.py:3218
↓ 3 callersFunction_print_json_result
Print a machine-readable run summary.
agent/cli/_legacy.py:268
↓ 3 callersFunction_probability
Convert a raw outcome share price into a labelled probability pair. Args: value: Raw price, string or number, nominally within ``[0, 1]``
agent/src/tools/prediction_market_tool.py:304
↓ 3 callersMethod_process_message
Process a single WeixinMessage from getUpdates.
agent/src/channels/weixin.py:600
↓ 3 callersMethod_prompt_tokens
Real-token size the next request would have.
agent/src/agent/loop.py:1345
↓ 3 callersFunction_proposal_path
Return the contained proposal path for a valid opaque proposal id.
agent/src/live/mandate/commit.py:189
↓ 3 callersMethod_provenance_scope
Resolve the original symbol-scoped provenance pool without changing it.
agent/src/agent/grounding/policies.py:2422
↓ 3 callersFunction_pts
(n: int)
agent/tests/test_report_audit_tool.py:78
↓ 3 callersFunction_public_exchange
Use the selected Binance host without credentials for public market data. CCXT otherwise loads Binance currencies through a signed SAPI request w
agent/src/trading/connectors/binance/sdk.py:790
↓ 3 callersFunction_query_key
Normalize resolver queries into stable state-machine keys.
agent/src/agent/grounding/identity.py:228
↓ 3 callersFunction_quote_context
(cfg: LongbridgeConfig)
agent/src/trading/connectors/longbridge/sdk.py:718
↓ 3 callersFunction_ramp
Monotonic close series of length n — drives RSI toward an extreme.
agent/tests/test_shadow_scanner.py:127
↓ 3 callersFunction_raw_context
(name: str, *payloads: str, description: str = "")
agent/tests/test_openbb_bridge/test_context_injector.py:53
↓ 3 callersFunction_read
(proposal_id: str)
agent/src/scheduled_research/proposals.py:65
↓ 3 callersFunction_read
Resolve a path through the read_file tool and return the parsed body. Args: path: Path argument passed to read_file (no run_dir; skills/
agent/tests/test_skill_reference_links.py:83
↓ 3 callersFunction_read_all
Page a skill to completion; return (text, page_count, longest_envelope).
agent/tests/test_load_skill_paging.py:30
↓ 3 callersFunction_read_config_file
Read a supported config file format into a dictionary. Args: path: Config file path to decode. Returns: The decoded config o
agent/src/config/loader.py:232
↓ 3 callersFunction_read_json
A JSON object from a regular file inside ``run_root``, else ``{}``.
agent/src/tools/backtest_runs_tool.py:43
↓ 3 callersFunction_read_metrics
Read metrics from metrics.csv, return formatted string dict.
agent/cli/_legacy.py:334
↓ 3 callersFunction_read_trace
(run_dir: str)
agent/tests/test_agent_loop_content_filter.py:105
↓ 3 callersMethod_readable_success_keys
Identify surviving successful results, not synthetic skip/stub calls.
agent/src/agent/tool_lifecycle.py:751
↓ 3 callersMethod_rebuild_index
Rebuild MEMORY.md from all existing entry files.
agent/src/memory/persistent.py:744
↓ 3 callersFunction_record_llm_usage
Accumulate and persist one provider-reported usage event.
agent/src/agent/llm_usage.py:95
↓ 3 callersMethod_record_status
Merge *fields* into the status entry for *name* and return it.
agent/src/channels/manager.py:389
↓ 3 callersFunction_recovery_refusal
( broker, reason, record=None, *, reason_code="pending_action_unresolved", recovery_pending=True )
agent/src/live/sdk_order_gate.py:802
↓ 3 callersFunction_redact_base_url_for_log
Return a diagnostic-safe base URL label for logs.
agent/src/providers/llm.py:842
↓ 3 callersFunction_ref_decay_linear
(df: pd.DataFrame, n: int)
agent/tests/test_factor_operators.py:74
↓ 3 callersFunction_ref_ts_rank
(df: pd.DataFrame, n: int)
agent/tests/test_factor_operators.py:36
↓ 3 callersMethod_refresh_targets
(self, subscribe_new: bool)
agent/src/channels/mochat.py:544
↓ 3 callersFunction_refusal
(broker, *, decision, reason, reauth, breach=None, record=None)
agent/src/live/sdk_order_gate.py:863
↓ 3 callersFunction_refusal
(model: str)
agent/tests/test_llm_responses_self_heal.py:60
↓ 3 callersFunction_register
(backend: Any)
agent/tests/test_backtest_records_bench.py:382
↓ 3 callersFunction_register
(tool: SdmRegisterTool, **kwargs: Any)
agent/tests/test_sdm_register_strategy_fields.py:28
↓ 3 callersFunction_registry
(args: argparse.Namespace)
agent/src/hypotheses/cli_handlers.py:61
↓ 3 callersFunction_registry_with
(names)
agent/tests/test_strategy_discovery_routing.py:57
↓ 3 callersFunction_reject_validation
Build the frozen 422 ``validation_error`` envelope.
agent/src/api/channels_config_routes.py:317
↓ 3 callersMethod_remember_channel
(self, channel: Any)
agent/src/channels/discord.py:415
↓ 3 callersFunction_remote_client
Return a TestClient that simulates a non-loopback caller.
agent/tests/test_sse_ticket_and_headers.py:14
↓ 3 callersFunction_remote_client
Return a TestClient that simulates a non-loopback caller.
agent/tests/test_openbb_bridge/test_routes.py:21
↓ 3 callersMethod_render
(self)
agent/cli/stream.py:171
↓ 3 callersFunction_render_scheduled_proposal
Render the deterministic y/N confirmation block for a scheduled job.
agent/cli/main.py:1074
↓ 3 callersFunction_render_table_box
Convert markdown pipe-table to compact aligned text for <pre> display.
agent/src/channels/telegram.py:196
↓ 3 callersFunction_request
( cfg: KISConfig, method: str, path: str, *, tr_id: str, params: Mapping[str, Any] | N
agent/src/trading/connectors/kis/sdk.py:814
↓ 3 callersFunction_require_ccxt
()
agent/src/trading/connectors/binance/sdk.py:724
↓ 3 callersFunction_require_finite
(name: str, value: float, *, non_negative: bool = False)
agent/backtest/binance_account_reconciliation.py:26
↓ 3 callersFunction_require_generated_at
Check that a caller-supplied timestamp is usable, and only that. This function never reads a clock. Its only job is to reject a call that did
agent/src/quantlib/valuation/artifact.py:334
↓ 3 callersFunction_require_ib_async
()
agent/src/trading/connectors/ibkr/local.py:602
↓ 3 callersFunction_require_longbridge
Import and return the ``longbridge.openapi`` module. Raises: LongbridgeDependencyError: If the SDK is not installed.
agent/backtest/loaders/longbridge.py:74
↓ 3 callersFunction_require_mt5
Import the Windows-only ``MetaTrader5`` package or fail with an install hint.
agent/src/trading/connectors/mt5/_client.py:184
↓ 3 callersFunction_require_nonnegative
Check a value that is a signed formula's magnitude, so must be >= 0. Args: value: The candidate magnitude. name: Field name for t
agent/src/quantlib/valuation/dcf.py:226
↓ 3 callersFunction_require_utc_timestamp
(value: pd.Timestamp, name: str)
agent/backtest/binance_account_reconciliation.py:33
↓ 3 callersMethod_reserve_session
Claim a session for one in-flight run. Args: session_id: Session to claim. Raises: SessionBusyError: If the
agent/src/session/service.py:207
↓ 3 callersFunction_resolve_chain_holdings
Resolve one quarter's holdings, retrying the superseded filings if needed. The fast walk never downloads a table a later ``RESTATEMENT`` replaces
agent/src/tools/institutional_holdings_tool.py:1396
↓ 3 callersFunction_resolve_field_name
(schema: Any, field: str)
agent/backtest/loaders/fundamentals_loader.py:344
↓ 3 callersFunction_resolve_key
Return the configured Tiingo API key, or an empty string when unset. Returns: The trimmed ``TIINGO_API_KEY`` value, or ``""`` when absent
agent/backtest/loaders/tiingo_loader.py:51
↓ 3 callersFunction_resolve_loader
Return the first available data loader for ``asset_class``. Raises: UniverseDataUnavailable: When no loader in the market's fallback chai
agent/src/live/enforcement.py:724
↓ 3 callersFunction_resolve_to
(monkeypatch: pytest.MonkeyPatch, *addresses: str)
agent/tests/test_provider_endpoint_guard.py:26
↓ 3 callersFunction_respond_202
202 with an attacker-controlled body; any later GET returns 'forwarded'.
agent/tests/test_tap_forward.py:184
↓ 3 callersFunction_response
(status, body)
agent/tests/test_kis_recovery.py:18
↓ 3 callersFunction_rest_timeframe
Canonical period token -> Alpaca REST timeframe string (mirrors :func:`_timeframe`). Case-sensitive: ``1m`` is one minute, ``1M`` one month.
agent/src/trading/connectors/alpaca/sdk.py:246
↓ 3 callersFunction_restore_original_codes
Map provider-normalized result keys back to requested symbols.
agent/backtest/runner.py:949
↓ 3 callersFunction_result_data_gone
True when a tool result's real data is gone from context. Two sources, and they must both be recognised: layer 1 overwrites an old result wit
agent/src/agent/context_compact.py:280
↓ 3 callersFunction_reversal_rows
(short_first, fee, shape)
agent/tests/test_trade_journal_reversal_fees.py:42
↓ 3 callersMethod_risk_after_atomic_mutation
(self, timestamp: pd.Timestamp)
agent/backtest/engines/crypto.py:409
↓ 3 callersMethod_risk_xray_args
Build the ``portfolio_risk_xray`` arguments for the held equities. Crypto, stablecoin and cash rows are dropped because the risk x-ray
agent/src/portfolio/service.py:857
↓ 3 callersMethod_risk_xray_symbol
Map one held position onto a symbol the market-data loaders accept. The loader chain routes on the market suffix, so the connector-reported
agent/src/portfolio/service.py:824
↓ 3 callersFunction_robot_payload
An iWenCai robot-data response nesting two security rows.
agent/tests/test_iwencai_tool.py:22
↓ 3 callersFunction_root
Return the Shadow Account root directory (auto-created).
agent/src/shadow_account/storage.py:22
↓ 3 callersFunction_round_keeping_precision
Round to ``min_decimals`` places, widening for tiny magnitudes. A fixed 2- or 4-decimal round collapses the output of a sub-penny asset (e.g.
agent/src/tools/technical_indicator_tool.py:196
↓ 3 callersFunction_router_text
Return the raw router SKILL.md text.
agent/tests/test_investor_lenses_skill.py:72
↓ 3 callersFunction_row
( *, trades: int, date_ranges: tuple[str, ...], evidence_quality: str | None = None, )
agent/tests/test_strategy_discovery_adaptation.py:25
↓ 3 callersFunction_rows
(text: str)
agent/src/br_data/cvm_companies.py:46
↓ 3 callersFunction_rule_to_context
Flatten a ShadowRule into the scalar fields the template consumes. A condition that names a price feature must either become a bound the temp
agent/src/shadow_account/codegen.py:127
↓ 3 callersFunction_run
Run an AgentLoop turn against the given scripted LLM. Args: monkeypatch: pytest monkeypatch fixture (zeroes the retry sleep). tmp
agent/tests/test_agent_loop_stream_retry.py:110
↓ 3 callersFunction_run
(tmp_path: Path, close_qty)
agent/tests/test_options_partial_close.py:69
↓ 3 callersFunction_run
(tmp_path: Path, *, strike: float, skew: float, curvature: float)
agent/tests/test_options_smile_consistency.py:73
← previousnext →3,001–3,100 of 26,887, ranked by callers