MCPcopy Create free account

hub / github.com/Lumiwealth/lumibot / functions

Functions9,807 in github.com/Lumiwealth/lumibot

↓ 4 callersFunction_align_stock_index_daily_to_session_close
Normalize IBKR stock/index daily timestamps to the session close. Why: - IBKR day bars are often timestamped near UTC midnight, which appears
lumibot/tools/ibkr_helper.py:1056
↓ 4 callersFunction_align_timestamp_to_index_tz
Return a comparable timestamp aligned to the timezone mode of `ref_index_ts`.
lumibot/backtesting/routed_backtesting.py:126
↓ 4 callersFunction_alpaca
()
tests/test_smart_limit_live_alpaca.py:25
↓ 4 callersMethod_append_event
( self, *, event_type: str, subject_type: str | None, subject_id: str
lumibot/components/memory/store.py:823
↓ 4 callersFunction_apply_corporate_actions_to_frame
( asset: Asset, frame: pd.DataFrame, start_day: date, end_day: date, username: Optional[st
lumibot/tools/thetadata_helper.py:1738
↓ 4 callersMethod_apply_daily_cash_financing_if_needed
(self)
tests/test_scheduled_run_once.py:88
↓ 4 callersFunction_as_of_datetime
(value: Any)
lumibot/fundamentals/sec.py:91
↓ 4 callersFunction_assert_open_close_fill
( strategy: _HarnessStrategy, open_order, close_order, *, drive_smart_limit: bool, tim
tests/test_smart_limit_live_matrix_alpaca.py:237
↓ 4 callersFunction_assert_open_close_fill
( strategy: _HarnessStrategy, open_order, close_order, *, drive_smart_limit: bool, tim
tests/test_smart_limit_live_matrix_tradier.py:227
↓ 4 callersFunction_assert_repo_lumibot_import_path
()
scripts/run_lumibot_data_matrix.py:476
↓ 4 callersFunction_assert_trade_and_state
(strategy: Strategy, target_asset)
tests/backtest/test_shorting.py:58
↓ 4 callersFunction_attach_subscriber
Helper: replace broker subscribers list with a single mock subscriber.
tests/test_projectx_lifecycle_unit.py:527
↓ 4 callersFunction_bare_strategy
(strategy_cls, parameters)
tests/test_crypto_backtest_validation_runner.py:19
↓ 4 callersFunction_build_dummy_df
(start_ts: pd.Timestamp, periods: int = 5, freq: str = "1D")
tests/test_thetadata_helper.py:4017
↓ 4 callersFunction_build_minute_df
(columns, start_dt)
tests/test_thetadata_quote_only_fetch.py:8
↓ 4 callersFunction_build_settings
(prefix: str = "prod/cache")
tests/test_backtest_cache_manager.py:56
↓ 4 callersFunction_cache_file_for
( *, asset: Asset, quote: Optional[Asset], timestep: str, exchange: Optional[str], sou
lumibot/tools/ibkr_helper.py:3392
↓ 4 callersMethod_cache_path
(self, *parts: str)
lumibot/fundamentals/sec.py:188
↓ 4 callersFunction_cache_sidecar_path
(cache_file: Path)
lumibot/tools/thetadata_helper.py:4368
↓ 4 callersMethod_cache_tradier_read
(self, endpoint: str, value)
lumibot/brokers/tradier.py:140
↓ 4 callersMethod_cancel_open_orders_for_asset
Cancel any still-active orders for the given asset in backtesting. When a position is force-closed (manual exit or cash settlement) we need t
lumibot/backtesting/backtesting_broker.py:903
↓ 4 callersMethod_cancel_order_if_hard_time_in_force_elapsed
Cancel orders that must expire before any price lookup or fill attempt. Same-date DAY/GFD orders are allowed to evaluate the current bar, inc
lumibot/backtesting/backtesting_broker.py:3502
↓ 4 callersMethod_check_and_renew_token
Check if the token is expired or about to expire and renew it if necessary.
lumibot/brokers/tradovate.py:310
↓ 4 callersFunction_cloud_update_dummy
(get_cash_events)
tests/test_cash_events.py:624
↓ 4 callersFunction_coerce_json_payload
Normalize ThetaData v2/v3 payloads into {'header':{'format':[...]}, 'response': [...] }.
lumibot/tools/thetadata_helper.py:535
↓ 4 callersMethod_coerce_snapshot_price
(value)
lumibot/strategies/_strategy.py:1638
↓ 4 callersFunction_coerce_tearsheet_metric_value
(value)
lumibot/tools/indicators.py:1883
↓ 4 callersMethod_collect_cash_events_for_cloud
(self)
lumibot/strategies/_strategy.py:3277
↓ 4 callersMethod_compute_backoff_delay
Compute exponential backoff delay with jitter and optional retry-after.
lumibot/tools/data_downloader_queue_client.py:448
↓ 4 callersMethod_create_data_with_prices
( self, asset: Asset, close_prices, open_prices=None, bid_prices=None,
tests/test_data_entity.py:22
↓ 4 callersMethod_create_position
(self, quantity=0)
tests/test_position_signs.py:11
↓ 4 callersFunction_current_strategy_datetime
(strategy: Any)
lumibot/components/agents/manager.py:112
↓ 4 callersFunction_daily_close_series
(df: pd.DataFrame)
tests/backtest/test_accuracy_verification.py:37
↓ 4 callersFunction_derive_bid_ask_from_bid_ask_and_midpoint
Derive per-bar bid/ask quotes using IBKR Bid_Ask + Midpoint history. IBKR's Client Portal history endpoint returns OHLC bars for different "sourc
lumibot/tools/ibkr_helper.py:2113
↓ 4 callersFunction_disabled_fred_tool_if_needed
(strategy: Any, manager: Any, tool_name: str)
lumibot/components/agents/builtins.py:1060
↓ 4 callersMethod_dump_stats
(self)
tests/test_scheduled_run_once.py:82
↓ 4 callersFunction_enable_futures_bid_ask_derivation
Whether to derive bid/ask quotes for futures from Bid_Ask + Midpoint history. Default is disabled because: - Futures backtests in LumiBot are
lumibot/tools/ibkr_helper.py:119
↓ 4 callersMethod_encode_base64url_json
Encode a JSON payload as unpadded base64url.
lumibot/brokers/tradier.py:174
↓ 4 callersFunction_ensure_dir
(path: Path)
scripts/run_ibkr_futures_parity_artifact_baselines.py:61
↓ 4 callersFunction_ensure_env_loaded
()
tests/backtest/test_theta_strategies_integration.py:30
↓ 4 callersMethod_ensure_tradier_read_control_state
(self)
lumibot/brokers/tradier.py:111
↓ 4 callersFunction_env_flag_enabled
(name: str, default: bool = False)
lumibot/tools/indicators.py:642
↓ 4 callersFunction_event
(kind: str, *, text: str | None = None, tool_name: str | None = None, payload: dict | None = None)
scripts/stress_agent_minute_duckdb.py:28
↓ 4 callersFunction_event
(kind: str, *, text: str | None = None, tool_name: str | None = None, payload: dict | None = None)
tests/backtest/test_ai_committee_builtin_tools_backtest.py:15
↓ 4 callersMethod_extract_history_field
(row: dict, raw_type: str, field_name: str)
lumibot/brokers/tradier.py:1114
↓ 4 callersFunction_fake_strategy
(*, balances_updated=True)
tests/test_cloud_account_snapshot.py:30
↓ 4 callersMethod_fast_get_bid_ask_for_fill
Fast-path for bid/ask retrieval in backtesting order fills. Why this exists: - `process_pending_orders()` can execute tens/hundreds o
lumibot/backtesting/backtesting_broker.py:3637
↓ 4 callersFunction_find_option
( strategy: _HarnessStrategy, underlying: Asset, *, expiry, put_or_call: str, strike:
tests/test_smart_limit_live_matrix_alpaca.py:156
↓ 4 callersFunction_find_option
( strategy: _HarnessStrategy, underlying: Asset, *, expiry, put_or_call: str, strike:
tests/test_smart_limit_live_matrix_tradier.py:146
↓ 4 callersFunction_five_day_window
(start_date: dt.date)
tests/backtest/test_shorting.py:51
↓ 4 callersFunction_flatten_csv_value
(value: Any)
lumibot/components/agents/manager.py:461
↓ 4 callersMethod_float_positive
(value: Any)
lumibot/components/options_helper.py:156
↓ 4 callersFunction_frame_has_actionable_bid_ask
(df: pd.DataFrame)
lumibot/tools/ibkr_helper.py:1045
↓ 4 callersMethod_frame_has_ohlc_columns
(self, frame: Optional[pd.DataFrame])
lumibot/backtesting/thetadata_backtesting_pandas.py:414
↓ 4 callersFunction_generate_databento_symbol_alternatives
Format futures symbol for DataBento using the ONLY format that works. Based on analysis of successful DataBento requests: - MESH24, MES.
lumibot/tools/databento_helper_polars.py:1211
↓ 4 callersMethod_get_contract_id_from_asset
Get ProjectX contract ID from Lumibot asset.
lumibot/data_sources/projectx_data.py:366
↓ 4 callersMethod_get_crypto_client
Lazily initialize and return the crypto client.
lumibot/data_sources/alpaca_data.py:181
↓ 4 callersMethod_get_futures_ledger_key
(self, strategy, asset)
lumibot/backtesting/backtesting_broker.py:1929
↓ 4 callersMethod_get_positions_at_broker
Get all positions from the broker.
lumibot/brokers/projectx.py:657
↓ 4 callersMethod_get_spread_limit
(self, strategy, key: str)
lumibot/backtesting/backtesting_broker.py:3934
↓ 4 callersFunction_get_theta_splits
Fetch split data from ThetaData only. No fallback to other data sources. Note: this function is called from several hot paths (including option s
lumibot/tools/thetadata_helper.py:1573
↓ 4 callersFunction_http_headers
(api_key: str)
scripts/bench_speed_parity_prod.py:119
↓ 4 callersMethod_initialize
(self)
lumibot/strategies/strategy_executor.py:1030
↓ 4 callersFunction_invoke_tool
(request, events, tool_name: str, **kwargs)
scripts/stress_agent_minute_duckdb.py:40
↓ 4 callersMethod_isAnimated
()
docsrc/_html/bootstrap/js/bootstrap.esm.min.js:6
↓ 4 callersMethod_isAnimated
()
docsrc/_html/bootstrap/js/bootstrap.bundle.min.js:6
↓ 4 callersMethod_isAnimated
()
docsrc/_html/bootstrap/js/bootstrap.js:3042
↓ 4 callersMethod_isAnimated
()
docsrc/_html/bootstrap/js/bootstrap.min.js:6
↓ 4 callersMethod_isAnimated
()
docsrc/_html/bootstrap/js/bootstrap.bundle.js:4808
↓ 4 callersMethod_isAnimated
()
docsrc/_html/bootstrap/js/bootstrap.esm.js:3018
↓ 4 callersMethod_is_live_entry_fresh
(self, entry: Optional[dict])
lumibot/data_sources/databento_data_polars.py:506
↓ 4 callersMethod_is_option_asset
(self, asset)
lumibot/backtesting/backtesting_broker.py:3912
↓ 4 callersFunction_iso_or_none
(value: Any)
lumibot/components/agents/manager.py:118
↓ 4 callersMethod_leave
(e,t)
docsrc/_html/bootstrap/js/bootstrap.esm.min.js:6
↓ 4 callersMethod_leave
(t,e)
docsrc/_html/bootstrap/js/bootstrap.bundle.min.js:6
↓ 4 callersMethod_leave
(event, context)
docsrc/_html/bootstrap/js/bootstrap.js:4097
↓ 4 callersMethod_leave
(t,e)
docsrc/_html/bootstrap/js/bootstrap.min.js:6
↓ 4 callersMethod_leave
(event, context)
docsrc/_html/bootstrap/js/bootstrap.bundle.js:5863
↓ 4 callersMethod_leave
(event, context)
docsrc/_html/bootstrap/js/bootstrap.esm.js:4073
↓ 4 callersFunction_load_module
()
tests/test_build_release_readiness_unit.py:11
↓ 4 callersFunction_load_negative_conid_cache
Load negative conid cache (best-effort) and prune stale entries.
lumibot/tools/ibkr_helper.py:175
↓ 4 callersMethod_load_token_json_from_path
Load a public Tradier OAuth token JSON file.
lumibot/brokers/tradier.py:180
↓ 4 callersMethod_make_order
(self, side="sell_to_open", order_type="market", quantity=40)
tests/test_tradingfee.py:35
↓ 4 callersMethod_make_strategy
(self, buy_fees=None, sell_fees=None)
tests/test_tradingfee.py:43
↓ 4 callersFunction_make_strategy_stub
()
tests/test_indicators_detail_text_edge_cases.py:198
↓ 4 callersFunction_make_subscriber
Helper to create a fresh MockSubscriber.
tests/test_projectx_lifecycle_unit.py:522
↓ 4 callersMethod_mask_hash_value
(hash_value)
lumibot/brokers/schwab.py:115
↓ 4 callersFunction_minute_ohlc
(start_dt: datetime, end_dt: datetime)
tests/backtest/test_routed_backtesting_ibkr_prefetch.py:12
↓ 4 callersFunction_model_context_string_limit_chars
(model: Any)
lumibot/components/agents/runtime.py:696
↓ 4 callersMethod_model_request_timeout_seconds_for_request
(request: RuntimeRequest)
lumibot/components/agents/runtime.py:1326
↓ 4 callersMethod_modify_order
Modify an order at the broker. You are only allowed to change the limit price and/or stop price. If you want to change the quantity,
lumibot/brokers/tradier.py:716
↓ 4 callersMethod_modify_order
(self, order, limit_price=None, stop_price=None)
tests/test_broker_cleanup.py:34
↓ 4 callersFunction_normalise_expiry_key
Convert expiry to canonical YYYY-MM-DD string format.
lumibot/entities/chains.py:226
↓ 4 callersMethod_normalize_asset_type
(value: object)
lumibot/backtesting/interactive_brokers_rest_backtesting.py:68
↓ 4 callersMethod_normalize_backtest_datetime
Ensure backtest boundary datetimes are timezone-aware. Naive datetimes are localized to the LumiBot default timezone; timezone-aware
lumibot/strategies/_strategy.py:141
↓ 4 callersMethod_normalize_error_details
Normalize error details for deduplication by removing dynamic values.
lumibot/tools/lumibot_logger.py:120
↓ 4 callersFunction_normalize_expiration
(value: Any)
lumibot/components/agents/asset_resolution.py:30
↓ 4 callersFunction_normalize_right
(value: Any)
lumibot/components/agents/asset_resolution.py:24
↓ 4 callersFunction_normalize_rows
(rows: Any)
scripts/build_release_readiness.py:60
↓ 4 callersMethod_normalize_stock_split_ratio
(value)
lumibot/data_sources/data_source.py:583
← previousnext →901–1,000 of 9,807, ranked by callers