MCPcopy Create free account

hub / github.com/Lumiwealth/lumibot / functions

Functions9,807 in github.com/Lumiwealth/lumibot

↓ 29 callersMethodcancel_order
(self, order)
tests/test_broker_cleanup.py:31
↓ 29 callersMethodfind_asset_in_data_store
Locate the cache key for an asset, preferring timestep-aware keys but gracefully falling back to legacy (asset, quote) entries for ba
lumibot/data_sources/polars_data.py:655
↓ 29 callersMethodis_set
(self)
lumibot/entities/order.py:38
↓ 29 callersFunctionsubmit_and_fill
(strategy, broker, order)
tests/backtest/test_backtesting_broker_processing.py:183
↓ 28 callersMethod_audit_merge
Best-effort merge of audit fields onto an Order. Invariant: audit collection must never break backtests. This function must be safe to call
lumibot/backtesting/backtesting_broker.py:3978
↓ 28 callersFunction_to_utc
Convert a datetime to UTC, treating naive datetimes as LumiBot local time. IMPORTANT: LumiBot uses `pytz` timezones. For pytz, you must NOT attac
lumibot/tools/ibkr_helper.py:3810
↓ 28 callersMethodcleanup_streams
Clean up stream threads properly to prevent segmentation faults
lumibot/brokers/broker.py:766
↓ 28 callersMethodget_all_orders
get all tracked and completed orders
lumibot/brokers/broker.py:2364
↓ 28 callersFunctionget_backtest_cache
()
lumibot/tools/backtest_cache.py:476
↓ 27 callersMethodget_expiration_on_or_after_date
Get the expiration date that is on or after a given date, validating that the option has tradeable data. Parameters --------
lumibot/components/options_helper.py:2091
↓ 27 callersMethodget_tracked_orders
get all tracked orders for a given strategy
lumibot/brokers/broker.py:2306
↓ 26 callersFunction_broker_class
(name: str)
lumibot/credentials.py:40
↓ 26 callersMethodcheck_columns
(self, bars: Bars)
tests/fixtures.py:178
↓ 26 callersMethodcheck_index
(self, bars: Bars, data_source_tz: pytz.tzinfo = None)
tests/fixtures.py:170
↓ 26 callersMethodcheck_length
(self, bars: Bars, length: int)
tests/fixtures.py:166
↓ 26 callersMethodis_sell_order
(self)
lumibot/entities/order.py:702
↓ 25 callersMethodget_step_count
(self)
lumibot/entities/smart_limit.py:51
↓ 24 callersMethod_lumi_side2tradier
(self, order: Order)
lumibot/brokers/tradier.py:1764
↓ 24 callersMethod_process_smart_limit_orders
(self)
lumibot/strategies/strategy_executor.py:721
↓ 24 callersMethod_update_pandas_data
( self, asset, quote, length, timestep, start_dt=None,
lumibot/backtesting/routed_backtesting.py:1149
↓ 24 callersMethodget_step_seconds
(self)
lumibot/entities/smart_limit.py:54
↓ 23 callersFunction_broker
(monkeypatch)
tests/test_polymarket_broker.py:145
↓ 23 callersFunction_sanitize_csv_text
(value: Any)
lumibot/components/agents/manager.py:442
↓ 23 callersMethodgetOrCreateInstance
(e,t={})
docsrc/_html/bootstrap/js/bootstrap.esm.min.js:6
↓ 23 callersMethodgetOrCreateInstance
(t,e={})
docsrc/_html/bootstrap/js/bootstrap.bundle.min.js:6
↓ 23 callersMethodgetOrCreateInstance
(element, config = {})
docsrc/_html/bootstrap/js/bootstrap.js:729
↓ 23 callersMethodgetOrCreateInstance
(t,e={})
docsrc/_html/bootstrap/js/bootstrap.min.js:6
↓ 23 callersMethodgetOrCreateInstance
(element, config = {})
docsrc/_html/bootstrap/js/bootstrap.bundle.js:709
↓ 23 callersMethodgetOrCreateInstance
(element, config = {})
docsrc/_html/bootstrap/js/bootstrap.esm.js:705
↓ 23 callersMethodget_from_endpoint
(self, url, description="", silent=False, allow_fail=True)
lumibot/data_sources/interactive_brokers_rest_data.py:438
↓ 23 callersMethodstart
docsrc/_html/bootstrap/js/bootstrap.js:1312
↓ 22 callersMethod_create_data_source
(self, tzinfo: pytz.tzinfo = None, remove_incomplete_current_bar=False)
tests/test_alpaca_data.py:30
↓ 22 callersFunction_order
(strategy_name, identifier, status, symbol="SPY", order_type=Order.OrderType.LIMIT)
tests/test_strategy_live_order_accessors.py:119
↓ 22 callersMethodget_bars
Returns a dataframe of the data. Parameters ---------- dt : datetime.datetime The datetime to get the data.
lumibot/entities/data.py:1223
↓ 22 callersMethodget_historical_prices
Get historical pricing data for a given symbol or asset. Return data bars for a given symbol or asset. Any number of bars can be ret
lumibot/strategies/strategy.py:4373
↓ 22 callersMethodget_portfolio_value
(self)
tests/test_agent_tool_permissions.py:41
↓ 22 callersMethodinfo
(self, *args, **kwargs)
tests/test_cloud_account_snapshot.py:11
↓ 21 callersMethodget_datetime
(self)
tests/test_fred_macro.py:20
↓ 21 callersMethodget_list
(self)
lumibot/trading_builtins/safe_list.py:156
↓ 21 callersMethodon_local_update
( self, local_path: Path, payload: Optional[Dict[str, object]] = None, )
lumibot/tools/backtest_cache.py:288
↓ 21 callersFunctionparse_timestep_qty_and_unit
Parse the timestep string and return the quantity and unit. Parameters ---------- timestep : str The timestep string to pars
lumibot/tools/helpers.py:850
↓ 21 callersMethodsubmit
(self)
lumibot/components/agents/builtins.py:1598
↓ 21 callersMethodupdate_raw
(self, raw)
lumibot/entities/order.py:1329
↓ 20 callersFunction_detect_column
Find the first column name matching the provided candidates (case-insensitive).
lumibot/tools/thetadata_helper.py:6385
↓ 20 callersFunction_dt
(year: int, month: int, day: int, hour: int = 0, minute: int = 0)
tests/test_futures_roll.py:11
↓ 20 callersMethod_execute_filled_order
( self, order: Order, price: float, filled_quantity: Decimal, strategy
lumibot/backtesting/backtesting_broker.py:1798
↓ 20 callersMethod_get_asset_key
Generate a unique key for an asset combination with specific parameters. Parameters ---------- base_asset: Asset - B
lumibot/backtesting/alpaca_backtesting.py:485
↓ 20 callersMethodget_cache_file_name
Returns the cache file name. If the cache folder does not exist, it is created. cache folder is created under LUMIBOT_CACHE_FOLDER with exchan
lumibot/tools/ccxt_data_store.py:118
↓ 20 callersMethodget_orders
(self, *a, **k)
tests/test_projectx_lifecycle_unit.py:33
↓ 20 callersMethodget_quote
Returns the last known price of the data. Parameters ---------- dt : datetime.datetime The datetime to get the la
lumibot/entities/data.py:1055
↓ 20 callersMethodget_timestep
(self)
lumibot/data_sources/data_source.py:284
↓ 20 callersMethodis_market_open
(self)
tests/test_scheduled_run_once.py:34
↓ 20 callersMethodset_error
(self, error)
lumibot/entities/order.py:1320
↓ 19 callersFunction_event
(kind: str, *, text: str | None = None, tool_name: str | None = None, payload: dict | None = None)
tests/backtest/test_agent_runtime_backtest.py:19
↓ 19 callersFunction_invoke_tool
(request, events, tool_name: str, **kwargs)
tests/backtest/test_agent_runtime_backtest.py:31
↓ 19 callersFunction_make_strategy_stub
()
tests/test_indicator_subplots.py:451
↓ 19 callersMethod_sanitize_user_asset
(self, asset)
lumibot/strategies/_strategy.py:1026
↓ 19 callersMethod_submit_order
(self, *, label: str, side, quantity: float, **kwargs)
scripts/run_crypto_backtest_validation.py:656
↓ 19 callersMethodcancel_open_orders
Cancel all open orders at the broker.
lumibot/brokers/ccxt.py:768
↓ 19 callersMethoddownload_ohlcv
(self, symbol, timeframe, start_datetime, end_dt)
tests/test_hour_timestep_support.py:133
↓ 19 callersMethodget_final_hold_seconds
(self)
lumibot/entities/smart_limit.py:59
↓ 19 callersMethodget_historical_prices_between_dates
( self, asset, timestep="minute", quote=None, exchange=None, i
lumibot/backtesting/interactive_brokers_rest_backtesting.py:802
↓ 19 callersMethodis_equivalent_status
Returns if the 2 statuses passed are equivalent.
lumibot/entities/order.py:1303
↓ 19 callersFunctionsetup_strategy_with_prices
( asset: Asset, quote: Asset, bars, *, start: str = DEFAULT_START, freq: str = DEFAULT
tests/backtest/test_backtesting_broker_processing.py:156
↓ 18 callersMethod_get_price_from_source
Return best available price from the provided data source.
lumibot/strategies/_strategy.py:1332
↓ 18 callersFunction_leg
(strategy_name: str, asset: Asset, side: Order.OrderSide)
tests/test_smart_limit_multileg_unit.py:60
↓ 18 callersFunction_option
(symbol: str, strike: float)
tests/test_smart_limit_multileg_unit.py:50
↓ 18 callersMethodget_order
(self, identifier)
tests/test_polymarket_broker.py:79
↓ 18 callersMethodget_positions
Get all positions for the account. Parameters ---------- include_cash_positions : bool If True, include cash posi
lumibot/strategies/strategy.py:1396
↓ 18 callersMethodhas_actionable_price
Return True when the evaluation contains usable buy and sell prices. A quote can be "one-sided" (ask-only or bid-only). In that case we canno
lumibot/components/options_helper.py:127
↓ 18 callersMethodis_active
(self)
tests/test_cancel_open_orders_perf.py:15
↓ 18 callersMethodschedule
(self, start_date, end_date, tz=None)
tests/test_helpers.py:505
↓ 17 callersMethod_get_option_mark_from_quote
Return (mark_price, bid, ask) derived from quotes; never calls get_last_price().
lumibot/components/options_helper.py:165
↓ 17 callersMethod_request_json
(self, base_url: str, path: str, params: dict | None = None)
lumibot/data_sources/polymarket_data.py:563
↓ 17 callersMethodcalculate
Return a dataframe with the drift of each asset in the portfolio. Parameters ---------- portfolio_weights : List[Dict[str, A
lumibot/components/drift_rebalancer_logic.py:180
↓ 17 callersFunctioncallback
(session: ClientSession)
lumibot/components/agents/runtime.py:1592
↓ 17 callersMethodconvert_timestep_str_to_timedelta
Convert a timestep string to a timedelta object. For example, "1minute" will be converted to a timedelta of 1 minute. Parame
lumibot/data_sources/data_source.py:288
↓ 17 callersMethodcreate
( self, *, name: str, system_prompt: str | None = None, model: str | N
lumibot/components/agents/manager.py:2050
↓ 17 callersMethodcreate_test_order
Create a test order with a specific creation date.
tests/test_broker_cleanup.py:86
↓ 17 callersMethoddo_polling
This function is called every time the broker polls for new orders. It checks for new orders and dispatches them to the stream for pr
lumibot/brokers/tradier.py:1862
↓ 17 callersMethodensure_local_file
( self, local_path: Path, payload: Optional[Dict[str, object]] = None, force_d
lumibot/tools/backtest_cache.py:137
↓ 17 callersFunctionensure_missing_column
Ensure the dataframe includes a `missing` flag column (True for placeholders).
lumibot/tools/thetadata_helper.py:1938
↓ 17 callersMethodequivalent_status
Returns if the status is equivalent to the order status.
lumibot/entities/order.py:1285
↓ 17 callersMethodget_datetime
Returns the current datetime in the default timezone Parameters ---------- adjust_for_delay : bool Wheth
lumibot/data_sources/data_source.py:195
↓ 17 callersMethodget_potential_futures_contracts
Get a list of potential futures contracts in order of preference. This is useful for data sources or brokers that need to tr
lumibot/entities/asset.py:690
↓ 17 callersFunctioni
docsrc/_html/bootstrap/js/bootstrap.bundle.min.js:6
↓ 17 callersFunctionposition_quantity
(broker, strategy, asset)
tests/backtest/test_backtesting_broker_processing.py:190
↓ 17 callersMethodrun
(self, request)
scripts/stress_agent_minute_duckdb.py:52
↓ 17 callersMethodrun_live
Executes the trading strategy in Live mode Parameters ---------- run_once : bool, optional Run one tradi
lumibot/strategies/strategy.py:5545
↓ 16 callersFunction_cache_without_live_exchange
(tmp_path, monkeypatch)
tests/test_ccxt_store.py:16
↓ 16 callersFunction_format_futures_symbol_for_databento
Format a futures Asset object for DataBento symbol conventions This function handles the complexity of DataBento's futures symbology, wh
lumibot/tools/databento_helper.py:315
↓ 16 callersFunction_format_value
(value: Any)
scripts/summarize_ai_committee_provider_benchmarks.py:123
↓ 16 callersFunction_position
(asset_type, symbol, quantity=1, **instrument)
tests/test_schwab_positions_unit.py:135
↓ 16 callersMethod_set_cash_position
(self, value)
tests/test_market_infinite_loop_bug.py:369
↓ 16 callersMethodadd_order
(self, order: entities.Order, quantity: Decimal = Decimal(0))
lumibot/entities/position.py:210
↓ 16 callersMethodalpaca_news
(self)
lumibot/components/agents/builtins.py:1496
↓ 16 callersFunctionget_download_status
Get the current ThetaData download status. Returns a dictionary with the current download state, suitable for including in progress CSV
lumibot/tools/thetadata_helper.py:71
↓ 16 callersMethodget_iter_count
(self, dt)
lumibot/entities/data.py:654
↓ 16 callersFunctionget_strategy_logger
Get a strategy-specific logger that includes the strategy name in all messages. This is particularly useful for broker and strategy clas
lumibot/tools/lumibot_logger.py:810
↓ 16 callersMethodget_tracked_order
get a tracked order given an identifier
lumibot/brokers/broker.py:2296
← previousnext →101–200 of 9,807, ranked by callers