MCPcopy Create free account

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

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

↓ 2 callersFunction_opened
Shares opened through the engine's own sizing path.
agent/tests/test_china_a_board_order_grid.py:48
↓ 2 callersFunction_opt
(value: Optional[str])
agent/src/br_data/cvm_companies.py:52
↓ 2 callersFunction_opt
(value: str)
agent/src/br_data/cvm_funds.py:66
↓ 2 callersFunction_optional_float
Read an optional finite float, treating null and empty text as omitted.
agent/src/tools/options_payoff_tool.py:276
↓ 2 callersFunction_optional_number
Parse an optional German-formatted number. Args: raw: The raw field text. field: The column name, for error messages. row
agent/src/portfolio/extraetf.py:768
↓ 2 callersFunction_optional_text
Return an optional text column, refusing corruption. Args: row: The aligned row. column: The column to read. number: The
agent/src/portfolio/extraetf.py:720
↓ 2 callersFunction_order_error
Build a fail-closed order error envelope tagged with the profile.
agent/src/trading/connectors/futu/sdk.py:1008
↓ 2 callersFunction_order_refused
(config: Trading212Config, message: str, **extra: Any)
agent/src/trading/connectors/trading212/sdk.py:481
↓ 2 callersFunction_order_refused
(config: TossConfig, message: str, **extra: Any)
agent/src/trading/connectors/toss/sdk.py:577
↓ 2 callersFunction_order_result
Interpret an OKX order/cancel response, failing closed on any non-zero code. Success requires both the outer ``code == "0"`` and the first data r
agent/src/trading/connectors/okx/sdk.py:546
↓ 2 callersFunction_order_spec
()
agent/tests/test_killswitch_blocks_orders.py:53
↓ 2 callersFunction_order_to_dict
(item: Any)
agent/src/trading/connectors/trading212/sdk.py:552
↓ 2 callersFunction_order_to_dict
(order: Any)
agent/src/trading/connectors/ibkr/local.py:746
↓ 2 callersFunction_order_to_dict
(item: Any)
agent/src/trading/connectors/alpaca/sdk.py:922
↓ 2 callersFunction_order_to_dict
(item: Any)
agent/src/trading/connectors/kis/sdk.py:937
↓ 2 callersFunction_overtrading_pnl
Excess-frequency PnL: trades beyond the shadow's expected budget. Shadow runs roughly 1 trade per ``2 * median_hold_days`` bars. We compare a
agent/src/shadow_account/backtester.py:775
↓ 2 callersFunction_package_sources
()
agent/tests/test_paper_trade_purity.py:234
↓ 2 callersFunction_page
Validate one reply page and split it into records and the next cursor. Raises: RobinhoodShapeError: If the list is missing or null, holds
agent/src/trading/connectors/robinhood/mcp.py:177
↓ 2 callersFunction_pairs
Return ``mapping`` as a sorted, hashable tuple of ``(key, value)`` pairs.
agent/src/governance/manifest.py:188
↓ 2 callersFunction_panel
()
agent/tests/test_bench_universe_selection.py:67
↓ 2 callersFunction_panel
(n_rows: int = 48, n_symbols: int = 6)
agent/tests/test_research_contract_integration.py:21
↓ 2 callersFunction_panel
()
agent/tests/test_alpha_bench_cache.py:22
↓ 2 callersFunction_panel
()
agent/tests/factors/test_gtja191_alpha055_swing_index.py:13
↓ 2 callersFunction_panel
(rng, n_rows=N_ROWS, n_symbols=6)
agent/tests/factors/test_alpha101_alpha074_nan_propagation.py:23
↓ 2 callersFunction_panel_with_one_gap
()
agent/tests/factors/test_gtja191_alpha069_nan_propagation.py:23
↓ 2 callersFunction_panel_with_one_gap
()
agent/tests/factors/test_qlib158_cnt_nan_propagation.py:54
↓ 2 callersFunction_panel_with_one_gap
()
agent/tests/factors/test_gtja191_alpha038_nan_propagation.py:22
↓ 2 callersFunction_panel_with_one_gap
()
agent/tests/factors/test_gtja191_alpha003_059_nan_propagation.py:28
↓ 2 callersFunction_panel_with_one_gap
()
agent/tests/factors/test_gtja191_alpha004_nan_propagation.py:25
↓ 2 callersMethod_parse
Validate one registry row. Args: raw: Decoded registry row. Returns: The validated connection. Rais
agent/src/trading/connections.py:356
↓ 2 callersFunction_parse_aes_key
Parse a base64-encoded AES key, handling both encodings seen in the wild. From ``pic-decrypt.ts parseAesKey``: * ``base64(raw 16 bytes)``
agent/src/channels/weixin.py:1485
↓ 2 callersFunction_parse_amount
Parse a numeric amount from a file field. Handles currency symbols, digit grouping, and the accounting convention where parentheses or a trai
agent/src/entities/ingest.py:226
↓ 2 callersMethod_parse_dates
( start_raw: Any, end_raw: Any, interval: str = "1D" )
agent/src/tools/portfolio_risk_tool.py:166
↓ 2 callersFunction_parse_iso
(value: str | None)
agent/src/swarm/store.py:30
↓ 2 callersFunction_parse_md_tables
Parse markdown tables into (row_label, col_header, value, unit, lineno, raw).
agent/src/tools/report_audit_tool.py:147
↓ 2 callersFunction_parse_month_first
Parse a ``YYYY-MM`` token into the first day of that month.
agent/src/strategy_discovery/models.py:207
↓ 2 callersFunction_parse_panel_amount
Parse a panel value cell, reusing ``_parse_amount``. Args: raw: Raw cell text. path: File path, used only for error messages.
agent/src/entities/ingest.py:878
↓ 2 callersFunction_parse_panel_date
Parse a panel date cell, reusing ``_parse_date``. Args: raw: Raw cell text. date_format: ``strptime`` format, or ``None`` to requ
agent/src/entities/ingest.py:903
↓ 2 callersFunction_parse_periods
Extract per-period shareholder records from a datacenter payload. Args: payload: Decoded datacenter JSON; rows live under ``result.data``
agent/src/tools/shareholder_count_tool.py:177
↓ 2 callersFunction_parse_timestamp
Parse a timestamp from frontmatter. Returns epoch float.
agent/src/memory/persistent.py:186
↓ 2 callersFunction_parse_today
Resolve the injected clock: ISO ``today`` string or the wall clock. Raises ``ValueError`` for a non-string or unparseable ``today`` so the ca
agent/src/strategy_discovery/facade.py:104
↓ 2 callersFunction_parse_value
Read a declared value: one number with its currency, magnitude and percent marks. Returns: ``(value, percent, canonical spelling)``, or N
agent/src/agent/grounding/figures.py:714
↓ 2 callersFunction_parse_var_options
Parse repeated ``--var key=value`` options. Unlike :func:`parse_variable_tokens` each option carries one whole assignment, because the shell
agent/cli/commands/research_playbook.py:114
↓ 2 callersFunction_parser
()
agent/tests/test_cli_research_artifact.py:11
↓ 2 callersFunction_partial_path
()
agent/cli/onboard.py:121
↓ 2 callersFunction_partially_filled_book
One activated order filled for less than it requested.
agent/tests/test_paper_trade_order_status.py:42
↓ 2 callersFunction_participation_rate
Return the order size as a fraction of average daily volume. Args: volume_traded: Order size, in the same unit as ``adv``. adv: A
agent/src/quantlib/impact.py:127
↓ 2 callersFunction_patch_http
(monkeypatch, urls: list[str], payload: str)
agent/tests/test_tencent_loader.py:45
↓ 2 callersFunction_patch_of
Filter a body patch: an empty string on a secret key keeps the stored value.
agent/src/api/channels_config_routes.py:165
↓ 2 callersFunction_payload
(**overrides)
agent/tests/test_research_artifact_tool.py:14
↓ 2 callersMethod_payload_via_runtime
Mirror ``invoke``: convert the raw OpenAI-format input first (where ``_convert_input`` re-attaches signatures), then build the request payload
agent/tests/test_kimi_reasoning_content.py:587
↓ 2 callersFunction_pct_diff
Absolute relative percent difference (inf when reported is 0 and fetched isn't).
agent/src/tools/report_audit_tool.py:316
↓ 2 callersMethod_pending_write_directive
Name task targets not yet written in this run.
agent/src/agent/loop.py:1317
↓ 2 callersFunction_perform_completion_test
(*, base_url: str, model: str, api_key: str)
agent/src/api/custom_provider_routes.py:108
↓ 2 callersFunction_persist
Upsert ``job`` into the shared store. Returns an error message or None.
agent/cli/commands/research_playbook.py:236
↓ 2 callersMethod_persist_completion
Write a finished job back, unless it was changed during dispatch. Dispatch is awaited, so a concurrent DELETE or POST for the same id can
agent/src/scheduled_research/executor.py:772
↓ 2 callersFunction_persist_login_credentials
Persist Feishu login credentials in the operator JSON config. The QR flow creates a bot application and returns its secret only once, so repo
agent/src/channels/feishu.py:40
↓ 2 callersFunction_pick
Project selected Yahoo fields into a flat, raw-unwrapped row.
agent/src/tools/stock_profile_tool.py:55
↓ 2 callersFunction_pick
(row: dict[str, str], *names: str)
agent/src/br_data/cvm_funds.py:58
↓ 2 callersFunction_pick_verb
Pick a thinking verb via the shared helper, with a local fallback.
agent/cli/components/working_indicator.py:34
↓ 2 callersFunction_pin_mandate_prompt
Build the autonomous-turn prompt with the full mandate pinned inline. The mandate text is embedded directly in the prompt this runner owns so it
agent/src/live/runtime/runner.py:219
↓ 2 callersFunction_planted_signal_panel
Build a panel where the close price *is* the latent factor — the test can then ask for a factor that uses close.pct_change(5) and knows the an
agent/tests/factors/test_bench_strict.py:576
↓ 2 callersFunction_position_market_value
Extract one position's USD market value, fail-closed. Prefers an explicit market-value field (including Futu's ``market_val``); otherwise der
agent/src/live/enforcement.py:371
↓ 2 callersFunction_position_risks
( account: AccountState, frames: dict[str, MarketRiskFrame], price_field: str, *, isolated
agent/backtest/perpetual_risk.py:284
↓ 2 callersFunction_position_to_dict
(item: Any)
agent/src/trading/connectors/longbridge/sdk.py:877
↓ 2 callersFunction_positive
Return *value* when it is positive, else *default*. The config layer already drops unparseable overrides; this only guards against a syntacti
agent/src/tools/institutional_holdings_tool.py:298
↓ 2 callersFunction_positive_int
(value: int, name: str, minimum: int = 1)
agent/src/quantlib/neutralization.py:72
↓ 2 callersFunction_post
(cfg: KISConfig, path: str, *, tr_id: str, body: Mapping[str, Any])
agent/src/trading/connectors/kis/sdk.py:759
↓ 2 callersFunction_post_trade_gross_exposure
Return gross exposure after applying one signed order to its symbol. Gross exposure is computed from signed, symbol-level positions. This lets a
agent/src/live/enforcement.py:319
↓ 2 callersFunction_prepare_search_text
Separate East Asian characters for FTS5 without changing display text.
agent/src/session/search.py:39
↓ 2 callersFunction_preset_search_dirs
Directories searched for presets, highest priority first.
agent/src/swarm/presets.py:66
↓ 2 callersFunction_preview
Bound and redact one untrusted field before it reaches disk.
agent/src/tools/background_store.py:83
↓ 2 callersFunction_preview_live_spending
Show operator settings before either foreground or background start.
agent/cli/_legacy.py:3834
↓ 2 callersMethod_price_pool
Observed price values a figure may be compared against.
agent/src/agent/grounding/policies.py:1422
↓ 2 callersMethod_priced
Look a product up, recording the miss when it falls back. A product absent from one of the tables is priced on a generic constant tha
agent/backtest/engines/global_futures.py:229
↓ 2 callersFunction_prices
(tz)
agent/tests/test_crossmarket_dates_regressions.py:7
↓ 2 callersFunction_print
Print one line through the shared console.
agent/cli/commands/strategy_evidence.py:34
↓ 2 callersFunction_print
(msg: str)
agent/src/hypotheses/cli_handlers.py:50
↓ 2 callersFunction_print_balance_details
Print broker cash legs and financing in each reported currency. Args: rows: Balance rows from a connector or a saved portfolio snapshot.
agent/cli/_legacy.py:4690
↓ 2 callersFunction_print_portfolio_snapshot
Render one portfolio snapshot: totals, per-source accounts, holdings, warnings. Args: snapshot: A snapshot envelope as produced by ``Port
agent/cli/_legacy.py:4106
↓ 2 callersFunction_print_status_bar
Print a static status bar using Rich (fallback without prompt_toolkit). Args: stats: Session statistics.
agent/cli/_legacy.py:203
↓ 2 callersFunction_print_swarm_vars_json_error
Print actionable JSON diagnostics for ``--swarm-run`` vars.
agent/cli/_legacy.py:98
↓ 2 callersFunction_print_welcome
Print the welcome screen.
agent/cli/_legacy.py:1851
↓ 2 callersMethod_process_forward_command
Process a queued slash command.
agent/src/channels/telegram.py:1426
↓ 2 callersMethod_process_message_update
Process a queued Telegram message update.
agent/src/channels/telegram.py:1462
↓ 2 callersFunction_production_br_spec
()
agent/tests/test_br_data.py:363
↓ 2 callersFunction_production_spec
()
agent/tests/scheduling/test_memory_consolidation_job.py:105
↓ 2 callersFunction_profile_to_hard_caps
Map a clamped proposal profile to the mandate ``hard_caps`` section. The proposal profile uses the human-facing field names from the consent
agent/src/live/mandate/commit.py:566
↓ 2 callersFunction_project
Project rows onto the requested columns, preserving request order. Raises: ValueError: If a requested name is not in ``columns``; the mes
agent/src/tools/run_artifact_tool.py:265
↓ 2 callersFunction_promoted_numeric_features
Return the numeric feature set used for clustering. Always includes the journal-derived ``_NUMERIC_FEATURES``. A price feature joins only whe
agent/src/shadow_account/extractor.py:310
↓ 2 callersFunction_prompt_blocks
()
agent/tests/test_grounding_figures_contract.py:734
↓ 2 callersFunction_prompt_cache_key
Cache-routing key shared by every request of one conversation. The key hashed the whole message list, so it changed on every request and neve
agent/src/providers/openai_codex.py:426
↓ 2 callersFunction_prompt_rule
()
agent/cli/input.py:334
↓ 2 callersFunction_prompt_secret
Read a masked secret. Returns string, BACK, or CANCEL.
agent/cli/onboard.py:302
↓ 2 callersFunction_provider_choice_number
Return the rendered one-based menu number for a provider.
agent/tests/test_cli_init.py:9
↓ 2 callersFunction_provider_default_base_urls
Canonical ``name -> default_base_url`` map from the provider catalog. The catalog (``llm_providers.json``) declares each provider's canonical API
agent/src/providers/capabilities.py:355
↓ 2 callersFunction_provider_key_env
Return the credential environment variable for a provider.
agent/cli/_legacy.py:434
↓ 2 callersMethod_provider_scoped_extra_headers
Remove ambient OpenAI-only headers from named relay requests.
agent/src/providers/llm.py:347
↓ 2 callersMethod_prune_conversation_refs
Remove stale and unsupported conversation refs from memory.
agent/src/channels/msteams.py:727
↓ 2 callersFunction_prune_old_jobs
Drop completed/errored bench + compare jobs older than ``_JOB_TTL_SECONDS``.
agent/src/api/alpha_routes.py:138
← previousnext →4,201–4,300 of 26,887, ranked by callers