Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Build Lumibot Strategies with AI

BotSpot is the managed cloud product built on LumiBot. Describe a strategy, backtest it, and deploy it without managing servers. Start on BotSpot.trade.

Lumibot Documentation
Light Logo Dark Logo
  • Home
  • Build Bots with AI
  • BotSpot MCP Integration
  • GitHub
  • Getting Started
  • AI Trading Agents and Agentic Backtesting
    • AI Agents Quick Start
    • Agent Flows
    • Agent Built-In Tools
    • AI Investment Committee Example
    • Canonical AI Agent Demos
    • AI Agent Observability
    • Agent Memory
    • Agent Notifications
  • Cash Accounting
  • Lifecycle Methods
    • Summary
    • def initialize
    • def on_trading_iteration
    • def before_market_opens
    • def before_starting_trading
    • def before_market_closes
    • def after_market_closes
    • def on_abrupt_closing
    • def on_bot_crash
    • def trace_stats
    • def tearsheet_custom_metrics
    • def on_new_order
    • def on_partially_filled_order
    • def on_filled_order
    • def on_canceled_order
    • def on_parameters_updated
  • Strategy Methods
    • Order Management
      • self.create_order
      • self.submit_order
      • self.submit_orders
      • self.cancel_order
      • self.cancel_orders
      • self.cancel_open_orders
      • self.get_selling_order
      • self.sell_all
      • self.get_order
      • self.get_orders
      • self.get_asset_potential_total
    • Account Management
      • self.adjust_cash
      • self.configure_cash_financing
      • self.deposit_cash
      • self.get_portfolio_value
      • self.get_cash
      • self.get_position
      • self.get_positions
      • self.set_cash_financing_rates
      • self.withdraw_cash
    • Data
      • self.get_last_price
      • self.get_last_prices
      • self.get_historical_prices
      • self.get_historical_prices_for_assets
      • self.get_quote
      • self.get_yesterday_dividend
      • self.get_next_trading_day
    • Chart Functions
      • self.add_marker
      • self.add_line
      • self.get_markers_df
      • self.get_lines_df
    • Parameters
      • self.get_parameters
      • self.set_parameters
    • Options
      • self.get_chain
      • self.get_chains
      • self.get_greeks
      • self.get_strikes
      • self.get_expiration
      • self.get_multiplier
      • self.options_expiry_to_datetime_date
      • self.get_next_trading_day
    • DateTime
      • self.get_datetime
      • self.get_timestamp
      • self.get_round_minute
      • self.get_last_minute
      • self.get_round_day
      • self.get_last_day
      • self.get_datetime_range
      • self.localize_datetime
      • self.to_default_timezone
    • Miscellaneous
      • self.log_message
      • self.sleep
      • self.set_market
      • self.update_parameters
      • self.get_parameters
      • self.await_market_to_close
      • self.await_market_to_open
      • self.wait_for_order_registration
      • self.wait_for_order_execution
      • self.wait_for_orders_registration
      • self.wait_for_orders_execution
      • self.register_cron_callback
  • Strategy Properties
    • self.cash
    • self.portfolio_value
    • self.first_iteration
    • self.is_backtesting
    • self.quote_asset
    • self.name
    • self.initial_budget
    • self.minutes_before_closing
    • self.minutes_before_opening
    • self.sleeptime
    • self.last_on_trading_iteration_datetime
    • self.timezone
    • self.pytz
    • self.unspent_money
  • Entities
    • Asset
    • Bars
    • Data
    • Order
    • Position
    • Trading Fee
    • Trading Slippage
    • Smart Limit Config
    • Chains Entity
  • Indicators
  • SEC Fundamentals
  • FRED Macro Data
  • Backtesting
    • How To Backtest
    • Files Generated from Backtesting
    • Backtesting Function
    • Backtesting Performance (Speed + Parity)
    • Yahoo
    • Pandas (CSV or other data)
    • Polygon.io Backtesting
    • DataBento Backtesting
    • ThetaData Backtesting
    • Interactive Brokers (REST) Backtesting
    • Tearsheet HTML
    • Trades Files
    • Indicators Files
    • Logs CSV
  • Brokers
    • Alpaca
    • Bitunix
    • Crypto Brokers (Using CCXT)
      • Coinbase Crypto Broker
      • Kraken Crypto Broker
      • WEEX Crypto Broker
      • KuCoin CCXT Configuration
      • Binance CCXT Configuration
      • BitMEX CCXT Configuration
      • Bybit CCXT Backtesting
      • OKX CCXT Backtesting
    • Interactive Brokers
    • Interactive Brokers Legacy
    • ProjectX / TopstepX
    • Schwab
    • Tradier
    • Tradovate
  • Reference
    • Variable Backup & Restore
    • Futures Trading
    • Smart Limit Orders
    • OptionsHelper
    • Environment Variables
  • Code Examples
  • Deployment Guide
  • Common Mistakes and How to Avoid Them
  • Frequently Asked Questions (FAQ)
  • Get Pre-Built Strategies
Back to top
Copyright © 2021, Lumiwealth
Made with Sphinx and @pradyunsg's Furo
Last updated on May 13, 2026