MCPcopy Index your code

hub / github.com/Lumiwealth/lumibot / functions

Functions9,807 in github.com/Lumiwealth/lumibot

↓ 1,816 callersMethodget
Gets the value of a variable, returning a default value if it doesn't exist.
lumibot/strategies/_strategy.py:131
↓ 1,514 callersMethodget
(self, path, params)
tests/test_cash_events.py:139
↓ 716 callersMethodappend
(self, value)
lumibot/trading_builtins/safe_list.py:78
↓ 709 callersMethoddebug
Override debug to respect quiet logs
lumibot/tools/lumibot_logger.py:605
↓ 626 callersMethoderror
(self, id, error_code, error_string)
lumibot/brokers/interactive_brokers.py:654
↓ 471 callersMethoddatetime
(self)
lumibot/entities/bar.py:83
↓ 438 callersMethodappend
(self, val)
tests/test_futures_integration.py:77
↓ 332 callersMethodwarning
(self, message: str, *args: Any, **kwargs: Any)
lumibot/components/agents/manager.py:1908
↓ 330 callersMethodlog_message
(self, message, color=None)
tests/backtest/test_quote_fill_fallback.py:18
↓ 299 callersMethodcreate_order
(self, *args, **kwargs)
tests/test_agent_tool_permissions.py:364
↓ 276 callersMethodget
(self, memory_id: str)
lumibot/components/memory/store.py:375
↓ 273 callersMethodremove
(self, value, key=None)
lumibot/trading_builtins/safe_list.py:88
↓ 268 callersMethodinfo
(self, message: str, *args: Any, **kwargs: Any)
lumibot/components/agents/manager.py:1899
↓ 268 callersFunctionset
(element, key, instance)
docsrc/_html/bootstrap/js/bootstrap.js:645
↓ 266 callersMethodlog_message
Logs an info message prefixed with the strategy name. Uses python logging to log the message at the `info` level. Logging goes to the
lumibot/strategies/strategy.py:360
↓ 204 callersMethodsubmit_order
(self, order)
tests/test_agent_tool_permissions.py:367
↓ 199 callersMethodobject
(self, *args, **kwargs)
tests/conftest.py:104
↓ 198 callersMethodtimezone
Returns the timezone of the data source. By default, America/New_York. Returns ------- str The timezone of the da
lumibot/strategies/strategy.py:3350
↓ 191 callersMethodget
(self, key, default=None)
lumibot/entities/chains.py:40
↓ 183 callersMethodjoin
(self, timeout=None)
lumibot/strategies/strategy_executor.py:911
↓ 152 callersMethodsplit
Return a list of Bars objects, each with a single bar Parameters ---------- None Returns ------- lis
lumibot/entities/bars.py:492
↓ 151 callersMethodwarning
Override warning to respect quiet logs
lumibot/tools/lumibot_logger.py:610
↓ 142 callersMethod__new__
(cls)
lumibot/entities/bars.py:34
↓ 136 callersMethodget_last_price
(self, asset, quote=None, exchange=None)
tests/test_data_source.py:16
↓ 128 callersMethodinfo
Override info to respect quiet logs
lumibot/tools/lumibot_logger.py:600
↓ 124 callersMethodsleep
The broker custom method for sleeping. Needs to be overloaded depending whether strategy is running live or in backtesting mode
lumibot/brokers/broker.py:2235
↓ 106 callersMethodis_filled
Returns whether this order has been filled. Returns ------- bool True if the order has been filled, Fals
lumibot/entities/order.py:1261
↓ 104 callersMethodrun_backtest
Backtest a strategy. Parameters ---------- datasource_class : class, optional The datasource class to use. For ex
lumibot/strategies/_strategy.py:2526
↓ 103 callersMethodprocess_pending_orders
Used to evaluate and execute open orders in backtesting. This method will evaluate the open orders at the beginning of every new bar to
lumibot/backtesting/backtesting_broker.py:2040
↓ 95 callersMethodprocess_queue
(self)
lumibot/strategies/strategy_executor.py:716
↓ 93 callersFunctionget_logger
Get a logger instance for the given name with consistent Lumibot formatting. This function is cached to ensure that the same logger inst
lumibot/tools/lumibot_logger.py:760
↓ 88 callersMethodcreate_order
Creates a new order for this specific strategy. Once created, an order must still be submitted. Some notes on Crypto markets: Crypto
lumibot/strategies/strategy.py:410
↓ 86 callersMethodget_historical_prices
( self, asset, length, timestep="", timeshift=None, quote=None, exchange=None, include_after_hours=Tru
tests/test_data_source.py:19
↓ 86 callersMethodupdate
(self, data)
lumibot/entities/bar.py:191
↓ 85 callersMethodget_datetime
Returns the current datetime according to the data source. In a backtest this will be the current bar's datetime. In live trading this will be the cur
lumibot/strategies/strategy.py:3407
↓ 84 callersMethodcreate
Factory method to create a RESTClient or PolygonClient instance. The method uses environment variables to determine default values f
lumibot/tools/polygon_helper.py:889
↓ 83 callersMethodfilter
Return a Bars object with only the bars between start and end Parameters ---------- start : datetime.datetime The
lumibot/entities/bars.py:586
↓ 80 callersMethod_update_datetime
Works with either timedelta or datetime input and updates the datetime of the broker. Parameters ---------- update_dt
lumibot/backtesting/backtesting_broker.py:414
↓ 77 callersMethodclear
(self)
lumibot/entities/order.py:47
↓ 74 callersMethod_process_trade_event
process an occurred trading event and update the corresponding order
lumibot/brokers/broker.py:2835
↓ 73 callersMethodget_historical_prices
(self, *args, **kwargs)
tests/backtest/test_quote_fill_fallback.py:106
↓ 70 callersMethodget_fill_price
Get the weighted average filled price for this order. Option contracts often encounter partial fills, so the weighted average is the
lumibot/entities/order.py:1205
↓ 70 callersMethodjson
(self)
tests/test_fred_macro.py:15
↓ 66 callersMethoddispatch
(self, event, wait_until_complete=False, **payload)
lumibot/trading_builtins/custom_stream.py:14
↓ 64 callersMethodadd_marker
Adds a marker to the indicators plot that loads after a backtest. This can be used to mark important events on the graph, such as price crossing a cer
lumibot/strategies/strategy.py:3726
↓ 61 callersMethodbacktest
Backtest a strategy. Parameters ---------- datasource_class : class, optional The datasource class to use. For ex
lumibot/strategies/strategy.py:5573
↓ 61 callersMethodextend
(self, value)
lumibot/trading_builtins/safe_list.py:142
↓ 60 callersMethodget_datetime
(self)
tests/backtest/test_quote_fill_fallback.py:103
↓ 60 callersMethodsubmit_order
Conform an order for an asset to broker constraints and submit it.
lumibot/brokers/broker.py:2476
↓ 59 callersFunctionnext
(element, selector)
docsrc/_html/bootstrap/js/bootstrap.js:1060
↓ 53 callersMethodload_data
(self)
lumibot/data_sources/polars_data.py:368
↓ 52 callersMethodall
(self)
lumibot/strategies/_strategy.py:135
↓ 52 callersMethodisEnabledFor
Respect BACKTESTING_QUIET_LOGS without per-call environment lookups.
lumibot/tools/lumibot_logger.py:594
↓ 50 callersMethodget_position
Get a tracked position given an asset for the current strategy. Seeks out and returns the position object for the given asset
lumibot/strategies/strategy.py:1106
↓ 50 callersMethodis_buy_order
(self)
lumibot/entities/order.py:691
↓ 50 callersMethodset
(self, name, value)
lumibot/strategies/_strategy.py:128
↓ 49 callersMethodget_trading_days_pandas
(self)
lumibot/data_sources/polars_data.py:443
↓ 48 callersMethodis_active
Returns whether this order is active. Returns ------- bool True if the order is active, False otherwise.
lumibot/entities/order.py:1232
↓ 48 callersMethodrun
( self, *, task_prompt: str | None = None, context: dict[str, Any] | None = No
lumibot/components/agents/manager.py:1362
↓ 48 callersMethodrun_all
run all strategies Parameters ---------- async_: bool Whether to run the strategies asynchronously or no
lumibot/traders/trader.py:77
↓ 47 callersMethodinitialize_market_calendars
Initialize trading calendar and eagerly build caches for backtesting.
lumibot/backtesting/backtesting_broker.py:244
↓ 46 callersMethod_coerce_price
Convert numeric inputs to float when possible for safe comparisons.
lumibot/backtesting/backtesting_broker.py:3229
↓ 46 callersMethodadd_strategy
Adds a strategy to the trader
lumibot/traders/trader.py:73
↓ 46 callersMethodfind_next_valid_option
Find a valid option with the given expiry and strike. First tries the requested strike, then searches nearby strikes from the option
lumibot/components/options_helper.py:234
↓ 46 callersMethodset_market
Set the market for trading hours. Setting the market will determine the trading hours for live trading and for Yahoo backtesting. Not
lumibot/strategies/strategy.py:855
↓ 45 callersMethodresolve_continuous_futures_contract
Resolve a continuous futures asset to a specific contract symbol with controllable year formatting. Parameters -----
lumibot/entities/asset.py:611
↓ 44 callersMethod_add_position
( self, *, symbol: str, base_asset: Asset, is_quot
lumibot/components/drift_rebalancer_logic.py:283
↓ 44 callersMethodget_chains
(self, asset)
tests/test_options_helper.py:27
↓ 43 callersMethod_normalize_default_timezone
Normalize datetimes to the strategy timezone for consistent comparisons.
lumibot/backtesting/thetadata_backtesting_pandas.py:210
↓ 43 callersMethodadd_line
Adds a line data point to the indicator chart. This can be used to add lines such as bollinger bands, prices for specific assets, or any other line yo
lumibot/strategies/strategy.py:3906
↓ 43 callersMethodget_cash
(self)
tests/test_strategy_price_guard.py:13
↓ 43 callersMethodget_quote
(self, now)
tests/test_ibkr_index_daily_last_price_unit.py:16
↓ 43 callersMethodis_canceled
Returns whether this order has been cancelled. Returns ------- bool True if the order has been cancelled
lumibot/entities/order.py:1250
↓ 43 callersMethodraise_for_status
(self)
tests/test_fred_macro.py:12
↓ 42 callersMethod_first_present
(mapping: Any, *keys: str)
lumibot/brokers/polymarket.py:1261
↓ 42 callersMethod_parse_timestep
Parse various timestep formats into (multiplier, base_unit). Examples: "5min", "5m", "5 minutes" -> (5, "minute") "1h
lumibot/strategies/strategy.py:4305
↓ 41 callersMethod_is_invalid_price
Determine whether a price is unusable (None, NaN, or non-positive).
lumibot/backtesting/backtesting_broker.py:3238
↓ 39 callersMethodopen
(self)
lumibot/entities/bar.py:101
↓ 39 callersMethodto_dict
(self)
lumibot/entities/order.py:1442
↓ 38 callersMethodget_tracked_position
(self, strategy_name, asset)
tests/test_strategy_close_position.py:20
↓ 37 callersMethod_submit_order
(self, order)
tests/test_broker_cleanup.py:37
↓ 36 callersMethodwrite
(self, df: pd.DataFrame, *, remote_payload: Optional[Dict[str, object]] = None)
lumibot/tools/parquet_series_cache.py:79
↓ 35 callersMethod_parse_broker_order
(self, response, strategy_name, strategy_object=None)
tests/test_broker_cleanup.py:61
↓ 35 callersMethodtimestamp
Return the timestamp of the bar
lumibot/entities/bar.py:69
↓ 34 callersMethodevaluate_option_market
Evaluate available quote data for an option and produce execution anchors. Parameters ---------- option_asset : Asset
lumibot/components/options_helper.py:1655
↓ 34 callersMethodjoin
(self, timeout: float | None = None)
lumibot/tools/runtime_telemetry.py:227
↓ 33 callersMethod_pull_broker_order
(self, identifier)
tests/test_broker_cleanup.py:66
↓ 33 callersMethodget_historical_data
(self, dataset, symbols, schema, start, end, **kwargs)
tests/test_databento_backtesting_polars.py:217
↓ 33 callersMethodget_last_price
Return the last price of the last bar Parameters ---------- None Returns ------- float, Decimal or N
lumibot/entities/bars.py:542
↓ 33 callersMethodrebalance
(self, drift_df: pd.DataFrame = None)
lumibot/components/drift_rebalancer_logic.py:403
↓ 33 callersFunctionto_datetime_aware
Convert naive time to datetime aware on default timezone.
lumibot/tools/helpers.py:760
↓ 32 callersMethod_first_present
(mapping: Any, *keys: str)
lumibot/data_sources/polymarket_data.py:622
↓ 32 callersMethodconnect
Connect to ProjectX broker and set up account.
lumibot/brokers/projectx.py:197
↓ 31 callersFunction_invoke_tool
(request, events, tool_name: str, **kwargs)
tests/backtest/test_ai_committee_builtin_tools_backtest.py:27
↓ 31 callersMethod_process_new_order
(self, order)
lumibot/brokers/broker.py:1831
↓ 31 callersFunctionget_trading_days
Gets a schedule of trading days and corresponding market open/close times for a specified market between given start and end dates, including
lumibot/tools/helpers.py:202
↓ 31 callersFunctionload_dotenv
(path: Path)
scripts/run_backtest_prodlike.py:16
↓ 30 callersMethod_request
Generic request to BitUnix. Args: method: "GET", "POST", etc. endpoint: e.g. "/api/v1/futures/account"
lumibot/tools/bitunix_helpers.py:72
↓ 30 callersMethod_update_pandas_data
Get asset data and update the self.pandas_data dictionary. Parameters ---------- asset : Asset The asset
lumibot/backtesting/thetadata_backtesting_pandas.py:718
↓ 30 callersMethoderror
(self, *args, **kwargs)
tests/test_cloud_account_snapshot.py:17
next →1–100 of 9,807, ranked by callers