diff --git a/docs/_sources/brokers.interactive_brokers.rst.txt b/docs/_sources/brokers.interactive_brokers.rst.txt index 2e098410f..b13605583 100644 --- a/docs/_sources/brokers.interactive_brokers.rst.txt +++ b/docs/_sources/brokers.interactive_brokers.rst.txt @@ -1,14 +1,14 @@ Interactive Brokers =================== -Interactive Brokers is a brokerage firm that operates in most countries around the world. This makes it a great choice for investing and trading if you don't have access to our other supported platforms. +Interactive Brokers is a brokerage firm that operates in most countries around the world. It's a great choice for investing and trading, especially if you don't have access to other supported platforms. -**Note:** If you do have access to other supported brokers, compare their fee structures to see which one is the best deal for you. +**Note:** If you have access to other supported brokers, compare their fee structures to see which one offers the best deal for you. Market Data Subscriptions ------------------------- -To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various market data subscriptions depending on the exchanges and types of data you need. Here are some common subscriptions: +To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various subscriptions depending on the exchanges and types of data you need. Here are some common options: - **US Securities Snapshot and Futures Value Bundle** - **US Equity and Options Add-On Streaming Bundle** @@ -18,83 +18,87 @@ To access real-time market data, you need to subscribe to the appropriate market .. note:: - Different strategies may require different market data subscriptions. For our top options-related strategies, the OPRA (US Options Exchanges) should suffice. + Different strategies may require different market data subscriptions. For top options-related strategies, the **OPRA (US Options Exchanges)** subscription should suffice. **To subscribe to market data:** +.. important:: + Market data subscriptions are login-specific. Ensure you're logged in with the same credentials you plan to use with Lumibot before proceeding. + 1. Log in to the `IBKR Client Portal `_. 2. Navigate to the **Settings** menu. -.. image:: images/ib-main.png - :alt: IB Main Menu - :align: center - :class: with-border + .. image:: images/ib-main.png + :alt: IB Main Menu + :align: center 3. Under **Account Settings**, find the **Market Data Subscriptions** section. -.. image:: images/ib-settings.png - :alt: IB Settings - :align: center - :class: with-border + .. image:: images/ib-settings.png + :alt: IB Settings + :align: center 4. Click **Configure** and select the desired market data packages. -.. image:: images/ib-market-data-subscriptions.png - :alt: IB Market Data Subscriptions - :align: center - :class: with-border + .. image:: images/ib-market-data-subscriptions.png + :alt: IB Market Data Subscriptions + :align: center -5. Find your desired subscription +5. Find your desired subscription. 6. Follow the prompts to complete the subscription process. -**Note:** Market data subscriptions may incur additional fees. Be sure to review the costs associated with each package before subscribing. +**Note:** Market data subscriptions may incur additional fees. Review the costs associated with each package before subscribing. -Using a Paper Trading Account ------------------------------ +Two-Factor Authentication (2FA) +------------------------------- -When using a paper trading account, you should log in with your paper trading username and password. This allows you to practice trading without risking real money. +Interactive Brokers requires two-factor authentication (2FA) for account security. When using Lumibot, you'll receive 2FA notifications through the IB Key mobile app, which require manual approval. This can interrupt automated trading operations. -**Steps to get your paper trading username and password:** +**Important:** Automated handling of 2FA is not currently supported in Lumibot. -1. **Log in** to the **IBKR Client Portal** using your primary (live) account credentials. -2. Navigate to the **Settings** menu in the upper right corner. -3. Under **Account Settings**, find the **Paper Trading Account** section. -4. Click on **Configure** or **Request Paper Trading Account**. -5. Follow the prompts to set up your paper trading account. - - You may need to agree to terms and conditions. -6. Once the setup is complete, you'll receive a separate **username** and **password** for your paper trading account. -7. Use these credentials when logging into the paper trading environment and configuring your API connection. +**Possible Solution: Create a Secondary Username** -**Note:** The paper trading account is separate from your live account. Ensure you're using the correct credentials for each environment to avoid any login conflicts. +To enable fully automated trading, you can create a secondary username for your account that doesn't require 2FA. This approach is secure and convenient: + +- The primary account maintains full 2FA security for website access. +- The secondary account, used only for API connections, can operate without 2FA. +- Both accounts have separate access controls you can configure. -Automating Two-Factor Authentication ------------------------------------- +.. note:: -Currently, automating two-factor authentication (2FA) is not supported. Lumibot will send you 2FA notifications through IBKey, and you will need to respond to them manually. + When using a secondary account without 2FA: -Using a Secondary Account -------------------------- + - You'll need separate market data subscriptions for each user. + - If trading with both primary and secondary users, you'll pay for market data twice. + - Enhance security by: + - Setting a complex password. + - Restricting IP addresses for TWS/IBGateway access. + - Limiting the account's permissions to only what's needed. + - Keeping API connection details secure. + +See the **Using a Secondary Username** section below for detailed setup instructions. + +Using a Secondary Username +-------------------------- -Interactive Brokers only allows a single login at a time for any given set of credentials. This means you can't use the IBKR website while the API connection is running. If you try, it will disconnect the API connection, causing a re-authentication loop. +Interactive Brokers allows only one login at a time for any given set of credentials. Attempting to use the IBKR website while the API connection is running will disconnect the API connection, causing a re-authentication loop. -An easy solution is to stop the API connection before using the website, but that can be tedious. A more convenient solution is to create a **secondary username** for your account and use that for the API connection. +An easy solution is to stop the API connection before using the website, but this can be tedious. A more convenient solution is to create a **secondary username** for your account and use that for the API connection. **Steps to create a secondary username:** -1. **Log in** to the **IBKR Client Portal** with your primary username. +1. Log in to the **IBKR Client Portal** with your primary username. 2. Click on the **Settings** menu in the upper right corner. -3. Scroll to the bottom-left of the page and find the **Users & Access Rights** link. - - You may need to scroll down to see it. +3. Scroll down and find the **Users & Access Rights** link. 4. Click the **plus sign (+)** button in the **Users** header to add a new user. 5. Fill out the username and password fields for the new user. 6. Click through the settings pages, adjusting notifications and permissions as needed. - - Feel free to disable unnecessary notifications to avoid duplicate emails. 7. At the end of the process, you'll receive an email with a **confirmation code**. **Activating your secondary username:** 1. Log out and log back in using the **new secondary username and password**. -2. Enter the **confirmation code** you received via email. +2. Enter the **confirmation code** received via email. - **Note:** The code expires quickly, so act promptly. 3. You may be prompted to **change the password** for the secondary user. @@ -107,7 +111,24 @@ An easy solution is to stop the API connection before using the website, but tha - You'll see an EULA and a signature block. - Type your **name** (not the new user's name) and click **Submit**. -After completing these steps, your secondary credentials will be ready to use with the API connection. In the future, use your **primary credentials** on the website and the **secondary credentials** for the API connection. +After completing these steps, your secondary credentials will be ready to use with the API connection. Use your **primary credentials** on the website and the **secondary credentials** for the API connection. + +Using a Paper Trading Account +----------------------------- + +When using a paper trading account, log in with your paper trading username and password. This allows you to practice trading without risking real money. + +**Steps to get your paper trading username and password:** + +1. Log in to the **IBKR Client Portal** using your primary (live) account credentials. +2. Navigate to the **Settings** menu in the upper right corner. +3. Under **Account Settings**, find the **Paper Trading Account** section. +4. Click on **Configure** or **Request Paper Trading Account**. +5. Follow the prompts to set up your paper trading account. +6. Once the setup is complete, you'll receive a separate **username** and **password** for your paper trading account. +7. Use these credentials when logging into the paper trading environment and configuring your API connection. + +**Note:** The paper trading account is separate from your live account. Ensure you're using the correct credentials for each environment to avoid any login conflicts. Strategy Setup -------------- @@ -121,16 +142,16 @@ Add these variables to a `.env` file in the same directory as your strategy: * - **Secret** - **Description** - **Example** - * - IB_USERNAME + * - `IB_USERNAME` - Your Interactive Brokers username. - `user123` - * - IB_PASSWORD + * - `IB_PASSWORD` - Your Interactive Brokers password. - `password123` - * - ACCOUNT_ID + * - `ACCOUNT_ID` - (Optional) An Interactive Brokers subaccount to trade on. - `U17369206` - * - IB_API_URL + * - `IB_API_URL` - (Optional) The URL of your self-hosted Interactive Brokers REST API. - `https://localhost:8000` @@ -139,12 +160,10 @@ Example Strategy .. code-block:: python - from lumibot.traders import Trader - # We will get your credentials from the .env file - from lumibot.strategies.examples import Strangle - - trader = Trader() + from lumibot.traders import Trader + from lumibot.strategies.examples import Strangle - strategy = Strangle() - trader.add_strategy(strategy) - trader.run_all() \ No newline at end of file + trader = Trader() + strategy = Strangle() + trader.add_strategy(strategy) + trader.run_all() diff --git a/docs/brokers.html b/docs/brokers.html index 983f4592f..ee2f8cbee 100644 --- a/docs/brokers.html +++ b/docs/brokers.html @@ -428,9 +428,9 @@

Brokers
  • Interactive Brokers diff --git a/docs/brokers.interactive_brokers.html b/docs/brokers.interactive_brokers.html index 6361ba777..6d831c481 100644 --- a/docs/brokers.interactive_brokers.html +++ b/docs/brokers.interactive_brokers.html @@ -418,11 +418,11 @@
    Need Extra Help?

    Interactive Brokers

    -

    Interactive Brokers is a brokerage firm that operates in most countries around the world. This makes it a great choice for investing and trading if you don’t have access to our other supported platforms.

    -

    Note: If you do have access to other supported brokers, compare their fee structures to see which one is the best deal for you.

    +

    Interactive Brokers is a brokerage firm that operates in most countries around the world. It’s a great choice for investing and trading, especially if you don’t have access to other supported platforms.

    +

    Note: If you have access to other supported brokers, compare their fee structures to see which one offers the best deal for you.

    Market Data Subscriptions

    -

    To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various market data subscriptions depending on the exchanges and types of data you need. Here are some common subscriptions:

    +

    To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various subscriptions depending on the exchanges and types of data you need. Here are some common options:

    -
    -

    Using a Paper Trading Account

    -

    When using a paper trading account, you should log in with your paper trading username and password. This allows you to practice trading without risking real money.

    -

    Steps to get your paper trading username and password:

    -
      -
    1. Log in to the IBKR Client Portal using your primary (live) account credentials.

    2. -
    3. Navigate to the Settings menu in the upper right corner.

    4. -
    5. Under Account Settings, find the Paper Trading Account section.

    6. -
    7. Click on Configure or Request Paper Trading Account.

    8. -
    9. Follow the prompts to set up your paper trading account.

    10. -
    -
    -
      -
    • You may need to agree to terms and conditions.

    • +
      +

      Two-Factor Authentication (2FA)

      +

      Interactive Brokers requires two-factor authentication (2FA) for account security. When using Lumibot, you’ll receive 2FA notifications through the IB Key mobile app, which require manual approval. This can interrupt automated trading operations.

      +

      Important: Automated handling of 2FA is not currently supported in Lumibot.

      +

      Possible Solution: Create a Secondary Username

      +

      To enable fully automated trading, you can create a secondary username for your account that doesn’t require 2FA. This approach is secure and convenient:

      +
        +
      • The primary account maintains full 2FA security for website access.

      • +
      • The secondary account, used only for API connections, can operate without 2FA.

      • +
      • Both accounts have separate access controls you can configure.

      -
    -
      -
    1. Once the setup is complete, you’ll receive a separate username and password for your paper trading account.

    2. -
    3. Use these credentials when logging into the paper trading environment and configuring your API connection.

    4. -
    -

    Note: The paper trading account is separate from your live account. Ensure you’re using the correct credentials for each environment to avoid any login conflicts.

    -
    -
    -

    Automating Two-Factor Authentication

    -

    Currently, automating two-factor authentication (2FA) is not supported. Lumibot will send you 2FA notifications through IBKey, and you will need to respond to them manually.

    +
    +

    Note

    +

    When using a secondary account without 2FA:

    +
      +
    • You’ll need separate market data subscriptions for each user.

    • +
    • If trading with both primary and secondary users, you’ll pay for market data twice.

    • +
    • Enhance security by: +- Setting a complex password. +- Restricting IP addresses for TWS/IBGateway access. +- Limiting the account’s permissions to only what’s needed. +- Keeping API connection details secure.

    • +
    +
    +

    See the Using a Secondary Username section below for detailed setup instructions.

    -
    -

    Using a Secondary Account

    -

    Interactive Brokers only allows a single login at a time for any given set of credentials. This means you can’t use the IBKR website while the API connection is running. If you try, it will disconnect the API connection, causing a re-authentication loop.

    -

    An easy solution is to stop the API connection before using the website, but that can be tedious. A more convenient solution is to create a secondary username for your account and use that for the API connection.

    +
    +

    Using a Secondary Username

    +

    Interactive Brokers allows only one login at a time for any given set of credentials. Attempting to use the IBKR website while the API connection is running will disconnect the API connection, causing a re-authentication loop.

    +

    An easy solution is to stop the API connection before using the website, but this can be tedious. A more convenient solution is to create a secondary username for your account and use that for the API connection.

    Steps to create a secondary username:

      -
    1. Log in to the IBKR Client Portal with your primary username.

    2. +
    3. Log in to the IBKR Client Portal with your primary username.

    4. Click on the Settings menu in the upper right corner.

    5. -
    6. Scroll to the bottom-left of the page and find the Users & Access Rights link.

    7. -
    -
    -
      -
    • You may need to scroll down to see it.

    • -
    -
    -
      +
    1. Scroll down and find the Users & Access Rights link.

    2. Click the plus sign (+) button in the Users header to add a new user.

    3. Fill out the username and password fields for the new user.

    4. Click through the settings pages, adjusting notifications and permissions as needed.

    5. -
    -
    -
      -
    • Feel free to disable unnecessary notifications to avoid duplicate emails.

    • -
    -
    -
    1. At the end of the process, you’ll receive an email with a confirmation code.

    Activating your secondary username:

    1. Log out and log back in using the new secondary username and password.

    2. -
    3. Enter the confirmation code you received via email.

    4. +
    5. Enter the confirmation code received via email.

      @@ -530,7 +526,22 @@

      Using a Secondary Account +

      Using a Paper Trading Account

      +

      When using a paper trading account, log in with your paper trading username and password. This allows you to practice trading without risking real money.

      +

      Steps to get your paper trading username and password:

      +
        +
      1. Log in to the IBKR Client Portal using your primary (live) account credentials.

      2. +
      3. Navigate to the Settings menu in the upper right corner.

      4. +
      5. Under Account Settings, find the Paper Trading Account section.

      6. +
      7. Click on Configure or Request Paper Trading Account.

      8. +
      9. Follow the prompts to set up your paper trading account.

      10. +
      11. Once the setup is complete, you’ll receive a separate username and password for your paper trading account.

      12. +
      13. Use these credentials when logging into the paper trading environment and configuring your API connection.

      14. +
      +

      Note: The paper trading account is separate from your live account. Ensure you’re using the correct credentials for each environment to avoid any login conflicts.

    Strategy Setup

    @@ -550,19 +561,19 @@

    Strategy Setup

    IB_USERNAME

    +

    IB_USERNAME

    Your Interactive Brokers username.

    user123

    -

    IB_PASSWORD

    +

    IB_PASSWORD

    Your Interactive Brokers password.

    password123

    -

    ACCOUNT_ID

    +

    ACCOUNT_ID

    (Optional) An Interactive Brokers subaccount to trade on.

    U17369206

    -

    IB_API_URL

    +

    IB_API_URL

    (Optional) The URL of your self-hosted Interactive Brokers REST API.

    https://localhost:8000

    @@ -573,11 +584,9 @@

    Strategy Setup

    Example Strategy

    from lumibot.traders import Trader
    -# We will get your credentials from the .env file
     from lumibot.strategies.examples import Strangle
     
     trader = Trader()
    -
     strategy = Strangle()
     trader.add_strategy(strategy)
     trader.run_all()
    @@ -643,9 +652,9 @@ 

    Example StrategyInteractive Brokers diff --git a/docs/index.html b/docs/index.html index dd9d46bd2..63a7de16d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1022,9 +1022,9 @@

    Table of ContentsInteractive Brokers diff --git a/docs/searchindex.js b/docs/searchindex.js index 5877cc04c..0487bd533 100644 --- a/docs/searchindex.js +++ b/docs/searchindex.js @@ -1 +1 @@ -Search.setIndex({"alltitles": {"Account Management": [[48, null]], "Adding Trading Fees": [[25, "adding-trading-fees"]], "Additional Resources": [[26, "additional-resources"]], "Advanced Order Types": [[22, "advanced-order-types"]], "All Together": [[26, "all-together"]], "Alpaca": [[12, null]], "Alpaca Configuration": [[17, "alpaca-configuration"], [17, "id22"]], "Asset": [[19, null]], "Automating Two-Factor Authentication": [[14, "automating-two-factor-authentication"]], "Backtesting": [[0, null], [43, null]], "Backtesting Broker": [[43, "module-lumibot.backtesting.backtesting_broker"]], "Backtesting Function": [[1, null]], "Bars": [[20, null]], "Benefits of self.vars": [[196, "benefits-of-self-vars"]], "Broker Configuration": [[17, "broker-configuration"]], "Brokers": [[11, null]], "Chart Functions": [[61, null]], "Choosing Your Deployment Platform": [[17, "id1"]], "Choosing a Data Source": [[2, "choosing-a-data-source"]], "Coinbase Configuration": [[17, "coinbase-configuration"], [17, "id23"]], "Conclusion": [[2, "conclusion"], [17, "conclusion"]], "Configuration": [[16, "configuration"]], "Configuration Settings": [[13, "configuration-settings"]], "Contents:": [[0, null], [11, null], [18, null], [27, null], [47, null]], "Crypto Brokers (Using CCXT)": [[13, null]], "Data": [[21, null], [70, null]], "Data Source": [[44, "module-lumibot.data_sources.data_source"]], "Data Source Backtesting": [[43, "module-lumibot.data_sources.data_source_backtesting"]], "Data Sources": [[44, null]], "Database Configuration": [[196, "database-configuration"]], "Database Storage Structure": [[196, "database-storage-structure"]], "DateTime": [[82, null]], "Deploying to Render": [[17, "id2"]], "Deploying to Replit": [[17, "id3"]], "Deployment Guide": [[17, null]], "Documentation": [[12, "module-lumibot.brokers.alpaca"], [19, "module-entities.asset"], [20, "module-entities.bars"], [22, "module-entities.order"], [45, "module-lumibot.strategies.strategy.Strategy"]], "Entities": [[18, null]], "Example Dataframe": [[5, "id1"]], "Example Strategy": [[14, "example-strategy"]], "Example Strategy for Deployment": [[17, "example-strategy-for-deployment"]], "Files Generated from Backtesting": [[0, "files-generated-from-backtesting"], [2, "files-generated-from-backtesting"]], "Final Steps": [[17, "final-steps"]], "Full Example Strategy": [[13, "full-example-strategy"], [16, "full-example-strategy"]], "General Environment Variables": [[17, "general-environment-variables"], [17, "id27"]], "Getting Started": [[16, "getting-started"], [26, "getting-started"]], "Getting Started With Lumibot": [[25, "getting-started-with-lumibot"]], "How It Works": [[196, "how-it-works"]], "How To Backtest": [[2, null]], "In Summary": [[5, "in-summary"]], "Indicators Files": [[2, "indicators-files"], [3, null]], "Indices and tables": [[26, "indices-and-tables"]], "Installing LumiBot": [[2, "installing-lumibot"]], "Interactive Brokers": [[14, null]], "Interactive Brokers Configuration": [[14, "id1"], [17, "interactive-brokers-configuration"], [17, "id25"]], "Interactive Brokers Legacy": [[15, null]], "Interactive Brokers-Legacy Configuration": [[17, "interactive-brokers-legacy-configuration"], [17, "id26"]], "Kraken Configuration": [[17, "kraken-configuration"], [17, "id24"]], "Lifecycle Methods": [[27, null]], "Logs CSV": [[4, null]], "Lumibot: Backtesting and Algorithmic Trading Library": [[26, null]], "Lumiwealth": [[25, "id1"]], "Market Data Subscriptions": [[14, "market-data-subscriptions"]], "Miscellaneous": [[101, null]], "Module contents": [[44, "module-lumibot.data_sources"]], "Need Extra Help?": [[26, "need-extra-help"]], "Options": [[124, null]], "Order": [[22, null]], "Order Management": [[142, null]], "Order With Legs": [[22, "order-with-legs"]], "Pandas": [[44, "module-lumibot.data_sources.pandas_data"]], "Pandas (CSV or other data)": [[5, null]], "Parameters": [[165, null]], "Polygon.io Backtesting": [[6, null]], "Position": [[23, null]], "Profiling to Improve Performance": [[25, "profiling-to-improve-performance"]], "Reference": [[28, "reference"], [29, "reference"], [30, "reference"], [31, "reference"], [32, "reference"], [33, "reference"], [34, "reference"], [35, "reference"], [36, "reference"], [37, "reference"], [38, "reference"], [39, "reference"], [40, "reference"], [42, "reference"]], "Running Your Strategy": [[13, "running-your-strategy"], [16, "running-your-strategy"]], "Running a Backtest with Polygon.io": [[2, "running-a-backtest-with-polygon-io"]], "Secrets Configuration": [[17, "secrets-configuration"]], "Step 1: Install Lumibot": [[26, "step-1-install-lumibot"]], "Step 1: Install the Package": [[25, "step-1-install-the-package"]], "Step 2: Create a Strategy for Backtesting": [[26, "step-2-create-a-strategy-for-backtesting"]], "Step 2: Import the Following Modules": [[25, "step-2-import-the-following-modules"]], "Step 3: Create an Alpaca Paper Trading Account": [[25, "step-3-create-an-alpaca-paper-trading-account"]], "Step 3: Take Your Bot Live": [[26, "step-3-take-your-bot-live"]], "Step 4: Configure Your API Keys": [[25, "step-4-configure-your-api-keys"]], "Step 5: Create a Strategy Class": [[25, "step-5-create-a-strategy-class"]], "Step 6: Instantiate the Trader, Alpaca, and Strategy Classes": [[25, "step-6-instantiate-the-trader-alpaca-and-strategy-classes"]], "Step 7: Backtest the Strategy (Optional)": [[25, "step-7-backtest-the-strategy-optional"]], "Step 8: Run the Strategy": [[25, "step-8-run-the-strategy"]], "Strategies": [[45, null]], "Strategy Methods": [[47, null]], "Strategy Properties": [[166, null]], "Strategy Setup": [[14, "strategy-setup"]], "Summary": [[41, null]], "Table of Contents": [[26, "table-of-contents"]], "Tearsheet HTML": [[2, "tearsheet-html"], [7, null]], "ThetaData Backtesting": [[8, null]], "Trader": [[46, "module-lumibot.traders.trader"]], "Traders": [[46, null]], "Trades Files": [[2, "trades-files"], [9, null]], "Tradier": [[16, null]], "Tradier Configuration": [[17, "tradier-configuration"], [17, "id21"]], "Trading Fee": [[24, null]], "Usage Guide": [[196, "usage-guide"]], "Using a Paper Trading Account": [[14, "using-a-paper-trading-account"]], "Using a Secondary Account": [[14, "using-a-secondary-account"]], "Variable Backup & Restore": [[196, null]], "What is Lumibot?": [[25, null]], "Yahoo": [[10, null], [44, "module-lumibot.data_sources.yahoo_data"]], "def after_market_closes": [[28, null]], "def before_market_closes": [[29, null]], "def before_market_opens": [[30, null]], "def before_starting_trading": [[31, null]], "def initialize": [[32, null]], "def on_abrupt_closing": [[33, null]], "def on_bot_crash": [[34, null]], "def on_canceled_order": [[35, null]], "def on_filled_order": [[36, null]], "def on_new_order": [[37, null]], "def on_parameters_updated": [[38, null]], "def on_partially_filled_order": [[39, null]], "def on_trading_iteration": [[40, null]], "def trace_stats": [[42, null]], "self.add_line": [[62, null], [66, null]], "self.add_marker": [[63, null], [67, null]], "self.await_market_to_close": [[102, null], [113, null]], "self.await_market_to_open": [[103, null], [114, null]], "self.cancel_open_orders": [[143, null], [154, null]], "self.cancel_order": [[144, null], [155, null]], "self.cancel_orders": [[145, null], [156, null]], "self.cancel_realtime_bars": [[71, null]], "self.cash": [[167, null], [182, null]], "self.create_order": [[146, null], [157, null]], "self.first_iteration": [[168, null], [183, null]], "self.get_asset_potential_total": [[147, null], [158, null]], "self.get_cash": [[49, null], [55, null]], "self.get_chain": [[125, null], [133, null]], "self.get_chains": [[126, null], [134, null]], "self.get_datetime": [[83, null], [92, null]], "self.get_datetime_range": [[84, null], [93, null]], "self.get_expiration": [[127, null], [135, null]], "self.get_greeks": [[128, null], [136, null]], "self.get_historical_prices": [[72, null]], "self.get_historical_prices_for_assets": [[73, null]], "self.get_last_day": [[85, null], [94, null]], "self.get_last_minute": [[86, null], [95, null]], "self.get_last_price": [[74, null]], "self.get_last_prices": [[75, null]], "self.get_lines_df": [[64, null], [68, null]], "self.get_markers_df": [[65, null], [69, null]], "self.get_multiplier": [[129, null], [137, null]], "self.get_next_trading_day": [[76, null], [130, null], [138, null]], "self.get_option_expiration_after_date": [[139, null]], "self.get_order": [[148, null], [159, null]], "self.get_orders": [[149, null], [160, null]], "self.get_parameters": [[50, null], [56, null], [104, null], [115, null]], "self.get_portfolio_value": [[51, null], [57, null]], "self.get_position": [[52, null], [58, null]], "self.get_positions": [[53, null], [59, null]], "self.get_quote": [[77, null]], "self.get_realtime_bars": [[78, null]], "self.get_round_day": [[87, null], [96, null]], "self.get_round_minute": [[88, null], [97, null]], "self.get_selling_order": [[150, null], [161, null]], "self.get_strikes": [[131, null], [140, null]], "self.get_timestamp": [[89, null], [98, null]], "self.get_yesterday_dividend": [[79, null]], "self.get_yesterday_dividends": [[80, null]], "self.initial_budget": [[169, null], [184, null]], "self.is_backtesting": [[170, null], [185, null]], "self.last_on_trading_iteration_datetime": [[171, null], [186, null]], "self.localize_datetime": [[90, null], [99, null]], "self.log_message": [[105, null], [116, null]], "self.minutes_before_closing": [[172, null], [187, null]], "self.minutes_before_opening": [[173, null], [188, null]], "self.name": [[174, null], [189, null]], "self.options_expiry_to_datetime_date": [[132, null], [141, null]], "self.portfolio_value": [[175, null], [190, null]], "self.pytz": [[176, null], [181, null], [191, null]], "self.quote_asset": [[177, null], [192, null]], "self.sell_all": [[151, null], [162, null]], "self.set_market": [[106, null], [117, null]], "self.set_parameters": [[54, null], [60, null]], "self.sleep": [[107, null], [118, null]], "self.sleeptime": [[178, null], [193, null]], "self.start_realtime_bars": [[81, null]], "self.submit_order": [[152, null], [163, null]], "self.submit_orders": [[153, null], [164, null]], "self.timezone": [[179, null], [194, null]], "self.to_default_timezone": [[91, null], [100, null]], "self.unspent_money": [[180, null], [195, null]], "self.update_parameters": [[108, null], [119, null]], "self.wait_for_order_execution": [[109, null], [120, null]], "self.wait_for_order_registration": [[110, null], [121, null]], "self.wait_for_orders_execution": [[111, null], [122, null]], "self.wait_for_orders_registration": [[112, null], [123, null]]}, "docnames": ["backtesting", "backtesting.backtesting_function", "backtesting.how_to_backtest", "backtesting.indicators_files", "backtesting.logs_csv", "backtesting.pandas", "backtesting.polygon", "backtesting.tearsheet_html", "backtesting.thetadata", "backtesting.trades_files", "backtesting.yahoo", "brokers", "brokers.alpaca", "brokers.ccxt", "brokers.interactive_brokers", "brokers.interactive_brokers_legacy", "brokers.tradier", "deployment", "entities", "entities.asset", "entities.bars", "entities.data", "entities.order", "entities.position", "entities.trading_fee", "getting_started", "index", "lifecycle_methods", "lifecycle_methods.after_market_closes", "lifecycle_methods.before_market_closes", "lifecycle_methods.before_market_opens", "lifecycle_methods.before_starting_trading", "lifecycle_methods.initialize", "lifecycle_methods.on_abrupt_closing", "lifecycle_methods.on_bot_crash", "lifecycle_methods.on_canceled_order", "lifecycle_methods.on_filled_order", "lifecycle_methods.on_new_order", "lifecycle_methods.on_parameters_updated", "lifecycle_methods.on_partially_filled_order", "lifecycle_methods.on_trading_iteration", "lifecycle_methods.summary", "lifecycle_methods.trace_stats", "lumibot.backtesting", "lumibot.data_sources", "lumibot.strategies", "lumibot.traders", "strategy_methods", "strategy_methods.account", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_cash", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_parameters", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_portfolio_value", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_position", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_positions", "strategy_methods.account/lumibot.strategies.strategy.Strategy.set_parameters", "strategy_methods.account/strategies.strategy.Strategy.get_cash", "strategy_methods.account/strategies.strategy.Strategy.get_parameters", "strategy_methods.account/strategies.strategy.Strategy.get_portfolio_value", "strategy_methods.account/strategies.strategy.Strategy.get_position", "strategy_methods.account/strategies.strategy.Strategy.get_positions", "strategy_methods.account/strategies.strategy.Strategy.set_parameters", "strategy_methods.chart", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_line", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_marker", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_lines_df", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_markers_df", "strategy_methods.chart/strategies.strategy.Strategy.add_line", "strategy_methods.chart/strategies.strategy.Strategy.add_marker", "strategy_methods.chart/strategies.strategy.Strategy.get_lines_df", "strategy_methods.chart/strategies.strategy.Strategy.get_markers_df", "strategy_methods.data", "strategy_methods.data/lumibot.strategies.strategy.Strategy.cancel_realtime_bars", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_price", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_prices", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_quote", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_realtime_bars", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividend", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividends", "strategy_methods.data/lumibot.strategies.strategy.Strategy.start_realtime_bars", "strategy_methods.datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime_range", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_day", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_minute", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_day", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_minute", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_timestamp", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.localize_datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.to_default_timezone", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime_range", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_day", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_minute", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_day", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_minute", "strategy_methods.datetime/strategies.strategy.Strategy.get_timestamp", "strategy_methods.datetime/strategies.strategy.Strategy.localize_datetime", "strategy_methods.datetime/strategies.strategy.Strategy.to_default_timezone", "strategy_methods.misc", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_close", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_open", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.get_parameters", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.log_message", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.set_market", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.sleep", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.update_parameters", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_execution", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_registration", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_execution", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_registration", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_close", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_open", "strategy_methods.misc/strategies.strategy.Strategy.get_parameters", "strategy_methods.misc/strategies.strategy.Strategy.log_message", "strategy_methods.misc/strategies.strategy.Strategy.set_market", "strategy_methods.misc/strategies.strategy.Strategy.sleep", "strategy_methods.misc/strategies.strategy.Strategy.update_parameters", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_execution", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_registration", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_execution", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_registration", "strategy_methods.options", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chain", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chains", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_expiration", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_greeks", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_multiplier", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_strikes", "strategy_methods.options/lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", "strategy_methods.options/strategies.strategy.Strategy.get_chain", "strategy_methods.options/strategies.strategy.Strategy.get_chains", "strategy_methods.options/strategies.strategy.Strategy.get_expiration", "strategy_methods.options/strategies.strategy.Strategy.get_greeks", "strategy_methods.options/strategies.strategy.Strategy.get_multiplier", "strategy_methods.options/strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.options/strategies.strategy.Strategy.get_option_expiration_after_date", "strategy_methods.options/strategies.strategy.Strategy.get_strikes", "strategy_methods.options/strategies.strategy.Strategy.options_expiry_to_datetime_date", "strategy_methods.orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_open_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.create_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_asset_potential_total", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_selling_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.sell_all", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_orders", "strategy_methods.orders/strategies.strategy.Strategy.cancel_open_orders", "strategy_methods.orders/strategies.strategy.Strategy.cancel_order", "strategy_methods.orders/strategies.strategy.Strategy.cancel_orders", "strategy_methods.orders/strategies.strategy.Strategy.create_order", "strategy_methods.orders/strategies.strategy.Strategy.get_asset_potential_total", "strategy_methods.orders/strategies.strategy.Strategy.get_order", "strategy_methods.orders/strategies.strategy.Strategy.get_orders", "strategy_methods.orders/strategies.strategy.Strategy.get_selling_order", "strategy_methods.orders/strategies.strategy.Strategy.sell_all", "strategy_methods.orders/strategies.strategy.Strategy.submit_order", "strategy_methods.orders/strategies.strategy.Strategy.submit_orders", "strategy_methods.parameters", "strategy_properties", "strategy_properties/lumibot.strategies.strategy.Strategy.cash", "strategy_properties/lumibot.strategies.strategy.Strategy.first_iteration", "strategy_properties/lumibot.strategies.strategy.Strategy.initial_budget", "strategy_properties/lumibot.strategies.strategy.Strategy.is_backtesting", "strategy_properties/lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_closing", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_opening", "strategy_properties/lumibot.strategies.strategy.Strategy.name", "strategy_properties/lumibot.strategies.strategy.Strategy.portfolio_value", "strategy_properties/lumibot.strategies.strategy.Strategy.pytz", "strategy_properties/lumibot.strategies.strategy.Strategy.quote_asset", "strategy_properties/lumibot.strategies.strategy.Strategy.sleeptime", "strategy_properties/lumibot.strategies.strategy.Strategy.timezone", "strategy_properties/lumibot.strategies.strategy.Strategy.unspent_money", "strategy_properties/lumibot.strategies.strategy.pytz", "strategy_properties/strategies.strategy.Strategy.cash", "strategy_properties/strategies.strategy.Strategy.first_iteration", "strategy_properties/strategies.strategy.Strategy.initial_budget", "strategy_properties/strategies.strategy.Strategy.is_backtesting", "strategy_properties/strategies.strategy.Strategy.last_on_trading_iteration_datetime", "strategy_properties/strategies.strategy.Strategy.minutes_before_closing", "strategy_properties/strategies.strategy.Strategy.minutes_before_opening", "strategy_properties/strategies.strategy.Strategy.name", "strategy_properties/strategies.strategy.Strategy.portfolio_value", "strategy_properties/strategies.strategy.Strategy.pytz", "strategy_properties/strategies.strategy.Strategy.quote_asset", "strategy_properties/strategies.strategy.Strategy.sleeptime", "strategy_properties/strategies.strategy.Strategy.timezone", "strategy_properties/strategies.strategy.Strategy.unspent_money", "vars"], "envversion": {"sphinx": 64, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2}, "filenames": ["backtesting.rst", "backtesting.backtesting_function.rst", "backtesting.how_to_backtest.rst", "backtesting.indicators_files.rst", "backtesting.logs_csv.rst", "backtesting.pandas.rst", "backtesting.polygon.rst", "backtesting.tearsheet_html.rst", "backtesting.thetadata.rst", "backtesting.trades_files.rst", "backtesting.yahoo.rst", "brokers.rst", "brokers.alpaca.rst", "brokers.ccxt.rst", "brokers.interactive_brokers.rst", "brokers.interactive_brokers_legacy.rst", "brokers.tradier.rst", "deployment.rst", "entities.rst", "entities.asset.rst", "entities.bars.rst", "entities.data.rst", "entities.order.rst", "entities.position.rst", "entities.trading_fee.rst", "getting_started.rst", "index.rst", "lifecycle_methods.rst", "lifecycle_methods.after_market_closes.rst", "lifecycle_methods.before_market_closes.rst", "lifecycle_methods.before_market_opens.rst", "lifecycle_methods.before_starting_trading.rst", "lifecycle_methods.initialize.rst", "lifecycle_methods.on_abrupt_closing.rst", "lifecycle_methods.on_bot_crash.rst", "lifecycle_methods.on_canceled_order.rst", "lifecycle_methods.on_filled_order.rst", "lifecycle_methods.on_new_order.rst", "lifecycle_methods.on_parameters_updated.rst", "lifecycle_methods.on_partially_filled_order.rst", "lifecycle_methods.on_trading_iteration.rst", "lifecycle_methods.summary.rst", "lifecycle_methods.trace_stats.rst", "lumibot.backtesting.rst", "lumibot.data_sources.rst", "lumibot.strategies.rst", "lumibot.traders.rst", "strategy_methods.rst", "strategy_methods.account.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_cash.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_portfolio_value.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_position.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_positions.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.set_parameters.rst", "strategy_methods.account/strategies.strategy.Strategy.get_cash.rst", "strategy_methods.account/strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.account/strategies.strategy.Strategy.get_portfolio_value.rst", "strategy_methods.account/strategies.strategy.Strategy.get_position.rst", "strategy_methods.account/strategies.strategy.Strategy.get_positions.rst", "strategy_methods.account/strategies.strategy.Strategy.set_parameters.rst", "strategy_methods.chart.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_line.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_marker.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_lines_df.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_markers_df.rst", "strategy_methods.chart/strategies.strategy.Strategy.add_line.rst", "strategy_methods.chart/strategies.strategy.Strategy.add_marker.rst", "strategy_methods.chart/strategies.strategy.Strategy.get_lines_df.rst", "strategy_methods.chart/strategies.strategy.Strategy.get_markers_df.rst", "strategy_methods.data.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.cancel_realtime_bars.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_price.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_prices.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_quote.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_realtime_bars.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividend.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividends.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.start_realtime_bars.rst", "strategy_methods.datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime_range.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_day.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_minute.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_day.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_minute.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_timestamp.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.localize_datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.to_default_timezone.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime_range.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_day.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_minute.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_day.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_minute.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_timestamp.rst", "strategy_methods.datetime/strategies.strategy.Strategy.localize_datetime.rst", "strategy_methods.datetime/strategies.strategy.Strategy.to_default_timezone.rst", "strategy_methods.misc.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_close.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_open.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.log_message.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.set_market.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.sleep.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.update_parameters.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_execution.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_registration.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_execution.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_registration.rst", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_close.rst", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_open.rst", "strategy_methods.misc/strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.misc/strategies.strategy.Strategy.log_message.rst", "strategy_methods.misc/strategies.strategy.Strategy.set_market.rst", "strategy_methods.misc/strategies.strategy.Strategy.sleep.rst", "strategy_methods.misc/strategies.strategy.Strategy.update_parameters.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_execution.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_registration.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_execution.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_registration.rst", "strategy_methods.options.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chain.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chains.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_expiration.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_greeks.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_multiplier.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_strikes.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date.rst", "strategy_methods.options/strategies.strategy.Strategy.get_chain.rst", "strategy_methods.options/strategies.strategy.Strategy.get_chains.rst", "strategy_methods.options/strategies.strategy.Strategy.get_expiration.rst", "strategy_methods.options/strategies.strategy.Strategy.get_greeks.rst", "strategy_methods.options/strategies.strategy.Strategy.get_multiplier.rst", "strategy_methods.options/strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.options/strategies.strategy.Strategy.get_option_expiration_after_date.rst", "strategy_methods.options/strategies.strategy.Strategy.get_strikes.rst", "strategy_methods.options/strategies.strategy.Strategy.options_expiry_to_datetime_date.rst", "strategy_methods.orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_open_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.create_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_asset_potential_total.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_selling_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.sell_all.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_open_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.create_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_asset_potential_total.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_selling_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.sell_all.rst", "strategy_methods.orders/strategies.strategy.Strategy.submit_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.submit_orders.rst", "strategy_methods.parameters.rst", "strategy_properties.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.cash.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.first_iteration.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.initial_budget.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.is_backtesting.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_closing.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_opening.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.name.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.portfolio_value.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.pytz.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.quote_asset.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.sleeptime.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.timezone.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.unspent_money.rst", "strategy_properties/lumibot.strategies.strategy.pytz.rst", "strategy_properties/strategies.strategy.Strategy.cash.rst", "strategy_properties/strategies.strategy.Strategy.first_iteration.rst", "strategy_properties/strategies.strategy.Strategy.initial_budget.rst", "strategy_properties/strategies.strategy.Strategy.is_backtesting.rst", "strategy_properties/strategies.strategy.Strategy.last_on_trading_iteration_datetime.rst", "strategy_properties/strategies.strategy.Strategy.minutes_before_closing.rst", "strategy_properties/strategies.strategy.Strategy.minutes_before_opening.rst", "strategy_properties/strategies.strategy.Strategy.name.rst", "strategy_properties/strategies.strategy.Strategy.portfolio_value.rst", "strategy_properties/strategies.strategy.Strategy.pytz.rst", "strategy_properties/strategies.strategy.Strategy.quote_asset.rst", "strategy_properties/strategies.strategy.Strategy.sleeptime.rst", "strategy_properties/strategies.strategy.Strategy.timezone.rst", "strategy_properties/strategies.strategy.Strategy.unspent_money.rst", "vars.rst"], "indexentries": {"_asset_types (entities.asset.asset attribute)": [[19, "entities.asset.Asset._asset_types", false]], "_get_bars_dict() (entities.data.data method)": [[21, "entities.data.Data._get_bars_dict", false]], "_right (entities.asset.asset attribute)": [[19, "entities.asset.Asset._right", false]], "add_child_order() (entities.order.order method)": [[22, "entities.order.Order.add_child_order", false]], "add_line() (in module lumibot.strategies.strategy.strategy)": [[62, "lumibot.strategies.strategy.Strategy.add_line", false], [66, "lumibot.strategies.strategy.Strategy.add_line", false]], "add_marker() (in module lumibot.strategies.strategy.strategy)": [[63, "lumibot.strategies.strategy.Strategy.add_marker", false], [67, "lumibot.strategies.strategy.Strategy.add_marker", false]], "add_order() (entities.position.position method)": [[23, "entities.position.Position.add_order", false]], "add_strategy() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.add_strategy", false]], "add_transaction() (entities.order.order method)": [[22, "entities.order.Order.add_transaction", false]], "after_market_closes() (in module lumibot.strategies.strategy.strategy)": [[28, "lumibot.strategies.strategy.Strategy.after_market_closes", false]], "aggregate_bars() (entities.bars.bars method)": [[20, "entities.bars.Bars.aggregate_bars", false], [20, "id0", false]], "alpaca (class in lumibot.brokers.alpaca)": [[12, "lumibot.brokers.alpaca.Alpaca", false]], "api (lumibot.brokers.alpaca.alpaca attribute)": [[12, "lumibot.brokers.alpaca.Alpaca.api", false]], "asset (class in entities.asset)": [[19, "entities.asset.Asset", false]], "asset (entities.data.data attribute)": [[21, "entities.data.Data.asset", false]], "asset (entities.position.position attribute)": [[23, "entities.position.Position.asset", false]], "asset.assettype (class in entities.asset)": [[19, "entities.asset.Asset.AssetType", false]], "asset.optionright (class in entities.asset)": [[19, "entities.asset.Asset.OptionRight", false]], "asset_type (entities.asset.asset attribute)": [[19, "entities.asset.Asset.asset_type", false], [19, "id0", false]], "asset_type_map (lumibot.brokers.alpaca.alpaca attribute)": [[12, "lumibot.brokers.alpaca.Alpaca.ASSET_TYPE_MAP", false]], "asset_type_must_be_one_of() (entities.asset.asset method)": [[19, "entities.asset.Asset.asset_type_must_be_one_of", false], [19, "id1", false]], "assetsmapping (class in entities.asset)": [[19, "entities.asset.AssetsMapping", false]], "available (entities.position.position attribute)": [[23, "entities.position.Position.available", false]], "available (entities.position.position property)": [[23, "id0", false]], "avg_fill_price (entities.order.order property)": [[22, "entities.order.Order.avg_fill_price", false]], "avg_fill_price (entities.position.position attribute)": [[23, "entities.position.Position.avg_fill_price", false]], "await_market_to_close() (in module lumibot.strategies.strategy.strategy)": [[102, "lumibot.strategies.strategy.Strategy.await_market_to_close", false], [113, "lumibot.strategies.strategy.Strategy.await_market_to_close", false]], "await_market_to_open() (in module lumibot.strategies.strategy.strategy)": [[103, "lumibot.strategies.strategy.Strategy.await_market_to_open", false], [114, "lumibot.strategies.strategy.Strategy.await_market_to_open", false]], "backtestingbroker (class in lumibot.backtesting.backtesting_broker)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker", false]], "bars (class in entities.bars)": [[20, "entities.bars.Bars", false]], "before_market_closes() (in module lumibot.strategies.strategy.strategy)": [[29, "lumibot.strategies.strategy.Strategy.before_market_closes", false]], "before_market_opens() (in module lumibot.strategies.strategy.strategy)": [[30, "lumibot.strategies.strategy.Strategy.before_market_opens", false]], "before_starting_trading() (in module lumibot.strategies.strategy.strategy)": [[31, "lumibot.strategies.strategy.Strategy.before_starting_trading", false]], "bracket (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.BRACKET", false]], "bracket (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.BRACKET", false]], "buy (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY", false]], "buy_to_close (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_CLOSE", false]], "buy_to_cover (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_COVER", false]], "buy_to_open (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_OPEN", false]], "calculate_greeks() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.calculate_greeks", false]], "calculate_trade_cost() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.calculate_trade_cost", false]], "call (entities.asset.asset.optionright attribute)": [[19, "entities.asset.Asset.OptionRight.CALL", false]], "cancel_open_orders() (in module lumibot.strategies.strategy.strategy)": [[143, "lumibot.strategies.strategy.Strategy.cancel_open_orders", false], [154, "lumibot.strategies.strategy.Strategy.cancel_open_orders", false]], "cancel_order() (in module lumibot.strategies.strategy.strategy)": [[144, "lumibot.strategies.strategy.Strategy.cancel_order", false], [155, "lumibot.strategies.strategy.Strategy.cancel_order", false]], "cancel_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.cancel_order", false]], "cancel_order() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.cancel_order", false]], "cancel_orders() (in module lumibot.strategies.strategy.strategy)": [[145, "lumibot.strategies.strategy.Strategy.cancel_orders", false], [156, "lumibot.strategies.strategy.Strategy.cancel_orders", false]], "cancel_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[71, "lumibot.strategies.strategy.Strategy.cancel_realtime_bars", false]], "canceled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CANCELED", false]], "cancelling (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CANCELLING", false]], "cash (lumibot.strategies.strategy.strategy property)": [[167, "lumibot.strategies.strategy.Strategy.cash", false], [182, "lumibot.strategies.strategy.Strategy.cash", false]], "cash_pending() (entities.order.order method)": [[22, "entities.order.Order.cash_pending", false]], "cash_settle_options_contract() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.cash_settle_options_contract", false]], "cash_settled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CASH_SETTLED", false]], "check_data() (entities.data.data method)": [[21, "entities.data.Data.check_data", false], [21, "id0", false]], "clean_trading_times() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.clean_trading_times", false]], "columns() (entities.data.data method)": [[21, "entities.data.Data.columns", false], [21, "id1", false]], "convert_timestep_str_to_timedelta() (lumibot.data_sources.data_source.datasource static method)": [[44, "lumibot.data_sources.data_source.DataSource.convert_timestep_str_to_timedelta", false]], "create_order() (in module lumibot.strategies.strategy.strategy)": [[146, "lumibot.strategies.strategy.Strategy.create_order", false], [157, "lumibot.strategies.strategy.Strategy.create_order", false]], "crypto (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.CRYPTO", false]], "data (class in entities.data)": [[21, "entities.data.Data", false]], "datalines (entities.data.data attribute)": [[21, "entities.data.Data.datalines", false]], "datasource (class in lumibot.data_sources.data_source)": [[44, "lumibot.data_sources.data_source.DataSource", false]], "datasourcebacktesting (class in lumibot.data_sources.data_source_backtesting)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting", false]], "date_end (entities.data.data attribute)": [[21, "entities.data.Data.date_end", false]], "date_start (entities.data.data attribute)": [[21, "entities.data.Data.date_start", false]], "datetime (lumibot.backtesting.backtesting_broker.backtestingbroker property)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.datetime", false]], "default_pytz (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.DEFAULT_PYTZ", false]], "default_timezone (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.DEFAULT_TIMEZONE", false]], "df (entities.data.data attribute)": [[21, "entities.data.Data.df", false]], "entities.asset": [[19, "module-entities.asset", false]], "entities.bars": [[20, "module-entities.bars", false]], "entities.data": [[21, "module-entities.data", false]], "entities.order": [[22, "module-entities.order", false]], "entities.position": [[23, "module-entities.position", false]], "entities.trading_fee": [[24, "module-entities.trading_fee", false]], "equivalent_status() (entities.order.order method)": [[22, "entities.order.Order.equivalent_status", false]], "error (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.ERROR", false]], "expiration (entities.asset.asset attribute)": [[19, "entities.asset.Asset.expiration", false], [19, "id2", false]], "expired (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.EXPIRED", false]], "filled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.FILLED", false]], "filter() (entities.bars.bars method)": [[20, "entities.bars.Bars.filter", false]], "find_asset_in_data_store() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.find_asset_in_data_store", false]], "first_iteration (lumibot.strategies.strategy.strategy property)": [[168, "lumibot.strategies.strategy.Strategy.first_iteration", false], [183, "lumibot.strategies.strategy.Strategy.first_iteration", false]], "forex (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.FOREX", false]], "from_dict() (entities.asset.asset class method)": [[19, "entities.asset.Asset.from_dict", false]], "from_dict() (entities.order.order class method)": [[22, "entities.order.Order.from_dict", false]], "from_dict() (entities.position.position class method)": [[23, "entities.position.Position.from_dict", false]], "future (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.FUTURE", false]], "get_asset_by_name() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_asset_by_name", false]], "get_asset_by_symbol() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_asset_by_symbol", false]], "get_asset_potential_total() (in module lumibot.strategies.strategy.strategy)": [[147, "lumibot.strategies.strategy.Strategy.get_asset_potential_total", false], [158, "lumibot.strategies.strategy.Strategy.get_asset_potential_total", false]], "get_assets() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_assets", false]], "get_bars() (entities.data.data method)": [[21, "entities.data.Data.get_bars", false], [21, "id2", false]], "get_bars() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_bars", false]], "get_bars_between_dates() (entities.data.data method)": [[21, "entities.data.Data.get_bars_between_dates", false]], "get_cash() (in module lumibot.strategies.strategy.strategy)": [[49, "lumibot.strategies.strategy.Strategy.get_cash", false], [55, "lumibot.strategies.strategy.Strategy.get_cash", false]], "get_chain() (in module lumibot.strategies.strategy.strategy)": [[125, "lumibot.strategies.strategy.Strategy.get_chain", false], [133, "lumibot.strategies.strategy.Strategy.get_chain", false]], "get_chain_full_info() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_chain_full_info", false]], "get_chains() (in module lumibot.strategies.strategy.strategy)": [[126, "lumibot.strategies.strategy.Strategy.get_chains", false], [134, "lumibot.strategies.strategy.Strategy.get_chains", false]], "get_chains() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_chains", false]], "get_chains() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_chains", false]], "get_chains() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_chains", false]], "get_datetime() (in module lumibot.strategies.strategy.strategy)": [[83, "lumibot.strategies.strategy.Strategy.get_datetime", false], [92, "lumibot.strategies.strategy.Strategy.get_datetime", false]], "get_datetime() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_datetime", false]], "get_datetime() (lumibot.data_sources.data_source_backtesting.datasourcebacktesting method)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.get_datetime", false]], "get_datetime_range() (in module lumibot.strategies.strategy.strategy)": [[84, "lumibot.strategies.strategy.Strategy.get_datetime_range", false], [93, "lumibot.strategies.strategy.Strategy.get_datetime_range", false]], "get_datetime_range() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_datetime_range", false]], "get_datetime_range() (lumibot.data_sources.data_source_backtesting.datasourcebacktesting method)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.get_datetime_range", false]], "get_expiration() (in module lumibot.strategies.strategy.strategy)": [[127, "lumibot.strategies.strategy.Strategy.get_expiration", false], [135, "lumibot.strategies.strategy.Strategy.get_expiration", false]], "get_fill_price() (entities.order.order method)": [[22, "entities.order.Order.get_fill_price", false]], "get_greeks() (in module lumibot.strategies.strategy.strategy)": [[128, "lumibot.strategies.strategy.Strategy.get_greeks", false], [136, "lumibot.strategies.strategy.Strategy.get_greeks", false]], "get_historical_account_value() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_historical_account_value", false]], "get_historical_account_value() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.get_historical_account_value", false]], "get_historical_prices() (in module lumibot.strategies.strategy.strategy)": [[72, "lumibot.strategies.strategy.Strategy.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_historical_prices", false]], "get_historical_prices_for_assets() (in module lumibot.strategies.strategy.strategy)": [[73, "lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets", false]], "get_increment() (entities.order.order method)": [[22, "entities.order.Order.get_increment", false]], "get_iter_count() (entities.data.data method)": [[21, "entities.data.Data.get_iter_count", false], [21, "id3", false]], "get_last_bar() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_last_bar", false]], "get_last_day() (in module lumibot.strategies.strategy.strategy)": [[85, "lumibot.strategies.strategy.Strategy.get_last_day", false], [94, "lumibot.strategies.strategy.Strategy.get_last_day", false]], "get_last_day() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_day", false]], "get_last_dividend() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_last_dividend", false], [20, "id1", false]], "get_last_minute() (in module lumibot.strategies.strategy.strategy)": [[86, "lumibot.strategies.strategy.Strategy.get_last_minute", false], [95, "lumibot.strategies.strategy.Strategy.get_last_minute", false]], "get_last_minute() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_minute", false]], "get_last_price() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_last_price", false], [20, "id2", false]], "get_last_price() (entities.data.data method)": [[21, "entities.data.Data.get_last_price", false], [21, "id4", false]], "get_last_price() (in module lumibot.strategies.strategy.strategy)": [[74, "lumibot.strategies.strategy.Strategy.get_last_price", false]], "get_last_price() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_price", false]], "get_last_price() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_last_price", false]], "get_last_price() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_last_price", false]], "get_last_prices() (in module lumibot.strategies.strategy.strategy)": [[75, "lumibot.strategies.strategy.Strategy.get_last_prices", false]], "get_last_prices() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_prices", false]], "get_last_prices() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_last_prices", false]], "get_lines_df() (in module lumibot.strategies.strategy.strategy)": [[64, "lumibot.strategies.strategy.Strategy.get_lines_df", false], [68, "lumibot.strategies.strategy.Strategy.get_lines_df", false]], "get_markers_df() (in module lumibot.strategies.strategy.strategy)": [[65, "lumibot.strategies.strategy.Strategy.get_markers_df", false], [69, "lumibot.strategies.strategy.Strategy.get_markers_df", false]], "get_momentum() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_momentum", false], [20, "id3", false]], "get_multiplier() (in module lumibot.strategies.strategy.strategy)": [[129, "lumibot.strategies.strategy.Strategy.get_multiplier", false], [137, "lumibot.strategies.strategy.Strategy.get_multiplier", false]], "get_next_trading_day() (in module lumibot.strategies.strategy.strategy)": [[76, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false], [130, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false], [138, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false]], "get_option_expiration_after_date() (in module lumibot.strategies.strategy.strategy)": [[139, "lumibot.strategies.strategy.Strategy.get_option_expiration_after_date", false]], "get_order() (in module lumibot.strategies.strategy.strategy)": [[148, "lumibot.strategies.strategy.Strategy.get_order", false], [159, "lumibot.strategies.strategy.Strategy.get_order", false]], "get_orders() (in module lumibot.strategies.strategy.strategy)": [[149, "lumibot.strategies.strategy.Strategy.get_orders", false], [160, "lumibot.strategies.strategy.Strategy.get_orders", false]], "get_parameters() (in module lumibot.strategies.strategy.strategy)": [[50, "lumibot.strategies.strategy.Strategy.get_parameters", false], [56, "lumibot.strategies.strategy.Strategy.get_parameters", false], [104, "lumibot.strategies.strategy.Strategy.get_parameters", false], [115, "lumibot.strategies.strategy.Strategy.get_parameters", false]], "get_portfolio_value() (in module lumibot.strategies.strategy.strategy)": [[51, "lumibot.strategies.strategy.Strategy.get_portfolio_value", false], [57, "lumibot.strategies.strategy.Strategy.get_portfolio_value", false]], "get_position() (in module lumibot.strategies.strategy.strategy)": [[52, "lumibot.strategies.strategy.Strategy.get_position", false], [58, "lumibot.strategies.strategy.Strategy.get_position", false]], "get_positions() (in module lumibot.strategies.strategy.strategy)": [[53, "lumibot.strategies.strategy.Strategy.get_positions", false], [59, "lumibot.strategies.strategy.Strategy.get_positions", false]], "get_quote() (entities.data.data method)": [[21, "entities.data.Data.get_quote", false]], "get_quote() (in module lumibot.strategies.strategy.strategy)": [[77, "lumibot.strategies.strategy.Strategy.get_quote", false]], "get_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[78, "lumibot.strategies.strategy.Strategy.get_realtime_bars", false]], "get_round_day() (in module lumibot.strategies.strategy.strategy)": [[87, "lumibot.strategies.strategy.Strategy.get_round_day", false], [96, "lumibot.strategies.strategy.Strategy.get_round_day", false]], "get_round_day() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_round_day", false]], "get_round_minute() (in module lumibot.strategies.strategy.strategy)": [[88, "lumibot.strategies.strategy.Strategy.get_round_minute", false], [97, "lumibot.strategies.strategy.Strategy.get_round_minute", false]], "get_round_minute() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_round_minute", false]], "get_selling_order() (entities.position.position method)": [[23, "entities.position.Position.get_selling_order", false]], "get_selling_order() (in module lumibot.strategies.strategy.strategy)": [[150, "lumibot.strategies.strategy.Strategy.get_selling_order", false], [161, "lumibot.strategies.strategy.Strategy.get_selling_order", false]], "get_start_datetime_and_ts_unit() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_start_datetime_and_ts_unit", false]], "get_strikes() (in module lumibot.strategies.strategy.strategy)": [[131, "lumibot.strategies.strategy.Strategy.get_strikes", false], [140, "lumibot.strategies.strategy.Strategy.get_strikes", false]], "get_strikes() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_strikes", false]], "get_strikes() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_strikes", false]], "get_time_to_close() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_time_to_close", false]], "get_time_to_close() (lumibot.brokers.alpaca.alpaca method)": [[12, "id0", false], [12, "lumibot.brokers.alpaca.Alpaca.get_time_to_close", false]], "get_time_to_open() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_time_to_open", false]], "get_time_to_open() (lumibot.brokers.alpaca.alpaca method)": [[12, "id1", false], [12, "lumibot.brokers.alpaca.Alpaca.get_time_to_open", false]], "get_timestamp() (in module lumibot.strategies.strategy.strategy)": [[89, "lumibot.strategies.strategy.Strategy.get_timestamp", false], [98, "lumibot.strategies.strategy.Strategy.get_timestamp", false]], "get_timestamp() (lumibot.brokers.alpaca.alpaca method)": [[12, "id2", false], [12, "lumibot.brokers.alpaca.Alpaca.get_timestamp", false]], "get_timestamp() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_timestamp", false]], "get_timestep() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_timestep", false]], "get_total_dividends() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_dividends", false]], "get_total_return() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return", false]], "get_total_return_pct() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return_pct", false]], "get_total_return_pct_change() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return_pct_change", false]], "get_total_stock_splits() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_stock_splits", false]], "get_total_volume() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_volume", false], [20, "id4", false]], "get_trading_days_pandas() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_trading_days_pandas", false]], "get_yesterday_dividend() (in module lumibot.strategies.strategy.strategy)": [[79, "lumibot.strategies.strategy.Strategy.get_yesterday_dividend", false]], "get_yesterday_dividend() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_yesterday_dividend", false]], "get_yesterday_dividend() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_yesterday_dividend", false]], "get_yesterday_dividends() (in module lumibot.strategies.strategy.strategy)": [[80, "lumibot.strategies.strategy.Strategy.get_yesterday_dividends", false]], "get_yesterday_dividends() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_yesterday_dividends", false]], "get_yesterday_dividends() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_yesterday_dividends", false]], "hold (entities.position.position attribute)": [[23, "entities.position.Position.hold", false]], "hold (entities.position.position property)": [[23, "id1", false]], "index (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.INDEX", false]], "initial_budget (lumibot.strategies.strategy.strategy property)": [[169, "lumibot.strategies.strategy.Strategy.initial_budget", false], [184, "lumibot.strategies.strategy.Strategy.initial_budget", false]], "initialize() (in module lumibot.strategies.strategy.strategy)": [[32, "lumibot.strategies.strategy.Strategy.initialize", false]], "is_active() (entities.order.order method)": [[22, "entities.order.Order.is_active", false]], "is_backtest_broker (lumibot.traders.trader.trader property)": [[46, "lumibot.traders.trader.Trader.is_backtest_broker", false]], "is_backtesting (lumibot.strategies.strategy.strategy property)": [[170, "lumibot.strategies.strategy.Strategy.is_backtesting", false], [185, "lumibot.strategies.strategy.Strategy.is_backtesting", false]], "is_backtesting_broker (lumibot.backtesting.backtesting_broker.backtestingbroker attribute)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.IS_BACKTESTING_BROKER", false]], "is_backtesting_data_source (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.IS_BACKTESTING_DATA_SOURCE", false]], "is_backtesting_data_source (lumibot.data_sources.data_source_backtesting.datasourcebacktesting attribute)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.IS_BACKTESTING_DATA_SOURCE", false]], "is_buy_order() (entities.order.order method)": [[22, "entities.order.Order.is_buy_order", false]], "is_canceled() (entities.order.order method)": [[22, "entities.order.Order.is_canceled", false]], "is_filled() (entities.order.order method)": [[22, "entities.order.Order.is_filled", false]], "is_market_open() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.is_market_open", false]], "is_market_open() (lumibot.brokers.alpaca.alpaca method)": [[12, "id3", false], [12, "lumibot.brokers.alpaca.Alpaca.is_market_open", false]], "is_option() (entities.order.order method)": [[22, "entities.order.Order.is_option", false]], "is_parent() (entities.order.order method)": [[22, "entities.order.Order.is_parent", false]], "is_sell_order() (entities.order.order method)": [[22, "entities.order.Order.is_sell_order", false]], "is_valid() (entities.asset.asset method)": [[19, "entities.asset.Asset.is_valid", false]], "iter_index (entities.data.data attribute)": [[21, "entities.data.Data.iter_index", false]], "last_on_trading_iteration_datetime (lumibot.strategies.strategy.strategy property)": [[171, "lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", false], [186, "lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", false]], "limit (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.LIMIT", false]], "limit_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.limit_order", false]], "load_data() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.load_data", false]], "localize_datetime() (in module lumibot.strategies.strategy.strategy)": [[90, "lumibot.strategies.strategy.Strategy.localize_datetime", false], [99, "lumibot.strategies.strategy.Strategy.localize_datetime", false]], "localize_datetime() (lumibot.data_sources.data_source.datasource class method)": [[44, "lumibot.data_sources.data_source.DataSource.localize_datetime", false]], "log_message() (in module lumibot.strategies.strategy.strategy)": [[105, "lumibot.strategies.strategy.Strategy.log_message", false], [116, "lumibot.strategies.strategy.Strategy.log_message", false]], "lumibot.backtesting.backtesting_broker": [[43, "module-lumibot.backtesting.backtesting_broker", false]], "lumibot.brokers.alpaca": [[12, "module-lumibot.brokers.alpaca", false]], "lumibot.data_sources": [[44, "module-lumibot.data_sources", false]], "lumibot.data_sources.data_source": [[44, "module-lumibot.data_sources.data_source", false]], "lumibot.data_sources.data_source_backtesting": [[43, "module-lumibot.data_sources.data_source_backtesting", false]], "lumibot.data_sources.pandas_data": [[44, "module-lumibot.data_sources.pandas_data", false]], "lumibot.data_sources.yahoo_data": [[44, "module-lumibot.data_sources.yahoo_data", false]], "lumibot.strategies.strategy.strategy": [[45, "module-lumibot.strategies.strategy.Strategy", false]], "lumibot.traders.trader": [[46, "module-lumibot.traders.trader", false]], "map_asset_type() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.map_asset_type", false]], "market (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.MARKET", false]], "min_timestep (entities.data.data attribute)": [[21, "entities.data.Data.MIN_TIMESTEP", false]], "min_timestep (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.MIN_TIMESTEP", false]], "min_timestep (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.MIN_TIMESTEP", false]], "minutes_before_closing (lumibot.strategies.strategy.strategy property)": [[172, "lumibot.strategies.strategy.Strategy.minutes_before_closing", false], [187, "lumibot.strategies.strategy.Strategy.minutes_before_closing", false]], "minutes_before_opening (lumibot.strategies.strategy.strategy property)": [[173, "lumibot.strategies.strategy.Strategy.minutes_before_opening", false], [188, "lumibot.strategies.strategy.Strategy.minutes_before_opening", false]], "module": [[12, "module-lumibot.brokers.alpaca", false], [19, "module-entities.asset", false], [20, "module-entities.bars", false], [21, "module-entities.data", false], [22, "module-entities.order", false], [23, "module-entities.position", false], [24, "module-entities.trading_fee", false], [43, "module-lumibot.backtesting.backtesting_broker", false], [43, "module-lumibot.data_sources.data_source_backtesting", false], [44, "module-lumibot.data_sources", false], [44, "module-lumibot.data_sources.data_source", false], [44, "module-lumibot.data_sources.pandas_data", false], [44, "module-lumibot.data_sources.yahoo_data", false], [45, "module-lumibot.strategies.strategy.Strategy", false], [46, "module-lumibot.traders.trader", false]], "multileg (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.MULTILEG", false]], "multiplier (entities.asset.asset attribute)": [[19, "entities.asset.Asset.multiplier", false], [19, "id3", false]], "name (lumibot.strategies.strategy.strategy property)": [[174, "lumibot.strategies.strategy.Strategy.name", false], [189, "lumibot.strategies.strategy.Strategy.name", false]], "new (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.NEW", false]], "nobardatafound": [[20, "entities.bars.NoBarDataFound", false]], "oco (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.OCO", false]], "oco (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.OCO", false]], "on_abrupt_closing() (in module lumibot.strategies.strategy.strategy)": [[33, "lumibot.strategies.strategy.Strategy.on_abrupt_closing", false]], "on_bot_crash() (in module lumibot.strategies.strategy.strategy)": [[34, "lumibot.strategies.strategy.Strategy.on_bot_crash", false]], "on_canceled_order() (in module lumibot.strategies.strategy.strategy)": [[35, "lumibot.strategies.strategy.Strategy.on_canceled_order", false]], "on_filled_order() (in module lumibot.strategies.strategy.strategy)": [[36, "lumibot.strategies.strategy.Strategy.on_filled_order", false]], "on_new_order() (in module lumibot.strategies.strategy.strategy)": [[37, "lumibot.strategies.strategy.Strategy.on_new_order", false]], "on_parameters_updated() (in module lumibot.strategies.strategy.strategy)": [[38, "lumibot.strategies.strategy.Strategy.on_parameters_updated", false]], "on_partially_filled_order() (in module lumibot.strategies.strategy.strategy)": [[39, "lumibot.strategies.strategy.Strategy.on_partially_filled_order", false]], "on_trading_iteration() (in module lumibot.strategies.strategy.strategy)": [[40, "lumibot.strategies.strategy.Strategy.on_trading_iteration", false]], "open (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.OPEN", false]], "option (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.OPTION", false]], "options_expiry_to_datetime_date() (in module lumibot.strategies.strategy.strategy)": [[132, "lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", false], [141, "lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", false]], "order (class in entities.order)": [[22, "entities.order.Order", false]], "order.orderclass (class in entities.order)": [[22, "entities.order.Order.OrderClass", false]], "order.orderside (class in entities.order)": [[22, "entities.order.Order.OrderSide", false]], "order.orderstatus (class in entities.order)": [[22, "entities.order.Order.OrderStatus", false]], "order.ordertype (class in entities.order)": [[22, "entities.order.Order.OrderType", false]], "order.transaction (class in entities.order)": [[22, "entities.order.Order.Transaction", false]], "orderdata (class in lumibot.brokers.alpaca)": [[12, "lumibot.brokers.alpaca.OrderData", false]], "orders (entities.position.position attribute)": [[23, "entities.position.Position.orders", false]], "oto (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.OTO", false]], "oto (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.OTO", false]], "pandasdata (class in lumibot.data_sources.pandas_data)": [[44, "lumibot.data_sources.pandas_data.PandasData", false]], "parse_bar_list() (entities.bars.bars class method)": [[20, "entities.bars.Bars.parse_bar_list", false]], "partially_filled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.PARTIALLY_FILLED", false]], "portfolio_value (lumibot.strategies.strategy.strategy property)": [[175, "lumibot.strategies.strategy.Strategy.portfolio_value", false], [190, "lumibot.strategies.strategy.Strategy.portfolio_value", false]], "position (class in entities.position)": [[23, "entities.position.Position", false]], "precision (entities.asset.asset attribute)": [[19, "entities.asset.Asset.precision", false], [19, "id4", false]], "price (entities.order.order.transaction attribute)": [[22, "entities.order.Order.Transaction.price", false]], "process_expired_option_contracts() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.process_expired_option_contracts", false]], "process_pending_orders() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.process_pending_orders", false]], "put (entities.asset.asset.optionright attribute)": [[19, "entities.asset.Asset.OptionRight.PUT", false]], "pytz (lumibot.strategies.strategy.strategy property)": [[176, "lumibot.strategies.strategy.Strategy.pytz", false], [181, "lumibot.strategies.strategy.Strategy.pytz", false], [191, "lumibot.strategies.strategy.Strategy.pytz", false]], "quantity (entities.order.order property)": [[22, "entities.order.Order.quantity", false]], "quantity (entities.order.order.transaction attribute)": [[22, "entities.order.Order.Transaction.quantity", false]], "quantity (entities.position.position attribute)": [[23, "entities.position.Position.quantity", false]], "quantity (entities.position.position property)": [[23, "id2", false]], "query_greeks() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.query_greeks", false]], "quote_asset (lumibot.strategies.strategy.strategy property)": [[177, "lumibot.strategies.strategy.Strategy.quote_asset", false], [192, "lumibot.strategies.strategy.Strategy.quote_asset", false]], "repair_times_and_fill() (entities.data.data method)": [[21, "entities.data.Data.repair_times_and_fill", false], [21, "id5", false]], "right (entities.asset.asset attribute)": [[19, "entities.asset.Asset.right", false], [19, "id5", false]], "right_must_be_one_of() (entities.asset.asset method)": [[19, "entities.asset.Asset.right_must_be_one_of", false], [19, "id6", false]], "run_all() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.run_all", false]], "run_all_async() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.run_all_async", false]], "run_backtest() (in module lumibot.strategies.strategy.strategy)": [[1, "lumibot.strategies.strategy.Strategy.run_backtest", false]], "sell (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL", false]], "sell_all() (in module lumibot.strategies.strategy.strategy)": [[151, "lumibot.strategies.strategy.Strategy.sell_all", false], [162, "lumibot.strategies.strategy.Strategy.sell_all", false]], "sell_short (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_SHORT", false]], "sell_to_close (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_TO_CLOSE", false]], "sell_to_open (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_TO_OPEN", false]], "set_canceled() (entities.order.order method)": [[22, "entities.order.Order.set_canceled", false]], "set_date_format() (entities.data.data method)": [[21, "entities.data.Data.set_date_format", false], [21, "id6", false]], "set_dates() (entities.data.data method)": [[21, "entities.data.Data.set_dates", false], [21, "id7", false]], "set_error() (entities.order.order method)": [[22, "entities.order.Order.set_error", false]], "set_filled() (entities.order.order method)": [[22, "entities.order.Order.set_filled", false]], "set_identifier() (entities.order.order method)": [[22, "entities.order.Order.set_identifier", false]], "set_market() (in module lumibot.strategies.strategy.strategy)": [[106, "lumibot.strategies.strategy.Strategy.set_market", false], [117, "lumibot.strategies.strategy.Strategy.set_market", false]], "set_new() (entities.order.order method)": [[22, "entities.order.Order.set_new", false]], "set_parameters() (in module lumibot.strategies.strategy.strategy)": [[54, "lumibot.strategies.strategy.Strategy.set_parameters", false], [60, "lumibot.strategies.strategy.Strategy.set_parameters", false]], "set_partially_filled() (entities.order.order method)": [[22, "entities.order.Order.set_partially_filled", false]], "set_times() (entities.data.data method)": [[21, "entities.data.Data.set_times", false], [21, "id8", false]], "should_continue() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.should_continue", false]], "sleep() (in module lumibot.strategies.strategy.strategy)": [[107, "lumibot.strategies.strategy.Strategy.sleep", false], [118, "lumibot.strategies.strategy.Strategy.sleep", false]], "sleeptime (lumibot.strategies.strategy.strategy property)": [[178, "lumibot.strategies.strategy.Strategy.sleeptime", false], [193, "lumibot.strategies.strategy.Strategy.sleeptime", false]], "source (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.SOURCE", false]], "source (lumibot.data_sources.pandas_data.pandasdata attribute)": [[44, "lumibot.data_sources.pandas_data.PandasData.SOURCE", false]], "source (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.SOURCE", false]], "split() (entities.bars.bars method)": [[20, "entities.bars.Bars.split", false]], "start_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[81, "lumibot.strategies.strategy.Strategy.start_realtime_bars", false]], "status (entities.order.order property)": [[22, "entities.order.Order.status", false]], "stock (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.STOCK", false]], "stop (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.STOP", false]], "stop_all() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.stop_all", false]], "stop_limit (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.STOP_LIMIT", false]], "stop_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.stop_order", false]], "strategy (entities.position.position attribute)": [[23, "entities.position.Position.strategy", false]], "strike (entities.asset.asset attribute)": [[19, "entities.asset.Asset.strike", false], [19, "id7", false]], "submit_order() (in module lumibot.strategies.strategy.strategy)": [[152, "lumibot.strategies.strategy.Strategy.submit_order", false], [163, "lumibot.strategies.strategy.Strategy.submit_order", false]], "submit_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.submit_order", false]], "submit_orders() (in module lumibot.strategies.strategy.strategy)": [[153, "lumibot.strategies.strategy.Strategy.submit_orders", false], [164, "lumibot.strategies.strategy.Strategy.submit_orders", false]], "submit_orders() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.submit_orders", false]], "submitted (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.SUBMITTED", false]], "sybmol (entities.data.data attribute)": [[21, "entities.data.Data.sybmol", false]], "symbol (entities.asset.asset attribute)": [[19, "entities.asset.Asset.symbol", false], [19, "id8", false]], "symbol (entities.position.position attribute)": [[23, "entities.position.Position.symbol", false]], "symbol2asset() (entities.asset.asset class method)": [[19, "entities.asset.Asset.symbol2asset", false]], "timestep (entities.data.data attribute)": [[21, "entities.data.Data.timestep", false]], "timestep_mapping (entities.data.data attribute)": [[21, "entities.data.Data.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.pandas_data.pandasdata attribute)": [[44, "lumibot.data_sources.pandas_data.PandasData.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.TIMESTEP_MAPPING", false]], "timezone (lumibot.strategies.strategy.strategy property)": [[179, "lumibot.strategies.strategy.Strategy.timezone", false], [194, "lumibot.strategies.strategy.Strategy.timezone", false]], "to_datalines() (entities.data.data method)": [[21, "entities.data.Data.to_datalines", false], [21, "id9", false]], "to_default_timezone() (in module lumibot.strategies.strategy.strategy)": [[91, "lumibot.strategies.strategy.Strategy.to_default_timezone", false], [100, "lumibot.strategies.strategy.Strategy.to_default_timezone", false]], "to_default_timezone() (lumibot.data_sources.data_source.datasource class method)": [[44, "lumibot.data_sources.data_source.DataSource.to_default_timezone", false]], "to_dict() (entities.asset.asset method)": [[19, "entities.asset.Asset.to_dict", false]], "to_dict() (entities.order.order method)": [[22, "entities.order.Order.to_dict", false]], "to_dict() (entities.position.position method)": [[23, "entities.position.Position.to_dict", false]], "to_position() (entities.order.order method)": [[22, "entities.order.Order.to_position", false]], "to_request_fields() (lumibot.brokers.alpaca.orderdata method)": [[12, "lumibot.brokers.alpaca.OrderData.to_request_fields", false]], "trace_stats() (in module lumibot.strategies.strategy.strategy)": [[42, "lumibot.strategies.strategy.Strategy.trace_stats", false]], "trader (class in lumibot.traders.trader)": [[46, "lumibot.traders.trader.Trader", false]], "trading_hours_end (entities.data.data attribute)": [[21, "entities.data.Data.trading_hours_end", false]], "trading_hours_start (entities.data.data attribute)": [[21, "entities.data.Data.trading_hours_start", false]], "tradingfee (class in entities.trading_fee)": [[24, "entities.trading_fee.TradingFee", false]], "trail (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.TRAIL", false]], "trim_data() (entities.data.data method)": [[21, "entities.data.Data.trim_data", false], [21, "id10", false]], "underlying_asset (entities.asset.asset attribute)": [[19, "entities.asset.Asset.underlying_asset", false]], "unprocessed (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.UNPROCESSED", false]], "unspent_money (lumibot.strategies.strategy.strategy property)": [[180, "lumibot.strategies.strategy.Strategy.unspent_money", false], [195, "lumibot.strategies.strategy.Strategy.unspent_money", false]], "update_date_index() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.update_date_index", false]], "update_parameters() (in module lumibot.strategies.strategy.strategy)": [[108, "lumibot.strategies.strategy.Strategy.update_parameters", false], [119, "lumibot.strategies.strategy.Strategy.update_parameters", false]], "update_raw() (entities.order.order method)": [[22, "entities.order.Order.update_raw", false]], "update_trail_stop_price() (entities.order.order method)": [[22, "entities.order.Order.update_trail_stop_price", false]], "value_type() (entities.position.position method)": [[23, "entities.position.Position.value_type", false]], "wait_for_order_execution() (in module lumibot.strategies.strategy.strategy)": [[109, "lumibot.strategies.strategy.Strategy.wait_for_order_execution", false], [120, "lumibot.strategies.strategy.Strategy.wait_for_order_execution", false]], "wait_for_order_registration() (in module lumibot.strategies.strategy.strategy)": [[110, "lumibot.strategies.strategy.Strategy.wait_for_order_registration", false], [121, "lumibot.strategies.strategy.Strategy.wait_for_order_registration", false]], "wait_for_orders_execution() (in module lumibot.strategies.strategy.strategy)": [[111, "lumibot.strategies.strategy.Strategy.wait_for_orders_execution", false], [122, "lumibot.strategies.strategy.Strategy.wait_for_orders_execution", false]], "wait_for_orders_registration() (in module lumibot.strategies.strategy.strategy)": [[112, "lumibot.strategies.strategy.Strategy.wait_for_orders_registration", false], [123, "lumibot.strategies.strategy.Strategy.wait_for_orders_registration", false]], "wait_to_be_closed() (entities.order.order method)": [[22, "entities.order.Order.wait_to_be_closed", false]], "wait_to_be_registered() (entities.order.order method)": [[22, "entities.order.Order.wait_to_be_registered", false]], "was_transmitted() (entities.order.order method)": [[22, "entities.order.Order.was_transmitted", false]], "yahoodata (class in lumibot.data_sources.yahoo_data)": [[44, "lumibot.data_sources.yahoo_data.YahooData", false]]}, "objects": {"entities": [[19, 0, 0, "-", "asset"], [20, 0, 0, "-", "bars"], [21, 0, 0, "-", "data"], [22, 0, 0, "-", "order"], [23, 0, 0, "-", "position"], [24, 0, 0, "-", "trading_fee"]], "entities.asset": [[19, 1, 1, "", "Asset"], [19, 1, 1, "", "AssetsMapping"]], "entities.asset.Asset": [[19, 1, 1, "", "AssetType"], [19, 1, 1, "", "OptionRight"], [19, 2, 1, "", "_asset_types"], [19, 2, 1, "", "_right"], [19, 2, 1, "id0", "asset_type"], [19, 3, 1, "id1", "asset_type_must_be_one_of"], [19, 2, 1, "id2", "expiration"], [19, 3, 1, "", "from_dict"], [19, 3, 1, "", "is_valid"], [19, 2, 1, "id3", "multiplier"], [19, 2, 1, "id4", "precision"], [19, 2, 1, "id5", "right"], [19, 3, 1, "id6", "right_must_be_one_of"], [19, 2, 1, "id7", "strike"], [19, 2, 1, "id8", "symbol"], [19, 3, 1, "", "symbol2asset"], [19, 3, 1, "", "to_dict"], [19, 2, 1, "", "underlying_asset"]], "entities.asset.Asset.AssetType": [[19, 2, 1, "", "CRYPTO"], [19, 2, 1, "", "FOREX"], [19, 2, 1, "", "FUTURE"], [19, 2, 1, "", "INDEX"], [19, 2, 1, "", "OPTION"], [19, 2, 1, "", "STOCK"]], "entities.asset.Asset.OptionRight": [[19, 2, 1, "", "CALL"], [19, 2, 1, "", "PUT"]], "entities.bars": [[20, 1, 1, "", "Bars"], [20, 4, 1, "", "NoBarDataFound"]], "entities.bars.Bars": [[20, 3, 1, "id0", "aggregate_bars"], [20, 3, 1, "", "filter"], [20, 3, 1, "id1", "get_last_dividend"], [20, 3, 1, "id2", "get_last_price"], [20, 3, 1, "id3", "get_momentum"], [20, 3, 1, "", "get_total_dividends"], [20, 3, 1, "", "get_total_return"], [20, 3, 1, "", "get_total_return_pct"], [20, 3, 1, "", "get_total_return_pct_change"], [20, 3, 1, "", "get_total_stock_splits"], [20, 3, 1, "id4", "get_total_volume"], [20, 3, 1, "", "parse_bar_list"], [20, 3, 1, "", "split"]], "entities.data": [[21, 1, 1, "", "Data"]], "entities.data.Data": [[21, 2, 1, "", "MIN_TIMESTEP"], [21, 2, 1, "", "TIMESTEP_MAPPING"], [21, 3, 1, "", "_get_bars_dict"], [21, 2, 1, "", "asset"], [21, 3, 1, "id0", "check_data"], [21, 3, 1, "id1", "columns"], [21, 2, 1, "", "datalines"], [21, 2, 1, "", "date_end"], [21, 2, 1, "", "date_start"], [21, 2, 1, "", "df"], [21, 3, 1, "id2", "get_bars"], [21, 3, 1, "", "get_bars_between_dates"], [21, 3, 1, "id3", "get_iter_count"], [21, 3, 1, "id4", "get_last_price"], [21, 3, 1, "", "get_quote"], [21, 2, 1, "", "iter_index"], [21, 3, 1, "id5", "repair_times_and_fill"], [21, 3, 1, "id6", "set_date_format"], [21, 3, 1, "id7", "set_dates"], [21, 3, 1, "id8", "set_times"], [21, 2, 1, "", "sybmol"], [21, 2, 1, "", "timestep"], [21, 3, 1, "id9", "to_datalines"], [21, 2, 1, "", "trading_hours_end"], [21, 2, 1, "", "trading_hours_start"], [21, 3, 1, "id10", "trim_data"]], "entities.order": [[22, 1, 1, "", "Order"]], "entities.order.Order": [[22, 1, 1, "", "OrderClass"], [22, 1, 1, "", "OrderSide"], [22, 1, 1, "", "OrderStatus"], [22, 1, 1, "", "OrderType"], [22, 1, 1, "", "Transaction"], [22, 3, 1, "", "add_child_order"], [22, 3, 1, "", "add_transaction"], [22, 5, 1, "", "avg_fill_price"], [22, 3, 1, "", "cash_pending"], [22, 3, 1, "", "equivalent_status"], [22, 3, 1, "", "from_dict"], [22, 3, 1, "", "get_fill_price"], [22, 3, 1, "", "get_increment"], [22, 3, 1, "", "is_active"], [22, 3, 1, "", "is_buy_order"], [22, 3, 1, "", "is_canceled"], [22, 3, 1, "", "is_filled"], [22, 3, 1, "", "is_option"], [22, 3, 1, "", "is_parent"], [22, 3, 1, "", "is_sell_order"], [22, 5, 1, "", "quantity"], [22, 3, 1, "", "set_canceled"], [22, 3, 1, "", "set_error"], [22, 3, 1, "", "set_filled"], [22, 3, 1, "", "set_identifier"], [22, 3, 1, "", "set_new"], [22, 3, 1, "", "set_partially_filled"], [22, 5, 1, "", "status"], [22, 3, 1, "", "to_dict"], [22, 3, 1, "", "to_position"], [22, 3, 1, "", "update_raw"], [22, 3, 1, "", "update_trail_stop_price"], [22, 3, 1, "", "wait_to_be_closed"], [22, 3, 1, "", "wait_to_be_registered"], [22, 3, 1, "", "was_transmitted"]], "entities.order.Order.OrderClass": [[22, 2, 1, "", "BRACKET"], [22, 2, 1, "", "MULTILEG"], [22, 2, 1, "", "OCO"], [22, 2, 1, "", "OTO"]], "entities.order.Order.OrderSide": [[22, 2, 1, "", "BUY"], [22, 2, 1, "", "BUY_TO_CLOSE"], [22, 2, 1, "", "BUY_TO_COVER"], [22, 2, 1, "", "BUY_TO_OPEN"], [22, 2, 1, "", "SELL"], [22, 2, 1, "", "SELL_SHORT"], [22, 2, 1, "", "SELL_TO_CLOSE"], [22, 2, 1, "", "SELL_TO_OPEN"]], "entities.order.Order.OrderStatus": [[22, 2, 1, "", "CANCELED"], [22, 2, 1, "", "CANCELLING"], [22, 2, 1, "", "CASH_SETTLED"], [22, 2, 1, "", "ERROR"], [22, 2, 1, "", "EXPIRED"], [22, 2, 1, "", "FILLED"], [22, 2, 1, "", "NEW"], [22, 2, 1, "", "OPEN"], [22, 2, 1, "", "PARTIALLY_FILLED"], [22, 2, 1, "", "SUBMITTED"], [22, 2, 1, "", "UNPROCESSED"]], "entities.order.Order.OrderType": [[22, 2, 1, "", "BRACKET"], [22, 2, 1, "", "LIMIT"], [22, 2, 1, "", "MARKET"], [22, 2, 1, "", "OCO"], [22, 2, 1, "", "OTO"], [22, 2, 1, "", "STOP"], [22, 2, 1, "", "STOP_LIMIT"], [22, 2, 1, "", "TRAIL"]], "entities.order.Order.Transaction": [[22, 2, 1, "", "price"], [22, 2, 1, "", "quantity"]], "entities.position": [[23, 1, 1, "", "Position"]], "entities.position.Position": [[23, 3, 1, "", "add_order"], [23, 2, 1, "", "asset"], [23, 5, 1, "id0", "available"], [23, 2, 1, "", "avg_fill_price"], [23, 3, 1, "", "from_dict"], [23, 3, 1, "", "get_selling_order"], [23, 5, 1, "id1", "hold"], [23, 2, 1, "", "orders"], [23, 5, 1, "id2", "quantity"], [23, 2, 1, "", "strategy"], [23, 2, 1, "", "symbol"], [23, 3, 1, "", "to_dict"], [23, 3, 1, "", "value_type"]], "entities.trading_fee": [[24, 1, 1, "", "TradingFee"]], "lumibot": [[44, 0, 0, "-", "data_sources"]], "lumibot.backtesting": [[43, 0, 0, "-", "backtesting_broker"]], "lumibot.backtesting.backtesting_broker": [[43, 1, 1, "", "BacktestingBroker"]], "lumibot.backtesting.backtesting_broker.BacktestingBroker": [[43, 2, 1, "", "IS_BACKTESTING_BROKER"], [43, 3, 1, "", "calculate_trade_cost"], [43, 3, 1, "", "cancel_order"], [43, 3, 1, "", "cash_settle_options_contract"], [43, 5, 1, "", "datetime"], [43, 3, 1, "", "get_historical_account_value"], [43, 3, 1, "", "get_last_bar"], [43, 3, 1, "", "get_time_to_close"], [43, 3, 1, "", "get_time_to_open"], [43, 3, 1, "", "is_market_open"], [43, 3, 1, "", "limit_order"], [43, 3, 1, "", "process_expired_option_contracts"], [43, 3, 1, "", "process_pending_orders"], [43, 3, 1, "", "should_continue"], [43, 3, 1, "", "stop_order"], [43, 3, 1, "", "submit_order"], [43, 3, 1, "", "submit_orders"]], "lumibot.brokers": [[12, 0, 0, "-", "alpaca"]], "lumibot.brokers.alpaca": [[12, 1, 1, "", "Alpaca"], [12, 1, 1, "", "OrderData"]], "lumibot.brokers.alpaca.Alpaca": [[12, 2, 1, "", "ASSET_TYPE_MAP"], [12, 2, 1, "", "api"], [12, 3, 1, "", "cancel_order"], [12, 3, 1, "", "get_historical_account_value"], [12, 3, 1, "id0", "get_time_to_close"], [12, 3, 1, "id1", "get_time_to_open"], [12, 3, 1, "id2", "get_timestamp"], [12, 3, 1, "id3", "is_market_open"], [12, 3, 1, "", "map_asset_type"]], "lumibot.brokers.alpaca.OrderData": [[12, 3, 1, "", "to_request_fields"]], "lumibot.data_sources": [[44, 0, 0, "-", "data_source"], [43, 0, 0, "-", "data_source_backtesting"], [44, 0, 0, "-", "pandas_data"], [44, 0, 0, "-", "yahoo_data"]], "lumibot.data_sources.data_source": [[44, 1, 1, "", "DataSource"]], "lumibot.data_sources.data_source.DataSource": [[44, 2, 1, "", "DEFAULT_PYTZ"], [44, 2, 1, "", "DEFAULT_TIMEZONE"], [44, 2, 1, "", "IS_BACKTESTING_DATA_SOURCE"], [44, 2, 1, "", "MIN_TIMESTEP"], [44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "calculate_greeks"], [44, 3, 1, "", "convert_timestep_str_to_timedelta"], [44, 3, 1, "", "get_bars"], [44, 3, 1, "", "get_chain_full_info"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_datetime"], [44, 3, 1, "", "get_datetime_range"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_day"], [44, 3, 1, "", "get_last_minute"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_last_prices"], [44, 3, 1, "", "get_round_day"], [44, 3, 1, "", "get_round_minute"], [44, 3, 1, "", "get_strikes"], [44, 3, 1, "", "get_timestamp"], [44, 3, 1, "", "get_timestep"], [44, 3, 1, "", "get_yesterday_dividend"], [44, 3, 1, "", "get_yesterday_dividends"], [44, 3, 1, "", "localize_datetime"], [44, 3, 1, "", "query_greeks"], [44, 3, 1, "", "to_default_timezone"]], "lumibot.data_sources.data_source_backtesting": [[43, 1, 1, "", "DataSourceBacktesting"]], "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting": [[43, 2, 1, "", "IS_BACKTESTING_DATA_SOURCE"], [43, 3, 1, "", "get_datetime"], [43, 3, 1, "", "get_datetime_range"]], "lumibot.data_sources.pandas_data": [[44, 1, 1, "", "PandasData"]], "lumibot.data_sources.pandas_data.PandasData": [[44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "clean_trading_times"], [44, 3, 1, "", "find_asset_in_data_store"], [44, 3, 1, "", "get_asset_by_name"], [44, 3, 1, "", "get_asset_by_symbol"], [44, 3, 1, "", "get_assets"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_last_prices"], [44, 3, 1, "", "get_start_datetime_and_ts_unit"], [44, 3, 1, "", "get_trading_days_pandas"], [44, 3, 1, "", "get_yesterday_dividend"], [44, 3, 1, "", "get_yesterday_dividends"], [44, 3, 1, "", "load_data"], [44, 3, 1, "", "update_date_index"]], "lumibot.data_sources.yahoo_data": [[44, 1, 1, "", "YahooData"]], "lumibot.data_sources.yahoo_data.YahooData": [[44, 2, 1, "", "MIN_TIMESTEP"], [44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_strikes"]], "lumibot.strategies.strategy": [[45, 0, 0, "-", "Strategy"]], "lumibot.strategies.strategy.Strategy": [[66, 6, 1, "", "add_line"], [67, 6, 1, "", "add_marker"], [28, 6, 1, "", "after_market_closes"], [113, 6, 1, "", "await_market_to_close"], [114, 6, 1, "", "await_market_to_open"], [29, 6, 1, "", "before_market_closes"], [30, 6, 1, "", "before_market_opens"], [31, 6, 1, "", "before_starting_trading"], [154, 6, 1, "", "cancel_open_orders"], [155, 6, 1, "", "cancel_order"], [156, 6, 1, "", "cancel_orders"], [71, 6, 1, "", "cancel_realtime_bars"], [182, 5, 1, "", "cash"], [157, 6, 1, "", "create_order"], [183, 5, 1, "", "first_iteration"], [158, 6, 1, "", "get_asset_potential_total"], [55, 6, 1, "", "get_cash"], [133, 6, 1, "", "get_chain"], [134, 6, 1, "", "get_chains"], [92, 6, 1, "", "get_datetime"], [93, 6, 1, "", "get_datetime_range"], [135, 6, 1, "", "get_expiration"], [136, 6, 1, "", "get_greeks"], [72, 6, 1, "", "get_historical_prices"], [73, 6, 1, "", "get_historical_prices_for_assets"], [94, 6, 1, "", "get_last_day"], [95, 6, 1, "", "get_last_minute"], [74, 6, 1, "", "get_last_price"], [75, 6, 1, "", "get_last_prices"], [68, 6, 1, "", "get_lines_df"], [69, 6, 1, "", "get_markers_df"], [137, 6, 1, "", "get_multiplier"], [138, 6, 1, "", "get_next_trading_day"], [139, 6, 1, "", "get_option_expiration_after_date"], [159, 6, 1, "", "get_order"], [160, 6, 1, "", "get_orders"], [115, 6, 1, "", "get_parameters"], [57, 6, 1, "", "get_portfolio_value"], [58, 6, 1, "", "get_position"], [59, 6, 1, "", "get_positions"], [77, 6, 1, "", "get_quote"], [78, 6, 1, "", "get_realtime_bars"], [96, 6, 1, "", "get_round_day"], [97, 6, 1, "", "get_round_minute"], [161, 6, 1, "", "get_selling_order"], [140, 6, 1, "", "get_strikes"], [98, 6, 1, "", "get_timestamp"], [79, 6, 1, "", "get_yesterday_dividend"], [80, 6, 1, "", "get_yesterday_dividends"], [184, 5, 1, "", "initial_budget"], [32, 6, 1, "", "initialize"], [185, 5, 1, "", "is_backtesting"], [186, 5, 1, "", "last_on_trading_iteration_datetime"], [99, 6, 1, "", "localize_datetime"], [116, 6, 1, "", "log_message"], [187, 5, 1, "", "minutes_before_closing"], [188, 5, 1, "", "minutes_before_opening"], [189, 5, 1, "", "name"], [33, 6, 1, "", "on_abrupt_closing"], [34, 6, 1, "", "on_bot_crash"], [35, 6, 1, "", "on_canceled_order"], [36, 6, 1, "", "on_filled_order"], [37, 6, 1, "", "on_new_order"], [38, 6, 1, "", "on_parameters_updated"], [39, 6, 1, "", "on_partially_filled_order"], [40, 6, 1, "", "on_trading_iteration"], [141, 6, 1, "", "options_expiry_to_datetime_date"], [190, 5, 1, "", "portfolio_value"], [191, 5, 1, "", "pytz"], [192, 5, 1, "", "quote_asset"], [1, 6, 1, "", "run_backtest"], [162, 6, 1, "", "sell_all"], [117, 6, 1, "", "set_market"], [60, 6, 1, "", "set_parameters"], [118, 6, 1, "", "sleep"], [193, 5, 1, "", "sleeptime"], [81, 6, 1, "", "start_realtime_bars"], [163, 6, 1, "", "submit_order"], [164, 6, 1, "", "submit_orders"], [194, 5, 1, "", "timezone"], [100, 6, 1, "", "to_default_timezone"], [42, 6, 1, "", "trace_stats"], [195, 5, 1, "", "unspent_money"], [119, 6, 1, "", "update_parameters"], [120, 6, 1, "", "wait_for_order_execution"], [121, 6, 1, "", "wait_for_order_registration"], [122, 6, 1, "", "wait_for_orders_execution"], [123, 6, 1, "", "wait_for_orders_registration"]], "lumibot.traders": [[46, 0, 0, "-", "trader"]], "lumibot.traders.trader": [[46, 1, 1, "", "Trader"]], "lumibot.traders.trader.Trader": [[46, 3, 1, "", "add_strategy"], [46, 5, 1, "", "is_backtest_broker"], [46, 3, 1, "", "run_all"], [46, 3, 1, "", "run_all_async"], [46, 3, 1, "", "stop_all"]]}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "method", "Python method"], "4": ["py", "exception", "Python exception"], "5": ["py", "property", "Python property"], "6": ["py", "function", "Python function"]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:method", "4": "py:exception", "5": "py:property", "6": "py:function"}, "terms": {"": [2, 3, 6, 7, 8, 13, 14, 16, 17, 18, 21, 25, 26, 38, 41, 46, 52, 58, 82, 83, 85, 86, 87, 88, 89, 90, 91, 92, 94, 95, 96, 97, 98, 99, 100, 128, 136, 147, 158, 165, 178, 193, 196], "0": [13, 15, 17, 19, 21, 22, 23, 24, 25, 32, 42, 43, 44, 87, 88, 96, 97, 146, 152, 153, 157, 163, 164, 173, 188, 196], "00": [5, 44, 110, 121, 146, 152, 153, 157, 163, 164, 196], "000": [13, 25, 26], "0000": 5, "0001": 21, "000234": 12, "01": [5, 6, 8, 20, 25, 146, 147, 152, 157, 158, 163], "02": [5, 20], "04": [5, 44], "05": [6, 8, 146, 157, 196], "07": [44, 125, 126, 133, 134], "0830": 12, "09": 5, "0930": 12, "1": [1, 2, 5, 6, 7, 8, 10, 12, 13, 15, 16, 17, 19, 20, 21, 22, 31, 44, 72, 73, 84, 90, 91, 93, 99, 100, 128, 136, 139, 146, 152, 153, 157, 163, 164, 178, 193, 196], "10": [2, 6, 8, 13, 17, 19, 20, 32, 40, 44, 63, 67, 82, 127, 135, 152, 153, 163, 164, 165, 172, 173, 178, 187, 188, 193, 196], "100": [1, 5, 12, 13, 16, 19, 20, 25, 26, 32, 42, 44, 72, 73, 109, 110, 111, 112, 120, 121, 122, 123, 125, 126, 128, 133, 134, 136, 144, 145, 146, 152, 153, 155, 156, 157, 163, 164], "10000": [13, 25], "100000": 5, "102": 196, "10439": 5, "10m": [32, 178, 193], "11": [10, 17, 19, 26], "12": [10, 17, 19, 25, 26, 74], "123456": 17, "123456789": 17, "127": [15, 17], "13": [17, 127, 135], "14": [17, 196], "1400": 12, "15": [5, 17, 20, 32, 44, 72, 73], "155": 19, "15m": 44, "15min": 20, "16": [17, 74], "1600": 12, "1612172730": 12, "16808": 5, "17": [17, 19, 32], "18": 19, "180": 25, "180m": 25, "19": 44, "1990": 82, "1991": 82, "1d": [2, 6, 8, 20, 21, 40, 44], "1dai": 44, "1h": [20, 40], "1hour": 44, "1m": [5, 21, 44], "1minut": 44, "1month": [72, 73], "2": [2, 6, 17, 22, 30, 32, 62, 66, 72, 73, 111, 112, 122, 123, 153, 164, 178, 193], "20": [12, 13, 22, 32, 43, 165], "200": [1, 12, 36, 44, 73, 111, 112, 122, 123, 153, 164], "2018": [1, 20], "2019": [146, 157], "2020": [5, 10, 25, 26, 72, 90, 91, 99, 100, 147, 152, 158, 163], "20200101": [132, 141], "2021": [19, 32, 128, 136, 139], "2022": [74, 127, 135], "20221013": [129, 137], "2023": [2, 6, 8, 44, 125, 126, 133, 134, 196], "20h": 32, "213": [146, 157], "22": 5, "23": 21, "2359": [5, 21], "24": [13, 17, 32, 106, 117], "24h": 72, "25": [5, 17], "26": 19, "2793": 5, "2794": 5, "2796": 5, "2800": 5, "2d": [32, 178, 193], "2fa": 14, "2h": [178, 193], "3": [2, 12, 17, 146, 157], "30": [13, 40, 72, 73, 81, 196], "300": [36, 178, 193], "30am": 13, "31": [1, 5, 10, 25, 26, 44, 125, 126, 133, 134], "32": 5, "3233": 5, "3234": 5, "3235": 5, "3237": 5, "33": 5, "3306": [], "4": [2, 17, 26, 147, 158], "400": 22, "405": 22, "41000": [146, 157], "41250": [152, 163], "41300": [152, 163], "41325": [152, 163], "41d4": [], "420": 22, "446655440000": [], "48": 32, "5": [1, 2, 5, 6, 8, 17, 26, 32, 44, 72, 73, 106, 107, 117, 118, 146, 157, 165, 172, 178, 187, 193, 196], "50": [5, 22, 32, 146, 157, 178, 193], "500": [22, 36], "512000000": 17, "5432": 196, "55": 13, "550e8400": 196, "56": 5, "57": 5, "58": 5, "59": 21, "5d": 5, "5m": [32, 178, 193], "6": [17, 19, 26], "60": [1, 20, 173, 188], "600": 12, "7": [12, 13, 17, 26, 32, 106, 117], "7440": 5, "7496": 15, "7497": [15, 17], "75": 5, "7569": 5, "8": [17, 26], "80": [62, 66], "8000": [14, 17], "8203": 5, "8272": 5, "9": [13, 17, 32], "999": 15, "9wgjls3wixq54fcphwwzjcp8jcfjfkuwsryskkma": 17, "A": [1, 5, 7, 10, 12, 14, 22, 26, 44, 46, 52, 53, 58, 59, 77, 84, 93, 146, 153, 157, 164, 196], "And": [25, 72, 73], "As": [6, 8, 17], "At": [14, 25], "Be": 14, "By": [2, 17, 26, 34, 128, 136, 172, 173, 176, 178, 179, 181, 187, 188, 191, 193, 194], "For": [1, 2, 3, 5, 7, 10, 13, 14, 17, 19, 20, 22, 26, 28, 44, 49, 51, 55, 57, 109, 110, 111, 112, 120, 121, 122, 123, 146, 152, 153, 157, 163, 164, 165], "If": [1, 5, 6, 8, 12, 13, 14, 16, 17, 20, 21, 25, 26, 30, 32, 36, 40, 44, 72, 73, 74, 81, 102, 103, 105, 113, 114, 116, 131, 140, 143, 146, 151, 154, 157, 162], "In": [0, 6, 8, 13, 14, 17, 22, 43, 74, 75, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98], "It": [0, 4, 5, 6, 7, 8, 13, 15, 17, 19, 22, 23, 25, 26, 41, 43, 44, 74, 77, 146, 157], "NOT": 13, "Not": [43, 106, 117], "On": [14, 17], "One": [5, 17, 19, 22, 44, 146, 157], "Or": [25, 26, 165], "That": 16, "The": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 17, 19, 20, 21, 22, 23, 27, 28, 34, 35, 36, 37, 38, 39, 41, 43, 44, 45, 49, 50, 51, 54, 55, 56, 57, 60, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 104, 106, 108, 115, 117, 119, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 136, 137, 138, 139, 140, 146, 147, 150, 151, 153, 157, 158, 161, 162, 164, 165, 167, 169, 171, 172, 173, 174, 175, 176, 177, 179, 181, 182, 184, 186, 187, 188, 189, 190, 191, 192, 194], "Their": 17, "Then": [5, 13, 16, 72], "There": [10, 11, 146, 157], "These": [0, 1, 2, 3, 4, 7, 10, 32, 45, 54, 60, 82], "To": [0, 6, 8, 10, 13, 14, 16, 17, 22, 25, 26, 72], "Will": [20, 25, 62, 63, 66, 67, 74, 75, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 151, 162, 176, 179, 181, 191, 194], "With": [2, 6, 8, 26], "_": [], "__getattr__": [], "__init__": [], "__main__": [2, 6, 8, 13], "__name__": [2, 6, 8, 13], "__setattr__": [], "_asset_typ": 19, "_get_bars_dict": 21, "_right": 19, "_vars_dict": [], "a716": [], "a7py0zidhxde6qkx8ojjknp7cd87hwku": 17, "aapl": [1, 2, 5, 6, 8, 10, 12, 16, 19, 20, 23, 26, 32, 35, 36, 37, 39, 72, 73, 145, 156], "aapl_pric": [10, 26], "abc": [43, 44], "abcdef1234567890abcdef1234567890abcdef1234": 17, "abl": 16, "about": [2, 9, 11, 26, 166], "abov": [2, 15, 19, 20, 32], "abrupt": 33, "abstract": [27, 41, 43, 44, 45], "accept": [5, 19], "access": [7, 14, 16, 17, 20, 25, 26, 165, 196], "access_token": 16, "accompani": 7, "accord": [82, 83, 89, 92, 98], "account": [2, 6, 8, 11, 12, 13, 15, 16, 17, 26, 43, 47, 49, 51, 53, 55, 57, 59, 61, 150, 161, 167, 182], "account_histori": 17, "account_id": [14, 17], "account_numb": 16, "accur": [20, 44], "achiev": [7, 22, 25, 26], "across": [2, 17], "act": 14, "action": [4, 17], "activ": [14, 17, 22, 26, 74, 75, 78, 152, 153, 163, 164], "activex": 15, "actual": [2, 13, 22, 41, 43, 175, 190], "ad": [5, 11, 13, 17, 19, 26, 72, 73], "add": [3, 5, 13, 14, 17, 19, 22, 25, 32, 43, 46, 62, 63, 66, 67], "add_chart_lin": [62, 66], "add_chart_mark": [63, 67], "add_child_ord": 22, "add_lin": [3, 26, 47], "add_mark": [3, 26, 47], "add_ord": 23, "add_strategi": [5, 12, 13, 14, 15, 16, 25, 26, 46], "add_transact": 22, "addit": [2, 14, 17, 19, 22, 146, 157], "addition": [5, 10, 20], "address": 17, "adjust": [1, 7, 14, 20, 21, 44], "adjust_for_delai": [43, 44, 83, 92], "advanc": [0, 2, 5, 25, 26, 146, 157], "advantag": [], "afa": 17, "affili": 6, "afford": 17, "after": [5, 6, 8, 13, 14, 17, 21, 26, 28, 30, 31, 40, 42, 44, 63, 67, 72, 76, 130, 138, 139, 196], "after_market_clos": [26, 27], "again": [40, 103, 114], "against": 26, "aggregate_bar": 20, "ago": [44, 72], "agre": 14, "aka": 5, "algorithm": [15, 17, 25], "alia": 22, "align": 17, "all": [1, 4, 5, 13, 17, 20, 21, 22, 25, 30, 33, 34, 43, 44, 45, 46, 51, 53, 57, 59, 72, 73, 125, 127, 128, 129, 131, 133, 135, 136, 137, 140, 143, 145, 146, 149, 150, 151, 154, 156, 157, 160, 161, 162, 165, 196], "all_vari": 196, "alloc": 10, "allow": [0, 2, 4, 5, 6, 8, 14, 17, 20, 22, 25, 26, 81, 146, 157, 165], "along": 9, "alpaca": [11, 20, 26, 72, 73], "alpaca_api_kei": 17, "alpaca_api_secret": 17, "alpaca_config": [12, 25, 26], "alpaca_is_pap": 17, "alpacastrategi": 12, "alreadi": [22, 30, 36, 41], "also": [5, 10, 15, 17, 22, 25, 26, 32, 43, 72, 146, 151, 157, 162, 166], "altern": 8, "alwai": [13, 30, 43, 106, 117, 167, 182], "america": [5, 20, 44, 176, 179, 181, 191, 194], "amount": [9, 13, 20, 22, 28, 44, 49, 51, 55, 57, 79, 80, 146, 157], "an": [0, 1, 2, 5, 6, 7, 8, 12, 13, 14, 15, 16, 17, 19, 22, 23, 26, 34, 35, 36, 39, 40, 41, 43, 44, 52, 58, 72, 74, 75, 81, 102, 103, 105, 113, 114, 116, 126, 127, 131, 132, 134, 135, 140, 141, 144, 146, 147, 148, 152, 155, 157, 158, 159, 163, 165, 178, 193, 196], "analy": 26, "analysi": [2, 4, 13, 46], "analyt": 26, "analyz": 26, "ani": [0, 1, 2, 5, 6, 7, 8, 10, 13, 14, 15, 17, 21, 22, 25, 41, 43, 62, 66, 72, 73, 105, 116, 145, 156, 165], "annual": [7, 25, 26], "anoth": [], "another_var": [], "anyth": 10, "anytim": 19, "anywai": [], "api": [1, 2, 6, 8, 10, 12, 13, 14, 15, 16, 17, 20, 26, 44, 128, 136], "api_kei": [1, 12, 25, 26, 43, 44], "api_secret": [12, 25, 26], "apikei": 13, "appl": 23, "appli": [1, 17, 44], "applic": [17, 106, 117], "appropri": [14, 20], "ar": [0, 1, 2, 3, 5, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 38, 41, 44, 45, 47, 48, 53, 59, 61, 62, 63, 66, 67, 70, 73, 78, 81, 82, 101, 106, 117, 124, 125, 126, 128, 133, 134, 136, 142, 143, 146, 147, 149, 151, 153, 154, 157, 158, 160, 162, 164, 165, 167, 182, 196], "arg": [1, 21, 44], "argument": [8, 128, 136], "around": [14, 17, 18], "arrai": [17, 21], "arriv": 81, "arrow": [63, 67], "articl": [], "aset": [146, 152, 153, 157, 163, 164], "asex": [32, 106, 117], "ask": [14, 44, 77], "aspect": 2, "asset": [1, 2, 5, 9, 12, 13, 17, 18, 20, 21, 22, 23, 26, 33, 34, 35, 36, 37, 39, 40, 43, 44, 49, 51, 52, 53, 55, 57, 58, 59, 62, 66, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 146, 147, 152, 153, 157, 158, 163, 164, 167, 177, 182, 192], "asset_bar": 30, "asset_bas": [72, 73, 152, 163], "asset_btc": [153, 164], "asset_eth": [153, 164], "asset_pric": [44, 128, 136], "asset_quot": [72, 73, 152, 153, 163, 164], "asset_symbol": 32, "asset_to_get": 13, "asset_typ": [1, 5, 13, 19, 20, 44, 72, 73, 74, 146, 147, 152, 153, 157, 158, 163, 164], "asset_type_map": 12, "asset_type_must_be_one_of": 19, "assetsmap": 19, "assettyp": [5, 13, 19, 146, 152, 153, 157, 163, 164], "assign": 196, "assist": 17, "associ": 14, "assset": [52, 58], "asterisk": [63, 67], "asx": [32, 106, 117], "async": 46, "async_": 46, "asynchron": 46, "attach": 21, "attain": [7, 146, 157], "attempt": [175, 190], "attribut": [19, 196], "attributeerror": [], "authent": [11, 26], "author": 14, "auto_adjust": [1, 44], "autom": [11, 17, 26], "automat": [1, 6, 8, 22, 146, 147, 157, 158, 196], "avail": [2, 9, 10, 17, 20, 21, 23, 26, 47, 72, 73, 106, 117, 128, 136, 153, 164, 167, 182], "averag": [2, 7, 22, 23], "avg_fill_pric": [22, 23], "avoid": 14, "await": [103, 114, 143, 154], "await_market_to_clos": [26, 47], "await_market_to_open": [26, 47], "awar": [5, 20], "back": [14, 196], "background": 17, "backtest": [4, 5, 7, 10, 17, 21, 22, 24, 32, 44, 46, 63, 67, 72, 73, 74, 75, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117, 170, 185], "backtesting_brok": 43, "backtesting_end": [1, 2, 5, 6, 8, 10, 25, 26, 32], "backtesting_start": [1, 2, 5, 6, 8, 10, 25, 26, 32, 43], "backtestingbrok": [5, 6, 8, 10, 43], "backtets": 77, "backup": 26, "backup_table_nam": 196, "backup_variables_to_db": [], "backward": [72, 73], "balanc": 22, "band": [7, 62, 66], "bar": [13, 18, 21, 26, 43, 44, 63, 67, 71, 72, 73, 74, 75, 78, 81, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 128, 136], "bar_list": 20, "bars_agg": 20, "bars_list": 30, "base": [2, 7, 12, 13, 19, 20, 21, 22, 23, 24, 26, 40, 43, 44, 46, 72, 73, 74, 146, 157], "base_asset": [19, 152, 153, 163, 164], "bat": [32, 106, 117], "bband": 7, "becaus": [3, 5, 6, 8, 10, 17, 43], "becuas": 44, "been": [5, 10, 15, 22, 23, 35, 36, 37, 39, 43, 74, 78], "befor": [1, 2, 5, 7, 10, 13, 14, 15, 17, 20, 22, 25, 26, 29, 30, 31, 32, 40, 41, 42, 44, 72, 73, 102, 103, 113, 114, 151, 162, 172, 173, 187, 188, 196], "before_market_clos": [26, 27], "before_market_open": [26, 27, 173, 188], "before_starting_trad": [26, 27, 30], "begin": [2, 43], "beginn": 25, "behav": 17, "behavior": [0, 2], "behind": 19, "being": [26, 35, 36, 37, 38, 39, 44, 46, 72, 126, 134, 146, 157, 168, 183], "belong": 22, "below": [45, 47, 48, 61, 70, 74, 82, 101, 124, 142], "benchmark": [1, 2, 7], "benchmark_asset": [1, 2, 6, 8, 25], "benefit": 26, "best": [14, 17], "better": [7, 22, 146, 157], "between": [1, 2, 13, 20, 21, 26, 32, 72, 178, 193], "bid": [44, 77], "binanc": [13, 26], "bit": [6, 8], "bitcoin": 20, "black": [62, 63, 66, 67], "blacklist": 31, "blob": [15, 25, 26], "block": 14, "blue": [62, 63, 66, 67], "blueprint": 17, "bmf": [32, 106, 117], "boilerpl": [], "bolling": [7, 62, 66], "bool": [1, 22, 43, 44, 46, 72, 73, 74, 105, 116, 128, 136, 153, 164, 168, 170, 183, 185], "boolean": [12, 151, 153, 162, 164], "bot": [15, 17, 25, 32, 34, 45, 196], "both": [8, 22, 25, 30, 146, 157], "bottom": [14, 17], "bought": [36, 146, 157], "bowti": [63, 67], "box": 26, "bracket": [22, 146, 157], "broadcast": [105, 116], "broker": [1, 5, 12, 16, 19, 20, 22, 23, 24, 25, 26, 32, 35, 36, 37, 39, 44, 45, 72, 73, 74, 77, 81, 109, 110, 111, 112, 120, 121, 122, 123, 128, 136, 146, 152, 153, 157, 163, 164, 167, 182], "brokerag": [14, 17], "brown": [62, 63, 66, 67], "browser": [17, 25, 46], "bse": [32, 106, 117], "btc": [13, 19, 20, 72, 73, 74, 146, 152, 153, 157, 163, 164], "budget": [1, 5, 10, 17, 25, 32, 169, 184], "bug": 26, "bui": [1, 2, 5, 6, 7, 8, 9, 10, 12, 13, 16, 19, 22, 25, 26, 36, 40, 45, 49, 55, 105, 109, 110, 111, 112, 116, 120, 121, 122, 123, 144, 145, 146, 152, 153, 155, 156, 157, 163, 164, 167, 182], "build": [26, 27, 45], "built": [2, 5, 26], "bundl": 14, "busi": [29, 30], "butterfli": 17, "button": [14, 17], "buy_to_clos": 22, "buy_to_cov": 22, "buy_to_open": 22, "buy_trading_fe": [1, 25], "bvmf": [32, 106, 117], "byte": 17, "c": 14, "cach": [6, 8], "calcul": [13, 20, 22, 43, 44, 128, 136], "calculate_greek": 44, "calculate_trade_cost": 43, "calendar": [32, 76, 130, 138], "call": [1, 5, 6, 8, 19, 20, 22, 28, 32, 34, 35, 36, 38, 39, 40, 41, 42, 44, 72, 74, 75, 125, 126, 128, 133, 134, 136, 152, 163], "campu": [], "can": [2, 5, 6, 8, 10, 11, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 29, 32, 41, 44, 45, 48, 49, 55, 61, 62, 63, 66, 67, 70, 72, 73, 82, 101, 124, 128, 136, 142, 146, 157, 165, 166, 178, 193], "cancel": [12, 22, 30, 35, 43, 71, 109, 111, 120, 122, 142, 143, 144, 145, 146, 149, 151, 154, 155, 156, 157, 160, 162], "cancel_open_ord": [26, 30, 47, 151, 162], "cancel_ord": [12, 26, 43, 47, 149, 160], "cannot": 10, "capabl": [6, 8], "care": 41, "carri": 25, "case": [19, 21, 22], "cash": [9, 13, 22, 26, 28, 42, 43, 48, 49, 51, 55, 57, 61, 175, 177, 180, 190, 192, 195], "cash_pend": 22, "cash_settl": 22, "cash_settle_options_contract": 43, "categori": [45, 101], "caus": 14, "cboe": [125, 127, 129, 133, 135, 137], "cbot_agricultur": [32, 106, 117], "cbot_bond": [32, 106, 117], "cbot_equ": [32, 106, 117], "cbot_interestr": [32, 106, 117], "cbot_rat": [32, 106, 117], "ccxt": [11, 26], "central": [], "certain": [13, 63, 67], "cfd": 17, "cfe": [32, 106, 117], "chain": [22, 44, 124, 125, 126, 127, 129, 131, 133, 134, 135, 137, 140], "chain_data": 44, "challeng": 17, "chang": [5, 10, 12, 14, 16, 17, 20, 32], "chart": [26, 47, 62, 63, 64, 65, 66, 67, 68, 69], "check": [13, 17, 22, 26, 40, 43, 47, 72, 148, 149, 159, 160, 168, 170, 183, 185], "check_data": 21, "chf": [146, 157], "child": [22, 43], "child_ord": 22, "choic": [6, 8, 14, 17], "choos": [0, 15, 26], "chosen": [13, 16, 17], "chunk_siz": [12, 44, 73], "circl": [63, 67], "class": [1, 2, 5, 6, 8, 10, 12, 13, 16, 17, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 165, 196], "classmethod": [19, 20, 22, 23, 44], "clean_trading_tim": 44, "click": [14, 17], "client": [14, 15, 17], "client_id": 15, "close": [1, 5, 12, 13, 20, 21, 22, 28, 29, 32, 33, 40, 43, 51, 57, 72, 74, 75, 78, 81, 102, 103, 113, 114, 151, 162, 172, 187], "cme": [32, 74, 106, 117], "cme_agricultur": [32, 106, 117], "cme_bond": [32, 106, 117], "cme_equ": [32, 106, 117], "cme_interestr": [32, 106, 117], "cme_rat": [32, 106, 117], "code": [2, 5, 6, 7, 8, 13, 14, 17, 25, 26, 28, 29, 30, 33, 34, 35, 36, 37, 38, 39, 62, 66, 102, 103, 113, 114, 165], "coin": [20, 146, 157], "coinbas": [13, 26], "coinbase_api_kei": 17, "coinbase_api_secret": 17, "coinbase_config": 13, "coinbase_is_sandbox": 17, "coinbasepro": 13, "coinbasepro_config": 13, "collect": [4, 5], "color": [13, 62, 63, 66, 67, 105, 116], "column": [5, 20, 21, 44, 78, 196], "com": [2, 7, 15, 16, 17, 25, 26], "combin": 22, "comex_agricultur": [32, 106, 117], "comfort": 25, "command": [2, 25, 26], "comment": 74, "commiss": 17, "commit": 17, "common": [13, 14], "commun": [25, 26], "compar": [1, 7, 14, 17], "comparison": 2, "compat": 17, "competit": 17, "complet": [13, 14, 15, 17, 22, 26, 74, 75], "complex": 25, "complic": 26, "compon": [27, 41, 196], "compound": [146, 157], "comprehens": [4, 25], "comput": [6, 8, 17, 25, 26], "conclus": [0, 26], "concurr": [], "condit": [2, 14, 22, 40], "condor": [7, 17], "confid": 2, "config": [1, 12, 13, 16, 17, 25, 43], "configur": [2, 11, 15, 26], "confirm": [14, 17], "conflict": [14, 196], "confus": 26, "connect": [12, 13, 14, 17, 105, 116], "connect_stream": [12, 43], "consequ": [], "consid": [5, 20, 177, 192], "consist": [], "consol": [17, 105, 116], "constantli": [13, 26], "construct": 22, "constructor": 32, "contain": [1, 3, 20, 21, 22, 40, 42, 44, 78, 152, 153, 163, 164], "context": 42, "continu": [22, 146, 157], "contract": [5, 19, 20, 22, 32, 43], "control": [178, 193], "conveni": 14, "convers": [19, 178, 193], "convert": [1, 19, 20, 22, 26, 43, 44, 132, 141, 146, 157], "convert_timestep_str_to_timedelta": 44, "copi": 25, "core": 41, "corner": [14, 17], "corpor": 19, "correct": [13, 14, 16], "correctli": 17, "correspond": [17, 35, 36, 37], "cost": [14, 17, 43], "could": [128, 136], "count": [21, 32, 78, 81, 196], "countri": 14, "coupon": [2, 6, 8], "cours": [25, 26], "cover": [17, 26], "crash": [34, 40, 196], "creat": [1, 2, 5, 6, 7, 8, 10, 13, 14, 16, 17, 19, 21, 22, 36, 44, 72, 125, 127, 129, 131, 133, 135, 137, 140, 142, 144, 145, 146, 155, 156, 157], "create_asset": [71, 72, 79], "create_ord": [1, 2, 5, 6, 8, 10, 12, 13, 19, 22, 25, 26, 40, 47, 109, 110, 111, 112, 120, 121, 122, 123, 144, 145, 152, 153, 155, 156, 163, 164], "creation": [], "credenti": [13, 14, 15], "credit": [6, 8, 153, 164], "critic": [], "cross": [63, 67], "crucial": [2, 17, 25], "cryoptocurr": 13, "crypto": [0, 1, 5, 7, 11, 17, 19, 20, 23, 26, 49, 51, 55, 57, 72, 74, 106, 117, 146, 152, 153, 157, 163, 164, 167, 175, 182, 190], "cryptocurr": [1, 2, 6, 8, 13, 17, 20, 72, 73, 74, 75, 146, 157], "csv": [0, 2, 3, 9, 21, 26, 44], "cta": 14, "cumul": 7, "currenc": [19, 72, 146, 157, 167, 175, 177, 182, 190, 192], "current": [12, 13, 14, 17, 21, 36, 37, 42, 43, 44, 49, 51, 52, 55, 57, 58, 62, 63, 66, 67, 72, 73, 77, 78, 82, 83, 84, 85, 86, 87, 88, 89, 92, 93, 94, 95, 96, 97, 98, 128, 136, 143, 149, 153, 154, 160, 164, 167, 175, 178, 182, 190, 193, 196], "current_count": 196, "current_ema": 13, "current_macd": 13, "current_rsi": 13, "curv": 2, "custom": [2, 25, 32, 146, 157, 165], "custom_param": [22, 146, 157], "d": [32, 178, 193], "dai": [0, 1, 2, 5, 6, 8, 10, 17, 21, 22, 26, 30, 31, 32, 40, 44, 72, 73, 76, 79, 80, 84, 85, 86, 87, 93, 94, 95, 96, 130, 138, 146, 153, 157, 164, 178, 193], "daili": [0, 2, 5, 7, 10, 31, 72, 73], "darkblu": [62, 66], "darkgrai": [62, 66], "darkgreen": [62, 66], "darkr": [62, 66], "dash": [16, 62, 66], "dashboard": [6, 8, 25], "data": [0, 1, 3, 6, 8, 10, 11, 13, 18, 19, 20, 23, 26, 30, 31, 40, 45, 47, 62, 66, 71, 72, 73, 78, 81, 83, 89, 90, 91, 92, 98, 99, 100, 176, 179, 181, 191, 194], "data_sourc": [5, 12, 43, 44, 72, 73], "data_source_backtest": 43, "databas": [2, 5, 17, 26], "database_nam": 196, "datafram": [20, 21, 44, 64, 65, 68, 69, 72, 78, 81], "datalin": 21, "dataset": 2, "datasourc": [1, 8, 43, 44], "datasource_class": 1, "datasourcebacktest": [43, 44], "datatim": 82, "date": [0, 1, 2, 5, 6, 8, 10, 19, 21, 26, 32, 44, 74, 76, 82, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 136, 137, 138, 139, 141, 146, 157], "date_cr": 22, "date_end": 21, "date_start": 21, "daterang": 20, "datetim": [1, 2, 5, 6, 8, 10, 13, 19, 20, 21, 25, 26, 32, 43, 44, 47, 62, 63, 66, 67, 72, 76, 78, 81, 83, 84, 90, 91, 92, 93, 99, 100, 127, 130, 132, 135, 138, 139, 141, 146, 157, 171, 186], "datetime64": [5, 21], "datetime_end": [5, 43], "datetime_start": [5, 43], "db": 17, "db_connection_str": [17, 196], "dd": [76, 130, 138], "deal": [14, 26], "debit": [153, 164], "debug": [4, 46, 196], "decid": [17, 72], "decim": [23, 74, 75, 146, 147, 157, 158], "decis": [3, 4], "def": [1, 2, 5, 6, 8, 10, 12, 13, 16, 25, 26, 27, 41, 106, 117, 165, 172, 173, 178, 187, 188, 193, 196], "default": [1, 5, 10, 17, 19, 20, 21, 32, 34, 44, 45, 54, 60, 62, 63, 66, 67, 72, 73, 74, 76, 91, 100, 106, 117, 125, 127, 128, 129, 130, 133, 135, 136, 137, 138, 146, 151, 153, 157, 162, 164, 172, 173, 176, 178, 179, 181, 187, 188, 191, 193, 194, 196], "default_pytz": 44, "default_timezon": 44, "defin": [6, 7, 8, 13, 24, 27, 32, 41, 42, 43, 45, 165, 196], "definit": [], "delai": 44, "delet": 17, "delta": [7, 44, 128, 136], "demonstr": 13, "depend": [14, 17, 72, 73], "deploi": [2, 26], "deploy": 26, "deprec": [1, 15, 146, 157, 180, 195], "depric": 74, "describ": [26, 45], "descript": [1, 14, 17], "deseri": [], "design": [2, 17, 25, 27, 41], "desir": [13, 14, 21, 81, 128, 136], "detail": [0, 2, 3, 4, 9, 17, 19, 72, 148, 159], "detail_text": [62, 63, 66, 67], "determin": [6, 7, 8, 12, 22, 43, 106, 117, 146, 157, 166], "dev": [25, 26], "develop": [17, 26], "df": [5, 13, 20, 21, 30, 72, 73], "dialog": [], "diamond": [63, 67], "dict": [1, 21, 38, 42, 44, 46, 50, 54, 56, 60, 77, 104, 108, 115, 119, 146, 157], "dictionari": [1, 5, 8, 16, 36, 42, 43, 44, 46, 73, 77, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 146, 157, 165], "differ": [2, 3, 5, 7, 11, 13, 14, 17, 20, 25, 26, 45], "differenti": 7, "difficult": 5, "digit": 15, "directli": [17, 43], "directori": [5, 14, 17], "disabl": [14, 15], "disconnect": 14, "discord": [17, 26], "discord_webhook_url": 17, "discov": [25, 26], "displai": [46, 62, 63, 66, 67], "displi": 46, "divid": 47, "dividend": [20, 44, 79, 80, 128, 136, 167, 182], "do": [1, 5, 10, 13, 14, 16, 20, 22, 25, 26, 38, 44, 47, 101, 146, 157], "doc": [], "docstr": 43, "document": [11, 13, 14, 17, 25, 26, 72], "doe": [43, 44, 77, 146, 157], "doesn": [], "dollar": [146, 157, 175, 190], "don": [13, 14, 17, 26], "done": 44, "dot": [62, 63, 66, 67], "down": [14, 17, 25, 33, 63, 67], "downgrad": 17, "download": [2, 5, 6, 8, 25, 26], "drawdown": [2, 7], "dsttzinfo": 44, "dt": [13, 21, 44, 62, 63, 66, 67, 90, 91, 99, 100, 139], "dt_index": 44, "dte": 7, "due": 19, "dump": [28, 42], "duplic": 14, "durat": [7, 32, 146, 153, 157, 164, 178, 193], "dure": [1, 2, 4, 7, 17, 45, 73], "e": [2, 9, 17, 19, 20, 21, 22, 23, 25, 72, 73, 74, 146, 147, 152, 157, 158, 163], "e29b": [], "each": [0, 1, 2, 3, 5, 7, 9, 13, 14, 20, 22, 26, 30, 32, 40, 41, 44, 45, 47, 53, 59, 72, 80, 126, 134, 149, 151, 160, 162, 196], "eas": 17, "easi": [6, 8, 14, 17, 25, 26], "easier": [5, 17], "easiest": 25, "easili": [10, 26, 32, 45], "eastern": 21, "edit": 17, "effect": 17, "effici": 196, "eg": [13, 17, 19, 20, 25, 44, 47, 49, 51, 55, 57, 62, 63, 66, 67, 70, 77, 82, 105, 116, 125, 126, 133, 134, 146, 157, 178, 193], "either": [5, 19, 21, 22, 72, 73, 74, 75], "elif": 36, "els": 43, "ema": 13, "ema_threshold": 165, "email": [7, 14], "empti": [53, 59], "en": 13, "enabl": [13, 15], "encount": 22, "end": [1, 2, 6, 7, 8, 10, 14, 20, 21, 26, 42], "end_dat": 21, "endpoint": 12, "engag": 17, "engin": [26, 41], "enhanc": 25, "enjoi": 25, "enough": [], "ensur": [5, 10, 14, 17, 21, 22, 25, 26, 146, 157], "enter": [14, 17, 19, 22, 31, 146, 157, 178, 193], "entir": 13, "entiti": [5, 13, 19, 20, 21, 22, 23, 24, 25, 26, 44, 72, 73, 80, 146, 152, 153, 157, 163, 164], "entri": [15, 22], "env": [14, 17, 196], "environ": [2, 14, 26, 196], "equal": [172, 173, 178, 187, 188, 193], "equiti": [2, 14, 51, 57], "equival": 22, "equivalent_statu": 22, "error": [13, 17, 22, 34], "error_messag": 22, "especi": [82, 196], "essenti": [2, 17], "est": 5, "etc": [5, 16, 20, 21, 40, 44, 45, 48, 61, 63, 67, 77, 148, 159], "etf": [2, 10], "eth": [20, 73, 146, 153, 157, 164], "ethereum": 20, "eula": 14, "eur": [19, 72, 73, 146, 152, 153, 157, 163, 164], "eurex": [32, 106, 117], "eurusd": 73, "evalu": 43, "even": [2, 6, 8, 30, 153, 164], "event": [4, 26, 33, 34, 35, 36, 37, 38, 39, 43, 63, 67], "everi": [2, 25, 32, 40, 43, 47, 81, 196], "everyth": [17, 26], "ew": [63, 67], "exactli": 26, "exampl": [1, 2, 6, 8, 11, 12, 15, 19, 20, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 52, 53, 58, 59, 62, 63, 66, 67, 71, 72, 73, 74, 75, 79, 80, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 105, 106, 107, 109, 110, 111, 112, 113, 114, 116, 117, 118, 120, 121, 122, 123, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 196], "example_strategi": [13, 25, 26], "exce": 20, "excel": 17, "except": [15, 20, 25, 26, 34], "exchang": [14, 21, 22, 44, 72, 73, 74, 75, 76, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 125, 126, 127, 129, 130, 131, 133, 134, 135, 137, 138, 140, 146, 157], "exchange_id": 13, "excut": [168, 183], "execud": [29, 30], "execut": [2, 9, 17, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 102, 103, 107, 109, 111, 113, 114, 118, 120, 122, 143, 152, 154, 163, 172, 173, 178, 187, 188, 193], "exist": [21, 54, 60], "exit": 22, "exp_dat": [44, 125, 126, 133, 134], "expect": [17, 25, 26, 128, 136], "expens": [17, 128, 136], "expert": [25, 26], "expertis": 26, "expir": [7, 14, 19, 22, 32, 44, 72, 74, 125, 126, 127, 128, 133, 134, 135, 136, 139, 146, 157], "expiration_d": [147, 152, 158, 163], "expiri": [19, 44, 127, 132, 135, 141], "expiry_d": [127, 132, 135, 141], "explain": 2, "exponenti": 7, "export": 2, "expri": 43, "extend": 81, "extens": 2, "extract": 72, "extrem": 22, "ey": 17, "f": [13, 16, 28, 35, 36, 38, 39, 42, 72, 74, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 132, 141, 169, 171, 174, 176, 177, 179, 181, 184, 186, 189, 191, 192, 194, 196], "fact": [], "factor": [11, 26], "fairli": [], "fals": [1, 12, 13, 16, 17, 22, 25, 26, 32, 43, 44, 46, 73, 74, 83, 92, 105, 116, 128, 136, 146, 151, 157, 162], "familiar": 25, "fashion": [], "fast": [22, 25, 26], "faster": [2, 6, 8, 44], "favor": [146, 157], "featur": [0, 2, 6, 8, 26], "fee": [14, 17, 18, 26], "feel": 14, "fetch": [6, 8, 44, 126, 131, 134, 140], "few": [13, 17, 26, 101], "field": [14, 20, 22], "figur": 17, "file": [1, 4, 5, 7, 14, 15, 17, 25, 26, 101, 105, 116, 165, 196], "fill": [14, 17, 21, 22, 23, 36, 39, 43, 146, 157, 167, 182], "filter": 20, "final": [5, 6, 8, 10, 14, 26], "financ": [1, 2, 10, 26], "financi": [20, 25], "find": [13, 14, 15, 16, 17, 26, 44, 76, 127, 129, 130, 131, 135, 137, 138, 139, 140], "find_asset_in_data_stor": 44, "firm": 14, "first": [1, 5, 6, 8, 10, 13, 16, 17, 20, 21, 22, 25, 26, 30, 32, 73, 168, 178, 183, 193, 196], "first_iter": [1, 2, 5, 6, 8, 10, 26], "fit": [17, 101], "fix": [26, 81], "flat": 25, "flat_fe": [24, 25], "flexibl": [2, 5, 6, 8, 25], "float": [1, 5, 19, 20, 22, 23, 36, 39, 43, 44, 49, 51, 55, 57, 62, 63, 66, 67, 74, 75, 79, 80, 102, 103, 107, 113, 114, 118, 128, 131, 136, 140, 146, 147, 153, 157, 158, 164, 167, 169, 175, 182, 184, 190], "flow": 45, "focus": 17, "folder": [2, 5, 10, 13, 17], "follow": [2, 5, 6, 8, 13, 14, 15, 17, 19, 20, 22, 26, 27, 30, 41, 78, 165, 178, 193], "forc": [146, 157], "forex": [0, 2, 5, 6, 8, 12, 17, 19, 26, 44, 73, 74, 146, 152, 153, 157, 163, 164], "forget": 26, "form": [6, 21, 81, 106, 117, 127, 129, 135, 137, 167, 182], "format": [0, 5, 19, 21, 44, 76, 125, 126, 130, 132, 133, 134, 138, 141], "fortun": 26, "found": 26, "frame": 5, "framework": [2, 41], "free": [1, 2, 6, 8, 14, 17, 23, 26, 44, 128, 136], "frequenc": [20, 21], "frequent": 20, "friendli": 17, "from": [1, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 21, 23, 25, 26, 41, 42, 44, 45, 72, 73, 76, 80, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 136, 137, 138, 140, 146, 152, 153, 157, 163, 164, 196], "from_dict": [19, 22, 23], "full": [2, 6, 8, 11, 26, 44, 125, 133], "function": [0, 2, 3, 13, 17, 21, 26, 32, 38, 41, 44, 47, 48, 82, 142], "further": [2, 17], "futur": [0, 5, 12, 14, 17, 19, 20, 26, 43, 44, 74, 146, 147, 152, 157, 158, 163, 180, 195], "g": [2, 9, 17, 20, 21, 22, 23, 25, 72, 73, 146, 157], "gain": 26, "gamma": [128, 136], "gatewai": [], "gbp": [19, 152, 163], "gear": [], "gener": [7, 10, 13, 16, 26, 151, 162], "get": [1, 2, 5, 6, 8, 10, 11, 12, 13, 14, 17, 18, 20, 21, 22, 30, 31, 33, 38, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 55, 56, 57, 58, 59, 61, 70, 72, 73, 75, 77, 79, 80, 82, 104, 115, 124, 147, 148, 149, 150, 158, 159, 160, 161, 165, 166, 167, 172, 173, 175, 178, 182, 187, 188, 190, 193, 196], "get_asset": 44, "get_asset_by_nam": 44, "get_asset_by_symbol": 44, "get_asset_potential_tot": [26, 47], "get_bar": [20, 21, 44], "get_bars_between_d": 21, "get_cash": [26, 47], "get_chain": [26, 44, 47, 127, 129, 131, 135, 137, 140], "get_chain_full_info": 44, "get_datetim": [13, 26, 43, 44, 47], "get_datetime_rang": [26, 43, 44, 47], "get_expir": [26, 47], "get_fill_pric": 22, "get_func_stat": 25, "get_greek": [26, 47], "get_historical_account_valu": [12, 43], "get_historical_pric": [6, 8, 13, 20, 26, 31, 44, 47, 73], "get_historical_prices_for_asset": [26, 30, 47], "get_incr": 22, "get_iter_count": 21, "get_last_bar": 43, "get_last_dai": [26, 44, 47], "get_last_dividend": 20, "get_last_minut": [26, 44, 47], "get_last_pric": [2, 6, 8, 10, 13, 16, 20, 21, 26, 44, 47], "get_lines_df": [26, 47], "get_markers_df": [26, 47], "get_momentum": 20, "get_multipli": [26, 47], "get_next_option_expir": 139, "get_next_trading_dai": [26, 47], "get_ord": [13, 26, 47], "get_paramet": [26, 47, 165], "get_portfolio_valu": [26, 47], "get_posit": [13, 23, 26, 47, 150, 161], "get_quot": [21, 26, 47], "get_round_dai": [26, 44, 47], "get_round_minut": [26, 44, 47], "get_selling_ord": [23, 26, 47], "get_start_datetime_and_ts_unit": 44, "get_strik": [26, 44, 47], "get_symbol_bar": 70, "get_thread_stat": 25, "get_time_to_clos": [12, 43], "get_time_to_open": [12, 43], "get_timestamp": [12, 26, 44, 47], "get_timestep": 44, "get_total_dividend": 20, "get_total_return": 20, "get_total_return_pct": 20, "get_total_return_pct_chang": 20, "get_total_stock_split": 20, "get_total_volum": 20, "get_tracked_ord": [149, 160], "get_trading_days_panda": 44, "get_yesterday_dividend": [26, 44, 47], "getting_start": 15, "github": [13, 15, 17, 20, 25, 26], "give": [6, 8, 13, 131, 140], "given": [14, 20, 21, 43, 44, 52, 58, 71, 72, 73, 76, 84, 93, 125, 127, 129, 130, 131, 133, 135, 137, 138, 139, 140, 143, 148, 154, 159], "global": [15, 17, 20, 45], "go": [2, 5, 12, 15, 17, 25, 26], "goal": 7, "goe": [105, 116], "good": [26, 146, 157], "good_till_d": [22, 146, 157], "goog": [22, 42, 72, 73], "googl": 22, "google_symbol": 42, "gracefulli": 33, "grai": [62, 66], "graph": [7, 62, 63, 66, 67], "great": [14, 17], "greatli": [27, 41], "greek": [44, 124, 128, 136], "green": [13, 62, 63, 66, 67, 105, 116], "grouper_kwarg": 20, "growth": 7, "gtc": [146, 153, 157, 164], "gtd": [146, 157], "guarante": [146, 157], "guarente": [44, 125, 126, 133, 134], "guid": [2, 13, 16, 25, 26], "guidanc": 25, "h": [178, 193], "ha": [0, 7, 15, 20, 22, 26, 35, 36, 37, 39, 45, 71, 74, 78, 196], "handl": [], "happen": [171, 186], "happi": 17, "harm": 7, "hash": [63, 67], "have": [0, 1, 2, 5, 6, 8, 10, 14, 16, 17, 20, 22, 23, 25, 26, 28, 43, 47, 49, 51, 55, 57, 72, 78], "he": 41, "header": 14, "held": [175, 190], "hello": 40, "help": [2, 3, 6, 8, 25], "helper": [20, 22, 45], "here": [1, 2, 5, 6, 8, 11, 12, 13, 14, 15, 16, 17, 18, 25, 26, 41, 165, 166], "hex": [62, 66], "hexagon": [63, 67], "hexagon2": [63, 67], "hexagram": [63, 67], "high": [5, 20, 21, 25, 26, 43, 78, 81], "higher": 22, "highli": [15, 26], "histor": [2, 6, 8, 12, 13, 20, 26, 43, 44, 70, 72, 73], "histori": 17, "historical_limit": 20, "hkex": [32, 106, 117], "hold": [6, 8, 20, 22, 23, 26, 36], "home": 26, "hope": 25, "host": [14, 17], "hour": [13, 20, 21, 32, 40, 44, 72, 73, 106, 117, 178, 193], "hourglass": [63, 67], "hover": [62, 63, 66, 67], "how": [0, 3, 11, 12, 13, 17, 25, 26, 45, 72, 81, 166], "howev": [17, 22, 30, 32, 146, 157], "hr": [5, 21], "html": [0, 1, 3, 9, 20, 26], "http": [2, 6, 8, 12, 13, 14, 15, 16, 17, 20, 25, 26], "i": [0, 1, 2, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 26, 28, 29, 30, 32, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 46, 47, 49, 51, 52, 55, 57, 58, 62, 63, 66, 67, 72, 73, 74, 75, 76, 77, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 102, 103, 106, 113, 114, 117, 125, 126, 127, 129, 130, 132, 133, 134, 135, 137, 138, 141, 146, 147, 149, 151, 153, 157, 158, 160, 162, 164, 166, 167, 168, 170, 172, 173, 177, 178, 182, 183, 185, 187, 188, 192, 193, 196], "ib": [19, 132, 141], "ib_api_url": [14, 17], "ib_password": [14, 17], "ib_subaccount": 17, "ib_usernam": [14, 17], "ibeam": [], "ibkei": 14, "ibkr": 14, "ibkrcampu": [], "ibm": [19, 145, 156], "ic": [32, 106, 117], "iceu": [32, 106, 117], "icon": [], "id": [2, 15, 17, 148, 159, 196], "ideal": [2, 17], "identifi": [2, 13, 19, 22, 148, 159], "idx": 21, "iepa": [32, 106, 117], "illustr": 41, "iloc": [13, 72], "imag": [], "implement": [7, 17, 26, 27, 41, 44, 46], "impli": [128, 136], "implied_volatil": [128, 136], "import": [0, 1, 2, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 26, 41, 42, 44, 45, 63, 67, 73, 80, 146, 152, 153, 157, 163, 164, 165], "importantfunct": 13, "importantli": 22, "improv": 26, "includ": [2, 3, 7, 9, 10, 13, 17, 19, 20, 26, 32, 41, 44, 54, 60, 72, 124, 146, 148, 157, 159, 175, 190], "include_after_hour": [44, 72, 73], "inclus": 20, "incred": 17, "incur": 14, "index": [5, 19, 20, 21, 26, 78], "indic": [0, 1, 5, 13, 46, 52, 53, 58, 59, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 153, 164], "indicators_fil": 1, "individu": [2, 26], "industri": 26, "infinit": [103, 114], "influenc": [3, 27, 41], "info": [44, 105, 116, 125, 126, 133, 134], "inform": [2, 3, 5, 9, 10, 13, 17, 43, 44, 77, 78, 126, 131, 134, 140, 146, 157, 166], "inherit": [6, 8, 45], "initi": [1, 2, 6, 8, 13, 15, 25, 26, 27, 41, 106, 117, 165, 169, 172, 173, 178, 184, 187, 188, 193], "initial_budget": 26, "input": [21, 102, 103, 113, 114], "insert": [], "insid": [47, 166, 172, 187], "insight": [0, 2], "instal": [0, 5, 10, 13, 15, 17], "instanc": [13, 196], "instanti": [13, 16, 26, 43], "instead": [1, 5, 17, 20, 43, 107, 118, 128, 136, 180, 195], "instruct": [17, 146, 152, 153, 157, 163, 164], "instrument": 20, "int": [1, 12, 19, 20, 21, 22, 36, 39, 44, 62, 63, 66, 67, 72, 73, 81, 84, 85, 86, 87, 88, 89, 93, 94, 95, 96, 97, 98, 102, 103, 113, 114, 146, 147, 157, 158, 172, 173, 178, 187, 188, 193], "integ": [72, 73, 178, 193], "integr": [6, 8], "intend": [5, 17], "inter": [0, 5], "interact": [11, 13, 20, 22, 26, 45, 72, 73, 74, 81], "interactive_brok": 15, "interactive_brokers_client_id": 17, "interactive_brokers_config": 15, "interactive_brokers_ip": 17, "interactive_brokers_port": 17, "interactivebrok": [15, 20], "interest": [7, 13, 44, 128, 136], "interfer": [], "intern": [17, 146, 157], "interpret": [2, 178, 193], "interrupt": [33, 196], "interupt": [33, 40], "interv": 5, "intervent": [], "intial": 78, "intra": [0, 5, 10], "intradai": 2, "introduc": 2, "invest": [7, 14, 26], "involv": 9, "io": [0, 13, 20, 26], "ip": [15, 17], "iron": 7, "is_act": 22, "is_backtest": [17, 26], "is_backtest_brok": 46, "is_backtesting_brok": 43, "is_backtesting_data_sourc": [43, 44], "is_buy_ord": 22, "is_cancel": 22, "is_fil": 22, "is_market_open": [12, 43], "is_multileg": [153, 164], "is_opt": 22, "is_par": 22, "is_sell_ord": 22, "is_valid": 19, "isn": [], "isol": [], "issu": 2, "item": [], "iter": [1, 2, 6, 8, 13, 21, 32, 40, 41, 168, 171, 183, 186, 196], "iter_index": 21, "its": [1, 6, 8, 22, 42], "itself": 17, "j": [27, 41], "jan": 82, "join": [25, 26], "jpx": [32, 106, 117], "json": 196, "june": 19, "just": [19, 26, 32, 36, 43, 146, 157], "keep": [17, 22, 23, 81, 146, 157], "keep_bar": 81, "kei": [1, 2, 3, 5, 6, 8, 12, 15, 16, 17, 21, 26, 46, 128, 136, 165, 196], "kept": 81, "keybord": 33, "keyerror": [], "keyword": 22, "kill": [], "kind": [1, 25], "know": [13, 18], "knowledg": [], "known": [44, 74, 75], "kraken": [13, 26, 146, 157], "kraken_api_kei": 17, "kraken_api_secret": 17, "kraken_config": 13, "kucoin": [13, 26], "kucoin_config": 13, "kwarg": [1, 12, 19, 21, 43, 44, 153, 164], "last": [5, 13, 20, 21, 22, 28, 30, 31, 42, 43, 44, 72, 73, 74, 75, 85, 86, 94, 95, 171, 186, 196], "last_dai": [85, 94], "last_minut": [86, 95], "last_ohlc": 72, "last_on_trading_iteration_datetim": 26, "last_pric": [13, 74, 75, 196], "last_upd": 196, "later": 32, "latest": [2, 5, 10, 13, 17, 25, 26, 72], "launch": 30, "layout": [], "learn": [11, 17, 25, 26], "least": [5, 41], "leav": [151, 162], "left": [14, 17, 63, 67], "leg": 26, "legaci": [11, 26], "len": 21, "length": [13, 21, 43, 44, 72, 73, 78, 84, 93], "less": [16, 146, 147, 157, 158], "let": 13, "level": [26, 63, 67, 105, 116], "leverag": [19, 146, 157], "librari": [5, 7, 13, 16, 17, 25], "lifecycl": [26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 47, 168, 172, 173, 178, 183, 187, 188, 193], "lightblu": [62, 66], "lightgrai": [62, 66], "lightgreen": [62, 66], "lightr": [62, 66], "like": [2, 5, 17, 21, 25, 26, 29, 30, 31, 32, 33, 43, 44, 165], "limit": [6, 8, 13, 17, 22, 43, 44, 72, 73, 81, 110, 121, 146, 152, 153, 157, 163, 164], "limit_ord": [43, 146, 157], "limit_pric": [13, 22, 43, 110, 121, 146, 152, 153, 157, 163, 164], "line": [3, 26, 46, 62, 63, 64, 66, 67, 68], "link": [6, 8, 14], "list": [1, 2, 13, 18, 19, 20, 23, 25, 31, 43, 44, 47, 48, 53, 59, 61, 70, 73, 75, 80, 82, 84, 93, 101, 106, 111, 112, 117, 122, 123, 124, 127, 129, 131, 135, 137, 140, 142, 145, 149, 153, 156, 160, 164, 166], "littl": [], "live": [1, 2, 12, 14, 15, 17, 20, 25, 43, 44, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117], "live_config": 17, "ll": [13, 14, 16, 26], "lmt": 44, "lmt_order": 13, "load": [5, 18, 21, 63, 67, 196], "load_data": 44, "load_variables_from_db": [], "local": [20, 21, 42, 44, 90, 91, 99, 100, 128, 136], "localhost": [14, 17, 196], "localize_datetim": [26, 44, 47], "localize_timezon": 21, "locat": 17, "log": [0, 1, 2, 7, 10, 14, 15, 16, 17, 19, 26, 42, 101, 105, 116], "log_messag": [13, 16, 20, 26, 28, 30, 33, 34, 35, 36, 37, 38, 39, 40, 42, 47, 52, 53, 58, 59, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 132, 141, 147, 148, 149, 158, 159, 160, 167, 168, 169, 170, 171, 172, 174, 175, 176, 177, 179, 181, 182, 183, 184, 185, 186, 187, 189, 190, 191, 192, 194], "logfil": [1, 46], "logic": [27, 29, 30, 40, 41, 43, 45], "login": 14, "long": 22, "longer": 2, "longest": 7, "look": [2, 5, 15, 26], "loop": [14, 31, 40, 103, 114, 172, 187], "lose": [], "loss": [7, 22, 43, 62, 63, 66, 67, 146, 152, 153, 157, 163, 164], "lost": [], "lot": [17, 166], "low": [5, 17, 20, 21, 43, 78, 81], "lower": 21, "lse": [32, 106, 117], "luck": 26, "lumi": [2, 7, 8], "lumi10": [2, 6], "lumibot": [0, 1, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 18, 19, 22, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165], "lumiwealth": [7, 15, 26], "m": [178, 193], "mac": 26, "macd": 13, "machin": 2, "machinelearninglongshort": 25, "made": [25, 70, 82], "mai": [5, 13, 14, 17, 19, 22, 25, 72, 73, 81, 146, 157], "main": [17, 18, 22, 26, 33, 40, 45, 146, 157], "main_tick": 165, "maintain": 17, "major": [5, 10], "make": [2, 4, 5, 6, 8, 14, 17, 22, 25, 26, 74, 75], "maker": 24, "manag": [21, 22, 26, 47, 61, 124], "mandatori": [17, 19, 45, 146, 157], "mani": [6, 8, 13, 26, 32, 41, 81], "manual": [2, 14, 17], "map": 19, "map_asset_typ": 12, "margin": [13, 146, 157], "mark": [63, 67], "marker": [3, 46, 63, 65, 67, 69], "market": [2, 11, 12, 13, 17, 22, 25, 26, 28, 29, 30, 31, 32, 40, 43, 74, 75, 102, 103, 106, 109, 110, 111, 112, 113, 114, 117, 120, 121, 122, 123, 146, 151, 152, 153, 157, 162, 163, 164, 172, 173, 175, 187, 188, 190], "marketcalendar": [32, 106, 117], "martingal": 7, "master": 15, "match": [21, 44], "math": 26, "max": [7, 13], "max_bar": 32, "max_pric": 13, "max_work": [12, 43, 44, 73], "maximum": [7, 17, 44], "mean": 14, "meant": 124, "measur": [1, 7], "mechan": [], "memori": 17, "mention": 20, "menu": [14, 26], "merg": 21, "messag": [17, 101, 105, 116], "method": [1, 6, 8, 15, 19, 20, 22, 23, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 70, 101, 124, 125, 127, 129, 131, 133, 135, 137, 140, 165, 168, 172, 173, 178, 183, 187, 188, 193, 196], "metric": [2, 7], "might": [5, 13, 14, 17], "min": 20, "min_timestep": [21, 44], "mind": [], "minim": [], "minimum": 44, "minut": [1, 5, 13, 17, 20, 21, 25, 26, 29, 30, 32, 40, 43, 44, 72, 73, 84, 86, 88, 93, 95, 97, 102, 103, 113, 114, 172, 173, 178, 187, 188, 193], "minutes_before_clos": [1, 26, 29, 32, 40, 102, 113], "minutes_before_open": [1, 26, 30, 103, 114], "miscellan": [26, 47], "miss": 39, "mkt_order": 13, "mm": [76, 130, 138], "mnq": 32, "mobil": [], "mode": [0, 15, 17, 43, 170, 185], "modifi": [10, 25, 26], "modul": [5, 10, 26], "momentum": 20, "monei": [14, 16, 17, 25, 49, 51, 55, 57, 167, 182], "monitor": 17, "month": [17, 85, 94], "more": [0, 2, 3, 11, 13, 14, 16, 17, 18, 20, 25, 26, 43, 44, 47, 70, 72, 101, 124, 128, 136, 142], "most": [0, 5, 7, 14, 17, 20, 25, 41, 72, 78, 128, 136], "mostli": 43, "move": [2, 7, 22, 26], "movement": [22, 146, 157], "much": [5, 6, 8, 12, 44], "multileg": [22, 153, 164], "multipl": [2, 17, 143, 154, 196], "multipli": [19, 20, 36, 39, 44, 125, 126, 129, 131, 133, 134, 137, 140, 152, 163], "must": [1, 2, 5, 6, 8, 10, 12, 16, 21, 22, 41, 72, 73, 131, 140, 146, 157], "my": [17, 25], "my_custom_paramet": 32, "my_custom_stat": 42, "my_last_paramet": 32, "my_limit_pric": 22, "my_other_paramet": 32, "my_other_stat": 42, "my_paramet": 165, "my_stat": 42, "my_stop_loss_pric": 22, "my_stop_pric": 22, "my_take_profit_pric": 22, "my_trail_perc": 22, "my_trail_pric": 22, "mysql": [], "mystrategi": [1, 2, 5, 6, 8, 10, 13, 16, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 165], "n": [63, 67], "name": [0, 1, 5, 10, 14, 17, 19, 21, 25, 26, 32, 44, 46, 62, 63, 66, 67, 74, 105, 116, 165, 196], "namespac": 196, "nan": 21, "nasdaq": [14, 32, 106, 117], "navig": [14, 15, 17], "ne": [63, 67], "nearest": [87, 88, 96, 97], "necessari": [6, 8, 17, 43], "need": [2, 6, 8, 13, 14, 16, 17, 25, 27, 41, 43, 44, 72, 73, 77], "net": [2, 8, 51, 57], "network": 14, "new": [2, 5, 7, 14, 17, 19, 20, 22, 26, 36, 37, 43, 54, 60, 146, 157, 167, 182], "new_york": [20, 44, 176, 179, 181, 191, 194], "newer": 17, "nexpir": 19, "next": [5, 6, 8, 12, 17, 26, 40, 76, 130, 138, 139], "next_option_expir": 139, "next_trading_dai": [76, 130, 138], "nobardatafound": 20, "none": [1, 12, 13, 17, 19, 20, 21, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43, 44, 46, 49, 51, 52, 53, 54, 55, 57, 58, 59, 60, 62, 63, 66, 67, 71, 72, 73, 74, 75, 81, 84, 93, 102, 103, 105, 106, 107, 108, 113, 114, 116, 117, 118, 119, 128, 131, 136, 140, 143, 144, 145, 146, 148, 150, 151, 154, 155, 156, 157, 159, 161, 162], "normal": [5, 16, 131, 140], "notat": 196, "note": [5, 10, 13, 14, 15, 17, 20, 22, 43, 77, 146, 157], "notic": 26, "notif": [14, 17], "now": [16, 25, 44, 74], "num_period": 20, "number": [1, 12, 15, 16, 17, 21, 22, 29, 32, 44, 72, 73, 84, 87, 88, 93, 96, 97, 146, 157, 172, 173, 178, 187, 188, 193], "numpi": 21, "nuzcnprsxjxxouxrhqe5k2k1xnqlpckh2xcutifkcw": 17, "nw": [63, 67], "nyfe": [32, 106, 117], "nymex_agricultur": [32, 106, 117], "nyse": [14, 32, 76, 106, 117, 130, 138], "o": 22, "obect": [146, 157], "object": [1, 5, 10, 12, 18, 19, 20, 21, 22, 23, 24, 35, 36, 37, 39, 43, 44, 46, 52, 53, 58, 59, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 109, 110, 111, 112, 120, 121, 122, 123, 126, 131, 134, 140, 144, 145, 146, 147, 148, 149, 152, 153, 155, 156, 157, 158, 159, 160, 163, 164, 176, 181, 191, 196], "observ": 7, "obtain": [6, 8, 13, 44, 126, 127, 129, 131, 134, 135, 137, 140], "occur": 22, "oco": [22, 146, 152, 157, 163], "octagon": [63, 67], "off": [2, 6, 8], "offer": [2, 7, 14, 17, 26], "offici": 2, "often": 22, "ohlcv": [20, 21, 43], "on_abrupt_clos": [26, 27, 34], "on_bot_crash": [26, 27], "on_canceled_ord": [26, 27], "on_filled_ord": [26, 27], "on_new_ord": [26, 27], "on_parameters_upd": [26, 27], "on_partially_filled_ord": [26, 27], "on_start": [], "on_trading_inter": [12, 32], "on_trading_iter": [1, 2, 5, 6, 8, 10, 13, 16, 25, 26, 27, 28, 41, 42, 47, 102, 103, 113, 114, 165, 168, 172, 178, 183, 187, 193, 196], "onc": [2, 14, 15, 16, 17, 22, 25, 26, 32, 41, 146, 157, 196], "one": [5, 7, 13, 14, 17, 22, 25, 26, 41, 43, 47, 72, 109, 120, 146, 153, 157, 164], "ones": [17, 41], "onli": [1, 5, 10, 13, 14, 15, 17, 19, 20, 21, 22, 23, 25, 26, 32, 41, 43, 44, 46, 72, 73, 74, 77, 81, 128, 136, 143, 153, 154, 164, 172, 187], "open": [1, 2, 5, 12, 17, 20, 21, 22, 25, 29, 30, 31, 40, 43, 63, 67, 72, 78, 81, 102, 103, 113, 114, 143, 144, 145, 149, 151, 154, 155, 156, 160, 162, 173, 188], "open_": 43, "open_interest": 44, "openbook": 14, "oper": [14, 17, 32, 41], "opra": 14, "opt_asset": [128, 136], "optim": [2, 7, 17, 26], "option": [0, 2, 6, 8, 9, 12, 14, 16, 17, 19, 20, 22, 26, 32, 36, 39, 41, 43, 44, 47, 72, 74, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 146, 152, 157, 163], "option_chain": 44, "option_pric": [128, 136], "option_typ": [128, 136], "optionright": 19, "options_expiry_to_datetime_d": [26, 47], "optionscondormartingal": 196, "orang": [62, 63, 66, 67], "order": [1, 2, 5, 6, 8, 9, 10, 12, 13, 18, 19, 23, 25, 26, 29, 30, 35, 36, 37, 39, 40, 41, 43, 47, 105, 109, 110, 111, 112, 116, 120, 121, 122, 123, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 182], "order1": [111, 112, 122, 123, 145, 153, 156, 164], "order2": [111, 112, 122, 123, 145, 153, 156, 164], "order_1": 22, "order_2": 22, "order_class": 22, "order_dict": 22, "order_id": [148, 159], "order_typ": [12, 153, 164], "orderclass": 22, "orderdata": 12, "ordersid": 22, "orderstatu": 22, "ordertyp": 22, "origin": [105, 116], "os": [32, 106, 117], "other": [0, 2, 6, 8, 10, 13, 14, 15, 17, 20, 22, 25, 26, 41, 62, 66, 77, 101, 146, 157, 167, 182, 196], "otherwis": [22, 36], "oto": [22, 146, 157], "our": [7, 13, 14, 17, 25, 26, 28], "out": [14, 26, 43, 47, 52, 58, 74], "output": 196, "outstand": 13, "over": [7, 19, 20, 25, 26, 62, 63, 66, 67], "overal": [1, 7], "overbought": [62, 63, 66, 67], "overhead": [], "overload": [27, 34, 41, 43], "overrid": [102, 103, 113, 114], "oversold": [62, 63, 66, 67], "overview": 2, "overwrit": [54, 60], "own": [2, 5, 6, 8, 12, 13, 16, 17, 23, 25, 26, 150, 161], "pace": 20, "packag": [14, 26], "page": [14, 16, 17, 26], "pai": [6, 8], "paid": [1, 2, 167, 182], "pair": [13, 20, 22, 44, 74, 75, 125, 126, 133, 134, 146, 157], "panda": [0, 2, 10, 20, 21, 26, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 78, 106, 117], "pandas_data": [1, 5, 25, 43, 44], "pandas_ta": 13, "pandasdata": [43, 44], "pandasdatabacktest": [1, 5, 25], "panel": [], "paper": [11, 12, 15, 16, 17, 26, 44], "paper_1": 17, "param": 44, "paramet": [1, 2, 6, 8, 12, 19, 20, 21, 22, 23, 25, 26, 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 66, 67, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 84, 87, 88, 90, 91, 93, 96, 97, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 150, 151, 152, 153, 154, 155, 156, 157, 158, 161, 162, 163, 164, 172, 187], "parent": 22, "parquet": 5, "parse_bar_list": 20, "part": [17, 22, 41, 153, 164, 165], "partial": [22, 39], "partial_fil": 22, "partially_fil": 22, "particular": [22, 125, 127, 129, 133, 135, 137], "particularli": 19, "pass": [1, 2, 5, 8, 10, 18, 28, 36, 40, 41, 45, 102, 103, 113, 114, 128, 136, 146, 157], "password": [2, 8, 13, 14, 17, 196], "password123": [14, 17], "past": [2, 22, 25], "path_to_your_databas": [], "pattern": [27, 41], "paus": [102, 103, 107, 113, 114, 118, 178, 193], "pcal": 44, "pd": [5, 20, 44], "peak": 7, "penetr": [146, 157], "pentagon": [63, 67], "per": [20, 44], "percent": [146, 157], "percent_fe": [24, 25], "percentag": [20, 25], "perfectli": 17, "perform": [0, 2, 3, 7, 17, 26, 41], "period": [1, 2, 5, 7, 13, 21, 81, 196], "permiss": [14, 19], "permit": [], "persist": 196, "perspect": 41, "pick": [5, 10, 17, 26], "pink": [62, 63, 66, 67], "pip": [2, 5, 10, 13, 25, 26], "pk7t6yvax6pmh1em20yn": 17, "place": [9, 13, 18, 146, 151, 157, 162], "plan": [2, 17], "platform": [14, 26], "pleas": [1, 2, 5, 6, 8, 10, 13, 15, 22, 72, 180, 195], "plot": [1, 10, 46, 63, 67], "plot_file_html": 1, "plu": [14, 105, 116, 175, 190], "png": [], "pnl": 22, "point": [3, 7, 9, 15, 22, 44, 62, 66, 72, 73, 147, 158], "polygon": [0, 1, 5, 8, 10, 17, 26], "polygon_api_kei": [1, 2, 17], "polygon_has_paid_subscript": 1, "polygon_max_memory_byt": 17, "polygondatabacktest": [1, 2, 6, 8], "polygondatasourc": 6, "pop": [], "popular": 13, "porfolio": 1, "port": [15, 17], "portal": 14, "portfolio": [7, 9, 13, 23, 28, 51, 57, 63, 67, 175, 190], "portfolio_valu": [2, 6, 8, 10, 13, 26, 28, 42, 177, 192], "posit": [1, 13, 18, 22, 26, 36, 39, 43, 45, 51, 52, 53, 57, 58, 59, 147, 150, 151, 158, 161, 162, 167, 175, 182, 190], "position_fil": [22, 146, 157], "possibl": [5, 32, 44, 62, 63, 66, 67, 153, 164], "post": [153, 164], "postgresql": 196, "potenti": [2, 25, 26, 147, 158], "power": [2, 6, 8, 17, 25, 26], "powershel": 26, "practic": 14, "pre": [26, 153, 164], "preced": 47, "precis": [19, 128, 136], "predetermin": 22, "prefix": [0, 105, 116], "presenc": 17, "present": [72, 73, 128, 136], "press": 17, "prevent": 196, "previou": [7, 79, 80], "previous": [], "price": [2, 6, 8, 9, 13, 16, 17, 19, 20, 21, 22, 23, 31, 36, 39, 43, 44, 45, 47, 62, 63, 66, 67, 70, 72, 73, 74, 75, 78, 128, 136, 146, 152, 153, 157, 163, 164], "primari": [14, 196], "print": [12, 42, 196], "print_al": 25, "printout": 19, "pro": 13, "probabl": 22, "problem": [], "proceed": [5, 10, 25], "process": [4, 6, 8, 14, 17, 25, 37, 39, 152, 153, 163, 164, 196], "process_expired_option_contract": 43, "process_pending_ord": 43, "product": 43, "prof": 25, "profil": 26, "profit": [17, 22, 25, 26, 43, 62, 63, 66, 67], "program": [107, 118, 165, 178, 193], "project": [2, 6, 8, 17], "prompt": 14, "promptli": 14, "proof": 14, "proper": 17, "properli": [], "properti": [22, 23, 26, 43, 45, 46, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195], "proven": 26, "provid": [0, 2, 4, 5, 6, 8, 9, 17, 20, 21, 44, 74, 75, 131, 140, 144, 145, 155, 156], "pstat": 25, "psycopg2": [], "pull": [40, 72], "purpl": [62, 63, 66, 67], "purpos": 17, "put": [5, 12, 16, 19, 25], "pv_dividend": [128, 136], "py": [15, 17, 25, 26], "pycharm": 2, "pymysql": [], "python": [2, 5, 25, 105, 116], "pytz": 26, "qqq": 1, "qtrz3zurd9244ahuw2aoyapgvyra": 16, "qtrz3zurl9244ahuw4aoyapgvyra": 17, "qty": [2, 6, 8], "quantiti": [1, 2, 6, 7, 8, 10, 12, 13, 22, 23, 25, 26, 36, 39, 52, 53, 58, 59, 146, 157], "quantstat": 7, "queri": [44, 128, 136], "query_greek": [44, 128, 136], "question": 7, "quick": 2, "quickli": [2, 14, 17, 25], "quot": [13, 19, 20, 21, 22, 44, 49, 51, 55, 57, 72, 73, 74, 75, 77, 146, 152, 153, 157, 163, 164, 175, 177, 190, 192], "quote_asset": [1, 13, 19, 23, 26, 152, 153, 163, 164], "r": 37, "rais": 34, "randint": 42, "random": 42, "random_numb": 42, "rang": [5, 13, 17, 20, 21], "rate": [1, 6, 8, 20, 44, 128, 136], "rather": 82, "ratio": [2, 7], "raw": [5, 20, 22], "re": [2, 11, 14, 17, 26, 82], "reach": [7, 25, 26, 43], "react": [27, 41], "read": [5, 15, 25, 44], "read_csv": 5, "readi": [2, 14, 17, 41, 146, 157], "readthedoc": 13, "real": [14, 16, 17, 25, 71, 78, 81], "receiv": [5, 14], "recent": [20, 72, 78], "recommend": [0, 15, 17, 25], "record": 26, "red": [62, 63, 66, 67, 105, 116], "redeploi": 17, "reduc": 17, "refer": [2, 3, 17, 26, 27], "refin": [4, 25], "regard": [], "regardless": 82, "regist": [22, 110, 112, 121, 123], "regular": 73, "regularli": 17, "reindex": 21, "reiniti": 31, "relat": [14, 17, 36], "reliabl": [], "remain": [12, 39, 43, 172, 187], "remaind": [146, 157], "rememb": [13, 26], "remov": [180, 195], "render": 26, "repair_times_and_fil": 21, "repl": 17, "replac": [2, 6, 8, 13], "replit": 26, "report": 28, "repositori": [13, 17], "repres": [19, 22, 44, 45, 72, 73, 126, 134], "represent": [12, 21, 22, 44, 72, 73], "request": 14, "requir": [0, 1, 2, 10, 13, 14, 15, 17, 19, 22, 74, 75, 146, 153, 157, 164], "reserv": 17, "reset": 31, "resist": [63, 67], "resourc": 25, "resov": [175, 190], "respect": 20, "respond": [2, 14], "respons": [], "rest": [12, 14, 17, 41], "restart": [17, 40], "restor": 26, "restric": [146, 157], "result": [2, 5, 6, 8, 10, 25, 26, 42], "resum": 196, "retreiv": 23, "retriev": [2, 19, 21, 74, 75, 78, 196], "return": [1, 7, 12, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 64, 65, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194], "review": [2, 14], "right": [14, 17, 19, 28, 63, 67, 72, 152, 163], "right_must_be_one_of": 19, "risk": [1, 7, 14, 25, 44, 128, 136], "risk_free_r": [1, 44, 128, 136], "robot": 26, "robust": [6, 8], "romad": 7, "round": [44, 87, 88, 96, 97], "round_dai": [87, 96], "round_minut": [88, 97], "row": [20, 42, 72, 73, 81], "rsi": [2, 13], "rtype": [22, 44], "rule": 20, "run": [0, 5, 6, 8, 10, 11, 12, 14, 17, 21, 26, 30, 32, 33, 34, 37, 44, 46, 81, 102, 103, 113, 114, 143, 145, 154, 156, 170, 185], "run_al": [5, 13, 14, 15, 16, 25, 26, 46], "run_all_async": 46, "run_backtest": [0, 1, 2, 5, 6, 8, 10, 25], "runtim": 196, "safe": [], "sai": [], "sale": [6, 8], "same": [5, 14, 17, 22, 26, 73], "sampl": [12, 26], "sandbox": [13, 17], "save": [1, 5, 10, 17, 25, 46, 196], "save_logfil": 1, "save_tearsheet": [1, 46], "scalabl": [17, 196], "scale": [7, 196], "scene": 19, "scope": 42, "screen": [], "script": 5, "scroll": [14, 17], "se": [63, 67], "seamlessli": 17, "search": [2, 26], "second": [1, 12, 22, 32, 40, 43, 73, 81, 101, 107, 118, 178, 193], "secondari": [11, 26], "secret": [12, 13, 14, 16, 25, 26], "section": [2, 14, 17, 25, 47], "secur": [2, 5, 10, 14, 19, 22], "see": [2, 13, 14, 15, 17, 19, 20, 25, 26, 44, 48, 61, 70, 82, 101, 124, 142], "seek": [52, 58, 144, 155], "select": [2, 14, 17], "self": [1, 2, 5, 6, 8, 10, 12, 13, 14, 16, 17, 19, 20, 22, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 47, 165], "sell": [1, 7, 9, 22, 23, 29, 33, 34, 36, 40, 43, 45, 146, 150, 151, 152, 153, 157, 161, 162, 163, 164], "sell_al": [26, 29, 33, 34, 47], "sell_short": 22, "sell_to_clos": 22, "sell_to_open": 22, "sell_trading_fe": [1, 25], "send": [14, 17, 105, 116], "sens": 47, "separ": [14, 17], "seri": 21, "serial": [], "server": [], "servic": [17, 105, 116], "session": [], "set": [1, 2, 6, 8, 11, 14, 15, 16, 17, 19, 20, 21, 22, 25, 26, 29, 32, 43, 44, 54, 60, 72, 73, 78, 106, 117, 125, 133, 146, 157, 165, 166, 172, 173, 178, 187, 188, 193, 196], "set_cancel": 22, "set_dat": 21, "set_date_format": 21, "set_error": 22, "set_fil": 22, "set_identifi": 22, "set_market": [13, 26, 32, 47], "set_new": 22, "set_paramet": [26, 47, 165], "set_partially_fil": 22, "set_tim": 21, "settings_fil": 1, "settl": 43, "settlement": 22, "setup": [0, 2, 11, 26], "sever": [0, 2, 10, 11, 45, 165], "share": [13, 16, 20, 22, 29, 31, 36, 39, 44, 146, 157, 175, 190], "sharp": [2, 7], "sheet": 2, "shift": [21, 44, 72, 73, 84, 87, 88, 93, 96, 97], "short": [22, 106, 117], "should": [5, 10, 14, 16, 20, 22, 27, 40, 43, 45, 74, 107, 118, 128, 136], "should_continu": 43, "should_use_last_clos": 74, "show": [1, 7, 52, 53, 58, 59, 147, 148, 149, 158, 159, 160], "show_ind": [1, 46], "show_plot": [1, 46], "show_tearsheet": [1, 46], "showcas": 7, "shown": [25, 26], "shut": 33, "side": [1, 2, 6, 8, 12, 22, 25, 36, 43, 146, 157], "sidebar": 17, "sign": 14, "signatur": 14, "similar": [13, 17, 30], "similarli": [], "simpl": [1, 5, 6, 8, 10, 16, 22, 26, 146, 157], "simple_start_ib": 15, "simple_start_single_fil": [25, 26], "simpli": [6, 8], "simplifi": [6, 8], "simultan": 44, "sinc": 13, "singl": [14, 20, 44, 144, 155], "situat": 5, "six": [32, 106, 117], "size": [63, 67, 81], "skill": 25, "skip": [17, 30], "sleep": [1, 2, 26, 40, 47, 101, 102, 113, 178, 193], "sleeptim": [1, 2, 6, 8, 13, 25, 26, 32, 40, 107, 118], "slightli": [], "slow": 25, "smart": [44, 125, 127, 129, 133, 135, 137, 146, 157], "smoothli": 17, "snakeviz": 25, "snapshot": [14, 42], "snapshot_befor": 42, "so": [6, 8, 10, 13, 14, 17, 19, 22, 25, 26, 47, 82, 128, 136], "socket": [15, 17], "socket_port": 15, "sold": [36, 51, 57, 146, 157], "solid": [62, 66], "solut": 14, "some": [5, 10, 14, 25, 26, 44, 45, 74, 146, 157], "some_var": [], "someth": [5, 13], "sometim": 25, "soon": 17, "sort": [127, 129, 131, 135, 137, 140], "sortino": 7, "sought": [52, 58, 147, 158], "sourc": [0, 5, 8, 13, 20, 83, 89, 90, 91, 92, 98, 99, 100, 176, 179, 181, 191, 194], "speak": [11, 41], "specif": [2, 7, 13, 17, 19, 22, 41, 44, 62, 66, 109, 120, 125, 126, 133, 134, 146, 157, 166], "specifi": [20, 22, 44, 72, 73, 146, 157, 196], "speed": [44, 178, 193], "spend": 25, "split": [20, 45], "spy": [1, 2, 5, 6, 8, 19, 22, 25, 30, 31, 32, 36, 40, 44, 71, 72, 73, 74, 75, 79, 80, 109, 110, 111, 112, 120, 121, 122, 123, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 144, 146, 150, 152, 153, 155, 157, 161, 163, 164, 165], "sqlalchemi": [], "sqlite": 17, "squar": [63, 67], "src": 17, "sse": [32, 106, 117], "standard": [], "star": [63, 67], "start": [1, 2, 5, 6, 7, 8, 10, 11, 13, 17, 20, 21, 30, 32, 44, 72, 73, 78, 81, 102, 113, 173, 188], "start_buff": 44, "start_dat": 21, "start_dt": 44, "startegi": 5, "starter": 17, "starting_posit": 1, "stat": [1, 28, 42], "state": [17, 166, 196], "static": 44, "statist": 2, "stats_fil": [1, 32], "statu": [22, 148, 149, 159, 160], "std": 44, "steea9fhiszntmpihqjudeqolitj0javz": 17, "step": [2, 5, 14], "stike": [44, 125, 133], "still": [146, 157], "stock": [0, 1, 2, 5, 6, 8, 9, 10, 12, 17, 19, 20, 21, 22, 23, 26, 32, 44, 106, 117, 126, 134, 146, 152, 157, 163], "stock_split": 20, "stop": [14, 22, 25, 32, 33, 40, 43, 62, 63, 66, 67, 102, 103, 113, 114, 146, 152, 153, 157, 163, 164, 172, 187, 196], "stop_al": 46, "stop_limit": [22, 146, 157], "stop_loss": [146, 152, 157, 163], "stop_loss_limit": [146, 157], "stop_loss_limit_pric": [22, 146, 157], "stop_loss_pric": [22, 146, 152, 157, 163], "stop_ord": 43, "stop_pric": [22, 43, 146, 152, 153, 157, 163, 164], "storag": 26, "store": 196, "str": [1, 19, 20, 21, 22, 23, 44, 52, 58, 62, 63, 66, 67, 72, 73, 74, 75, 76, 84, 93, 105, 106, 116, 117, 125, 126, 127, 129, 130, 132, 133, 134, 135, 137, 138, 141, 146, 153, 157, 164, 174, 178, 179, 189, 193, 194], "straightforward": 17, "strangl": [14, 15], "strat": 5, "strategi": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 22, 23, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196], "strategy_001": [], "strategy_1": 32, "strategy_2": 32, "strategy_executor": [13, 16], "strategy_id": [17, 196], "strategy_nam": 17, "stream": [14, 71, 78, 81], "strength": 2, "strictli": [5, 21], "strike": [9, 19, 44, 72, 126, 128, 131, 134, 136, 140, 146, 157], "strike1": [44, 125, 126, 133, 134], "strike2": [44, 125, 126, 133, 134], "strike_max": 44, "strike_min": 44, "strike_pric": [152, 163], "string": [1, 17, 19, 20, 21, 22, 44, 72, 73, 105, 116, 132, 141, 146, 157, 178, 193, 196], "strke": [44, 125, 133], "strongli": [], "structur": [14, 26], "studio": 2, "style": [62, 66], "sub": 26, "subaccount": [14, 17], "subaccount1": 17, "submiss": 22, "submit": [14, 22, 37, 43, 47, 142, 146, 152, 153, 157, 163, 164], "submit_ord": [1, 2, 5, 6, 8, 10, 13, 19, 22, 25, 26, 40, 43, 47, 109, 110, 111, 112, 120, 121, 122, 123, 144, 145, 146, 150, 155, 156, 157, 161], "subscrib": 14, "subscript": [1, 11, 26], "subsequ": [5, 6, 8], "success": 17, "successfulli": [35, 36, 37], "suffic": 14, "suffici": [146, 157], "suggest": 26, "suit": [2, 26], "suitabl": [2, 17], "sum": [20, 51, 57], "summari": [0, 6, 8, 26, 27], "super": 26, "suppli": [0, 10, 21], "supplier": 20, "support": [2, 6, 7, 8, 13, 14, 17, 21, 25, 26, 44, 63, 67, 128, 136, 146, 157], "sure": [2, 6, 8, 14, 25, 26], "sw": [63, 67], "swim": 26, "switch": 26, "sybmol": 21, "symbol": [1, 2, 5, 6, 8, 12, 13, 19, 20, 21, 22, 23, 25, 36, 44, 63, 67, 72, 73, 74, 146, 152, 153, 157, 163, 164], "symbol2asset": 19, "system": [151, 162], "t": [6, 8, 13, 14, 17, 26], "ta": 13, "tab": 17, "tabl": 196, "tag": [22, 153, 164], "tailor": 7, "take": [6, 8, 17, 22, 25, 41, 44, 62, 63, 66, 67, 73, 74, 75, 125, 133], "take_profit_pric": [22, 146, 152, 157, 163], "taken": 4, "taker": 24, "tall": [63, 67], "tase": [32, 106, 117], "task": 41, "tear": 2, "tearsheet": [0, 1, 26, 46], "tearsheet_fil": [1, 46], "technic": [2, 13, 41], "tediou": 14, "tell": 82, "term": [2, 14], "termin": [2, 13, 25, 26], "test": [0, 2, 15, 17], "text": [62, 63, 66, 67], "than": [16, 17, 44, 82, 146, 147, 157, 158], "thei": [3, 5, 11, 17, 20, 26, 41, 81, 128, 136], "them": [2, 11, 14, 17, 20, 22, 25, 26, 47, 48, 61, 70, 82, 101, 124, 142, 145, 156], "themselv": 20, "theoret": [128, 136], "therefor": [167, 182], "theta": [44, 128, 136], "thetadata": [0, 2, 26], "thetadata_password": 8, "thetadata_usernam": 8, "thetadatabacktest": 8, "thi": [1, 2, 5, 6, 8, 9, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 49, 51, 55, 57, 62, 63, 66, 67, 72, 73, 74, 75, 77, 81, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 107, 118, 146, 153, 157, 164, 167, 168, 177, 178, 182, 183, 192, 193], "thin": [63, 67], "thing": 47, "think": [17, 82], "third": 5, "thoroughli": 15, "those": [13, 17, 166], "though": [146, 157], "thoughtfulli": [], "three": [0, 15, 20, 22], "threshold": [22, 146, 157], "throttl": 20, "through": [2, 13, 14, 17], "tick": 20, "ticker": [9, 19, 20, 32, 44, 81], "time": [3, 5, 6, 8, 9, 12, 13, 14, 17, 20, 21, 25, 32, 41, 43, 44, 45, 71, 72, 73, 78, 81, 82, 87, 88, 96, 97, 102, 103, 107, 113, 114, 118, 128, 136, 146, 157, 168, 178, 183, 193], "time_in_forc": [22, 146, 157], "timedelta": [44, 72, 73, 102, 103, 113, 114], "timefram": 20, "timeshift": [21, 43, 44, 72, 73, 84, 87, 88, 93, 96, 97], "timestamp": [2, 12, 20, 44, 62, 63, 66, 67, 85, 86, 87, 88, 89, 94, 95, 96, 97, 98, 196], "timestep": [5, 21, 43, 44, 72, 73, 84, 93], "timestep_map": [21, 44], "timezon": [20, 21, 26, 44, 90, 91, 99, 100, 176, 181, 191], "tip": 17, "titl": [], "tlt": [30, 52, 58, 73, 75, 80, 111, 112, 122, 123, 146, 147, 153, 157, 158, 164], "to_csv": 5, "to_datalin": 21, "to_default_timezon": [26, 44, 47], "to_dict": [19, 22, 23], "to_posit": 22, "to_request_field": 12, "todai": [17, 74, 82], "todo": [43, 74], "togeth": [5, 22, 25], "token": 17, "tool": [6, 8, 17, 26], "top": [14, 17, 26], "topic": 17, "total": [7, 20, 28, 51, 57, 147, 158, 175, 190], "totalview": 14, "tqqq": 25, "trace": 42, "trace_stat": [26, 27, 178, 193], "track": [19, 23, 26, 52, 53, 58, 59, 148, 149, 159, 160], "trade": [0, 1, 4, 5, 10, 11, 13, 15, 17, 18, 19, 20, 21, 22, 27, 30, 31, 32, 33, 40, 41, 43, 44, 45, 52, 58, 73, 74, 76, 78, 81, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117, 126, 130, 134, 138, 146, 157, 171, 186, 196], "trade_cost": 22, "trade_count": 196, "tradeapi": 12, "trader": [5, 6, 8, 10, 12, 13, 14, 15, 16, 26, 33], "trades_fil": 1, "tradest": 26, "tradier": [11, 26, 44, 77, 153, 164], "tradier_access_token": 17, "tradier_account_numb": 17, "tradier_config": 16, "tradier_is_pap": 17, "trading_fe": 24, "trading_fee_1": 25, "trading_fee_2": 25, "trading_hours_end": 21, "trading_hours_start": 21, "tradingcalendar": [32, 106, 117], "tradingfe": [1, 24, 25, 26], "trail": [22, 146, 152, 157, 163], "trail_perc": [22, 146, 157], "trail_pric": [22, 146, 157], "trailing_stop": [22, 146, 157], "trailing_stop_pric": [152, 163], "transact": [13, 22, 167, 182], "trashcan": 17, "tree": 26, "triangl": [63, 67], "trigger": [22, 146, 157], "trim": 21, "trim_data": 21, "troubleshoot": [], "trough": 7, "true": [1, 5, 12, 13, 16, 17, 22, 24, 25, 26, 32, 43, 44, 46, 72, 73, 74, 105, 116, 151, 162, 168, 170, 183, 185], "try": [14, 25, 146, 157], "tsx": [32, 106, 117], "tsxv": [32, 106, 117], "tupl": [22, 73], "tutori": [15, 26], "tw": [17, 20], "two": [2, 3, 11, 19, 22, 25, 26, 73, 145, 156], "twsapi": [], "type": [0, 1, 2, 5, 12, 14, 18, 19, 20, 21, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 64, 65, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 129, 130, 131, 132, 133, 134, 135, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194], "typic": [17, 22, 165], "tz_local": 21, "u": [6, 7, 8, 13, 14, 21, 26, 175, 190], "u17369206": [14, 17], "ultra": 14, "under": [13, 14, 17, 25], "underli": [19, 21, 44, 128, 131, 136, 140], "underlying_asset": 19, "underlying_pric": [44, 128, 136], "understand": [2, 4, 25], "unexpect": [], "unexpectedli": [], "uniqu": 3, "unit": [17, 44, 146, 157, 178, 193], "unix": 12, "unless": 5, "unlik": 30, "unnecessari": [14, 17], "unprocess": 22, "unspent_monei": 26, "until": [6, 8, 12, 20, 102, 103, 113, 114, 146, 157], "up": [1, 2, 5, 6, 11, 14, 15, 17, 19, 25, 26, 44, 63, 67, 196], "updat": [20, 22, 26, 36, 38, 108, 119, 146, 157, 167, 182], "update_date_index": 44, "update_paramet": [26, 38, 47], "update_raw": 22, "update_trail_stop_pric": 22, "upgrad": [2, 5, 10, 25, 26], "upload": 14, "upon": [], "upper": 14, "url": [14, 17], "us": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 55, 61, 62, 63, 66, 67, 70, 72, 73, 76, 82, 101, 105, 107, 116, 118, 127, 128, 129, 130, 131, 135, 136, 137, 138, 140, 142, 146, 157, 165, 166, 167, 177, 178, 180, 182, 192, 193, 195, 196], "us_equ": 12, "us_futur": [32, 106, 117], "usag": [17, 26], "usd": [1, 19, 21, 72, 73, 74, 146, 152, 153, 157, 163, 164], "usdc": 1, "usdt": [1, 19, 49, 51, 55, 57, 72, 74, 146, 157], "user": [0, 2, 5, 10, 14, 17, 21, 25, 27, 41, 45, 46, 144, 146, 155, 157, 196], "user123": [14, 17], "userdict": 19, "usernam": [2, 8, 14, 17], "usual": [1, 47, 178, 193], "utc": 21, "util": [], "utm_campaign": 6, "utm_sourc": 6, "utp": 14, "v": [2, 7, 19], "v2": 7, "va12204793": 17, "va22904793": 16, "valid": [2, 19, 21, 22, 44, 125, 126, 133, 134, 146, 157], "valu": [1, 3, 5, 9, 12, 13, 14, 17, 19, 20, 21, 23, 28, 43, 45, 46, 48, 49, 51, 55, 57, 61, 62, 63, 66, 67, 72, 73, 128, 136, 153, 164, 175, 190, 196], "valuat": 1, "value_typ": 23, "var": 26, "var1": 196, "var2": 196, "variabl": [14, 26, 31, 42, 166], "variant": 22, "variat": 7, "varieti": 7, "variou": [2, 6, 7, 8, 14], "vars_backup": 196, "vcpu": 17, "ve": [2, 13, 16, 26], "vector": 26, "vega": [128, 136], "verbiag": [], "veri": [10, 17, 26], "verifi": 17, "versatil": [6, 8, 13, 17], "version": [2, 5, 7, 10, 17, 25, 26], "via": 14, "view": [4, 17], "visit": [7, 16, 17, 25, 26], "visual": [2, 3, 7, 25], "visualstudio": 2, "vital": 2, "vm": 17, "volatil": [7, 22, 128, 136], "volum": [5, 20, 21, 78, 81], "voyz": [], "vwap": [78, 81], "wa": [2, 12, 13, 27, 30, 33, 34, 41, 43, 72, 167, 182], "wait": [17, 22, 39, 109, 110, 111, 112, 120, 121, 122, 123], "wait_for_order_execut": [26, 47], "wait_for_order_registr": [26, 47], "wait_for_orders_execut": [26, 47], "wait_for_orders_registr": [26, 47], "wait_to_be_clos": 22, "wait_to_be_regist": 22, "walk": [2, 17], "want": [1, 2, 5, 8, 10, 12, 13, 16, 17, 25, 26, 41, 44, 62, 66], "was_transmit": 22, "we": [5, 6, 7, 8, 10, 11, 13, 14, 17, 25, 26, 28, 47, 72, 146, 157], "weak": 2, "wealth": 26, "web": [25, 46], "webhook": 17, "websit": [2, 7, 10, 13, 14, 16, 17], "week": [72, 73], "weight": 22, "welcom": 25, "well": 26, "were": [9, 26, 38], "what": [26, 47, 82, 177, 192], "whatev": 13, "when": [0, 1, 2, 5, 6, 8, 13, 14, 17, 19, 20, 22, 25, 26, 27, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 62, 63, 66, 67, 82, 146, 157, 167, 172, 182, 187, 196], "whenev": [167, 182], "where": [22, 25, 42, 146, 157], "whether": [1, 17, 22, 44, 46, 72, 82, 128, 136, 146, 157], "which": [2, 6, 7, 8, 9, 13, 14, 17, 20, 21, 22, 32, 41, 49, 51, 55, 57, 74, 75, 76, 77, 128, 130, 136, 138, 178, 193], "while": [14, 17], "white": [62, 63, 66, 67], "who": [5, 17, 52, 58, 147, 158], "whose": [44, 126, 134], "why": [2, 26], "wide": [13, 17, 63, 67], "width": [62, 66, 72, 73], "wiki": [], "window": 26, "wish": [5, 26], "within": [1, 17, 18, 107, 118, 143, 154], "without": [14, 17, 25, 131, 140], "won": [6, 8], "word": [22, 167, 182], "work": [0, 2, 5, 11, 15, 17, 25, 26, 72, 73, 77, 166], "worker": 17, "workstat": 15, "world": [14, 17], "would": [1, 2, 5, 16, 19, 25, 26, 44, 51, 57, 146, 157, 178, 193], "wrapper": 21, "write": [1, 2, 6, 8], "www": [8, 16], "x": [63, 67], "xam": [32, 106, 117], "xasx": [32, 106, 117], "xbkk": [32, 106, 117], "xbog": [32, 106, 117], "xbom": [32, 106, 117], "xbru": [32, 106, 117], "xbud": [32, 106, 117], "xbue": [32, 106, 117], "xcbf": [32, 106, 117], "xcse": [32, 106, 117], "xdub": [32, 106, 117], "xetr": [32, 106, 117], "xfra": [32, 106, 117], "xhel": [32, 106, 117], "xhkg": [32, 106, 117], "xice": [32, 106, 117], "xidx": [32, 106, 117], "xist": [32, 106, 117], "xjse": [32, 106, 117], "xkar": [32, 106, 117], "xkl": [32, 106, 117], "xkrx": [32, 106, 117], "xli": [32, 106, 117], "xlim": [32, 106, 117], "xlon": [32, 106, 117], "xmad": [32, 106, 117], "xmex": [32, 106, 117], "xmil": [32, 106, 117], "xmo": [32, 106, 117], "xny": [32, 106, 117], "xnze": [32, 106, 117], "xosl": [32, 106, 117], "xpar": [32, 106, 117], "xph": [32, 106, 117], "xpra": [32, 106, 117], "xse": [32, 106, 117], "xsgo": [32, 106, 117], "xshg": [32, 106, 117], "xsto": [32, 106, 117], "xswx": [32, 106, 117], "xtae": [32, 106, 117], "xtai": [32, 106, 117], "xtk": [32, 106, 117], "xtse": [32, 106, 117], "xwar": [32, 106, 117], "xwbo": [32, 106, 117], "xyz1234567890abcdef": 17, "y": [63, 67], "yahoo": [0, 1, 2, 5, 20, 26, 72, 73, 106, 117], "yahoo_data": 44, "yahoodata": 44, "yahoodatabacktest": [1, 10, 25, 26, 32], "yappi": 25, "year": [2, 6, 8], "yearli": 7, "yellow": [62, 63, 66, 67], "yet": [22, 46], "yf": [5, 44], "yfinanc": [5, 44], "yield": 20, "york": [5, 17], "you": [0, 1, 2, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 17, 20, 22, 25, 26, 29, 32, 44, 47, 48, 49, 51, 55, 57, 61, 62, 66, 70, 72, 73, 82, 101, 124, 142, 146, 157, 165, 166, 178, 193], "your": [2, 5, 6, 7, 8, 10, 11, 12, 14, 15, 18, 20, 22, 40, 41, 47, 48, 49, 51, 55, 57, 61, 70, 82, 101, 146, 157, 165, 166, 178, 193, 196], "your_access_token": 16, "your_account_numb": 16, "your_alpaca_api_kei": [25, 26], "your_alpaca_secret": [25, 26], "your_api_kei": [12, 13], "your_api_secret": 12, "your_passphras": 13, "your_polygon_api_kei": [2, 6], "your_secret": 13, "your_secret_kei": 13, "yyyi": [76, 130, 138], "yyyymm": 19, "yyyymmdd": [19, 132, 141], "zero": [167, 182], "zone": [5, 20]}, "titles": ["Backtesting", "Backtesting Function", "How To Backtest", "Indicators Files", "Logs CSV", "Pandas (CSV or other data)", "Polygon.io Backtesting", "Tearsheet HTML", "ThetaData Backtesting", "Trades Files", "Yahoo", "Brokers", "Alpaca", "Crypto Brokers (Using CCXT)", "Interactive Brokers", "Interactive Brokers Legacy", "Tradier", "Deployment Guide", "Entities", "Asset", "Bars", "Data", "Order", "Position", "Trading Fee", "What is Lumibot?", "Lumibot: Backtesting and Algorithmic Trading Library", "Lifecycle Methods", "def after_market_closes", "def before_market_closes", "def before_market_opens", "def before_starting_trading", "def initialize", "def on_abrupt_closing", "def on_bot_crash", "def on_canceled_order", "def on_filled_order", "def on_new_order", "def on_parameters_updated", "def on_partially_filled_order", "def on_trading_iteration", "Summary", "def trace_stats", "Backtesting", "Data Sources", "Strategies", "Traders", "Strategy Methods", "Account Management", "self.get_cash", "self.get_parameters", "self.get_portfolio_value", "self.get_position", "self.get_positions", "self.set_parameters", "self.get_cash", "self.get_parameters", "self.get_portfolio_value", "self.get_position", "self.get_positions", "self.set_parameters", "Chart Functions", "self.add_line", "self.add_marker", "self.get_lines_df", "self.get_markers_df", "self.add_line", "self.add_marker", "self.get_lines_df", "self.get_markers_df", "Data", "self.cancel_realtime_bars", "self.get_historical_prices", "self.get_historical_prices_for_assets", "self.get_last_price", "self.get_last_prices", "self.get_next_trading_day", "self.get_quote", "self.get_realtime_bars", "self.get_yesterday_dividend", "self.get_yesterday_dividends", "self.start_realtime_bars", "DateTime", "self.get_datetime", "self.get_datetime_range", "self.get_last_day", "self.get_last_minute", "self.get_round_day", "self.get_round_minute", "self.get_timestamp", "self.localize_datetime", "self.to_default_timezone", "self.get_datetime", "self.get_datetime_range", "self.get_last_day", "self.get_last_minute", "self.get_round_day", "self.get_round_minute", "self.get_timestamp", "self.localize_datetime", "self.to_default_timezone", "Miscellaneous", "self.await_market_to_close", "self.await_market_to_open", "self.get_parameters", "self.log_message", "self.set_market", "self.sleep", "self.update_parameters", "self.wait_for_order_execution", "self.wait_for_order_registration", "self.wait_for_orders_execution", "self.wait_for_orders_registration", "self.await_market_to_close", "self.await_market_to_open", "self.get_parameters", "self.log_message", "self.set_market", "self.sleep", "self.update_parameters", "self.wait_for_order_execution", "self.wait_for_order_registration", "self.wait_for_orders_execution", "self.wait_for_orders_registration", "Options", "self.get_chain", "self.get_chains", "self.get_expiration", "self.get_greeks", "self.get_multiplier", "self.get_next_trading_day", "self.get_strikes", "self.options_expiry_to_datetime_date", "self.get_chain", "self.get_chains", "self.get_expiration", "self.get_greeks", "self.get_multiplier", "self.get_next_trading_day", "self.get_option_expiration_after_date", "self.get_strikes", "self.options_expiry_to_datetime_date", "Order Management", "self.cancel_open_orders", "self.cancel_order", "self.cancel_orders", "self.create_order", "self.get_asset_potential_total", "self.get_order", "self.get_orders", "self.get_selling_order", "self.sell_all", "self.submit_order", "self.submit_orders", "self.cancel_open_orders", "self.cancel_order", "self.cancel_orders", "self.create_order", "self.get_asset_potential_total", "self.get_order", "self.get_orders", "self.get_selling_order", "self.sell_all", "self.submit_order", "self.submit_orders", "Parameters", "Strategy Properties", "self.cash", "self.first_iteration", "self.initial_budget", "self.is_backtesting", "self.last_on_trading_iteration_datetime", "self.minutes_before_closing", "self.minutes_before_opening", "self.name", "self.portfolio_value", "self.pytz", "self.quote_asset", "self.sleeptime", "self.timezone", "self.unspent_money", "self.pytz", "self.cash", "self.first_iteration", "self.initial_budget", "self.is_backtesting", "self.last_on_trading_iteration_datetime", "self.minutes_before_closing", "self.minutes_before_opening", "self.name", "self.portfolio_value", "self.pytz", "self.quote_asset", "self.sleeptime", "self.timezone", "self.unspent_money", "Variable Backup & Restore"], "titleterms": {"1": [25, 26], "2": [25, 26], "3": [25, 26], "4": 25, "5": 25, "6": 25, "7": 25, "8": 25, "In": 5, "It": 196, "To": 2, "With": [22, 25], "account": [14, 25, 48], "ad": 25, "add_lin": [62, 66], "add_mark": [63, 67], "addit": 26, "advanc": 22, "after_market_clos": 28, "algorithm": 26, "all": 26, "alpaca": [12, 17, 25], "an": 25, "api": 25, "ask": [], "asset": 19, "authent": 14, "autom": 14, "await_market_to_clos": [102, 113], "await_market_to_open": [103, 114], "backtest": [0, 1, 2, 6, 8, 25, 26, 43], "backup": 196, "bar": 20, "before_market_clos": 29, "before_market_open": 30, "before_starting_trad": 31, "benefit": 196, "bot": 26, "broker": [11, 13, 14, 15, 17, 43], "cancel_open_ord": [143, 154], "cancel_ord": [144, 145, 155, 156], "cancel_realtime_bar": 71, "cash": [167, 182], "ccxt": 13, "chart": 61, "choos": [2, 17], "class": 25, "coinbas": 17, "conclus": [2, 17], "configur": [13, 14, 16, 17, 25, 196], "content": [0, 11, 18, 26, 27, 44, 47], "creat": [25, 26], "create_ord": [146, 157], "crypto": 13, "csv": [4, 5], "data": [2, 5, 14, 21, 43, 44, 70], "databas": 196, "datafram": 5, "datetim": 82, "def": [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42], "definit": [], "deploi": 17, "deploy": 17, "detail": [], "document": [12, 19, 20, 22, 45], "entiti": 18, "environ": 17, "exampl": [5, 13, 14, 16, 17], "extra": 26, "factor": 14, "fee": [24, 25], "file": [0, 2, 3, 9], "final": 17, "first_iter": [168, 183], "follow": 25, "frequent": [], "from": [0, 2], "full": [13, 16], "function": [1, 61], "gener": [0, 2, 17], "get": [16, 25, 26], "get_asset_potential_tot": [147, 158], "get_cash": [49, 55], "get_chain": [125, 126, 133, 134], "get_datetim": [83, 92], "get_datetime_rang": [84, 93], "get_expir": [127, 135], "get_greek": [128, 136], "get_historical_pric": 72, "get_historical_prices_for_asset": 73, "get_last_dai": [85, 94], "get_last_minut": [86, 95], "get_last_pric": [74, 75], "get_lines_df": [64, 68], "get_markers_df": [65, 69], "get_multipli": [129, 137], "get_next_trading_dai": [76, 130, 138], "get_option_expiration_after_d": 139, "get_ord": [148, 149, 159, 160], "get_paramet": [50, 56, 104, 115], "get_portfolio_valu": [51, 57], "get_posit": [52, 53, 58, 59], "get_quot": 77, "get_realtime_bar": 78, "get_round_dai": [87, 96], "get_round_minut": [88, 97], "get_selling_ord": [150, 161], "get_strik": [131, 140], "get_timestamp": [89, 98], "get_yesterday_dividend": [79, 80], "guid": [17, 196], "help": 26, "how": [2, 196], "html": [2, 7], "i": 25, "import": 25, "improv": 25, "indic": [2, 3, 26], "initi": 32, "initial_budget": [169, 184], "instal": [2, 25, 26], "instanti": 25, "interact": [14, 15, 17], "io": [2, 6], "is_backtest": [170, 185], "kei": 25, "kraken": 17, "last_on_trading_iteration_datetim": [171, 186], "leg": 22, "legaci": [15, 17], "librari": 26, "lifecycl": 27, "live": 26, "load": [], "localize_datetim": [90, 99], "log": 4, "log_messag": [105, 116], "lumibot": [2, 25, 26], "lumiwealth": 25, "manag": [48, 142], "market": 14, "method": [27, 47], "minutes_before_clos": [172, 187], "minutes_before_open": [173, 188], "miscellan": 101, "modul": [25, 44], "name": [174, 189], "need": 26, "note": [], "on_abrupt_clos": 33, "on_bot_crash": 34, "on_canceled_ord": 35, "on_filled_ord": 36, "on_new_ord": 37, "on_parameters_upd": 38, "on_partially_filled_ord": 39, "on_trading_iter": 40, "option": [25, 124], "options_expiry_to_datetime_d": [132, 141], "order": [22, 142], "other": 5, "packag": 25, "panda": [5, 44], "paper": [14, 25], "paramet": 165, "perform": 25, "platform": 17, "polygon": [2, 6], "portfolio_valu": [175, 190], "posit": 23, "profil": 25, "properti": 166, "pytz": [176, 181, 191], "question": [], "quote_asset": [177, 192], "refer": [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42], "render": 17, "replit": 17, "resourc": 26, "restor": 196, "run": [2, 13, 16, 25], "secondari": 14, "secret": 17, "self": [49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196], "sell_al": [151, 162], "set": 13, "set_market": [106, 117], "set_paramet": [54, 60], "setup": 14, "sleep": [107, 118], "sleeptim": [178, 193], "sourc": [2, 43, 44], "start": [16, 25, 26], "start_realtime_bar": 81, "step": [17, 25, 26], "storag": 196, "strategi": [13, 14, 16, 17, 25, 26, 45, 47, 166], "structur": 196, "submit_ord": [152, 153, 163, 164], "subscript": 14, "summari": [5, 41], "tabl": 26, "take": 26, "tearsheet": [2, 7], "thetadata": 8, "timezon": [179, 194], "to_default_timezon": [91, 100], "togeth": 26, "trace_stat": 42, "trade": [2, 9, 14, 24, 25, 26], "trader": [25, 46], "tradier": [16, 17], "troubleshoot": [], "two": 14, "type": 22, "unspent_monei": [180, 195], "update_paramet": [108, 119], "us": [13, 14], "usag": 196, "var": 196, "variabl": [17, 196], "wait_for_order_execut": [109, 120], "wait_for_order_registr": [110, 121], "wait_for_orders_execut": [111, 122], "wait_for_orders_registr": [112, 123], "what": 25, "why": [], "work": 196, "yahoo": [10, 44], "your": [13, 16, 17, 25, 26]}}) \ No newline at end of file +Search.setIndex({"alltitles": {"Account Management": [[48, null]], "Adding Trading Fees": [[25, "adding-trading-fees"]], "Additional Resources": [[26, "additional-resources"]], "Advanced Order Types": [[22, "advanced-order-types"]], "All Together": [[26, "all-together"]], "Alpaca": [[12, null]], "Alpaca Configuration": [[17, "alpaca-configuration"], [17, "id22"]], "Asset": [[19, null]], "Backtesting": [[0, null], [43, null]], "Backtesting Broker": [[43, "module-lumibot.backtesting.backtesting_broker"]], "Backtesting Function": [[1, null]], "Bars": [[20, null]], "Benefits of self.vars": [[196, "benefits-of-self-vars"]], "Broker Configuration": [[17, "broker-configuration"]], "Brokers": [[11, null]], "Chart Functions": [[61, null]], "Choosing Your Deployment Platform": [[17, "id1"]], "Choosing a Data Source": [[2, "choosing-a-data-source"]], "Coinbase Configuration": [[17, "coinbase-configuration"], [17, "id23"]], "Conclusion": [[2, "conclusion"], [17, "conclusion"]], "Configuration": [[16, "configuration"]], "Configuration Settings": [[13, "configuration-settings"]], "Contents:": [[0, null], [11, null], [18, null], [27, null], [47, null]], "Crypto Brokers (Using CCXT)": [[13, null]], "Data": [[21, null], [70, null]], "Data Source": [[44, "module-lumibot.data_sources.data_source"]], "Data Source Backtesting": [[43, "module-lumibot.data_sources.data_source_backtesting"]], "Data Sources": [[44, null]], "Database Configuration": [[196, "database-configuration"]], "Database Storage Structure": [[196, "database-storage-structure"]], "DateTime": [[82, null]], "Deploying to Render": [[17, "id2"]], "Deploying to Replit": [[17, "id3"]], "Deployment Guide": [[17, null]], "Documentation": [[12, "module-lumibot.brokers.alpaca"], [19, "module-entities.asset"], [20, "module-entities.bars"], [22, "module-entities.order"], [45, "module-lumibot.strategies.strategy.Strategy"]], "Entities": [[18, null]], "Example Dataframe": [[5, "id1"]], "Example Strategy": [[14, "example-strategy"]], "Example Strategy for Deployment": [[17, "example-strategy-for-deployment"]], "Files Generated from Backtesting": [[0, "files-generated-from-backtesting"], [2, "files-generated-from-backtesting"]], "Final Steps": [[17, "final-steps"]], "Full Example Strategy": [[13, "full-example-strategy"], [16, "full-example-strategy"]], "General Environment Variables": [[17, "general-environment-variables"], [17, "id27"]], "Getting Started": [[16, "getting-started"], [26, "getting-started"]], "Getting Started With Lumibot": [[25, "getting-started-with-lumibot"]], "How It Works": [[196, "how-it-works"]], "How To Backtest": [[2, null]], "In Summary": [[5, "in-summary"]], "Indicators Files": [[2, "indicators-files"], [3, null]], "Indices and tables": [[26, "indices-and-tables"]], "Installing LumiBot": [[2, "installing-lumibot"]], "Interactive Brokers": [[14, null]], "Interactive Brokers Configuration": [[14, "id1"], [17, "interactive-brokers-configuration"], [17, "id25"]], "Interactive Brokers Legacy": [[15, null]], "Interactive Brokers-Legacy Configuration": [[17, "interactive-brokers-legacy-configuration"], [17, "id26"]], "Kraken Configuration": [[17, "kraken-configuration"], [17, "id24"]], "Lifecycle Methods": [[27, null]], "Logs CSV": [[4, null]], "Lumibot: Backtesting and Algorithmic Trading Library": [[26, null]], "Lumiwealth": [[25, "id1"]], "Market Data Subscriptions": [[14, "market-data-subscriptions"]], "Miscellaneous": [[101, null]], "Module contents": [[44, "module-lumibot.data_sources"]], "Need Extra Help?": [[26, "need-extra-help"]], "Options": [[124, null]], "Order": [[22, null]], "Order Management": [[142, null]], "Order With Legs": [[22, "order-with-legs"]], "Pandas": [[44, "module-lumibot.data_sources.pandas_data"]], "Pandas (CSV or other data)": [[5, null]], "Parameters": [[165, null]], "Polygon.io Backtesting": [[6, null]], "Position": [[23, null]], "Profiling to Improve Performance": [[25, "profiling-to-improve-performance"]], "Reference": [[28, "reference"], [29, "reference"], [30, "reference"], [31, "reference"], [32, "reference"], [33, "reference"], [34, "reference"], [35, "reference"], [36, "reference"], [37, "reference"], [38, "reference"], [39, "reference"], [40, "reference"], [42, "reference"]], "Running Your Strategy": [[13, "running-your-strategy"], [16, "running-your-strategy"]], "Running a Backtest with Polygon.io": [[2, "running-a-backtest-with-polygon-io"]], "Secrets Configuration": [[17, "secrets-configuration"]], "Step 1: Install Lumibot": [[26, "step-1-install-lumibot"]], "Step 1: Install the Package": [[25, "step-1-install-the-package"]], "Step 2: Create a Strategy for Backtesting": [[26, "step-2-create-a-strategy-for-backtesting"]], "Step 2: Import the Following Modules": [[25, "step-2-import-the-following-modules"]], "Step 3: Create an Alpaca Paper Trading Account": [[25, "step-3-create-an-alpaca-paper-trading-account"]], "Step 3: Take Your Bot Live": [[26, "step-3-take-your-bot-live"]], "Step 4: Configure Your API Keys": [[25, "step-4-configure-your-api-keys"]], "Step 5: Create a Strategy Class": [[25, "step-5-create-a-strategy-class"]], "Step 6: Instantiate the Trader, Alpaca, and Strategy Classes": [[25, "step-6-instantiate-the-trader-alpaca-and-strategy-classes"]], "Step 7: Backtest the Strategy (Optional)": [[25, "step-7-backtest-the-strategy-optional"]], "Step 8: Run the Strategy": [[25, "step-8-run-the-strategy"]], "Strategies": [[45, null]], "Strategy Methods": [[47, null]], "Strategy Properties": [[166, null]], "Strategy Setup": [[14, "strategy-setup"]], "Summary": [[41, null]], "Table of Contents": [[26, "table-of-contents"]], "Tearsheet HTML": [[2, "tearsheet-html"], [7, null]], "ThetaData Backtesting": [[8, null]], "Trader": [[46, "module-lumibot.traders.trader"]], "Traders": [[46, null]], "Trades Files": [[2, "trades-files"], [9, null]], "Tradier": [[16, null]], "Tradier Configuration": [[17, "tradier-configuration"], [17, "id21"]], "Trading Fee": [[24, null]], "Two-Factor Authentication (2FA)": [[14, "two-factor-authentication-2fa"]], "Usage Guide": [[196, "usage-guide"]], "Using a Paper Trading Account": [[14, "using-a-paper-trading-account"]], "Using a Secondary Username": [[14, "using-a-secondary-username"]], "Variable Backup & Restore": [[196, null]], "What is Lumibot?": [[25, null]], "Yahoo": [[10, null], [44, "module-lumibot.data_sources.yahoo_data"]], "def after_market_closes": [[28, null]], "def before_market_closes": [[29, null]], "def before_market_opens": [[30, null]], "def before_starting_trading": [[31, null]], "def initialize": [[32, null]], "def on_abrupt_closing": [[33, null]], "def on_bot_crash": [[34, null]], "def on_canceled_order": [[35, null]], "def on_filled_order": [[36, null]], "def on_new_order": [[37, null]], "def on_parameters_updated": [[38, null]], "def on_partially_filled_order": [[39, null]], "def on_trading_iteration": [[40, null]], "def trace_stats": [[42, null]], "self.add_line": [[62, null], [66, null]], "self.add_marker": [[63, null], [67, null]], "self.await_market_to_close": [[102, null], [113, null]], "self.await_market_to_open": [[103, null], [114, null]], "self.cancel_open_orders": [[143, null], [154, null]], "self.cancel_order": [[144, null], [155, null]], "self.cancel_orders": [[145, null], [156, null]], "self.cancel_realtime_bars": [[71, null]], "self.cash": [[167, null], [182, null]], "self.create_order": [[146, null], [157, null]], "self.first_iteration": [[168, null], [183, null]], "self.get_asset_potential_total": [[147, null], [158, null]], "self.get_cash": [[49, null], [55, null]], "self.get_chain": [[125, null], [133, null]], "self.get_chains": [[126, null], [134, null]], "self.get_datetime": [[83, null], [92, null]], "self.get_datetime_range": [[84, null], [93, null]], "self.get_expiration": [[127, null], [135, null]], "self.get_greeks": [[128, null], [136, null]], "self.get_historical_prices": [[72, null]], "self.get_historical_prices_for_assets": [[73, null]], "self.get_last_day": [[85, null], [94, null]], "self.get_last_minute": [[86, null], [95, null]], "self.get_last_price": [[74, null]], "self.get_last_prices": [[75, null]], "self.get_lines_df": [[64, null], [68, null]], "self.get_markers_df": [[65, null], [69, null]], "self.get_multiplier": [[129, null], [137, null]], "self.get_next_trading_day": [[76, null], [130, null], [138, null]], "self.get_option_expiration_after_date": [[139, null]], "self.get_order": [[148, null], [159, null]], "self.get_orders": [[149, null], [160, null]], "self.get_parameters": [[50, null], [56, null], [104, null], [115, null]], "self.get_portfolio_value": [[51, null], [57, null]], "self.get_position": [[52, null], [58, null]], "self.get_positions": [[53, null], [59, null]], "self.get_quote": [[77, null]], "self.get_realtime_bars": [[78, null]], "self.get_round_day": [[87, null], [96, null]], "self.get_round_minute": [[88, null], [97, null]], "self.get_selling_order": [[150, null], [161, null]], "self.get_strikes": [[131, null], [140, null]], "self.get_timestamp": [[89, null], [98, null]], "self.get_yesterday_dividend": [[79, null]], "self.get_yesterday_dividends": [[80, null]], "self.initial_budget": [[169, null], [184, null]], "self.is_backtesting": [[170, null], [185, null]], "self.last_on_trading_iteration_datetime": [[171, null], [186, null]], "self.localize_datetime": [[90, null], [99, null]], "self.log_message": [[105, null], [116, null]], "self.minutes_before_closing": [[172, null], [187, null]], "self.minutes_before_opening": [[173, null], [188, null]], "self.name": [[174, null], [189, null]], "self.options_expiry_to_datetime_date": [[132, null], [141, null]], "self.portfolio_value": [[175, null], [190, null]], "self.pytz": [[176, null], [181, null], [191, null]], "self.quote_asset": [[177, null], [192, null]], "self.sell_all": [[151, null], [162, null]], "self.set_market": [[106, null], [117, null]], "self.set_parameters": [[54, null], [60, null]], "self.sleep": [[107, null], [118, null]], "self.sleeptime": [[178, null], [193, null]], "self.start_realtime_bars": [[81, null]], "self.submit_order": [[152, null], [163, null]], "self.submit_orders": [[153, null], [164, null]], "self.timezone": [[179, null], [194, null]], "self.to_default_timezone": [[91, null], [100, null]], "self.unspent_money": [[180, null], [195, null]], "self.update_parameters": [[108, null], [119, null]], "self.wait_for_order_execution": [[109, null], [120, null]], "self.wait_for_order_registration": [[110, null], [121, null]], "self.wait_for_orders_execution": [[111, null], [122, null]], "self.wait_for_orders_registration": [[112, null], [123, null]]}, "docnames": ["backtesting", "backtesting.backtesting_function", "backtesting.how_to_backtest", "backtesting.indicators_files", "backtesting.logs_csv", "backtesting.pandas", "backtesting.polygon", "backtesting.tearsheet_html", "backtesting.thetadata", "backtesting.trades_files", "backtesting.yahoo", "brokers", "brokers.alpaca", "brokers.ccxt", "brokers.interactive_brokers", "brokers.interactive_brokers_legacy", "brokers.tradier", "deployment", "entities", "entities.asset", "entities.bars", "entities.data", "entities.order", "entities.position", "entities.trading_fee", "getting_started", "index", "lifecycle_methods", "lifecycle_methods.after_market_closes", "lifecycle_methods.before_market_closes", "lifecycle_methods.before_market_opens", "lifecycle_methods.before_starting_trading", "lifecycle_methods.initialize", "lifecycle_methods.on_abrupt_closing", "lifecycle_methods.on_bot_crash", "lifecycle_methods.on_canceled_order", "lifecycle_methods.on_filled_order", "lifecycle_methods.on_new_order", "lifecycle_methods.on_parameters_updated", "lifecycle_methods.on_partially_filled_order", "lifecycle_methods.on_trading_iteration", "lifecycle_methods.summary", "lifecycle_methods.trace_stats", "lumibot.backtesting", "lumibot.data_sources", "lumibot.strategies", "lumibot.traders", "strategy_methods", "strategy_methods.account", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_cash", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_parameters", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_portfolio_value", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_position", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_positions", "strategy_methods.account/lumibot.strategies.strategy.Strategy.set_parameters", "strategy_methods.account/strategies.strategy.Strategy.get_cash", "strategy_methods.account/strategies.strategy.Strategy.get_parameters", "strategy_methods.account/strategies.strategy.Strategy.get_portfolio_value", "strategy_methods.account/strategies.strategy.Strategy.get_position", "strategy_methods.account/strategies.strategy.Strategy.get_positions", "strategy_methods.account/strategies.strategy.Strategy.set_parameters", "strategy_methods.chart", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_line", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_marker", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_lines_df", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_markers_df", "strategy_methods.chart/strategies.strategy.Strategy.add_line", "strategy_methods.chart/strategies.strategy.Strategy.add_marker", "strategy_methods.chart/strategies.strategy.Strategy.get_lines_df", "strategy_methods.chart/strategies.strategy.Strategy.get_markers_df", "strategy_methods.data", "strategy_methods.data/lumibot.strategies.strategy.Strategy.cancel_realtime_bars", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_price", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_prices", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_quote", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_realtime_bars", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividend", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividends", "strategy_methods.data/lumibot.strategies.strategy.Strategy.start_realtime_bars", "strategy_methods.datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime_range", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_day", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_minute", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_day", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_minute", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_timestamp", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.localize_datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.to_default_timezone", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime_range", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_day", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_minute", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_day", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_minute", "strategy_methods.datetime/strategies.strategy.Strategy.get_timestamp", "strategy_methods.datetime/strategies.strategy.Strategy.localize_datetime", "strategy_methods.datetime/strategies.strategy.Strategy.to_default_timezone", "strategy_methods.misc", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_close", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_open", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.get_parameters", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.log_message", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.set_market", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.sleep", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.update_parameters", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_execution", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_registration", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_execution", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_registration", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_close", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_open", "strategy_methods.misc/strategies.strategy.Strategy.get_parameters", "strategy_methods.misc/strategies.strategy.Strategy.log_message", "strategy_methods.misc/strategies.strategy.Strategy.set_market", "strategy_methods.misc/strategies.strategy.Strategy.sleep", "strategy_methods.misc/strategies.strategy.Strategy.update_parameters", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_execution", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_registration", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_execution", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_registration", "strategy_methods.options", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chain", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chains", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_expiration", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_greeks", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_multiplier", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_strikes", "strategy_methods.options/lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", "strategy_methods.options/strategies.strategy.Strategy.get_chain", "strategy_methods.options/strategies.strategy.Strategy.get_chains", "strategy_methods.options/strategies.strategy.Strategy.get_expiration", "strategy_methods.options/strategies.strategy.Strategy.get_greeks", "strategy_methods.options/strategies.strategy.Strategy.get_multiplier", "strategy_methods.options/strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.options/strategies.strategy.Strategy.get_option_expiration_after_date", "strategy_methods.options/strategies.strategy.Strategy.get_strikes", "strategy_methods.options/strategies.strategy.Strategy.options_expiry_to_datetime_date", "strategy_methods.orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_open_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.create_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_asset_potential_total", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_selling_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.sell_all", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_orders", "strategy_methods.orders/strategies.strategy.Strategy.cancel_open_orders", "strategy_methods.orders/strategies.strategy.Strategy.cancel_order", "strategy_methods.orders/strategies.strategy.Strategy.cancel_orders", "strategy_methods.orders/strategies.strategy.Strategy.create_order", "strategy_methods.orders/strategies.strategy.Strategy.get_asset_potential_total", "strategy_methods.orders/strategies.strategy.Strategy.get_order", "strategy_methods.orders/strategies.strategy.Strategy.get_orders", "strategy_methods.orders/strategies.strategy.Strategy.get_selling_order", "strategy_methods.orders/strategies.strategy.Strategy.sell_all", "strategy_methods.orders/strategies.strategy.Strategy.submit_order", "strategy_methods.orders/strategies.strategy.Strategy.submit_orders", "strategy_methods.parameters", "strategy_properties", "strategy_properties/lumibot.strategies.strategy.Strategy.cash", "strategy_properties/lumibot.strategies.strategy.Strategy.first_iteration", "strategy_properties/lumibot.strategies.strategy.Strategy.initial_budget", "strategy_properties/lumibot.strategies.strategy.Strategy.is_backtesting", "strategy_properties/lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_closing", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_opening", "strategy_properties/lumibot.strategies.strategy.Strategy.name", "strategy_properties/lumibot.strategies.strategy.Strategy.portfolio_value", "strategy_properties/lumibot.strategies.strategy.Strategy.pytz", "strategy_properties/lumibot.strategies.strategy.Strategy.quote_asset", "strategy_properties/lumibot.strategies.strategy.Strategy.sleeptime", "strategy_properties/lumibot.strategies.strategy.Strategy.timezone", "strategy_properties/lumibot.strategies.strategy.Strategy.unspent_money", "strategy_properties/lumibot.strategies.strategy.pytz", "strategy_properties/strategies.strategy.Strategy.cash", "strategy_properties/strategies.strategy.Strategy.first_iteration", "strategy_properties/strategies.strategy.Strategy.initial_budget", "strategy_properties/strategies.strategy.Strategy.is_backtesting", "strategy_properties/strategies.strategy.Strategy.last_on_trading_iteration_datetime", "strategy_properties/strategies.strategy.Strategy.minutes_before_closing", "strategy_properties/strategies.strategy.Strategy.minutes_before_opening", "strategy_properties/strategies.strategy.Strategy.name", "strategy_properties/strategies.strategy.Strategy.portfolio_value", "strategy_properties/strategies.strategy.Strategy.pytz", "strategy_properties/strategies.strategy.Strategy.quote_asset", "strategy_properties/strategies.strategy.Strategy.sleeptime", "strategy_properties/strategies.strategy.Strategy.timezone", "strategy_properties/strategies.strategy.Strategy.unspent_money", "vars"], "envversion": {"sphinx": 64, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2}, "filenames": ["backtesting.rst", "backtesting.backtesting_function.rst", "backtesting.how_to_backtest.rst", "backtesting.indicators_files.rst", "backtesting.logs_csv.rst", "backtesting.pandas.rst", "backtesting.polygon.rst", "backtesting.tearsheet_html.rst", "backtesting.thetadata.rst", "backtesting.trades_files.rst", "backtesting.yahoo.rst", "brokers.rst", "brokers.alpaca.rst", "brokers.ccxt.rst", "brokers.interactive_brokers.rst", "brokers.interactive_brokers_legacy.rst", "brokers.tradier.rst", "deployment.rst", "entities.rst", "entities.asset.rst", "entities.bars.rst", "entities.data.rst", "entities.order.rst", "entities.position.rst", "entities.trading_fee.rst", "getting_started.rst", "index.rst", "lifecycle_methods.rst", "lifecycle_methods.after_market_closes.rst", "lifecycle_methods.before_market_closes.rst", "lifecycle_methods.before_market_opens.rst", "lifecycle_methods.before_starting_trading.rst", "lifecycle_methods.initialize.rst", "lifecycle_methods.on_abrupt_closing.rst", "lifecycle_methods.on_bot_crash.rst", "lifecycle_methods.on_canceled_order.rst", "lifecycle_methods.on_filled_order.rst", "lifecycle_methods.on_new_order.rst", "lifecycle_methods.on_parameters_updated.rst", "lifecycle_methods.on_partially_filled_order.rst", "lifecycle_methods.on_trading_iteration.rst", "lifecycle_methods.summary.rst", "lifecycle_methods.trace_stats.rst", "lumibot.backtesting.rst", "lumibot.data_sources.rst", "lumibot.strategies.rst", "lumibot.traders.rst", "strategy_methods.rst", "strategy_methods.account.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_cash.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_portfolio_value.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_position.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_positions.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.set_parameters.rst", "strategy_methods.account/strategies.strategy.Strategy.get_cash.rst", "strategy_methods.account/strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.account/strategies.strategy.Strategy.get_portfolio_value.rst", "strategy_methods.account/strategies.strategy.Strategy.get_position.rst", "strategy_methods.account/strategies.strategy.Strategy.get_positions.rst", "strategy_methods.account/strategies.strategy.Strategy.set_parameters.rst", "strategy_methods.chart.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_line.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_marker.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_lines_df.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_markers_df.rst", "strategy_methods.chart/strategies.strategy.Strategy.add_line.rst", "strategy_methods.chart/strategies.strategy.Strategy.add_marker.rst", "strategy_methods.chart/strategies.strategy.Strategy.get_lines_df.rst", "strategy_methods.chart/strategies.strategy.Strategy.get_markers_df.rst", "strategy_methods.data.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.cancel_realtime_bars.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_price.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_prices.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_quote.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_realtime_bars.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividend.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividends.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.start_realtime_bars.rst", "strategy_methods.datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime_range.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_day.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_minute.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_day.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_minute.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_timestamp.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.localize_datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.to_default_timezone.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime_range.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_day.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_minute.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_day.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_minute.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_timestamp.rst", "strategy_methods.datetime/strategies.strategy.Strategy.localize_datetime.rst", "strategy_methods.datetime/strategies.strategy.Strategy.to_default_timezone.rst", "strategy_methods.misc.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_close.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_open.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.log_message.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.set_market.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.sleep.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.update_parameters.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_execution.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_registration.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_execution.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_registration.rst", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_close.rst", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_open.rst", "strategy_methods.misc/strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.misc/strategies.strategy.Strategy.log_message.rst", "strategy_methods.misc/strategies.strategy.Strategy.set_market.rst", "strategy_methods.misc/strategies.strategy.Strategy.sleep.rst", "strategy_methods.misc/strategies.strategy.Strategy.update_parameters.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_execution.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_registration.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_execution.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_registration.rst", "strategy_methods.options.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chain.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chains.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_expiration.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_greeks.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_multiplier.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_strikes.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date.rst", "strategy_methods.options/strategies.strategy.Strategy.get_chain.rst", "strategy_methods.options/strategies.strategy.Strategy.get_chains.rst", "strategy_methods.options/strategies.strategy.Strategy.get_expiration.rst", "strategy_methods.options/strategies.strategy.Strategy.get_greeks.rst", "strategy_methods.options/strategies.strategy.Strategy.get_multiplier.rst", "strategy_methods.options/strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.options/strategies.strategy.Strategy.get_option_expiration_after_date.rst", "strategy_methods.options/strategies.strategy.Strategy.get_strikes.rst", "strategy_methods.options/strategies.strategy.Strategy.options_expiry_to_datetime_date.rst", "strategy_methods.orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_open_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.create_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_asset_potential_total.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_selling_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.sell_all.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_open_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.create_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_asset_potential_total.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_selling_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.sell_all.rst", "strategy_methods.orders/strategies.strategy.Strategy.submit_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.submit_orders.rst", "strategy_methods.parameters.rst", "strategy_properties.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.cash.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.first_iteration.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.initial_budget.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.is_backtesting.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_closing.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_opening.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.name.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.portfolio_value.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.pytz.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.quote_asset.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.sleeptime.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.timezone.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.unspent_money.rst", "strategy_properties/lumibot.strategies.strategy.pytz.rst", "strategy_properties/strategies.strategy.Strategy.cash.rst", "strategy_properties/strategies.strategy.Strategy.first_iteration.rst", "strategy_properties/strategies.strategy.Strategy.initial_budget.rst", "strategy_properties/strategies.strategy.Strategy.is_backtesting.rst", "strategy_properties/strategies.strategy.Strategy.last_on_trading_iteration_datetime.rst", "strategy_properties/strategies.strategy.Strategy.minutes_before_closing.rst", "strategy_properties/strategies.strategy.Strategy.minutes_before_opening.rst", "strategy_properties/strategies.strategy.Strategy.name.rst", "strategy_properties/strategies.strategy.Strategy.portfolio_value.rst", "strategy_properties/strategies.strategy.Strategy.pytz.rst", "strategy_properties/strategies.strategy.Strategy.quote_asset.rst", "strategy_properties/strategies.strategy.Strategy.sleeptime.rst", "strategy_properties/strategies.strategy.Strategy.timezone.rst", "strategy_properties/strategies.strategy.Strategy.unspent_money.rst", "vars.rst"], "indexentries": {"_asset_types (entities.asset.asset attribute)": [[19, "entities.asset.Asset._asset_types", false]], "_get_bars_dict() (entities.data.data method)": [[21, "entities.data.Data._get_bars_dict", false]], "_right (entities.asset.asset attribute)": [[19, "entities.asset.Asset._right", false]], "add_child_order() (entities.order.order method)": [[22, "entities.order.Order.add_child_order", false]], "add_line() (in module lumibot.strategies.strategy.strategy)": [[62, "lumibot.strategies.strategy.Strategy.add_line", false], [66, "lumibot.strategies.strategy.Strategy.add_line", false]], "add_marker() (in module lumibot.strategies.strategy.strategy)": [[63, "lumibot.strategies.strategy.Strategy.add_marker", false], [67, "lumibot.strategies.strategy.Strategy.add_marker", false]], "add_order() (entities.position.position method)": [[23, "entities.position.Position.add_order", false]], "add_strategy() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.add_strategy", false]], "add_transaction() (entities.order.order method)": [[22, "entities.order.Order.add_transaction", false]], "after_market_closes() (in module lumibot.strategies.strategy.strategy)": [[28, "lumibot.strategies.strategy.Strategy.after_market_closes", false]], "aggregate_bars() (entities.bars.bars method)": [[20, "entities.bars.Bars.aggregate_bars", false], [20, "id0", false]], "alpaca (class in lumibot.brokers.alpaca)": [[12, "lumibot.brokers.alpaca.Alpaca", false]], "api (lumibot.brokers.alpaca.alpaca attribute)": [[12, "lumibot.brokers.alpaca.Alpaca.api", false]], "asset (class in entities.asset)": [[19, "entities.asset.Asset", false]], "asset (entities.data.data attribute)": [[21, "entities.data.Data.asset", false]], "asset (entities.position.position attribute)": [[23, "entities.position.Position.asset", false]], "asset.assettype (class in entities.asset)": [[19, "entities.asset.Asset.AssetType", false]], "asset.optionright (class in entities.asset)": [[19, "entities.asset.Asset.OptionRight", false]], "asset_type (entities.asset.asset attribute)": [[19, "entities.asset.Asset.asset_type", false], [19, "id0", false]], "asset_type_map (lumibot.brokers.alpaca.alpaca attribute)": [[12, "lumibot.brokers.alpaca.Alpaca.ASSET_TYPE_MAP", false]], "asset_type_must_be_one_of() (entities.asset.asset method)": [[19, "entities.asset.Asset.asset_type_must_be_one_of", false], [19, "id1", false]], "assetsmapping (class in entities.asset)": [[19, "entities.asset.AssetsMapping", false]], "available (entities.position.position attribute)": [[23, "entities.position.Position.available", false]], "available (entities.position.position property)": [[23, "id0", false]], "avg_fill_price (entities.order.order property)": [[22, "entities.order.Order.avg_fill_price", false]], "avg_fill_price (entities.position.position attribute)": [[23, "entities.position.Position.avg_fill_price", false]], "await_market_to_close() (in module lumibot.strategies.strategy.strategy)": [[102, "lumibot.strategies.strategy.Strategy.await_market_to_close", false], [113, "lumibot.strategies.strategy.Strategy.await_market_to_close", false]], "await_market_to_open() (in module lumibot.strategies.strategy.strategy)": [[103, "lumibot.strategies.strategy.Strategy.await_market_to_open", false], [114, "lumibot.strategies.strategy.Strategy.await_market_to_open", false]], "backtestingbroker (class in lumibot.backtesting.backtesting_broker)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker", false]], "bars (class in entities.bars)": [[20, "entities.bars.Bars", false]], "before_market_closes() (in module lumibot.strategies.strategy.strategy)": [[29, "lumibot.strategies.strategy.Strategy.before_market_closes", false]], "before_market_opens() (in module lumibot.strategies.strategy.strategy)": [[30, "lumibot.strategies.strategy.Strategy.before_market_opens", false]], "before_starting_trading() (in module lumibot.strategies.strategy.strategy)": [[31, "lumibot.strategies.strategy.Strategy.before_starting_trading", false]], "bracket (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.BRACKET", false]], "bracket (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.BRACKET", false]], "buy (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY", false]], "buy_to_close (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_CLOSE", false]], "buy_to_cover (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_COVER", false]], "buy_to_open (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_OPEN", false]], "calculate_greeks() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.calculate_greeks", false]], "calculate_trade_cost() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.calculate_trade_cost", false]], "call (entities.asset.asset.optionright attribute)": [[19, "entities.asset.Asset.OptionRight.CALL", false]], "cancel_open_orders() (in module lumibot.strategies.strategy.strategy)": [[143, "lumibot.strategies.strategy.Strategy.cancel_open_orders", false], [154, "lumibot.strategies.strategy.Strategy.cancel_open_orders", false]], "cancel_order() (in module lumibot.strategies.strategy.strategy)": [[144, "lumibot.strategies.strategy.Strategy.cancel_order", false], [155, "lumibot.strategies.strategy.Strategy.cancel_order", false]], "cancel_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.cancel_order", false]], "cancel_order() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.cancel_order", false]], "cancel_orders() (in module lumibot.strategies.strategy.strategy)": [[145, "lumibot.strategies.strategy.Strategy.cancel_orders", false], [156, "lumibot.strategies.strategy.Strategy.cancel_orders", false]], "cancel_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[71, "lumibot.strategies.strategy.Strategy.cancel_realtime_bars", false]], "canceled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CANCELED", false]], "cancelling (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CANCELLING", false]], "cash (lumibot.strategies.strategy.strategy property)": [[167, "lumibot.strategies.strategy.Strategy.cash", false], [182, "lumibot.strategies.strategy.Strategy.cash", false]], "cash_pending() (entities.order.order method)": [[22, "entities.order.Order.cash_pending", false]], "cash_settle_options_contract() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.cash_settle_options_contract", false]], "cash_settled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CASH_SETTLED", false]], "check_data() (entities.data.data method)": [[21, "entities.data.Data.check_data", false], [21, "id0", false]], "clean_trading_times() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.clean_trading_times", false]], "columns() (entities.data.data method)": [[21, "entities.data.Data.columns", false], [21, "id1", false]], "convert_timestep_str_to_timedelta() (lumibot.data_sources.data_source.datasource static method)": [[44, "lumibot.data_sources.data_source.DataSource.convert_timestep_str_to_timedelta", false]], "create_order() (in module lumibot.strategies.strategy.strategy)": [[146, "lumibot.strategies.strategy.Strategy.create_order", false], [157, "lumibot.strategies.strategy.Strategy.create_order", false]], "crypto (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.CRYPTO", false]], "data (class in entities.data)": [[21, "entities.data.Data", false]], "datalines (entities.data.data attribute)": [[21, "entities.data.Data.datalines", false]], "datasource (class in lumibot.data_sources.data_source)": [[44, "lumibot.data_sources.data_source.DataSource", false]], "datasourcebacktesting (class in lumibot.data_sources.data_source_backtesting)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting", false]], "date_end (entities.data.data attribute)": [[21, "entities.data.Data.date_end", false]], "date_start (entities.data.data attribute)": [[21, "entities.data.Data.date_start", false]], "datetime (lumibot.backtesting.backtesting_broker.backtestingbroker property)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.datetime", false]], "default_pytz (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.DEFAULT_PYTZ", false]], "default_timezone (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.DEFAULT_TIMEZONE", false]], "df (entities.data.data attribute)": [[21, "entities.data.Data.df", false]], "entities.asset": [[19, "module-entities.asset", false]], "entities.bars": [[20, "module-entities.bars", false]], "entities.data": [[21, "module-entities.data", false]], "entities.order": [[22, "module-entities.order", false]], "entities.position": [[23, "module-entities.position", false]], "entities.trading_fee": [[24, "module-entities.trading_fee", false]], "equivalent_status() (entities.order.order method)": [[22, "entities.order.Order.equivalent_status", false]], "error (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.ERROR", false]], "expiration (entities.asset.asset attribute)": [[19, "entities.asset.Asset.expiration", false], [19, "id2", false]], "expired (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.EXPIRED", false]], "filled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.FILLED", false]], "filter() (entities.bars.bars method)": [[20, "entities.bars.Bars.filter", false]], "find_asset_in_data_store() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.find_asset_in_data_store", false]], "first_iteration (lumibot.strategies.strategy.strategy property)": [[168, "lumibot.strategies.strategy.Strategy.first_iteration", false], [183, "lumibot.strategies.strategy.Strategy.first_iteration", false]], "forex (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.FOREX", false]], "from_dict() (entities.asset.asset class method)": [[19, "entities.asset.Asset.from_dict", false]], "from_dict() (entities.order.order class method)": [[22, "entities.order.Order.from_dict", false]], "from_dict() (entities.position.position class method)": [[23, "entities.position.Position.from_dict", false]], "future (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.FUTURE", false]], "get_asset_by_name() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_asset_by_name", false]], "get_asset_by_symbol() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_asset_by_symbol", false]], "get_asset_potential_total() (in module lumibot.strategies.strategy.strategy)": [[147, "lumibot.strategies.strategy.Strategy.get_asset_potential_total", false], [158, "lumibot.strategies.strategy.Strategy.get_asset_potential_total", false]], "get_assets() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_assets", false]], "get_bars() (entities.data.data method)": [[21, "entities.data.Data.get_bars", false], [21, "id2", false]], "get_bars() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_bars", false]], "get_bars_between_dates() (entities.data.data method)": [[21, "entities.data.Data.get_bars_between_dates", false]], "get_cash() (in module lumibot.strategies.strategy.strategy)": [[49, "lumibot.strategies.strategy.Strategy.get_cash", false], [55, "lumibot.strategies.strategy.Strategy.get_cash", false]], "get_chain() (in module lumibot.strategies.strategy.strategy)": [[125, "lumibot.strategies.strategy.Strategy.get_chain", false], [133, "lumibot.strategies.strategy.Strategy.get_chain", false]], "get_chain_full_info() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_chain_full_info", false]], "get_chains() (in module lumibot.strategies.strategy.strategy)": [[126, "lumibot.strategies.strategy.Strategy.get_chains", false], [134, "lumibot.strategies.strategy.Strategy.get_chains", false]], "get_chains() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_chains", false]], "get_chains() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_chains", false]], "get_chains() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_chains", false]], "get_datetime() (in module lumibot.strategies.strategy.strategy)": [[83, "lumibot.strategies.strategy.Strategy.get_datetime", false], [92, "lumibot.strategies.strategy.Strategy.get_datetime", false]], "get_datetime() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_datetime", false]], "get_datetime() (lumibot.data_sources.data_source_backtesting.datasourcebacktesting method)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.get_datetime", false]], "get_datetime_range() (in module lumibot.strategies.strategy.strategy)": [[84, "lumibot.strategies.strategy.Strategy.get_datetime_range", false], [93, "lumibot.strategies.strategy.Strategy.get_datetime_range", false]], "get_datetime_range() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_datetime_range", false]], "get_datetime_range() (lumibot.data_sources.data_source_backtesting.datasourcebacktesting method)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.get_datetime_range", false]], "get_expiration() (in module lumibot.strategies.strategy.strategy)": [[127, "lumibot.strategies.strategy.Strategy.get_expiration", false], [135, "lumibot.strategies.strategy.Strategy.get_expiration", false]], "get_fill_price() (entities.order.order method)": [[22, "entities.order.Order.get_fill_price", false]], "get_greeks() (in module lumibot.strategies.strategy.strategy)": [[128, "lumibot.strategies.strategy.Strategy.get_greeks", false], [136, "lumibot.strategies.strategy.Strategy.get_greeks", false]], "get_historical_account_value() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_historical_account_value", false]], "get_historical_account_value() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.get_historical_account_value", false]], "get_historical_prices() (in module lumibot.strategies.strategy.strategy)": [[72, "lumibot.strategies.strategy.Strategy.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_historical_prices", false]], "get_historical_prices_for_assets() (in module lumibot.strategies.strategy.strategy)": [[73, "lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets", false]], "get_increment() (entities.order.order method)": [[22, "entities.order.Order.get_increment", false]], "get_iter_count() (entities.data.data method)": [[21, "entities.data.Data.get_iter_count", false], [21, "id3", false]], "get_last_bar() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_last_bar", false]], "get_last_day() (in module lumibot.strategies.strategy.strategy)": [[85, "lumibot.strategies.strategy.Strategy.get_last_day", false], [94, "lumibot.strategies.strategy.Strategy.get_last_day", false]], "get_last_day() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_day", false]], "get_last_dividend() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_last_dividend", false], [20, "id1", false]], "get_last_minute() (in module lumibot.strategies.strategy.strategy)": [[86, "lumibot.strategies.strategy.Strategy.get_last_minute", false], [95, "lumibot.strategies.strategy.Strategy.get_last_minute", false]], "get_last_minute() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_minute", false]], "get_last_price() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_last_price", false], [20, "id2", false]], "get_last_price() (entities.data.data method)": [[21, "entities.data.Data.get_last_price", false], [21, "id4", false]], "get_last_price() (in module lumibot.strategies.strategy.strategy)": [[74, "lumibot.strategies.strategy.Strategy.get_last_price", false]], "get_last_price() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_price", false]], "get_last_price() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_last_price", false]], "get_last_price() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_last_price", false]], "get_last_prices() (in module lumibot.strategies.strategy.strategy)": [[75, "lumibot.strategies.strategy.Strategy.get_last_prices", false]], "get_last_prices() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_prices", false]], "get_last_prices() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_last_prices", false]], "get_lines_df() (in module lumibot.strategies.strategy.strategy)": [[64, "lumibot.strategies.strategy.Strategy.get_lines_df", false], [68, "lumibot.strategies.strategy.Strategy.get_lines_df", false]], "get_markers_df() (in module lumibot.strategies.strategy.strategy)": [[65, "lumibot.strategies.strategy.Strategy.get_markers_df", false], [69, "lumibot.strategies.strategy.Strategy.get_markers_df", false]], "get_momentum() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_momentum", false], [20, "id3", false]], "get_multiplier() (in module lumibot.strategies.strategy.strategy)": [[129, "lumibot.strategies.strategy.Strategy.get_multiplier", false], [137, "lumibot.strategies.strategy.Strategy.get_multiplier", false]], "get_next_trading_day() (in module lumibot.strategies.strategy.strategy)": [[76, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false], [130, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false], [138, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false]], "get_option_expiration_after_date() (in module lumibot.strategies.strategy.strategy)": [[139, "lumibot.strategies.strategy.Strategy.get_option_expiration_after_date", false]], "get_order() (in module lumibot.strategies.strategy.strategy)": [[148, "lumibot.strategies.strategy.Strategy.get_order", false], [159, "lumibot.strategies.strategy.Strategy.get_order", false]], "get_orders() (in module lumibot.strategies.strategy.strategy)": [[149, "lumibot.strategies.strategy.Strategy.get_orders", false], [160, "lumibot.strategies.strategy.Strategy.get_orders", false]], "get_parameters() (in module lumibot.strategies.strategy.strategy)": [[50, "lumibot.strategies.strategy.Strategy.get_parameters", false], [56, "lumibot.strategies.strategy.Strategy.get_parameters", false], [104, "lumibot.strategies.strategy.Strategy.get_parameters", false], [115, "lumibot.strategies.strategy.Strategy.get_parameters", false]], "get_portfolio_value() (in module lumibot.strategies.strategy.strategy)": [[51, "lumibot.strategies.strategy.Strategy.get_portfolio_value", false], [57, "lumibot.strategies.strategy.Strategy.get_portfolio_value", false]], "get_position() (in module lumibot.strategies.strategy.strategy)": [[52, "lumibot.strategies.strategy.Strategy.get_position", false], [58, "lumibot.strategies.strategy.Strategy.get_position", false]], "get_positions() (in module lumibot.strategies.strategy.strategy)": [[53, "lumibot.strategies.strategy.Strategy.get_positions", false], [59, "lumibot.strategies.strategy.Strategy.get_positions", false]], "get_quote() (entities.data.data method)": [[21, "entities.data.Data.get_quote", false]], "get_quote() (in module lumibot.strategies.strategy.strategy)": [[77, "lumibot.strategies.strategy.Strategy.get_quote", false]], "get_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[78, "lumibot.strategies.strategy.Strategy.get_realtime_bars", false]], "get_round_day() (in module lumibot.strategies.strategy.strategy)": [[87, "lumibot.strategies.strategy.Strategy.get_round_day", false], [96, "lumibot.strategies.strategy.Strategy.get_round_day", false]], "get_round_day() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_round_day", false]], "get_round_minute() (in module lumibot.strategies.strategy.strategy)": [[88, "lumibot.strategies.strategy.Strategy.get_round_minute", false], [97, "lumibot.strategies.strategy.Strategy.get_round_minute", false]], "get_round_minute() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_round_minute", false]], "get_selling_order() (entities.position.position method)": [[23, "entities.position.Position.get_selling_order", false]], "get_selling_order() (in module lumibot.strategies.strategy.strategy)": [[150, "lumibot.strategies.strategy.Strategy.get_selling_order", false], [161, "lumibot.strategies.strategy.Strategy.get_selling_order", false]], "get_start_datetime_and_ts_unit() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_start_datetime_and_ts_unit", false]], "get_strikes() (in module lumibot.strategies.strategy.strategy)": [[131, "lumibot.strategies.strategy.Strategy.get_strikes", false], [140, "lumibot.strategies.strategy.Strategy.get_strikes", false]], "get_strikes() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_strikes", false]], "get_strikes() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_strikes", false]], "get_time_to_close() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_time_to_close", false]], "get_time_to_close() (lumibot.brokers.alpaca.alpaca method)": [[12, "id0", false], [12, "lumibot.brokers.alpaca.Alpaca.get_time_to_close", false]], "get_time_to_open() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_time_to_open", false]], "get_time_to_open() (lumibot.brokers.alpaca.alpaca method)": [[12, "id1", false], [12, "lumibot.brokers.alpaca.Alpaca.get_time_to_open", false]], "get_timestamp() (in module lumibot.strategies.strategy.strategy)": [[89, "lumibot.strategies.strategy.Strategy.get_timestamp", false], [98, "lumibot.strategies.strategy.Strategy.get_timestamp", false]], "get_timestamp() (lumibot.brokers.alpaca.alpaca method)": [[12, "id2", false], [12, "lumibot.brokers.alpaca.Alpaca.get_timestamp", false]], "get_timestamp() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_timestamp", false]], "get_timestep() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_timestep", false]], "get_total_dividends() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_dividends", false]], "get_total_return() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return", false]], "get_total_return_pct() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return_pct", false]], "get_total_return_pct_change() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return_pct_change", false]], "get_total_stock_splits() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_stock_splits", false]], "get_total_volume() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_volume", false], [20, "id4", false]], "get_trading_days_pandas() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_trading_days_pandas", false]], "get_yesterday_dividend() (in module lumibot.strategies.strategy.strategy)": [[79, "lumibot.strategies.strategy.Strategy.get_yesterday_dividend", false]], "get_yesterday_dividend() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_yesterday_dividend", false]], "get_yesterday_dividend() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_yesterday_dividend", false]], "get_yesterday_dividends() (in module lumibot.strategies.strategy.strategy)": [[80, "lumibot.strategies.strategy.Strategy.get_yesterday_dividends", false]], "get_yesterday_dividends() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_yesterday_dividends", false]], "get_yesterday_dividends() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_yesterday_dividends", false]], "hold (entities.position.position attribute)": [[23, "entities.position.Position.hold", false]], "hold (entities.position.position property)": [[23, "id1", false]], "index (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.INDEX", false]], "initial_budget (lumibot.strategies.strategy.strategy property)": [[169, "lumibot.strategies.strategy.Strategy.initial_budget", false], [184, "lumibot.strategies.strategy.Strategy.initial_budget", false]], "initialize() (in module lumibot.strategies.strategy.strategy)": [[32, "lumibot.strategies.strategy.Strategy.initialize", false]], "is_active() (entities.order.order method)": [[22, "entities.order.Order.is_active", false]], "is_backtest_broker (lumibot.traders.trader.trader property)": [[46, "lumibot.traders.trader.Trader.is_backtest_broker", false]], "is_backtesting (lumibot.strategies.strategy.strategy property)": [[170, "lumibot.strategies.strategy.Strategy.is_backtesting", false], [185, "lumibot.strategies.strategy.Strategy.is_backtesting", false]], "is_backtesting_broker (lumibot.backtesting.backtesting_broker.backtestingbroker attribute)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.IS_BACKTESTING_BROKER", false]], "is_backtesting_data_source (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.IS_BACKTESTING_DATA_SOURCE", false]], "is_backtesting_data_source (lumibot.data_sources.data_source_backtesting.datasourcebacktesting attribute)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.IS_BACKTESTING_DATA_SOURCE", false]], "is_buy_order() (entities.order.order method)": [[22, "entities.order.Order.is_buy_order", false]], "is_canceled() (entities.order.order method)": [[22, "entities.order.Order.is_canceled", false]], "is_filled() (entities.order.order method)": [[22, "entities.order.Order.is_filled", false]], "is_market_open() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.is_market_open", false]], "is_market_open() (lumibot.brokers.alpaca.alpaca method)": [[12, "id3", false], [12, "lumibot.brokers.alpaca.Alpaca.is_market_open", false]], "is_option() (entities.order.order method)": [[22, "entities.order.Order.is_option", false]], "is_parent() (entities.order.order method)": [[22, "entities.order.Order.is_parent", false]], "is_sell_order() (entities.order.order method)": [[22, "entities.order.Order.is_sell_order", false]], "is_valid() (entities.asset.asset method)": [[19, "entities.asset.Asset.is_valid", false]], "iter_index (entities.data.data attribute)": [[21, "entities.data.Data.iter_index", false]], "last_on_trading_iteration_datetime (lumibot.strategies.strategy.strategy property)": [[171, "lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", false], [186, "lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", false]], "limit (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.LIMIT", false]], "limit_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.limit_order", false]], "load_data() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.load_data", false]], "localize_datetime() (in module lumibot.strategies.strategy.strategy)": [[90, "lumibot.strategies.strategy.Strategy.localize_datetime", false], [99, "lumibot.strategies.strategy.Strategy.localize_datetime", false]], "localize_datetime() (lumibot.data_sources.data_source.datasource class method)": [[44, "lumibot.data_sources.data_source.DataSource.localize_datetime", false]], "log_message() (in module lumibot.strategies.strategy.strategy)": [[105, "lumibot.strategies.strategy.Strategy.log_message", false], [116, "lumibot.strategies.strategy.Strategy.log_message", false]], "lumibot.backtesting.backtesting_broker": [[43, "module-lumibot.backtesting.backtesting_broker", false]], "lumibot.brokers.alpaca": [[12, "module-lumibot.brokers.alpaca", false]], "lumibot.data_sources": [[44, "module-lumibot.data_sources", false]], "lumibot.data_sources.data_source": [[44, "module-lumibot.data_sources.data_source", false]], "lumibot.data_sources.data_source_backtesting": [[43, "module-lumibot.data_sources.data_source_backtesting", false]], "lumibot.data_sources.pandas_data": [[44, "module-lumibot.data_sources.pandas_data", false]], "lumibot.data_sources.yahoo_data": [[44, "module-lumibot.data_sources.yahoo_data", false]], "lumibot.strategies.strategy.strategy": [[45, "module-lumibot.strategies.strategy.Strategy", false]], "lumibot.traders.trader": [[46, "module-lumibot.traders.trader", false]], "map_asset_type() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.map_asset_type", false]], "market (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.MARKET", false]], "min_timestep (entities.data.data attribute)": [[21, "entities.data.Data.MIN_TIMESTEP", false]], "min_timestep (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.MIN_TIMESTEP", false]], "min_timestep (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.MIN_TIMESTEP", false]], "minutes_before_closing (lumibot.strategies.strategy.strategy property)": [[172, "lumibot.strategies.strategy.Strategy.minutes_before_closing", false], [187, "lumibot.strategies.strategy.Strategy.minutes_before_closing", false]], "minutes_before_opening (lumibot.strategies.strategy.strategy property)": [[173, "lumibot.strategies.strategy.Strategy.minutes_before_opening", false], [188, "lumibot.strategies.strategy.Strategy.minutes_before_opening", false]], "module": [[12, "module-lumibot.brokers.alpaca", false], [19, "module-entities.asset", false], [20, "module-entities.bars", false], [21, "module-entities.data", false], [22, "module-entities.order", false], [23, "module-entities.position", false], [24, "module-entities.trading_fee", false], [43, "module-lumibot.backtesting.backtesting_broker", false], [43, "module-lumibot.data_sources.data_source_backtesting", false], [44, "module-lumibot.data_sources", false], [44, "module-lumibot.data_sources.data_source", false], [44, "module-lumibot.data_sources.pandas_data", false], [44, "module-lumibot.data_sources.yahoo_data", false], [45, "module-lumibot.strategies.strategy.Strategy", false], [46, "module-lumibot.traders.trader", false]], "multileg (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.MULTILEG", false]], "multiplier (entities.asset.asset attribute)": [[19, "entities.asset.Asset.multiplier", false], [19, "id3", false]], "name (lumibot.strategies.strategy.strategy property)": [[174, "lumibot.strategies.strategy.Strategy.name", false], [189, "lumibot.strategies.strategy.Strategy.name", false]], "new (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.NEW", false]], "nobardatafound": [[20, "entities.bars.NoBarDataFound", false]], "oco (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.OCO", false]], "oco (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.OCO", false]], "on_abrupt_closing() (in module lumibot.strategies.strategy.strategy)": [[33, "lumibot.strategies.strategy.Strategy.on_abrupt_closing", false]], "on_bot_crash() (in module lumibot.strategies.strategy.strategy)": [[34, "lumibot.strategies.strategy.Strategy.on_bot_crash", false]], "on_canceled_order() (in module lumibot.strategies.strategy.strategy)": [[35, "lumibot.strategies.strategy.Strategy.on_canceled_order", false]], "on_filled_order() (in module lumibot.strategies.strategy.strategy)": [[36, "lumibot.strategies.strategy.Strategy.on_filled_order", false]], "on_new_order() (in module lumibot.strategies.strategy.strategy)": [[37, "lumibot.strategies.strategy.Strategy.on_new_order", false]], "on_parameters_updated() (in module lumibot.strategies.strategy.strategy)": [[38, "lumibot.strategies.strategy.Strategy.on_parameters_updated", false]], "on_partially_filled_order() (in module lumibot.strategies.strategy.strategy)": [[39, "lumibot.strategies.strategy.Strategy.on_partially_filled_order", false]], "on_trading_iteration() (in module lumibot.strategies.strategy.strategy)": [[40, "lumibot.strategies.strategy.Strategy.on_trading_iteration", false]], "open (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.OPEN", false]], "option (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.OPTION", false]], "options_expiry_to_datetime_date() (in module lumibot.strategies.strategy.strategy)": [[132, "lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", false], [141, "lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", false]], "order (class in entities.order)": [[22, "entities.order.Order", false]], "order.orderclass (class in entities.order)": [[22, "entities.order.Order.OrderClass", false]], "order.orderside (class in entities.order)": [[22, "entities.order.Order.OrderSide", false]], "order.orderstatus (class in entities.order)": [[22, "entities.order.Order.OrderStatus", false]], "order.ordertype (class in entities.order)": [[22, "entities.order.Order.OrderType", false]], "order.transaction (class in entities.order)": [[22, "entities.order.Order.Transaction", false]], "orderdata (class in lumibot.brokers.alpaca)": [[12, "lumibot.brokers.alpaca.OrderData", false]], "orders (entities.position.position attribute)": [[23, "entities.position.Position.orders", false]], "oto (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.OTO", false]], "oto (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.OTO", false]], "pandasdata (class in lumibot.data_sources.pandas_data)": [[44, "lumibot.data_sources.pandas_data.PandasData", false]], "parse_bar_list() (entities.bars.bars class method)": [[20, "entities.bars.Bars.parse_bar_list", false]], "partially_filled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.PARTIALLY_FILLED", false]], "portfolio_value (lumibot.strategies.strategy.strategy property)": [[175, "lumibot.strategies.strategy.Strategy.portfolio_value", false], [190, "lumibot.strategies.strategy.Strategy.portfolio_value", false]], "position (class in entities.position)": [[23, "entities.position.Position", false]], "precision (entities.asset.asset attribute)": [[19, "entities.asset.Asset.precision", false], [19, "id4", false]], "price (entities.order.order.transaction attribute)": [[22, "entities.order.Order.Transaction.price", false]], "process_expired_option_contracts() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.process_expired_option_contracts", false]], "process_pending_orders() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.process_pending_orders", false]], "put (entities.asset.asset.optionright attribute)": [[19, "entities.asset.Asset.OptionRight.PUT", false]], "pytz (lumibot.strategies.strategy.strategy property)": [[176, "lumibot.strategies.strategy.Strategy.pytz", false], [181, "lumibot.strategies.strategy.Strategy.pytz", false], [191, "lumibot.strategies.strategy.Strategy.pytz", false]], "quantity (entities.order.order property)": [[22, "entities.order.Order.quantity", false]], "quantity (entities.order.order.transaction attribute)": [[22, "entities.order.Order.Transaction.quantity", false]], "quantity (entities.position.position attribute)": [[23, "entities.position.Position.quantity", false]], "quantity (entities.position.position property)": [[23, "id2", false]], "query_greeks() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.query_greeks", false]], "quote_asset (lumibot.strategies.strategy.strategy property)": [[177, "lumibot.strategies.strategy.Strategy.quote_asset", false], [192, "lumibot.strategies.strategy.Strategy.quote_asset", false]], "repair_times_and_fill() (entities.data.data method)": [[21, "entities.data.Data.repair_times_and_fill", false], [21, "id5", false]], "right (entities.asset.asset attribute)": [[19, "entities.asset.Asset.right", false], [19, "id5", false]], "right_must_be_one_of() (entities.asset.asset method)": [[19, "entities.asset.Asset.right_must_be_one_of", false], [19, "id6", false]], "run_all() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.run_all", false]], "run_all_async() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.run_all_async", false]], "run_backtest() (in module lumibot.strategies.strategy.strategy)": [[1, "lumibot.strategies.strategy.Strategy.run_backtest", false]], "sell (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL", false]], "sell_all() (in module lumibot.strategies.strategy.strategy)": [[151, "lumibot.strategies.strategy.Strategy.sell_all", false], [162, "lumibot.strategies.strategy.Strategy.sell_all", false]], "sell_short (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_SHORT", false]], "sell_to_close (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_TO_CLOSE", false]], "sell_to_open (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_TO_OPEN", false]], "set_canceled() (entities.order.order method)": [[22, "entities.order.Order.set_canceled", false]], "set_date_format() (entities.data.data method)": [[21, "entities.data.Data.set_date_format", false], [21, "id6", false]], "set_dates() (entities.data.data method)": [[21, "entities.data.Data.set_dates", false], [21, "id7", false]], "set_error() (entities.order.order method)": [[22, "entities.order.Order.set_error", false]], "set_filled() (entities.order.order method)": [[22, "entities.order.Order.set_filled", false]], "set_identifier() (entities.order.order method)": [[22, "entities.order.Order.set_identifier", false]], "set_market() (in module lumibot.strategies.strategy.strategy)": [[106, "lumibot.strategies.strategy.Strategy.set_market", false], [117, "lumibot.strategies.strategy.Strategy.set_market", false]], "set_new() (entities.order.order method)": [[22, "entities.order.Order.set_new", false]], "set_parameters() (in module lumibot.strategies.strategy.strategy)": [[54, "lumibot.strategies.strategy.Strategy.set_parameters", false], [60, "lumibot.strategies.strategy.Strategy.set_parameters", false]], "set_partially_filled() (entities.order.order method)": [[22, "entities.order.Order.set_partially_filled", false]], "set_times() (entities.data.data method)": [[21, "entities.data.Data.set_times", false], [21, "id8", false]], "should_continue() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.should_continue", false]], "sleep() (in module lumibot.strategies.strategy.strategy)": [[107, "lumibot.strategies.strategy.Strategy.sleep", false], [118, "lumibot.strategies.strategy.Strategy.sleep", false]], "sleeptime (lumibot.strategies.strategy.strategy property)": [[178, "lumibot.strategies.strategy.Strategy.sleeptime", false], [193, "lumibot.strategies.strategy.Strategy.sleeptime", false]], "source (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.SOURCE", false]], "source (lumibot.data_sources.pandas_data.pandasdata attribute)": [[44, "lumibot.data_sources.pandas_data.PandasData.SOURCE", false]], "source (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.SOURCE", false]], "split() (entities.bars.bars method)": [[20, "entities.bars.Bars.split", false]], "start_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[81, "lumibot.strategies.strategy.Strategy.start_realtime_bars", false]], "status (entities.order.order property)": [[22, "entities.order.Order.status", false]], "stock (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.STOCK", false]], "stop (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.STOP", false]], "stop_all() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.stop_all", false]], "stop_limit (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.STOP_LIMIT", false]], "stop_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.stop_order", false]], "strategy (entities.position.position attribute)": [[23, "entities.position.Position.strategy", false]], "strike (entities.asset.asset attribute)": [[19, "entities.asset.Asset.strike", false], [19, "id7", false]], "submit_order() (in module lumibot.strategies.strategy.strategy)": [[152, "lumibot.strategies.strategy.Strategy.submit_order", false], [163, "lumibot.strategies.strategy.Strategy.submit_order", false]], "submit_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.submit_order", false]], "submit_orders() (in module lumibot.strategies.strategy.strategy)": [[153, "lumibot.strategies.strategy.Strategy.submit_orders", false], [164, "lumibot.strategies.strategy.Strategy.submit_orders", false]], "submit_orders() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.submit_orders", false]], "submitted (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.SUBMITTED", false]], "sybmol (entities.data.data attribute)": [[21, "entities.data.Data.sybmol", false]], "symbol (entities.asset.asset attribute)": [[19, "entities.asset.Asset.symbol", false], [19, "id8", false]], "symbol (entities.position.position attribute)": [[23, "entities.position.Position.symbol", false]], "symbol2asset() (entities.asset.asset class method)": [[19, "entities.asset.Asset.symbol2asset", false]], "timestep (entities.data.data attribute)": [[21, "entities.data.Data.timestep", false]], "timestep_mapping (entities.data.data attribute)": [[21, "entities.data.Data.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.pandas_data.pandasdata attribute)": [[44, "lumibot.data_sources.pandas_data.PandasData.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.TIMESTEP_MAPPING", false]], "timezone (lumibot.strategies.strategy.strategy property)": [[179, "lumibot.strategies.strategy.Strategy.timezone", false], [194, "lumibot.strategies.strategy.Strategy.timezone", false]], "to_datalines() (entities.data.data method)": [[21, "entities.data.Data.to_datalines", false], [21, "id9", false]], "to_default_timezone() (in module lumibot.strategies.strategy.strategy)": [[91, "lumibot.strategies.strategy.Strategy.to_default_timezone", false], [100, "lumibot.strategies.strategy.Strategy.to_default_timezone", false]], "to_default_timezone() (lumibot.data_sources.data_source.datasource class method)": [[44, "lumibot.data_sources.data_source.DataSource.to_default_timezone", false]], "to_dict() (entities.asset.asset method)": [[19, "entities.asset.Asset.to_dict", false]], "to_dict() (entities.order.order method)": [[22, "entities.order.Order.to_dict", false]], "to_dict() (entities.position.position method)": [[23, "entities.position.Position.to_dict", false]], "to_position() (entities.order.order method)": [[22, "entities.order.Order.to_position", false]], "to_request_fields() (lumibot.brokers.alpaca.orderdata method)": [[12, "lumibot.brokers.alpaca.OrderData.to_request_fields", false]], "trace_stats() (in module lumibot.strategies.strategy.strategy)": [[42, "lumibot.strategies.strategy.Strategy.trace_stats", false]], "trader (class in lumibot.traders.trader)": [[46, "lumibot.traders.trader.Trader", false]], "trading_hours_end (entities.data.data attribute)": [[21, "entities.data.Data.trading_hours_end", false]], "trading_hours_start (entities.data.data attribute)": [[21, "entities.data.Data.trading_hours_start", false]], "tradingfee (class in entities.trading_fee)": [[24, "entities.trading_fee.TradingFee", false]], "trail (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.TRAIL", false]], "trim_data() (entities.data.data method)": [[21, "entities.data.Data.trim_data", false], [21, "id10", false]], "underlying_asset (entities.asset.asset attribute)": [[19, "entities.asset.Asset.underlying_asset", false]], "unprocessed (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.UNPROCESSED", false]], "unspent_money (lumibot.strategies.strategy.strategy property)": [[180, "lumibot.strategies.strategy.Strategy.unspent_money", false], [195, "lumibot.strategies.strategy.Strategy.unspent_money", false]], "update_date_index() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.update_date_index", false]], "update_parameters() (in module lumibot.strategies.strategy.strategy)": [[108, "lumibot.strategies.strategy.Strategy.update_parameters", false], [119, "lumibot.strategies.strategy.Strategy.update_parameters", false]], "update_raw() (entities.order.order method)": [[22, "entities.order.Order.update_raw", false]], "update_trail_stop_price() (entities.order.order method)": [[22, "entities.order.Order.update_trail_stop_price", false]], "value_type() (entities.position.position method)": [[23, "entities.position.Position.value_type", false]], "wait_for_order_execution() (in module lumibot.strategies.strategy.strategy)": [[109, "lumibot.strategies.strategy.Strategy.wait_for_order_execution", false], [120, "lumibot.strategies.strategy.Strategy.wait_for_order_execution", false]], "wait_for_order_registration() (in module lumibot.strategies.strategy.strategy)": [[110, "lumibot.strategies.strategy.Strategy.wait_for_order_registration", false], [121, "lumibot.strategies.strategy.Strategy.wait_for_order_registration", false]], "wait_for_orders_execution() (in module lumibot.strategies.strategy.strategy)": [[111, "lumibot.strategies.strategy.Strategy.wait_for_orders_execution", false], [122, "lumibot.strategies.strategy.Strategy.wait_for_orders_execution", false]], "wait_for_orders_registration() (in module lumibot.strategies.strategy.strategy)": [[112, "lumibot.strategies.strategy.Strategy.wait_for_orders_registration", false], [123, "lumibot.strategies.strategy.Strategy.wait_for_orders_registration", false]], "wait_to_be_closed() (entities.order.order method)": [[22, "entities.order.Order.wait_to_be_closed", false]], "wait_to_be_registered() (entities.order.order method)": [[22, "entities.order.Order.wait_to_be_registered", false]], "was_transmitted() (entities.order.order method)": [[22, "entities.order.Order.was_transmitted", false]], "yahoodata (class in lumibot.data_sources.yahoo_data)": [[44, "lumibot.data_sources.yahoo_data.YahooData", false]]}, "objects": {"entities": [[19, 0, 0, "-", "asset"], [20, 0, 0, "-", "bars"], [21, 0, 0, "-", "data"], [22, 0, 0, "-", "order"], [23, 0, 0, "-", "position"], [24, 0, 0, "-", "trading_fee"]], "entities.asset": [[19, 1, 1, "", "Asset"], [19, 1, 1, "", "AssetsMapping"]], "entities.asset.Asset": [[19, 1, 1, "", "AssetType"], [19, 1, 1, "", "OptionRight"], [19, 2, 1, "", "_asset_types"], [19, 2, 1, "", "_right"], [19, 2, 1, "id0", "asset_type"], [19, 3, 1, "id1", "asset_type_must_be_one_of"], [19, 2, 1, "id2", "expiration"], [19, 3, 1, "", "from_dict"], [19, 3, 1, "", "is_valid"], [19, 2, 1, "id3", "multiplier"], [19, 2, 1, "id4", "precision"], [19, 2, 1, "id5", "right"], [19, 3, 1, "id6", "right_must_be_one_of"], [19, 2, 1, "id7", "strike"], [19, 2, 1, "id8", "symbol"], [19, 3, 1, "", "symbol2asset"], [19, 3, 1, "", "to_dict"], [19, 2, 1, "", "underlying_asset"]], "entities.asset.Asset.AssetType": [[19, 2, 1, "", "CRYPTO"], [19, 2, 1, "", "FOREX"], [19, 2, 1, "", "FUTURE"], [19, 2, 1, "", "INDEX"], [19, 2, 1, "", "OPTION"], [19, 2, 1, "", "STOCK"]], "entities.asset.Asset.OptionRight": [[19, 2, 1, "", "CALL"], [19, 2, 1, "", "PUT"]], "entities.bars": [[20, 1, 1, "", "Bars"], [20, 4, 1, "", "NoBarDataFound"]], "entities.bars.Bars": [[20, 3, 1, "id0", "aggregate_bars"], [20, 3, 1, "", "filter"], [20, 3, 1, "id1", "get_last_dividend"], [20, 3, 1, "id2", "get_last_price"], [20, 3, 1, "id3", "get_momentum"], [20, 3, 1, "", "get_total_dividends"], [20, 3, 1, "", "get_total_return"], [20, 3, 1, "", "get_total_return_pct"], [20, 3, 1, "", "get_total_return_pct_change"], [20, 3, 1, "", "get_total_stock_splits"], [20, 3, 1, "id4", "get_total_volume"], [20, 3, 1, "", "parse_bar_list"], [20, 3, 1, "", "split"]], "entities.data": [[21, 1, 1, "", "Data"]], "entities.data.Data": [[21, 2, 1, "", "MIN_TIMESTEP"], [21, 2, 1, "", "TIMESTEP_MAPPING"], [21, 3, 1, "", "_get_bars_dict"], [21, 2, 1, "", "asset"], [21, 3, 1, "id0", "check_data"], [21, 3, 1, "id1", "columns"], [21, 2, 1, "", "datalines"], [21, 2, 1, "", "date_end"], [21, 2, 1, "", "date_start"], [21, 2, 1, "", "df"], [21, 3, 1, "id2", "get_bars"], [21, 3, 1, "", "get_bars_between_dates"], [21, 3, 1, "id3", "get_iter_count"], [21, 3, 1, "id4", "get_last_price"], [21, 3, 1, "", "get_quote"], [21, 2, 1, "", "iter_index"], [21, 3, 1, "id5", "repair_times_and_fill"], [21, 3, 1, "id6", "set_date_format"], [21, 3, 1, "id7", "set_dates"], [21, 3, 1, "id8", "set_times"], [21, 2, 1, "", "sybmol"], [21, 2, 1, "", "timestep"], [21, 3, 1, "id9", "to_datalines"], [21, 2, 1, "", "trading_hours_end"], [21, 2, 1, "", "trading_hours_start"], [21, 3, 1, "id10", "trim_data"]], "entities.order": [[22, 1, 1, "", "Order"]], "entities.order.Order": [[22, 1, 1, "", "OrderClass"], [22, 1, 1, "", "OrderSide"], [22, 1, 1, "", "OrderStatus"], [22, 1, 1, "", "OrderType"], [22, 1, 1, "", "Transaction"], [22, 3, 1, "", "add_child_order"], [22, 3, 1, "", "add_transaction"], [22, 5, 1, "", "avg_fill_price"], [22, 3, 1, "", "cash_pending"], [22, 3, 1, "", "equivalent_status"], [22, 3, 1, "", "from_dict"], [22, 3, 1, "", "get_fill_price"], [22, 3, 1, "", "get_increment"], [22, 3, 1, "", "is_active"], [22, 3, 1, "", "is_buy_order"], [22, 3, 1, "", "is_canceled"], [22, 3, 1, "", "is_filled"], [22, 3, 1, "", "is_option"], [22, 3, 1, "", "is_parent"], [22, 3, 1, "", "is_sell_order"], [22, 5, 1, "", "quantity"], [22, 3, 1, "", "set_canceled"], [22, 3, 1, "", "set_error"], [22, 3, 1, "", "set_filled"], [22, 3, 1, "", "set_identifier"], [22, 3, 1, "", "set_new"], [22, 3, 1, "", "set_partially_filled"], [22, 5, 1, "", "status"], [22, 3, 1, "", "to_dict"], [22, 3, 1, "", "to_position"], [22, 3, 1, "", "update_raw"], [22, 3, 1, "", "update_trail_stop_price"], [22, 3, 1, "", "wait_to_be_closed"], [22, 3, 1, "", "wait_to_be_registered"], [22, 3, 1, "", "was_transmitted"]], "entities.order.Order.OrderClass": [[22, 2, 1, "", "BRACKET"], [22, 2, 1, "", "MULTILEG"], [22, 2, 1, "", "OCO"], [22, 2, 1, "", "OTO"]], "entities.order.Order.OrderSide": [[22, 2, 1, "", "BUY"], [22, 2, 1, "", "BUY_TO_CLOSE"], [22, 2, 1, "", "BUY_TO_COVER"], [22, 2, 1, "", "BUY_TO_OPEN"], [22, 2, 1, "", "SELL"], [22, 2, 1, "", "SELL_SHORT"], [22, 2, 1, "", "SELL_TO_CLOSE"], [22, 2, 1, "", "SELL_TO_OPEN"]], "entities.order.Order.OrderStatus": [[22, 2, 1, "", "CANCELED"], [22, 2, 1, "", "CANCELLING"], [22, 2, 1, "", "CASH_SETTLED"], [22, 2, 1, "", "ERROR"], [22, 2, 1, "", "EXPIRED"], [22, 2, 1, "", "FILLED"], [22, 2, 1, "", "NEW"], [22, 2, 1, "", "OPEN"], [22, 2, 1, "", "PARTIALLY_FILLED"], [22, 2, 1, "", "SUBMITTED"], [22, 2, 1, "", "UNPROCESSED"]], "entities.order.Order.OrderType": [[22, 2, 1, "", "BRACKET"], [22, 2, 1, "", "LIMIT"], [22, 2, 1, "", "MARKET"], [22, 2, 1, "", "OCO"], [22, 2, 1, "", "OTO"], [22, 2, 1, "", "STOP"], [22, 2, 1, "", "STOP_LIMIT"], [22, 2, 1, "", "TRAIL"]], "entities.order.Order.Transaction": [[22, 2, 1, "", "price"], [22, 2, 1, "", "quantity"]], "entities.position": [[23, 1, 1, "", "Position"]], "entities.position.Position": [[23, 3, 1, "", "add_order"], [23, 2, 1, "", "asset"], [23, 5, 1, "id0", "available"], [23, 2, 1, "", "avg_fill_price"], [23, 3, 1, "", "from_dict"], [23, 3, 1, "", "get_selling_order"], [23, 5, 1, "id1", "hold"], [23, 2, 1, "", "orders"], [23, 5, 1, "id2", "quantity"], [23, 2, 1, "", "strategy"], [23, 2, 1, "", "symbol"], [23, 3, 1, "", "to_dict"], [23, 3, 1, "", "value_type"]], "entities.trading_fee": [[24, 1, 1, "", "TradingFee"]], "lumibot": [[44, 0, 0, "-", "data_sources"]], "lumibot.backtesting": [[43, 0, 0, "-", "backtesting_broker"]], "lumibot.backtesting.backtesting_broker": [[43, 1, 1, "", "BacktestingBroker"]], "lumibot.backtesting.backtesting_broker.BacktestingBroker": [[43, 2, 1, "", "IS_BACKTESTING_BROKER"], [43, 3, 1, "", "calculate_trade_cost"], [43, 3, 1, "", "cancel_order"], [43, 3, 1, "", "cash_settle_options_contract"], [43, 5, 1, "", "datetime"], [43, 3, 1, "", "get_historical_account_value"], [43, 3, 1, "", "get_last_bar"], [43, 3, 1, "", "get_time_to_close"], [43, 3, 1, "", "get_time_to_open"], [43, 3, 1, "", "is_market_open"], [43, 3, 1, "", "limit_order"], [43, 3, 1, "", "process_expired_option_contracts"], [43, 3, 1, "", "process_pending_orders"], [43, 3, 1, "", "should_continue"], [43, 3, 1, "", "stop_order"], [43, 3, 1, "", "submit_order"], [43, 3, 1, "", "submit_orders"]], "lumibot.brokers": [[12, 0, 0, "-", "alpaca"]], "lumibot.brokers.alpaca": [[12, 1, 1, "", "Alpaca"], [12, 1, 1, "", "OrderData"]], "lumibot.brokers.alpaca.Alpaca": [[12, 2, 1, "", "ASSET_TYPE_MAP"], [12, 2, 1, "", "api"], [12, 3, 1, "", "cancel_order"], [12, 3, 1, "", "get_historical_account_value"], [12, 3, 1, "id0", "get_time_to_close"], [12, 3, 1, "id1", "get_time_to_open"], [12, 3, 1, "id2", "get_timestamp"], [12, 3, 1, "id3", "is_market_open"], [12, 3, 1, "", "map_asset_type"]], "lumibot.brokers.alpaca.OrderData": [[12, 3, 1, "", "to_request_fields"]], "lumibot.data_sources": [[44, 0, 0, "-", "data_source"], [43, 0, 0, "-", "data_source_backtesting"], [44, 0, 0, "-", "pandas_data"], [44, 0, 0, "-", "yahoo_data"]], "lumibot.data_sources.data_source": [[44, 1, 1, "", "DataSource"]], "lumibot.data_sources.data_source.DataSource": [[44, 2, 1, "", "DEFAULT_PYTZ"], [44, 2, 1, "", "DEFAULT_TIMEZONE"], [44, 2, 1, "", "IS_BACKTESTING_DATA_SOURCE"], [44, 2, 1, "", "MIN_TIMESTEP"], [44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "calculate_greeks"], [44, 3, 1, "", "convert_timestep_str_to_timedelta"], [44, 3, 1, "", "get_bars"], [44, 3, 1, "", "get_chain_full_info"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_datetime"], [44, 3, 1, "", "get_datetime_range"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_day"], [44, 3, 1, "", "get_last_minute"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_last_prices"], [44, 3, 1, "", "get_round_day"], [44, 3, 1, "", "get_round_minute"], [44, 3, 1, "", "get_strikes"], [44, 3, 1, "", "get_timestamp"], [44, 3, 1, "", "get_timestep"], [44, 3, 1, "", "get_yesterday_dividend"], [44, 3, 1, "", "get_yesterday_dividends"], [44, 3, 1, "", "localize_datetime"], [44, 3, 1, "", "query_greeks"], [44, 3, 1, "", "to_default_timezone"]], "lumibot.data_sources.data_source_backtesting": [[43, 1, 1, "", "DataSourceBacktesting"]], "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting": [[43, 2, 1, "", "IS_BACKTESTING_DATA_SOURCE"], [43, 3, 1, "", "get_datetime"], [43, 3, 1, "", "get_datetime_range"]], "lumibot.data_sources.pandas_data": [[44, 1, 1, "", "PandasData"]], "lumibot.data_sources.pandas_data.PandasData": [[44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "clean_trading_times"], [44, 3, 1, "", "find_asset_in_data_store"], [44, 3, 1, "", "get_asset_by_name"], [44, 3, 1, "", "get_asset_by_symbol"], [44, 3, 1, "", "get_assets"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_last_prices"], [44, 3, 1, "", "get_start_datetime_and_ts_unit"], [44, 3, 1, "", "get_trading_days_pandas"], [44, 3, 1, "", "get_yesterday_dividend"], [44, 3, 1, "", "get_yesterday_dividends"], [44, 3, 1, "", "load_data"], [44, 3, 1, "", "update_date_index"]], "lumibot.data_sources.yahoo_data": [[44, 1, 1, "", "YahooData"]], "lumibot.data_sources.yahoo_data.YahooData": [[44, 2, 1, "", "MIN_TIMESTEP"], [44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_strikes"]], "lumibot.strategies.strategy": [[45, 0, 0, "-", "Strategy"]], "lumibot.strategies.strategy.Strategy": [[66, 6, 1, "", "add_line"], [67, 6, 1, "", "add_marker"], [28, 6, 1, "", "after_market_closes"], [113, 6, 1, "", "await_market_to_close"], [114, 6, 1, "", "await_market_to_open"], [29, 6, 1, "", "before_market_closes"], [30, 6, 1, "", "before_market_opens"], [31, 6, 1, "", "before_starting_trading"], [154, 6, 1, "", "cancel_open_orders"], [155, 6, 1, "", "cancel_order"], [156, 6, 1, "", "cancel_orders"], [71, 6, 1, "", "cancel_realtime_bars"], [182, 5, 1, "", "cash"], [157, 6, 1, "", "create_order"], [183, 5, 1, "", "first_iteration"], [158, 6, 1, "", "get_asset_potential_total"], [55, 6, 1, "", "get_cash"], [133, 6, 1, "", "get_chain"], [134, 6, 1, "", "get_chains"], [92, 6, 1, "", "get_datetime"], [93, 6, 1, "", "get_datetime_range"], [135, 6, 1, "", "get_expiration"], [136, 6, 1, "", "get_greeks"], [72, 6, 1, "", "get_historical_prices"], [73, 6, 1, "", "get_historical_prices_for_assets"], [94, 6, 1, "", "get_last_day"], [95, 6, 1, "", "get_last_minute"], [74, 6, 1, "", "get_last_price"], [75, 6, 1, "", "get_last_prices"], [68, 6, 1, "", "get_lines_df"], [69, 6, 1, "", "get_markers_df"], [137, 6, 1, "", "get_multiplier"], [138, 6, 1, "", "get_next_trading_day"], [139, 6, 1, "", "get_option_expiration_after_date"], [159, 6, 1, "", "get_order"], [160, 6, 1, "", "get_orders"], [115, 6, 1, "", "get_parameters"], [57, 6, 1, "", "get_portfolio_value"], [58, 6, 1, "", "get_position"], [59, 6, 1, "", "get_positions"], [77, 6, 1, "", "get_quote"], [78, 6, 1, "", "get_realtime_bars"], [96, 6, 1, "", "get_round_day"], [97, 6, 1, "", "get_round_minute"], [161, 6, 1, "", "get_selling_order"], [140, 6, 1, "", "get_strikes"], [98, 6, 1, "", "get_timestamp"], [79, 6, 1, "", "get_yesterday_dividend"], [80, 6, 1, "", "get_yesterday_dividends"], [184, 5, 1, "", "initial_budget"], [32, 6, 1, "", "initialize"], [185, 5, 1, "", "is_backtesting"], [186, 5, 1, "", "last_on_trading_iteration_datetime"], [99, 6, 1, "", "localize_datetime"], [116, 6, 1, "", "log_message"], [187, 5, 1, "", "minutes_before_closing"], [188, 5, 1, "", "minutes_before_opening"], [189, 5, 1, "", "name"], [33, 6, 1, "", "on_abrupt_closing"], [34, 6, 1, "", "on_bot_crash"], [35, 6, 1, "", "on_canceled_order"], [36, 6, 1, "", "on_filled_order"], [37, 6, 1, "", "on_new_order"], [38, 6, 1, "", "on_parameters_updated"], [39, 6, 1, "", "on_partially_filled_order"], [40, 6, 1, "", "on_trading_iteration"], [141, 6, 1, "", "options_expiry_to_datetime_date"], [190, 5, 1, "", "portfolio_value"], [191, 5, 1, "", "pytz"], [192, 5, 1, "", "quote_asset"], [1, 6, 1, "", "run_backtest"], [162, 6, 1, "", "sell_all"], [117, 6, 1, "", "set_market"], [60, 6, 1, "", "set_parameters"], [118, 6, 1, "", "sleep"], [193, 5, 1, "", "sleeptime"], [81, 6, 1, "", "start_realtime_bars"], [163, 6, 1, "", "submit_order"], [164, 6, 1, "", "submit_orders"], [194, 5, 1, "", "timezone"], [100, 6, 1, "", "to_default_timezone"], [42, 6, 1, "", "trace_stats"], [195, 5, 1, "", "unspent_money"], [119, 6, 1, "", "update_parameters"], [120, 6, 1, "", "wait_for_order_execution"], [121, 6, 1, "", "wait_for_order_registration"], [122, 6, 1, "", "wait_for_orders_execution"], [123, 6, 1, "", "wait_for_orders_registration"]], "lumibot.traders": [[46, 0, 0, "-", "trader"]], "lumibot.traders.trader": [[46, 1, 1, "", "Trader"]], "lumibot.traders.trader.Trader": [[46, 3, 1, "", "add_strategy"], [46, 5, 1, "", "is_backtest_broker"], [46, 3, 1, "", "run_all"], [46, 3, 1, "", "run_all_async"], [46, 3, 1, "", "stop_all"]]}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "method", "Python method"], "4": ["py", "exception", "Python exception"], "5": ["py", "property", "Python property"], "6": ["py", "function", "Python function"]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:method", "4": "py:exception", "5": "py:property", "6": "py:function"}, "terms": {"": [2, 3, 6, 7, 8, 13, 14, 16, 17, 18, 21, 25, 26, 38, 41, 46, 52, 58, 82, 83, 85, 86, 87, 88, 89, 90, 91, 92, 94, 95, 96, 97, 98, 99, 100, 128, 136, 147, 158, 165, 178, 193, 196], "0": [13, 15, 17, 19, 21, 22, 23, 24, 25, 32, 42, 43, 44, 87, 88, 96, 97, 146, 152, 153, 157, 163, 164, 173, 188, 196], "00": [5, 44, 110, 121, 146, 152, 153, 157, 163, 164, 196], "000": [13, 25, 26], "0000": 5, "0001": 21, "000234": 12, "01": [5, 6, 8, 20, 25, 146, 147, 152, 157, 158, 163], "02": [5, 20], "04": [5, 44], "05": [6, 8, 146, 157, 196], "07": [44, 125, 126, 133, 134], "0830": 12, "09": 5, "0930": 12, "1": [1, 2, 5, 6, 7, 8, 10, 12, 13, 15, 16, 17, 19, 20, 21, 22, 31, 44, 72, 73, 84, 90, 91, 93, 99, 100, 128, 136, 139, 146, 152, 153, 157, 163, 164, 178, 193, 196], "10": [2, 6, 8, 13, 17, 19, 20, 32, 40, 44, 63, 67, 82, 127, 135, 152, 153, 163, 164, 165, 172, 173, 178, 187, 188, 193, 196], "100": [1, 5, 12, 13, 16, 19, 20, 25, 26, 32, 42, 44, 72, 73, 109, 110, 111, 112, 120, 121, 122, 123, 125, 126, 128, 133, 134, 136, 144, 145, 146, 152, 153, 155, 156, 157, 163, 164], "10000": [13, 25], "100000": 5, "102": 196, "10439": 5, "10m": [32, 178, 193], "11": [10, 17, 19, 26], "12": [10, 17, 19, 25, 26, 74], "123456": 17, "123456789": 17, "127": [15, 17], "13": [17, 127, 135], "14": [17, 196], "1400": 12, "15": [5, 17, 20, 32, 44, 72, 73], "155": 19, "15m": 44, "15min": 20, "16": [17, 74], "1600": 12, "1612172730": 12, "16808": 5, "17": [17, 19, 32], "18": 19, "180": 25, "180m": 25, "19": 44, "1990": 82, "1991": 82, "1d": [2, 6, 8, 20, 21, 40, 44], "1dai": 44, "1h": [20, 40], "1hour": 44, "1m": [5, 21, 44], "1minut": 44, "1month": [72, 73], "2": [2, 6, 17, 22, 30, 32, 62, 66, 72, 73, 111, 112, 122, 123, 153, 164, 178, 193], "20": [12, 13, 22, 32, 43, 165], "200": [1, 12, 36, 44, 73, 111, 112, 122, 123, 153, 164], "2018": [1, 20], "2019": [146, 157], "2020": [5, 10, 25, 26, 72, 90, 91, 99, 100, 147, 152, 158, 163], "20200101": [132, 141], "2021": [19, 32, 128, 136, 139], "2022": [74, 127, 135], "20221013": [129, 137], "2023": [2, 6, 8, 44, 125, 126, 133, 134, 196], "20h": 32, "213": [146, 157], "22": 5, "23": 21, "2359": [5, 21], "24": [13, 17, 32, 106, 117], "24h": 72, "25": [5, 17], "26": 19, "2793": 5, "2794": 5, "2796": 5, "2800": 5, "2d": [32, 178, 193], "2fa": [11, 26], "2h": [178, 193], "3": [2, 12, 17, 146, 157], "30": [13, 40, 72, 73, 81, 196], "300": [36, 178, 193], "30am": 13, "31": [1, 5, 10, 25, 26, 44, 125, 126, 133, 134], "32": 5, "3233": 5, "3234": 5, "3235": 5, "3237": 5, "33": 5, "3306": [], "4": [2, 17, 26, 147, 158], "400": 22, "405": 22, "41000": [146, 157], "41250": [152, 163], "41300": [152, 163], "41325": [152, 163], "41d4": [], "420": 22, "446655440000": [], "48": 32, "5": [1, 2, 5, 6, 8, 17, 26, 32, 44, 72, 73, 106, 107, 117, 118, 146, 157, 165, 172, 178, 187, 193, 196], "50": [5, 22, 32, 146, 157, 178, 193], "500": [22, 36], "512000000": 17, "5432": 196, "55": 13, "550e8400": 196, "56": 5, "57": 5, "58": 5, "59": 21, "5d": 5, "5m": [32, 178, 193], "6": [17, 19, 26], "60": [1, 20, 173, 188], "600": 12, "7": [12, 13, 17, 26, 32, 106, 117], "7440": 5, "7496": 15, "7497": [15, 17], "75": 5, "7569": 5, "8": [17, 26], "80": [62, 66], "8000": [14, 17], "8203": 5, "8272": 5, "9": [13, 17, 32], "999": 15, "9wgjls3wixq54fcphwwzjcp8jcfjfkuwsryskkma": 17, "A": [1, 5, 7, 10, 12, 14, 22, 26, 44, 46, 52, 53, 58, 59, 77, 84, 93, 146, 153, 157, 164, 196], "And": [25, 72, 73], "As": [6, 8, 17], "At": [14, 25], "Be": [], "By": [2, 17, 26, 34, 128, 136, 172, 173, 176, 178, 179, 181, 187, 188, 191, 193, 194], "For": [1, 2, 3, 5, 7, 10, 13, 14, 17, 19, 20, 22, 26, 28, 44, 49, 51, 55, 57, 109, 110, 111, 112, 120, 121, 122, 123, 146, 152, 153, 157, 163, 164, 165], "If": [1, 5, 6, 8, 12, 13, 14, 16, 17, 20, 21, 25, 26, 30, 32, 36, 40, 44, 72, 73, 74, 81, 102, 103, 105, 113, 114, 116, 131, 140, 143, 146, 151, 154, 157, 162], "In": [0, 6, 8, 13, 17, 22, 43, 74, 75, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98], "It": [0, 4, 5, 6, 7, 8, 13, 14, 15, 17, 19, 22, 23, 25, 26, 41, 43, 44, 74, 77, 146, 157], "NOT": 13, "Not": [43, 106, 117], "On": [14, 17], "One": [5, 17, 19, 22, 44, 146, 157], "Or": [25, 26, 165], "That": 16, "The": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 17, 19, 20, 21, 22, 23, 27, 28, 34, 35, 36, 37, 38, 39, 41, 43, 44, 45, 49, 50, 51, 54, 55, 56, 57, 60, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 104, 106, 108, 115, 117, 119, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 136, 137, 138, 139, 140, 146, 147, 150, 151, 153, 157, 158, 161, 162, 164, 165, 167, 169, 171, 172, 173, 174, 175, 176, 177, 179, 181, 182, 184, 186, 187, 188, 189, 190, 191, 192, 194], "Their": 17, "Then": [5, 13, 16, 72], "There": [10, 11, 146, 157], "These": [0, 1, 2, 3, 4, 7, 10, 32, 45, 54, 60, 82], "To": [0, 6, 8, 10, 13, 14, 16, 17, 22, 25, 26, 72], "Will": [20, 25, 62, 63, 66, 67, 74, 75, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 151, 162, 176, 179, 181, 191, 194], "With": [2, 6, 8, 26], "_": [], "__getattr__": [], "__init__": [], "__main__": [2, 6, 8, 13], "__name__": [2, 6, 8, 13], "__setattr__": [], "_asset_typ": 19, "_get_bars_dict": 21, "_right": 19, "_vars_dict": [], "a716": [], "a7py0zidhxde6qkx8ojjknp7cd87hwku": 17, "aapl": [1, 2, 5, 6, 8, 10, 12, 16, 19, 20, 23, 26, 32, 35, 36, 37, 39, 72, 73, 145, 156], "aapl_pric": [10, 26], "abc": [43, 44], "abcdef1234567890abcdef1234567890abcdef1234": 17, "abl": 16, "about": [2, 9, 11, 26, 166], "abov": [2, 15, 19, 20, 32], "abrupt": 33, "abstract": [27, 41, 43, 44, 45], "accept": [5, 19], "access": [7, 14, 16, 17, 20, 25, 26, 165, 196], "access_token": 16, "accompani": 7, "accord": [82, 83, 89, 92, 98], "account": [2, 6, 8, 11, 12, 13, 15, 16, 17, 26, 43, 47, 49, 51, 53, 55, 57, 59, 61, 150, 161, 167, 182], "account_histori": 17, "account_id": [14, 17], "account_numb": 16, "accur": [20, 44], "achiev": [7, 22, 25, 26], "across": [2, 17], "act": 14, "action": [4, 17], "activ": [14, 17, 22, 26, 74, 75, 78, 152, 153, 163, 164], "activex": 15, "actual": [2, 13, 22, 41, 43, 175, 190], "ad": [5, 11, 13, 17, 19, 26, 72, 73], "add": [3, 5, 13, 14, 17, 19, 22, 25, 32, 43, 46, 62, 63, 66, 67], "add_chart_lin": [62, 66], "add_chart_mark": [63, 67], "add_child_ord": 22, "add_lin": [3, 26, 47], "add_mark": [3, 26, 47], "add_ord": 23, "add_strategi": [5, 12, 13, 14, 15, 16, 25, 26, 46], "add_transact": 22, "addit": [2, 14, 17, 19, 22, 146, 157], "addition": [5, 10, 20], "address": [14, 17], "adjust": [1, 7, 14, 20, 21, 44], "adjust_for_delai": [43, 44, 83, 92], "advanc": [0, 2, 5, 25, 26, 146, 157], "advantag": [], "afa": 17, "affili": 6, "afford": 17, "after": [5, 6, 8, 13, 14, 17, 21, 26, 28, 30, 31, 40, 42, 44, 63, 67, 72, 76, 130, 138, 139, 196], "after_market_clos": [26, 27], "again": [40, 103, 114], "against": 26, "aggregate_bar": 20, "ago": [44, 72], "agre": [], "aka": 5, "algorithm": [15, 17, 25], "alia": 22, "align": 17, "all": [1, 4, 5, 13, 17, 20, 21, 22, 25, 30, 33, 34, 43, 44, 45, 46, 51, 53, 57, 59, 72, 73, 125, 127, 128, 129, 131, 133, 135, 136, 137, 140, 143, 145, 146, 149, 150, 151, 154, 156, 157, 160, 161, 162, 165, 196], "all_vari": 196, "alloc": 10, "allow": [0, 2, 4, 5, 6, 8, 14, 17, 20, 22, 25, 26, 81, 146, 157, 165], "along": 9, "alpaca": [11, 20, 26, 72, 73], "alpaca_api_kei": 17, "alpaca_api_secret": 17, "alpaca_config": [12, 25, 26], "alpaca_is_pap": 17, "alpacastrategi": 12, "alreadi": [22, 30, 36, 41], "also": [5, 10, 15, 17, 22, 25, 26, 32, 43, 72, 146, 151, 157, 162, 166], "altern": 8, "alwai": [13, 30, 43, 106, 117, 167, 182], "america": [5, 20, 44, 176, 179, 181, 191, 194], "amount": [9, 13, 20, 22, 28, 44, 49, 51, 55, 57, 79, 80, 146, 157], "an": [0, 1, 2, 5, 6, 7, 8, 12, 13, 14, 15, 16, 17, 19, 22, 23, 26, 34, 35, 36, 39, 40, 41, 43, 44, 52, 58, 72, 74, 75, 81, 102, 103, 105, 113, 114, 116, 126, 127, 131, 132, 134, 135, 140, 141, 144, 146, 147, 148, 152, 155, 157, 158, 159, 163, 165, 178, 193, 196], "analy": 26, "analysi": [2, 4, 13, 46], "analyt": 26, "analyz": 26, "ani": [0, 1, 2, 5, 6, 7, 8, 10, 13, 14, 15, 17, 21, 22, 25, 41, 43, 62, 66, 72, 73, 105, 116, 145, 156, 165], "annual": [7, 25, 26], "anoth": [], "another_var": [], "anyth": 10, "anytim": 19, "anywai": [], "api": [1, 2, 6, 8, 10, 12, 13, 14, 15, 16, 17, 20, 26, 44, 128, 136], "api_kei": [1, 12, 25, 26, 43, 44], "api_secret": [12, 25, 26], "apikei": 13, "app": 14, "appl": 23, "appli": [1, 17, 44], "applic": [17, 106, 117], "approach": 14, "appropri": [14, 20], "approv": 14, "ar": [0, 1, 2, 3, 5, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 38, 41, 44, 45, 47, 48, 53, 59, 61, 62, 63, 66, 67, 70, 73, 78, 81, 82, 101, 106, 117, 124, 125, 126, 128, 133, 134, 136, 142, 143, 146, 147, 149, 151, 153, 154, 157, 158, 160, 162, 164, 165, 167, 182, 196], "arg": [1, 21, 44], "argument": [8, 128, 136], "around": [14, 17, 18], "arrai": [17, 21], "arriv": 81, "arrow": [63, 67], "articl": [], "aset": [146, 152, 153, 157, 163, 164], "asex": [32, 106, 117], "ask": [14, 44, 77], "aspect": 2, "asset": [1, 2, 5, 9, 12, 13, 17, 18, 20, 21, 22, 23, 26, 33, 34, 35, 36, 37, 39, 40, 43, 44, 49, 51, 52, 53, 55, 57, 58, 59, 62, 66, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 146, 147, 152, 153, 157, 158, 163, 164, 167, 177, 182, 192], "asset_bar": 30, "asset_bas": [72, 73, 152, 163], "asset_btc": [153, 164], "asset_eth": [153, 164], "asset_pric": [44, 128, 136], "asset_quot": [72, 73, 152, 153, 163, 164], "asset_symbol": 32, "asset_to_get": 13, "asset_typ": [1, 5, 13, 19, 20, 44, 72, 73, 74, 146, 147, 152, 153, 157, 158, 163, 164], "asset_type_map": 12, "asset_type_must_be_one_of": 19, "assetsmap": 19, "assettyp": [5, 13, 19, 146, 152, 153, 157, 163, 164], "assign": 196, "assist": 17, "associ": 14, "assset": [52, 58], "asterisk": [63, 67], "asx": [32, 106, 117], "async": 46, "async_": 46, "asynchron": 46, "attach": 21, "attain": [7, 146, 157], "attempt": [14, 175, 190], "attribut": [19, 196], "attributeerror": [], "authent": [11, 26], "author": 14, "auto_adjust": [1, 44], "autom": [14, 17], "automat": [1, 6, 8, 22, 146, 147, 157, 158, 196], "avail": [2, 9, 10, 17, 20, 21, 23, 26, 47, 72, 73, 106, 117, 128, 136, 153, 164, 167, 182], "averag": [2, 7, 22, 23], "avg_fill_pric": [22, 23], "avoid": 14, "await": [103, 114, 143, 154], "await_market_to_clos": [26, 47], "await_market_to_open": [26, 47], "awar": [5, 20], "back": [14, 196], "background": 17, "backtest": [4, 5, 7, 10, 17, 21, 22, 24, 32, 44, 46, 63, 67, 72, 73, 74, 75, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117, 170, 185], "backtesting_brok": 43, "backtesting_end": [1, 2, 5, 6, 8, 10, 25, 26, 32], "backtesting_start": [1, 2, 5, 6, 8, 10, 25, 26, 32, 43], "backtestingbrok": [5, 6, 8, 10, 43], "backtets": 77, "backup": 26, "backup_table_nam": 196, "backup_variables_to_db": [], "backward": [72, 73], "balanc": 22, "band": [7, 62, 66], "bar": [13, 18, 21, 26, 43, 44, 63, 67, 71, 72, 73, 74, 75, 78, 81, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 128, 136], "bar_list": 20, "bars_agg": 20, "bars_list": 30, "base": [2, 7, 12, 13, 19, 20, 21, 22, 23, 24, 26, 40, 43, 44, 46, 72, 73, 74, 146, 157], "base_asset": [19, 152, 153, 163, 164], "bat": [32, 106, 117], "bband": 7, "becaus": [3, 5, 6, 8, 10, 17, 43], "becuas": 44, "been": [5, 10, 15, 22, 23, 35, 36, 37, 39, 43, 74, 78], "befor": [1, 2, 5, 7, 10, 13, 14, 15, 17, 20, 22, 25, 26, 29, 30, 31, 32, 40, 41, 42, 44, 72, 73, 102, 103, 113, 114, 151, 162, 172, 173, 187, 188, 196], "before_market_clos": [26, 27], "before_market_open": [26, 27, 173, 188], "before_starting_trad": [26, 27, 30], "begin": [2, 43], "beginn": 25, "behav": 17, "behavior": [0, 2], "behind": 19, "being": [26, 35, 36, 37, 38, 39, 44, 46, 72, 126, 134, 146, 157, 168, 183], "belong": 22, "below": [14, 45, 47, 48, 61, 70, 74, 82, 101, 124, 142], "benchmark": [1, 2, 7], "benchmark_asset": [1, 2, 6, 8, 25], "benefit": 26, "best": [14, 17], "better": [7, 22, 146, 157], "between": [1, 2, 13, 20, 21, 26, 32, 72, 178, 193], "bid": [44, 77], "binanc": [13, 26], "bit": [6, 8], "bitcoin": 20, "black": [62, 63, 66, 67], "blacklist": 31, "blob": [15, 25, 26], "block": 14, "blue": [62, 63, 66, 67], "blueprint": 17, "bmf": [32, 106, 117], "boilerpl": [], "bolling": [7, 62, 66], "bool": [1, 22, 43, 44, 46, 72, 73, 74, 105, 116, 128, 136, 153, 164, 168, 170, 183, 185], "boolean": [12, 151, 153, 162, 164], "bot": [15, 17, 25, 32, 34, 45, 196], "both": [8, 14, 22, 25, 30, 146, 157], "bottom": 17, "bought": [36, 146, 157], "bowti": [63, 67], "box": 26, "bracket": [22, 146, 157], "broadcast": [105, 116], "broker": [1, 5, 12, 16, 19, 20, 22, 23, 24, 25, 26, 32, 35, 36, 37, 39, 44, 45, 72, 73, 74, 77, 81, 109, 110, 111, 112, 120, 121, 122, 123, 128, 136, 146, 152, 153, 157, 163, 164, 167, 182], "brokerag": [14, 17], "brown": [62, 63, 66, 67], "browser": [17, 25, 46], "bse": [32, 106, 117], "btc": [13, 19, 20, 72, 73, 74, 146, 152, 153, 157, 163, 164], "budget": [1, 5, 10, 17, 25, 32, 169, 184], "bug": 26, "bui": [1, 2, 5, 6, 7, 8, 9, 10, 12, 13, 16, 19, 22, 25, 26, 36, 40, 45, 49, 55, 105, 109, 110, 111, 112, 116, 120, 121, 122, 123, 144, 145, 146, 152, 153, 155, 156, 157, 163, 164, 167, 182], "build": [26, 27, 45], "built": [2, 5, 26], "bundl": 14, "busi": [29, 30], "butterfli": 17, "button": [14, 17], "buy_to_clos": 22, "buy_to_cov": 22, "buy_to_open": 22, "buy_trading_fe": [1, 25], "bvmf": [32, 106, 117], "byte": 17, "c": 14, "cach": [6, 8], "calcul": [13, 20, 22, 43, 44, 128, 136], "calculate_greek": 44, "calculate_trade_cost": 43, "calendar": [32, 76, 130, 138], "call": [1, 5, 6, 8, 19, 20, 22, 28, 32, 34, 35, 36, 38, 39, 40, 41, 42, 44, 72, 74, 75, 125, 126, 128, 133, 134, 136, 152, 163], "campu": [], "can": [2, 5, 6, 8, 10, 11, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 29, 32, 41, 44, 45, 48, 49, 55, 61, 62, 63, 66, 67, 70, 72, 73, 82, 101, 124, 128, 136, 142, 146, 157, 165, 166, 178, 193], "cancel": [12, 22, 30, 35, 43, 71, 109, 111, 120, 122, 142, 143, 144, 145, 146, 149, 151, 154, 155, 156, 157, 160, 162], "cancel_open_ord": [26, 30, 47, 151, 162], "cancel_ord": [12, 26, 43, 47, 149, 160], "cannot": 10, "capabl": [6, 8], "care": 41, "carri": 25, "case": [19, 21, 22], "cash": [9, 13, 22, 26, 28, 42, 43, 48, 49, 51, 55, 57, 61, 175, 177, 180, 190, 192, 195], "cash_pend": 22, "cash_settl": 22, "cash_settle_options_contract": 43, "categori": [45, 101], "caus": 14, "cboe": [125, 127, 129, 133, 135, 137], "cbot_agricultur": [32, 106, 117], "cbot_bond": [32, 106, 117], "cbot_equ": [32, 106, 117], "cbot_interestr": [32, 106, 117], "cbot_rat": [32, 106, 117], "ccxt": [11, 26], "central": [], "certain": [13, 63, 67], "cfd": 17, "cfe": [32, 106, 117], "chain": [22, 44, 124, 125, 126, 127, 129, 131, 133, 134, 135, 137, 140], "chain_data": 44, "challeng": 17, "chang": [5, 10, 12, 14, 16, 17, 20, 32], "chart": [26, 47, 62, 63, 64, 65, 66, 67, 68, 69], "check": [13, 17, 22, 26, 40, 43, 47, 72, 148, 149, 159, 160, 168, 170, 183, 185], "check_data": 21, "chf": [146, 157], "child": [22, 43], "child_ord": 22, "choic": [6, 8, 14, 17], "choos": [0, 15, 26], "chosen": [13, 16, 17], "chunk_siz": [12, 44, 73], "circl": [63, 67], "class": [1, 2, 5, 6, 8, 10, 12, 13, 16, 17, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 165, 196], "classmethod": [19, 20, 22, 23, 44], "clean_trading_tim": 44, "click": [14, 17], "client": [14, 15, 17], "client_id": 15, "close": [1, 5, 12, 13, 20, 21, 22, 28, 29, 32, 33, 40, 43, 51, 57, 72, 74, 75, 78, 81, 102, 103, 113, 114, 151, 162, 172, 187], "cme": [32, 74, 106, 117], "cme_agricultur": [32, 106, 117], "cme_bond": [32, 106, 117], "cme_equ": [32, 106, 117], "cme_interestr": [32, 106, 117], "cme_rat": [32, 106, 117], "code": [2, 5, 6, 7, 8, 13, 14, 17, 25, 26, 28, 29, 30, 33, 34, 35, 36, 37, 38, 39, 62, 66, 102, 103, 113, 114, 165], "coin": [20, 146, 157], "coinbas": [13, 26], "coinbase_api_kei": 17, "coinbase_api_secret": 17, "coinbase_config": 13, "coinbase_is_sandbox": 17, "coinbasepro": 13, "coinbasepro_config": 13, "collect": [4, 5], "color": [13, 62, 63, 66, 67, 105, 116], "column": [5, 20, 21, 44, 78, 196], "com": [2, 7, 15, 16, 17, 25, 26], "combin": 22, "comex_agricultur": [32, 106, 117], "comfort": 25, "command": [2, 25, 26], "comment": 74, "commiss": 17, "commit": 17, "common": [13, 14], "commun": [25, 26], "compar": [1, 7, 14, 17], "comparison": 2, "compat": 17, "competit": 17, "complet": [13, 14, 15, 17, 22, 26, 74, 75], "complex": [14, 25], "complic": 26, "compon": [27, 41, 196], "compound": [146, 157], "comprehens": [4, 25], "comput": [6, 8, 17, 25, 26], "conclus": [0, 26], "concurr": [], "condit": [2, 22, 40], "condor": [7, 17], "confid": 2, "config": [1, 12, 13, 16, 17, 25, 43], "configur": [2, 11, 15, 26], "confirm": [14, 17], "conflict": [14, 196], "confus": 26, "connect": [12, 13, 14, 17, 105, 116], "connect_stream": [12, 43], "consequ": [], "consid": [5, 20, 177, 192], "consist": [], "consol": [17, 105, 116], "constantli": [13, 26], "construct": 22, "constructor": 32, "contain": [1, 3, 20, 21, 22, 40, 42, 44, 78, 152, 153, 163, 164], "context": 42, "continu": [22, 146, 157], "contract": [5, 19, 20, 22, 32, 43], "control": [14, 178, 193], "conveni": 14, "convers": [19, 178, 193], "convert": [1, 19, 20, 22, 26, 43, 44, 132, 141, 146, 157], "convert_timestep_str_to_timedelta": 44, "copi": 25, "core": 41, "corner": [14, 17], "corpor": 19, "correct": [13, 14, 16], "correctli": 17, "correspond": [17, 35, 36, 37], "cost": [14, 17, 43], "could": [128, 136], "count": [21, 32, 78, 81, 196], "countri": 14, "coupon": [2, 6, 8], "cours": [25, 26], "cover": [17, 26], "crash": [34, 40, 196], "creat": [1, 2, 5, 6, 7, 8, 10, 13, 14, 16, 17, 19, 21, 22, 36, 44, 72, 125, 127, 129, 131, 133, 135, 137, 140, 142, 144, 145, 146, 155, 156, 157], "create_asset": [71, 72, 79], "create_ord": [1, 2, 5, 6, 8, 10, 12, 13, 19, 22, 25, 26, 40, 47, 109, 110, 111, 112, 120, 121, 122, 123, 144, 145, 152, 153, 155, 156, 163, 164], "creation": [], "credenti": [13, 14, 15], "credit": [6, 8, 153, 164], "critic": [], "cross": [63, 67], "crucial": [2, 17, 25], "cryoptocurr": 13, "crypto": [0, 1, 5, 7, 11, 17, 19, 20, 23, 26, 49, 51, 55, 57, 72, 74, 106, 117, 146, 152, 153, 157, 163, 164, 167, 175, 182, 190], "cryptocurr": [1, 2, 6, 8, 13, 17, 20, 72, 73, 74, 75, 146, 157], "csv": [0, 2, 3, 9, 21, 26, 44], "cta": 14, "cumul": 7, "currenc": [19, 72, 146, 157, 167, 175, 177, 182, 190, 192], "current": [12, 13, 14, 17, 21, 36, 37, 42, 43, 44, 49, 51, 52, 55, 57, 58, 62, 63, 66, 67, 72, 73, 77, 78, 82, 83, 84, 85, 86, 87, 88, 89, 92, 93, 94, 95, 96, 97, 98, 128, 136, 143, 149, 153, 154, 160, 164, 167, 175, 178, 182, 190, 193, 196], "current_count": 196, "current_ema": 13, "current_macd": 13, "current_rsi": 13, "curv": 2, "custom": [2, 25, 32, 146, 157, 165], "custom_param": [22, 146, 157], "d": [32, 178, 193], "dai": [0, 1, 2, 5, 6, 8, 10, 17, 21, 22, 26, 30, 31, 32, 40, 44, 72, 73, 76, 79, 80, 84, 85, 86, 87, 93, 94, 95, 96, 130, 138, 146, 153, 157, 164, 178, 193], "daili": [0, 2, 5, 7, 10, 31, 72, 73], "darkblu": [62, 66], "darkgrai": [62, 66], "darkgreen": [62, 66], "darkr": [62, 66], "dash": [16, 62, 66], "dashboard": [6, 8, 25], "data": [0, 1, 3, 6, 8, 10, 11, 13, 18, 19, 20, 23, 26, 30, 31, 40, 45, 47, 62, 66, 71, 72, 73, 78, 81, 83, 89, 90, 91, 92, 98, 99, 100, 176, 179, 181, 191, 194], "data_sourc": [5, 12, 43, 44, 72, 73], "data_source_backtest": 43, "databas": [2, 5, 17, 26], "database_nam": 196, "datafram": [20, 21, 44, 64, 65, 68, 69, 72, 78, 81], "datalin": 21, "dataset": 2, "datasourc": [1, 8, 43, 44], "datasource_class": 1, "datasourcebacktest": [43, 44], "datatim": 82, "date": [0, 1, 2, 5, 6, 8, 10, 19, 21, 26, 32, 44, 74, 76, 82, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 136, 137, 138, 139, 141, 146, 157], "date_cr": 22, "date_end": 21, "date_start": 21, "daterang": 20, "datetim": [1, 2, 5, 6, 8, 10, 13, 19, 20, 21, 25, 26, 32, 43, 44, 47, 62, 63, 66, 67, 72, 76, 78, 81, 83, 84, 90, 91, 92, 93, 99, 100, 127, 130, 132, 135, 138, 139, 141, 146, 157, 171, 186], "datetime64": [5, 21], "datetime_end": [5, 43], "datetime_start": [5, 43], "db": 17, "db_connection_str": [17, 196], "dd": [76, 130, 138], "deal": [14, 26], "debit": [153, 164], "debug": [4, 46, 196], "decid": [17, 72], "decim": [23, 74, 75, 146, 147, 157, 158], "decis": [3, 4], "def": [1, 2, 5, 6, 8, 10, 12, 13, 16, 25, 26, 27, 41, 106, 117, 165, 172, 173, 178, 187, 188, 193, 196], "default": [1, 5, 10, 17, 19, 20, 21, 32, 34, 44, 45, 54, 60, 62, 63, 66, 67, 72, 73, 74, 76, 91, 100, 106, 117, 125, 127, 128, 129, 130, 133, 135, 136, 137, 138, 146, 151, 153, 157, 162, 164, 172, 173, 176, 178, 179, 181, 187, 188, 191, 193, 194, 196], "default_pytz": 44, "default_timezon": 44, "defin": [6, 7, 8, 13, 24, 27, 32, 41, 42, 43, 45, 165, 196], "definit": [], "delai": 44, "delet": 17, "delta": [7, 44, 128, 136], "demonstr": 13, "depend": [14, 17, 72, 73], "deploi": [2, 26], "deploy": 26, "deprec": [1, 15, 146, 157, 180, 195], "depric": 74, "describ": [26, 45], "descript": [1, 14, 17], "deseri": [], "design": [2, 17, 25, 27, 41], "desir": [13, 14, 21, 81, 128, 136], "detail": [0, 2, 3, 4, 9, 14, 17, 19, 72, 148, 159], "detail_text": [62, 63, 66, 67], "determin": [6, 7, 8, 12, 22, 43, 106, 117, 146, 157, 166], "dev": [25, 26], "develop": [17, 26], "df": [5, 13, 20, 21, 30, 72, 73], "dialog": [], "diamond": [63, 67], "dict": [1, 21, 38, 42, 44, 46, 50, 54, 56, 60, 77, 104, 108, 115, 119, 146, 157], "dictionari": [1, 5, 8, 16, 36, 42, 43, 44, 46, 73, 77, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 146, 157, 165], "differ": [2, 3, 5, 7, 11, 13, 14, 17, 20, 25, 26, 45], "differenti": 7, "difficult": 5, "digit": 15, "directli": [17, 43], "directori": [5, 14, 17], "disabl": 15, "disconnect": 14, "discord": [17, 26], "discord_webhook_url": 17, "discov": [25, 26], "displai": [46, 62, 63, 66, 67], "displi": 46, "divid": 47, "dividend": [20, 44, 79, 80, 128, 136, 167, 182], "do": [1, 5, 10, 13, 16, 20, 22, 25, 26, 38, 44, 47, 101, 146, 157], "doc": [], "docstr": 43, "document": [11, 13, 14, 17, 25, 26, 72], "doe": [43, 44, 77, 146, 157], "doesn": 14, "dollar": [146, 157, 175, 190], "don": [13, 14, 17, 26], "done": 44, "dot": [62, 63, 66, 67], "down": [14, 17, 25, 33, 63, 67], "downgrad": 17, "download": [2, 5, 6, 8, 25, 26], "drawdown": [2, 7], "dsttzinfo": 44, "dt": [13, 21, 44, 62, 63, 66, 67, 90, 91, 99, 100, 139], "dt_index": 44, "dte": 7, "due": 19, "dump": [28, 42], "duplic": [], "durat": [7, 32, 146, 153, 157, 164, 178, 193], "dure": [1, 2, 4, 7, 17, 45, 73], "e": [2, 9, 17, 19, 20, 21, 22, 23, 25, 72, 73, 74, 146, 147, 152, 157, 158, 163], "e29b": [], "each": [0, 1, 2, 3, 5, 7, 9, 13, 14, 20, 22, 26, 30, 32, 40, 41, 44, 45, 47, 53, 59, 72, 80, 126, 134, 149, 151, 160, 162, 196], "eas": 17, "easi": [6, 8, 14, 17, 25, 26], "easier": [5, 17], "easiest": 25, "easili": [10, 26, 32, 45], "eastern": 21, "edit": 17, "effect": 17, "effici": 196, "eg": [13, 17, 19, 20, 25, 44, 47, 49, 51, 55, 57, 62, 63, 66, 67, 70, 77, 82, 105, 116, 125, 126, 133, 134, 146, 157, 178, 193], "either": [5, 19, 21, 22, 72, 73, 74, 75], "elif": 36, "els": 43, "ema": 13, "ema_threshold": 165, "email": [7, 14], "empti": [53, 59], "en": 13, "enabl": [13, 14, 15], "encount": 22, "end": [1, 2, 6, 7, 8, 10, 14, 20, 21, 26, 42], "end_dat": 21, "endpoint": 12, "engag": 17, "engin": [26, 41], "enhanc": [14, 25], "enjoi": 25, "enough": [], "ensur": [5, 10, 14, 17, 21, 22, 25, 26, 146, 157], "enter": [14, 17, 19, 22, 31, 146, 157, 178, 193], "entir": 13, "entiti": [5, 13, 19, 20, 21, 22, 23, 24, 25, 26, 44, 72, 73, 80, 146, 152, 153, 157, 163, 164], "entri": [15, 22], "env": [14, 17, 196], "environ": [2, 14, 26, 196], "equal": [172, 173, 178, 187, 188, 193], "equiti": [2, 14, 51, 57], "equival": 22, "equivalent_statu": 22, "error": [13, 17, 22, 34], "error_messag": 22, "especi": [14, 82, 196], "essenti": [2, 17], "est": 5, "etc": [5, 16, 20, 21, 40, 44, 45, 48, 61, 63, 67, 77, 148, 159], "etf": [2, 10], "eth": [20, 73, 146, 153, 157, 164], "ethereum": 20, "eula": 14, "eur": [19, 72, 73, 146, 152, 153, 157, 163, 164], "eurex": [32, 106, 117], "eurusd": 73, "evalu": 43, "even": [2, 6, 8, 30, 153, 164], "event": [4, 26, 33, 34, 35, 36, 37, 38, 39, 43, 63, 67], "everi": [2, 25, 32, 40, 43, 47, 81, 196], "everyth": [17, 26], "ew": [63, 67], "exactli": 26, "exampl": [1, 2, 6, 8, 11, 12, 15, 19, 20, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 52, 53, 58, 59, 62, 63, 66, 67, 71, 72, 73, 74, 75, 79, 80, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 105, 106, 107, 109, 110, 111, 112, 113, 114, 116, 117, 118, 120, 121, 122, 123, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 196], "example_strategi": [13, 25, 26], "exce": 20, "excel": 17, "except": [15, 20, 25, 26, 34], "exchang": [14, 21, 22, 44, 72, 73, 74, 75, 76, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 125, 126, 127, 129, 130, 131, 133, 134, 135, 137, 138, 140, 146, 157], "exchange_id": 13, "excut": [168, 183], "execud": [29, 30], "execut": [2, 9, 17, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 102, 103, 107, 109, 111, 113, 114, 118, 120, 122, 143, 152, 154, 163, 172, 173, 178, 187, 188, 193], "exist": [21, 54, 60], "exit": 22, "exp_dat": [44, 125, 126, 133, 134], "expect": [17, 25, 26, 128, 136], "expens": [17, 128, 136], "expert": [25, 26], "expertis": 26, "expir": [7, 14, 19, 22, 32, 44, 72, 74, 125, 126, 127, 128, 133, 134, 135, 136, 139, 146, 157], "expiration_d": [147, 152, 158, 163], "expiri": [19, 44, 127, 132, 135, 141], "expiry_d": [127, 132, 135, 141], "explain": 2, "exponenti": 7, "export": 2, "expri": 43, "extend": 81, "extens": 2, "extract": 72, "extrem": 22, "ey": 17, "f": [13, 16, 28, 35, 36, 38, 39, 42, 72, 74, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 132, 141, 169, 171, 174, 176, 177, 179, 181, 184, 186, 189, 191, 192, 194, 196], "fact": [], "factor": [11, 26], "fairli": [], "fals": [1, 12, 13, 16, 17, 22, 25, 26, 32, 43, 44, 46, 73, 74, 83, 92, 105, 116, 128, 136, 146, 151, 157, 162], "familiar": 25, "fashion": [], "fast": [22, 25, 26], "faster": [2, 6, 8, 44], "favor": [146, 157], "featur": [0, 2, 6, 8, 26], "fee": [14, 17, 18, 26], "feel": [], "fetch": [6, 8, 44, 126, 131, 134, 140], "few": [13, 17, 26, 101], "field": [14, 20, 22], "figur": 17, "file": [1, 4, 5, 7, 14, 15, 17, 25, 26, 101, 105, 116, 165, 196], "fill": [14, 17, 21, 22, 23, 36, 39, 43, 146, 157, 167, 182], "filter": 20, "final": [5, 6, 8, 10, 14, 26], "financ": [1, 2, 10, 26], "financi": [20, 25], "find": [13, 14, 15, 16, 17, 26, 44, 76, 127, 129, 130, 131, 135, 137, 138, 139, 140], "find_asset_in_data_stor": 44, "firm": 14, "first": [1, 5, 6, 8, 10, 13, 16, 17, 20, 21, 22, 25, 26, 30, 32, 73, 168, 178, 183, 193, 196], "first_iter": [1, 2, 5, 6, 8, 10, 26], "fit": [17, 101], "fix": [26, 81], "flat": 25, "flat_fe": [24, 25], "flexibl": [2, 5, 6, 8, 25], "float": [1, 5, 19, 20, 22, 23, 36, 39, 43, 44, 49, 51, 55, 57, 62, 63, 66, 67, 74, 75, 79, 80, 102, 103, 107, 113, 114, 118, 128, 131, 136, 140, 146, 147, 153, 157, 158, 164, 167, 169, 175, 182, 184, 190], "flow": 45, "focus": 17, "folder": [2, 5, 10, 13, 17], "follow": [2, 5, 6, 8, 13, 14, 15, 17, 19, 20, 22, 26, 27, 30, 41, 78, 165, 178, 193], "forc": [146, 157], "forex": [0, 2, 5, 6, 8, 12, 17, 19, 26, 44, 73, 74, 146, 152, 153, 157, 163, 164], "forget": 26, "form": [6, 21, 81, 106, 117, 127, 129, 135, 137, 167, 182], "format": [0, 5, 19, 21, 44, 76, 125, 126, 130, 132, 133, 134, 138, 141], "fortun": 26, "found": 26, "frame": 5, "framework": [2, 41], "free": [1, 2, 6, 8, 17, 23, 26, 44, 128, 136], "frequenc": [20, 21], "frequent": 20, "friendli": 17, "from": [1, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 21, 23, 25, 26, 41, 42, 44, 45, 72, 73, 76, 80, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 136, 137, 138, 140, 146, 152, 153, 157, 163, 164, 196], "from_dict": [19, 22, 23], "full": [2, 6, 8, 11, 14, 26, 44, 125, 133], "fulli": 14, "function": [0, 2, 3, 13, 17, 21, 26, 32, 38, 41, 44, 47, 48, 82, 142], "further": [2, 17], "futur": [0, 5, 12, 14, 17, 19, 20, 26, 43, 44, 74, 146, 147, 152, 157, 158, 163, 180, 195], "g": [2, 9, 17, 20, 21, 22, 23, 25, 72, 73, 146, 157], "gain": 26, "gamma": [128, 136], "gatewai": [], "gbp": [19, 152, 163], "gear": [], "gener": [7, 10, 13, 16, 26, 151, 162], "get": [1, 2, 5, 6, 8, 10, 11, 12, 13, 14, 17, 18, 20, 21, 22, 30, 31, 33, 38, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 55, 56, 57, 58, 59, 61, 70, 72, 73, 75, 77, 79, 80, 82, 104, 115, 124, 147, 148, 149, 150, 158, 159, 160, 161, 165, 166, 167, 172, 173, 175, 178, 182, 187, 188, 190, 193, 196], "get_asset": 44, "get_asset_by_nam": 44, "get_asset_by_symbol": 44, "get_asset_potential_tot": [26, 47], "get_bar": [20, 21, 44], "get_bars_between_d": 21, "get_cash": [26, 47], "get_chain": [26, 44, 47, 127, 129, 131, 135, 137, 140], "get_chain_full_info": 44, "get_datetim": [13, 26, 43, 44, 47], "get_datetime_rang": [26, 43, 44, 47], "get_expir": [26, 47], "get_fill_pric": 22, "get_func_stat": 25, "get_greek": [26, 47], "get_historical_account_valu": [12, 43], "get_historical_pric": [6, 8, 13, 20, 26, 31, 44, 47, 73], "get_historical_prices_for_asset": [26, 30, 47], "get_incr": 22, "get_iter_count": 21, "get_last_bar": 43, "get_last_dai": [26, 44, 47], "get_last_dividend": 20, "get_last_minut": [26, 44, 47], "get_last_pric": [2, 6, 8, 10, 13, 16, 20, 21, 26, 44, 47], "get_lines_df": [26, 47], "get_markers_df": [26, 47], "get_momentum": 20, "get_multipli": [26, 47], "get_next_option_expir": 139, "get_next_trading_dai": [26, 47], "get_ord": [13, 26, 47], "get_paramet": [26, 47, 165], "get_portfolio_valu": [26, 47], "get_posit": [13, 23, 26, 47, 150, 161], "get_quot": [21, 26, 47], "get_round_dai": [26, 44, 47], "get_round_minut": [26, 44, 47], "get_selling_ord": [23, 26, 47], "get_start_datetime_and_ts_unit": 44, "get_strik": [26, 44, 47], "get_symbol_bar": 70, "get_thread_stat": 25, "get_time_to_clos": [12, 43], "get_time_to_open": [12, 43], "get_timestamp": [12, 26, 44, 47], "get_timestep": 44, "get_total_dividend": 20, "get_total_return": 20, "get_total_return_pct": 20, "get_total_return_pct_chang": 20, "get_total_stock_split": 20, "get_total_volum": 20, "get_tracked_ord": [149, 160], "get_trading_days_panda": 44, "get_yesterday_dividend": [26, 44, 47], "getting_start": 15, "github": [13, 15, 17, 20, 25, 26], "give": [6, 8, 13, 131, 140], "given": [14, 20, 21, 43, 44, 52, 58, 71, 72, 73, 76, 84, 93, 125, 127, 129, 130, 131, 133, 135, 137, 138, 139, 140, 143, 148, 154, 159], "global": [15, 17, 20, 45], "go": [2, 5, 12, 15, 17, 25, 26], "goal": 7, "goe": [105, 116], "good": [26, 146, 157], "good_till_d": [22, 146, 157], "goog": [22, 42, 72, 73], "googl": 22, "google_symbol": 42, "gracefulli": 33, "grai": [62, 66], "graph": [7, 62, 63, 66, 67], "great": [14, 17], "greatli": [27, 41], "greek": [44, 124, 128, 136], "green": [13, 62, 63, 66, 67, 105, 116], "grouper_kwarg": 20, "growth": 7, "gtc": [146, 153, 157, 164], "gtd": [146, 157], "guarante": [146, 157], "guarente": [44, 125, 126, 133, 134], "guid": [2, 13, 16, 25, 26], "guidanc": 25, "h": [178, 193], "ha": [0, 7, 15, 20, 22, 26, 35, 36, 37, 39, 45, 71, 74, 78, 196], "handl": 14, "happen": [171, 186], "happi": 17, "harm": 7, "hash": [63, 67], "have": [0, 1, 2, 5, 6, 8, 10, 14, 16, 17, 20, 22, 23, 25, 26, 28, 43, 47, 49, 51, 55, 57, 72, 78], "he": 41, "header": 14, "held": [175, 190], "hello": 40, "help": [2, 3, 6, 8, 25], "helper": [20, 22, 45], "here": [1, 2, 5, 6, 8, 11, 12, 13, 14, 15, 16, 17, 18, 25, 26, 41, 165, 166], "hex": [62, 66], "hexagon": [63, 67], "hexagon2": [63, 67], "hexagram": [63, 67], "high": [5, 20, 21, 25, 26, 43, 78, 81], "higher": 22, "highli": [15, 26], "histor": [2, 6, 8, 12, 13, 20, 26, 43, 44, 70, 72, 73], "histori": 17, "historical_limit": 20, "hkex": [32, 106, 117], "hold": [6, 8, 20, 22, 23, 26, 36], "home": 26, "hope": 25, "host": [14, 17], "hour": [13, 20, 21, 32, 40, 44, 72, 73, 106, 117, 178, 193], "hourglass": [63, 67], "hover": [62, 63, 66, 67], "how": [0, 3, 11, 12, 13, 17, 25, 26, 45, 72, 81, 166], "howev": [17, 22, 30, 32, 146, 157], "hr": [5, 21], "html": [0, 1, 3, 9, 20, 26], "http": [2, 6, 8, 12, 13, 14, 15, 16, 17, 20, 25, 26], "i": [0, 1, 2, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 26, 28, 29, 30, 32, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 46, 47, 49, 51, 52, 55, 57, 58, 62, 63, 66, 67, 72, 73, 74, 75, 76, 77, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 102, 103, 106, 113, 114, 117, 125, 126, 127, 129, 130, 132, 133, 134, 135, 137, 138, 141, 146, 147, 149, 151, 153, 157, 158, 160, 162, 164, 166, 167, 168, 170, 172, 173, 177, 178, 182, 183, 185, 187, 188, 192, 193, 196], "ib": [14, 19, 132, 141], "ib_api_url": [14, 17], "ib_password": [14, 17], "ib_subaccount": 17, "ib_usernam": [14, 17], "ibeam": [], "ibgatewai": 14, "ibkei": [], "ibkr": 14, "ibkrcampu": [], "ibm": [19, 145, 156], "ic": [32, 106, 117], "iceu": [32, 106, 117], "icon": [], "id": [2, 15, 17, 148, 159, 196], "ideal": [2, 17], "identifi": [2, 13, 19, 22, 148, 159], "idx": 21, "iepa": [32, 106, 117], "illustr": 41, "iloc": [13, 72], "imag": [], "implement": [7, 17, 26, 27, 41, 44, 46], "impli": [128, 136], "implied_volatil": [128, 136], "import": [0, 1, 2, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 26, 41, 42, 44, 45, 63, 67, 73, 80, 146, 152, 153, 157, 163, 164, 165], "importantfunct": 13, "importantli": 22, "improv": 26, "includ": [2, 3, 7, 9, 10, 13, 17, 19, 20, 26, 32, 41, 44, 54, 60, 72, 124, 146, 148, 157, 159, 175, 190], "include_after_hour": [44, 72, 73], "inclus": 20, "incred": 17, "incur": 14, "index": [5, 19, 20, 21, 26, 78], "indic": [0, 1, 5, 13, 46, 52, 53, 58, 59, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 153, 164], "indicators_fil": 1, "individu": [2, 26], "industri": 26, "infinit": [103, 114], "influenc": [3, 27, 41], "info": [44, 105, 116, 125, 126, 133, 134], "inform": [2, 3, 5, 9, 10, 13, 17, 43, 44, 77, 78, 126, 131, 134, 140, 146, 157, 166], "inherit": [6, 8, 45], "initi": [1, 2, 6, 8, 13, 15, 25, 26, 27, 41, 106, 117, 165, 169, 172, 173, 178, 184, 187, 188, 193], "initial_budget": 26, "input": [21, 102, 103, 113, 114], "insert": [], "insid": [47, 166, 172, 187], "insight": [0, 2], "instal": [0, 5, 10, 13, 15, 17], "instanc": [13, 196], "instanti": [13, 16, 26, 43], "instead": [1, 5, 17, 20, 43, 107, 118, 128, 136, 180, 195], "instruct": [14, 17, 146, 152, 153, 157, 163, 164], "instrument": 20, "int": [1, 12, 19, 20, 21, 22, 36, 39, 44, 62, 63, 66, 67, 72, 73, 81, 84, 85, 86, 87, 88, 89, 93, 94, 95, 96, 97, 98, 102, 103, 113, 114, 146, 147, 157, 158, 172, 173, 178, 187, 188, 193], "integ": [72, 73, 178, 193], "integr": [6, 8], "intend": [5, 17], "inter": [0, 5], "interact": [11, 13, 20, 22, 26, 45, 72, 73, 74, 81], "interactive_brok": 15, "interactive_brokers_client_id": 17, "interactive_brokers_config": 15, "interactive_brokers_ip": 17, "interactive_brokers_port": 17, "interactivebrok": [15, 20], "interest": [7, 13, 44, 128, 136], "interfer": [], "intern": [17, 146, 157], "interpret": [2, 178, 193], "interrupt": [14, 33, 196], "interupt": [33, 40], "interv": 5, "intervent": [], "intial": 78, "intra": [0, 5, 10], "intradai": 2, "introduc": 2, "invest": [7, 14, 26], "involv": 9, "io": [0, 13, 20, 26], "ip": [14, 15, 17], "iron": 7, "is_act": 22, "is_backtest": [17, 26], "is_backtest_brok": 46, "is_backtesting_brok": 43, "is_backtesting_data_sourc": [43, 44], "is_buy_ord": 22, "is_cancel": 22, "is_fil": 22, "is_market_open": [12, 43], "is_multileg": [153, 164], "is_opt": 22, "is_par": 22, "is_sell_ord": 22, "is_valid": 19, "isn": [], "isol": [], "issu": 2, "item": [], "iter": [1, 2, 6, 8, 13, 21, 32, 40, 41, 168, 171, 183, 186, 196], "iter_index": 21, "its": [1, 6, 8, 22, 42], "itself": 17, "j": [27, 41], "jan": 82, "join": [25, 26], "jpx": [32, 106, 117], "json": 196, "june": 19, "just": [19, 26, 32, 36, 43, 146, 157], "keep": [14, 17, 22, 23, 81, 146, 157], "keep_bar": 81, "kei": [1, 2, 3, 5, 6, 8, 12, 14, 15, 16, 17, 21, 26, 46, 128, 136, 165, 196], "kept": 81, "keybord": 33, "keyerror": [], "keyword": 22, "kill": [], "kind": [1, 25], "know": [13, 18], "knowledg": [], "known": [44, 74, 75], "kraken": [13, 26, 146, 157], "kraken_api_kei": 17, "kraken_api_secret": 17, "kraken_config": 13, "kucoin": [13, 26], "kucoin_config": 13, "kwarg": [1, 12, 19, 21, 43, 44, 153, 164], "last": [5, 13, 20, 21, 22, 28, 30, 31, 42, 43, 44, 72, 73, 74, 75, 85, 86, 94, 95, 171, 186, 196], "last_dai": [85, 94], "last_minut": [86, 95], "last_ohlc": 72, "last_on_trading_iteration_datetim": 26, "last_pric": [13, 74, 75, 196], "last_upd": 196, "later": 32, "latest": [2, 5, 10, 13, 17, 25, 26, 72], "launch": 30, "layout": [], "learn": [11, 17, 25, 26], "least": [5, 41], "leav": [151, 162], "left": [17, 63, 67], "leg": 26, "legaci": [11, 26], "len": 21, "length": [13, 21, 43, 44, 72, 73, 78, 84, 93], "less": [16, 146, 147, 157, 158], "let": 13, "level": [26, 63, 67, 105, 116], "leverag": [19, 146, 157], "librari": [5, 7, 13, 16, 17, 25], "lifecycl": [26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 47, 168, 172, 173, 178, 183, 187, 188, 193], "lightblu": [62, 66], "lightgrai": [62, 66], "lightgreen": [62, 66], "lightr": [62, 66], "like": [2, 5, 17, 21, 25, 26, 29, 30, 31, 32, 33, 43, 44, 165], "limit": [6, 8, 13, 14, 17, 22, 43, 44, 72, 73, 81, 110, 121, 146, 152, 153, 157, 163, 164], "limit_ord": [43, 146, 157], "limit_pric": [13, 22, 43, 110, 121, 146, 152, 153, 157, 163, 164], "line": [3, 26, 46, 62, 63, 64, 66, 67, 68], "link": [6, 8, 14], "list": [1, 2, 13, 18, 19, 20, 23, 25, 31, 43, 44, 47, 48, 53, 59, 61, 70, 73, 75, 80, 82, 84, 93, 101, 106, 111, 112, 117, 122, 123, 124, 127, 129, 131, 135, 137, 140, 142, 145, 149, 153, 156, 160, 164, 166], "littl": [], "live": [1, 2, 12, 14, 15, 17, 20, 25, 43, 44, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117], "live_config": 17, "ll": [13, 14, 16, 26], "lmt": 44, "lmt_order": 13, "load": [5, 18, 21, 63, 67, 196], "load_data": 44, "load_variables_from_db": [], "local": [20, 21, 42, 44, 90, 91, 99, 100, 128, 136], "localhost": [14, 17, 196], "localize_datetim": [26, 44, 47], "localize_timezon": 21, "locat": 17, "log": [0, 1, 2, 7, 10, 14, 15, 16, 17, 19, 26, 42, 101, 105, 116], "log_messag": [13, 16, 20, 26, 28, 30, 33, 34, 35, 36, 37, 38, 39, 40, 42, 47, 52, 53, 58, 59, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 132, 141, 147, 148, 149, 158, 159, 160, 167, 168, 169, 170, 171, 172, 174, 175, 176, 177, 179, 181, 182, 183, 184, 185, 186, 187, 189, 190, 191, 192, 194], "logfil": [1, 46], "logic": [27, 29, 30, 40, 41, 43, 45], "login": 14, "long": 22, "longer": 2, "longest": 7, "look": [2, 5, 15, 26], "loop": [14, 31, 40, 103, 114, 172, 187], "lose": [], "loss": [7, 22, 43, 62, 63, 66, 67, 146, 152, 153, 157, 163, 164], "lost": [], "lot": [17, 166], "low": [5, 17, 20, 21, 43, 78, 81], "lower": 21, "lse": [32, 106, 117], "luck": 26, "lumi": [2, 7, 8], "lumi10": [2, 6], "lumibot": [0, 1, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 18, 19, 22, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165], "lumiwealth": [7, 15, 26], "m": [178, 193], "mac": 26, "macd": 13, "machin": 2, "machinelearninglongshort": 25, "made": [25, 70, 82], "mai": [5, 13, 14, 17, 19, 22, 25, 72, 73, 81, 146, 157], "main": [17, 18, 22, 26, 33, 40, 45, 146, 157], "main_tick": 165, "maintain": [14, 17], "major": [5, 10], "make": [2, 4, 5, 6, 8, 17, 22, 25, 26, 74, 75], "maker": 24, "manag": [21, 22, 26, 47, 61, 124], "mandatori": [17, 19, 45, 146, 157], "mani": [6, 8, 13, 26, 32, 41, 81], "manual": [2, 14, 17], "map": 19, "map_asset_typ": 12, "margin": [13, 146, 157], "mark": [63, 67], "marker": [3, 46, 63, 65, 67, 69], "market": [2, 11, 12, 13, 17, 22, 25, 26, 28, 29, 30, 31, 32, 40, 43, 74, 75, 102, 103, 106, 109, 110, 111, 112, 113, 114, 117, 120, 121, 122, 123, 146, 151, 152, 153, 157, 162, 163, 164, 172, 173, 175, 187, 188, 190], "marketcalendar": [32, 106, 117], "martingal": 7, "master": 15, "match": [21, 44], "math": 26, "max": [7, 13], "max_bar": 32, "max_pric": 13, "max_work": [12, 43, 44, 73], "maximum": [7, 17, 44], "mean": [], "meant": 124, "measur": [1, 7], "mechan": [], "memori": 17, "mention": 20, "menu": [14, 26], "merg": 21, "messag": [17, 101, 105, 116], "method": [1, 6, 8, 15, 19, 20, 22, 23, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 70, 101, 124, 125, 127, 129, 131, 133, 135, 137, 140, 165, 168, 172, 173, 178, 183, 187, 188, 193, 196], "metric": [2, 7], "might": [5, 13, 14, 17], "min": 20, "min_timestep": [21, 44], "mind": [], "minim": [], "minimum": 44, "minut": [1, 5, 13, 17, 20, 21, 25, 26, 29, 30, 32, 40, 43, 44, 72, 73, 84, 86, 88, 93, 95, 97, 102, 103, 113, 114, 172, 173, 178, 187, 188, 193], "minutes_before_clos": [1, 26, 29, 32, 40, 102, 113], "minutes_before_open": [1, 26, 30, 103, 114], "miscellan": [26, 47], "miss": 39, "mkt_order": 13, "mm": [76, 130, 138], "mnq": 32, "mobil": 14, "mode": [0, 15, 17, 43, 170, 185], "modifi": [10, 25, 26], "modul": [5, 10, 26], "momentum": 20, "monei": [14, 16, 17, 25, 49, 51, 55, 57, 167, 182], "monitor": 17, "month": [17, 85, 94], "more": [0, 2, 3, 11, 13, 14, 16, 17, 18, 20, 25, 26, 43, 44, 47, 70, 72, 101, 124, 128, 136, 142], "most": [0, 5, 7, 14, 17, 20, 25, 41, 72, 78, 128, 136], "mostli": 43, "move": [2, 7, 22, 26], "movement": [22, 146, 157], "much": [5, 6, 8, 12, 44], "multileg": [22, 153, 164], "multipl": [2, 17, 143, 154, 196], "multipli": [19, 20, 36, 39, 44, 125, 126, 129, 131, 133, 134, 137, 140, 152, 163], "must": [1, 2, 5, 6, 8, 10, 12, 16, 21, 22, 41, 72, 73, 131, 140, 146, 157], "my": [17, 25], "my_custom_paramet": 32, "my_custom_stat": 42, "my_last_paramet": 32, "my_limit_pric": 22, "my_other_paramet": 32, "my_other_stat": 42, "my_paramet": 165, "my_stat": 42, "my_stop_loss_pric": 22, "my_stop_pric": 22, "my_take_profit_pric": 22, "my_trail_perc": 22, "my_trail_pric": 22, "mysql": [], "mystrategi": [1, 2, 5, 6, 8, 10, 13, 16, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 165], "n": [63, 67], "name": [0, 1, 5, 10, 14, 17, 19, 21, 25, 26, 32, 44, 46, 62, 63, 66, 67, 74, 105, 116, 165, 196], "namespac": 196, "nan": 21, "nasdaq": [14, 32, 106, 117], "navig": [14, 15, 17], "ne": [63, 67], "nearest": [87, 88, 96, 97], "necessari": [6, 8, 17, 43], "need": [2, 6, 8, 13, 14, 16, 17, 25, 27, 41, 43, 44, 72, 73, 77], "net": [2, 8, 51, 57], "network": 14, "new": [2, 5, 7, 14, 17, 19, 20, 22, 26, 36, 37, 43, 54, 60, 146, 157, 167, 182], "new_york": [20, 44, 176, 179, 181, 191, 194], "newer": 17, "nexpir": 19, "next": [5, 6, 8, 12, 17, 26, 40, 76, 130, 138, 139], "next_option_expir": 139, "next_trading_dai": [76, 130, 138], "nobardatafound": 20, "none": [1, 12, 13, 17, 19, 20, 21, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43, 44, 46, 49, 51, 52, 53, 54, 55, 57, 58, 59, 60, 62, 63, 66, 67, 71, 72, 73, 74, 75, 81, 84, 93, 102, 103, 105, 106, 107, 108, 113, 114, 116, 117, 118, 119, 128, 131, 136, 140, 143, 144, 145, 146, 148, 150, 151, 154, 155, 156, 157, 159, 161, 162], "normal": [5, 16, 131, 140], "notat": 196, "note": [5, 10, 13, 14, 15, 17, 20, 22, 43, 77, 146, 157], "notic": 26, "notif": [14, 17], "now": [16, 25, 44, 74], "num_period": 20, "number": [1, 12, 15, 16, 17, 21, 22, 29, 32, 44, 72, 73, 84, 87, 88, 93, 96, 97, 146, 157, 172, 173, 178, 187, 188, 193], "numpi": 21, "nuzcnprsxjxxouxrhqe5k2k1xnqlpckh2xcutifkcw": 17, "nw": [63, 67], "nyfe": [32, 106, 117], "nymex_agricultur": [32, 106, 117], "nyse": [14, 32, 76, 106, 117, 130, 138], "o": 22, "obect": [146, 157], "object": [1, 5, 10, 12, 18, 19, 20, 21, 22, 23, 24, 35, 36, 37, 39, 43, 44, 46, 52, 53, 58, 59, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 109, 110, 111, 112, 120, 121, 122, 123, 126, 131, 134, 140, 144, 145, 146, 147, 148, 149, 152, 153, 155, 156, 157, 158, 159, 160, 163, 164, 176, 181, 191, 196], "observ": 7, "obtain": [6, 8, 13, 44, 126, 127, 129, 131, 134, 135, 137, 140], "occur": 22, "oco": [22, 146, 152, 157, 163], "octagon": [63, 67], "off": [2, 6, 8], "offer": [2, 7, 14, 17, 26], "offici": 2, "often": 22, "ohlcv": [20, 21, 43], "on_abrupt_clos": [26, 27, 34], "on_bot_crash": [26, 27], "on_canceled_ord": [26, 27], "on_filled_ord": [26, 27], "on_new_ord": [26, 27], "on_parameters_upd": [26, 27], "on_partially_filled_ord": [26, 27], "on_start": [], "on_trading_inter": [12, 32], "on_trading_iter": [1, 2, 5, 6, 8, 10, 13, 16, 25, 26, 27, 28, 41, 42, 47, 102, 103, 113, 114, 165, 168, 172, 178, 183, 187, 193, 196], "onc": [2, 14, 15, 16, 17, 22, 25, 26, 32, 41, 146, 157, 196], "one": [5, 7, 13, 14, 17, 22, 25, 26, 41, 43, 47, 72, 109, 120, 146, 153, 157, 164], "ones": [17, 41], "onli": [1, 5, 10, 13, 14, 15, 17, 19, 20, 21, 22, 23, 25, 26, 32, 41, 43, 44, 46, 72, 73, 74, 77, 81, 128, 136, 143, 153, 154, 164, 172, 187], "open": [1, 2, 5, 12, 17, 20, 21, 22, 25, 29, 30, 31, 40, 43, 63, 67, 72, 78, 81, 102, 103, 113, 114, 143, 144, 145, 149, 151, 154, 155, 156, 160, 162, 173, 188], "open_": 43, "open_interest": 44, "openbook": 14, "oper": [14, 17, 32, 41], "opra": 14, "opt_asset": [128, 136], "optim": [2, 7, 17, 26], "option": [0, 2, 6, 8, 9, 12, 14, 16, 17, 19, 20, 22, 26, 32, 36, 39, 41, 43, 44, 47, 72, 74, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 146, 152, 157, 163], "option_chain": 44, "option_pric": [128, 136], "option_typ": [128, 136], "optionright": 19, "options_expiry_to_datetime_d": [26, 47], "optionscondormartingal": 196, "orang": [62, 63, 66, 67], "order": [1, 2, 5, 6, 8, 9, 10, 12, 13, 18, 19, 23, 25, 26, 29, 30, 35, 36, 37, 39, 40, 41, 43, 47, 105, 109, 110, 111, 112, 116, 120, 121, 122, 123, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 182], "order1": [111, 112, 122, 123, 145, 153, 156, 164], "order2": [111, 112, 122, 123, 145, 153, 156, 164], "order_1": 22, "order_2": 22, "order_class": 22, "order_dict": 22, "order_id": [148, 159], "order_typ": [12, 153, 164], "orderclass": 22, "orderdata": 12, "ordersid": 22, "orderstatu": 22, "ordertyp": 22, "origin": [105, 116], "os": [32, 106, 117], "other": [0, 2, 6, 8, 10, 13, 14, 15, 17, 20, 22, 25, 26, 41, 62, 66, 77, 101, 146, 157, 167, 182, 196], "otherwis": [22, 36], "oto": [22, 146, 157], "our": [7, 13, 17, 25, 26, 28], "out": [14, 26, 43, 47, 52, 58, 74], "output": 196, "outstand": 13, "over": [7, 19, 20, 25, 26, 62, 63, 66, 67], "overal": [1, 7], "overbought": [62, 63, 66, 67], "overhead": [], "overload": [27, 34, 41, 43], "overrid": [102, 103, 113, 114], "oversold": [62, 63, 66, 67], "overview": 2, "overwrit": [54, 60], "own": [2, 5, 6, 8, 12, 13, 16, 17, 23, 25, 26, 150, 161], "pace": 20, "packag": [14, 26], "page": [14, 16, 17, 26], "pai": [6, 8, 14], "paid": [1, 2, 167, 182], "pair": [13, 20, 22, 44, 74, 75, 125, 126, 133, 134, 146, 157], "panda": [0, 2, 10, 20, 21, 26, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 78, 106, 117], "pandas_data": [1, 5, 25, 43, 44], "pandas_ta": 13, "pandasdata": [43, 44], "pandasdatabacktest": [1, 5, 25], "panel": [], "paper": [11, 12, 15, 16, 17, 26, 44], "paper_1": 17, "param": 44, "paramet": [1, 2, 6, 8, 12, 19, 20, 21, 22, 23, 25, 26, 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 66, 67, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 84, 87, 88, 90, 91, 93, 96, 97, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 150, 151, 152, 153, 154, 155, 156, 157, 158, 161, 162, 163, 164, 172, 187], "parent": 22, "parquet": 5, "parse_bar_list": 20, "part": [17, 22, 41, 153, 164, 165], "partial": [22, 39], "partial_fil": 22, "partially_fil": 22, "particular": [22, 125, 127, 129, 133, 135, 137], "particularli": 19, "pass": [1, 2, 5, 8, 10, 18, 28, 36, 40, 41, 45, 102, 103, 113, 114, 128, 136, 146, 157], "password": [2, 8, 13, 14, 17, 196], "password123": [14, 17], "past": [2, 22, 25], "path_to_your_databas": [], "pattern": [27, 41], "paus": [102, 103, 107, 113, 114, 118, 178, 193], "pcal": 44, "pd": [5, 20, 44], "peak": 7, "penetr": [146, 157], "pentagon": [63, 67], "per": [20, 44], "percent": [146, 157], "percent_fe": [24, 25], "percentag": [20, 25], "perfectli": 17, "perform": [0, 2, 3, 7, 17, 26, 41], "period": [1, 2, 5, 7, 13, 21, 81, 196], "permiss": [14, 19], "permit": [], "persist": 196, "perspect": 41, "pick": [5, 10, 17, 26], "pink": [62, 63, 66, 67], "pip": [2, 5, 10, 13, 25, 26], "pk7t6yvax6pmh1em20yn": 17, "place": [9, 13, 18, 146, 151, 157, 162], "plan": [2, 14, 17], "platform": [14, 26], "pleas": [1, 2, 5, 6, 8, 10, 13, 15, 22, 72, 180, 195], "plot": [1, 10, 46, 63, 67], "plot_file_html": 1, "plu": [14, 105, 116, 175, 190], "png": [], "pnl": 22, "point": [3, 7, 9, 15, 22, 44, 62, 66, 72, 73, 147, 158], "polygon": [0, 1, 5, 8, 10, 17, 26], "polygon_api_kei": [1, 2, 17], "polygon_has_paid_subscript": 1, "polygon_max_memory_byt": 17, "polygondatabacktest": [1, 2, 6, 8], "polygondatasourc": 6, "pop": [], "popular": 13, "porfolio": 1, "port": [15, 17], "portal": 14, "portfolio": [7, 9, 13, 23, 28, 51, 57, 63, 67, 175, 190], "portfolio_valu": [2, 6, 8, 10, 13, 26, 28, 42, 177, 192], "posit": [1, 13, 18, 22, 26, 36, 39, 43, 45, 51, 52, 53, 57, 58, 59, 147, 150, 151, 158, 161, 162, 167, 175, 182, 190], "position_fil": [22, 146, 157], "possibl": [5, 14, 32, 44, 62, 63, 66, 67, 153, 164], "post": [153, 164], "postgresql": 196, "potenti": [2, 25, 26, 147, 158], "power": [2, 6, 8, 17, 25, 26], "powershel": 26, "practic": 14, "pre": [26, 153, 164], "preced": 47, "precis": [19, 128, 136], "predetermin": 22, "prefix": [0, 105, 116], "presenc": 17, "present": [72, 73, 128, 136], "press": 17, "prevent": 196, "previou": [7, 79, 80], "previous": [], "price": [2, 6, 8, 9, 13, 16, 17, 19, 20, 21, 22, 23, 31, 36, 39, 43, 44, 45, 47, 62, 63, 66, 67, 70, 72, 73, 74, 75, 78, 128, 136, 146, 152, 153, 157, 163, 164], "primari": [14, 196], "print": [12, 42, 196], "print_al": 25, "printout": 19, "pro": 13, "probabl": 22, "problem": [], "proceed": [5, 10, 14, 25], "process": [4, 6, 8, 14, 17, 25, 37, 39, 152, 153, 163, 164, 196], "process_expired_option_contract": 43, "process_pending_ord": 43, "product": 43, "prof": 25, "profil": 26, "profit": [17, 22, 25, 26, 43, 62, 63, 66, 67], "program": [107, 118, 165, 178, 193], "project": [2, 6, 8, 17], "prompt": 14, "promptli": 14, "proof": 14, "proper": 17, "properli": [], "properti": [22, 23, 26, 43, 45, 46, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195], "proven": 26, "provid": [0, 2, 4, 5, 6, 8, 9, 17, 20, 21, 44, 74, 75, 131, 140, 144, 145, 155, 156], "pstat": 25, "psycopg2": [], "pull": [40, 72], "purpl": [62, 63, 66, 67], "purpos": 17, "put": [5, 12, 16, 19, 25], "pv_dividend": [128, 136], "py": [15, 17, 25, 26], "pycharm": 2, "pymysql": [], "python": [2, 5, 25, 105, 116], "pytz": 26, "qqq": 1, "qtrz3zurd9244ahuw2aoyapgvyra": 16, "qtrz3zurl9244ahuw4aoyapgvyra": 17, "qty": [2, 6, 8], "quantiti": [1, 2, 6, 7, 8, 10, 12, 13, 22, 23, 25, 26, 36, 39, 52, 53, 58, 59, 146, 157], "quantstat": 7, "queri": [44, 128, 136], "query_greek": [44, 128, 136], "question": 7, "quick": 2, "quickli": [2, 14, 17, 25], "quot": [13, 19, 20, 21, 22, 44, 49, 51, 55, 57, 72, 73, 74, 75, 77, 146, 152, 153, 157, 163, 164, 175, 177, 190, 192], "quote_asset": [1, 13, 19, 23, 26, 152, 153, 163, 164], "r": 37, "rais": 34, "randint": 42, "random": 42, "random_numb": 42, "rang": [5, 13, 17, 20, 21], "rate": [1, 6, 8, 20, 44, 128, 136], "rather": 82, "ratio": [2, 7], "raw": [5, 20, 22], "re": [2, 11, 14, 17, 26, 82], "reach": [7, 25, 26, 43], "react": [27, 41], "read": [5, 15, 25, 44], "read_csv": 5, "readi": [2, 14, 17, 41, 146, 157], "readthedoc": 13, "real": [14, 16, 17, 25, 71, 78, 81], "receiv": [5, 14], "recent": [20, 72, 78], "recommend": [0, 15, 17, 25], "record": 26, "red": [62, 63, 66, 67, 105, 116], "redeploi": 17, "reduc": 17, "refer": [2, 3, 17, 26, 27], "refin": [4, 25], "regard": [], "regardless": 82, "regist": [22, 110, 112, 121, 123], "regular": 73, "regularli": 17, "reindex": 21, "reiniti": 31, "relat": [14, 17, 36], "reliabl": [], "remain": [12, 39, 43, 172, 187], "remaind": [146, 157], "rememb": [13, 26], "remov": [180, 195], "render": 26, "repair_times_and_fil": 21, "repl": 17, "replac": [2, 6, 8, 13], "replit": 26, "report": 28, "repositori": [13, 17], "repres": [19, 22, 44, 45, 72, 73, 126, 134], "represent": [12, 21, 22, 44, 72, 73], "request": 14, "requir": [0, 1, 2, 10, 13, 14, 15, 17, 19, 22, 74, 75, 146, 153, 157, 164], "reserv": 17, "reset": 31, "resist": [63, 67], "resourc": 25, "resov": [175, 190], "respect": 20, "respond": 2, "respons": [], "rest": [12, 14, 17, 41], "restart": [17, 40], "restor": 26, "restric": [146, 157], "restrict": 14, "result": [2, 5, 6, 8, 10, 25, 26, 42], "resum": 196, "retreiv": 23, "retriev": [2, 19, 21, 74, 75, 78, 196], "return": [1, 7, 12, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 64, 65, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194], "review": [2, 14], "right": [14, 17, 19, 28, 63, 67, 72, 152, 163], "right_must_be_one_of": 19, "risk": [1, 7, 14, 25, 44, 128, 136], "risk_free_r": [1, 44, 128, 136], "robot": 26, "robust": [6, 8], "romad": 7, "round": [44, 87, 88, 96, 97], "round_dai": [87, 96], "round_minut": [88, 97], "row": [20, 42, 72, 73, 81], "rsi": [2, 13], "rtype": [22, 44], "rule": 20, "run": [0, 5, 6, 8, 10, 11, 12, 14, 17, 21, 26, 30, 32, 33, 34, 37, 44, 46, 81, 102, 103, 113, 114, 143, 145, 154, 156, 170, 185], "run_al": [5, 13, 14, 15, 16, 25, 26, 46], "run_all_async": 46, "run_backtest": [0, 1, 2, 5, 6, 8, 10, 25], "runtim": 196, "safe": [], "sai": [], "sale": [6, 8], "same": [5, 14, 17, 22, 26, 73], "sampl": [12, 26], "sandbox": [13, 17], "save": [1, 5, 10, 17, 25, 46, 196], "save_logfil": 1, "save_tearsheet": [1, 46], "scalabl": [17, 196], "scale": [7, 196], "scene": 19, "scope": 42, "screen": [], "script": 5, "scroll": [14, 17], "se": [63, 67], "seamlessli": 17, "search": [2, 26], "second": [1, 12, 22, 32, 40, 43, 73, 81, 101, 107, 118, 178, 193], "secondari": [11, 26], "secret": [12, 13, 14, 16, 25, 26], "section": [2, 14, 17, 25, 47], "secur": [2, 5, 10, 14, 19, 22], "see": [2, 13, 14, 15, 17, 19, 20, 25, 26, 44, 48, 61, 70, 82, 101, 124, 142], "seek": [52, 58, 144, 155], "select": [2, 14, 17], "self": [1, 2, 5, 6, 8, 10, 12, 13, 14, 16, 17, 19, 20, 22, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 47, 165], "sell": [1, 7, 9, 22, 23, 29, 33, 34, 36, 40, 43, 45, 146, 150, 151, 152, 153, 157, 161, 162, 163, 164], "sell_al": [26, 29, 33, 34, 47], "sell_short": 22, "sell_to_clos": 22, "sell_to_open": 22, "sell_trading_fe": [1, 25], "send": [17, 105, 116], "sens": 47, "separ": [14, 17], "seri": 21, "serial": [], "server": [], "servic": [17, 105, 116], "session": [], "set": [1, 2, 6, 8, 11, 14, 15, 16, 17, 19, 20, 21, 22, 25, 26, 29, 32, 43, 44, 54, 60, 72, 73, 78, 106, 117, 125, 133, 146, 157, 165, 166, 172, 173, 178, 187, 188, 193, 196], "set_cancel": 22, "set_dat": 21, "set_date_format": 21, "set_error": 22, "set_fil": 22, "set_identifi": 22, "set_market": [13, 26, 32, 47], "set_new": 22, "set_paramet": [26, 47, 165], "set_partially_fil": 22, "set_tim": 21, "settings_fil": 1, "settl": 43, "settlement": 22, "setup": [0, 2, 11, 26], "sever": [0, 2, 10, 11, 45, 165], "share": [13, 16, 20, 22, 29, 31, 36, 39, 44, 146, 157, 175, 190], "sharp": [2, 7], "sheet": 2, "shift": [21, 44, 72, 73, 84, 87, 88, 93, 96, 97], "short": [22, 106, 117], "should": [5, 10, 14, 16, 20, 22, 27, 40, 43, 45, 74, 107, 118, 128, 136], "should_continu": 43, "should_use_last_clos": 74, "show": [1, 7, 52, 53, 58, 59, 147, 148, 149, 158, 159, 160], "show_ind": [1, 46], "show_plot": [1, 46], "show_tearsheet": [1, 46], "showcas": 7, "shown": [25, 26], "shut": 33, "side": [1, 2, 6, 8, 12, 22, 25, 36, 43, 146, 157], "sidebar": 17, "sign": 14, "signatur": 14, "similar": [13, 17, 30], "similarli": [], "simpl": [1, 5, 6, 8, 10, 16, 22, 26, 146, 157], "simple_start_ib": 15, "simple_start_single_fil": [25, 26], "simpli": [6, 8], "simplifi": [6, 8], "simultan": 44, "sinc": 13, "singl": [20, 44, 144, 155], "situat": 5, "six": [32, 106, 117], "size": [63, 67, 81], "skill": 25, "skip": [17, 30], "sleep": [1, 2, 26, 40, 47, 101, 102, 113, 178, 193], "sleeptim": [1, 2, 6, 8, 13, 25, 26, 32, 40, 107, 118], "slightli": [], "slow": 25, "smart": [44, 125, 127, 129, 133, 135, 137, 146, 157], "smoothli": 17, "snakeviz": 25, "snapshot": [14, 42], "snapshot_befor": 42, "so": [6, 8, 10, 13, 14, 17, 19, 22, 25, 26, 47, 82, 128, 136], "socket": [15, 17], "socket_port": 15, "sold": [36, 51, 57, 146, 157], "solid": [62, 66], "solut": 14, "some": [5, 10, 14, 25, 26, 44, 45, 74, 146, 157], "some_var": [], "someth": [5, 13], "sometim": 25, "soon": 17, "sort": [127, 129, 131, 135, 137, 140], "sortino": 7, "sought": [52, 58, 147, 158], "sourc": [0, 5, 8, 13, 20, 83, 89, 90, 91, 92, 98, 99, 100, 176, 179, 181, 191, 194], "speak": [11, 41], "specif": [2, 7, 13, 14, 17, 19, 22, 41, 44, 62, 66, 109, 120, 125, 126, 133, 134, 146, 157, 166], "specifi": [20, 22, 44, 72, 73, 146, 157, 196], "speed": [44, 178, 193], "spend": 25, "split": [20, 45], "spy": [1, 2, 5, 6, 8, 19, 22, 25, 30, 31, 32, 36, 40, 44, 71, 72, 73, 74, 75, 79, 80, 109, 110, 111, 112, 120, 121, 122, 123, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 144, 146, 150, 152, 153, 155, 157, 161, 163, 164, 165], "sqlalchemi": [], "sqlite": 17, "squar": [63, 67], "src": 17, "sse": [32, 106, 117], "standard": [], "star": [63, 67], "start": [1, 2, 5, 6, 7, 8, 10, 11, 13, 17, 20, 21, 30, 32, 44, 72, 73, 78, 81, 102, 113, 173, 188], "start_buff": 44, "start_dat": 21, "start_dt": 44, "startegi": 5, "starter": 17, "starting_posit": 1, "stat": [1, 28, 42], "state": [17, 166, 196], "static": 44, "statist": 2, "stats_fil": [1, 32], "statu": [22, 148, 149, 159, 160], "std": 44, "steea9fhiszntmpihqjudeqolitj0javz": 17, "step": [2, 5, 14], "stike": [44, 125, 133], "still": [146, 157], "stock": [0, 1, 2, 5, 6, 8, 9, 10, 12, 17, 19, 20, 21, 22, 23, 26, 32, 44, 106, 117, 126, 134, 146, 152, 157, 163], "stock_split": 20, "stop": [14, 22, 25, 32, 33, 40, 43, 62, 63, 66, 67, 102, 103, 113, 114, 146, 152, 153, 157, 163, 164, 172, 187, 196], "stop_al": 46, "stop_limit": [22, 146, 157], "stop_loss": [146, 152, 157, 163], "stop_loss_limit": [146, 157], "stop_loss_limit_pric": [22, 146, 157], "stop_loss_pric": [22, 146, 152, 157, 163], "stop_ord": 43, "stop_pric": [22, 43, 146, 152, 153, 157, 163, 164], "storag": 26, "store": 196, "str": [1, 19, 20, 21, 22, 23, 44, 52, 58, 62, 63, 66, 67, 72, 73, 74, 75, 76, 84, 93, 105, 106, 116, 117, 125, 126, 127, 129, 130, 132, 133, 134, 135, 137, 138, 141, 146, 153, 157, 164, 174, 178, 179, 189, 193, 194], "straightforward": 17, "strangl": [14, 15], "strat": 5, "strategi": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 22, 23, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196], "strategy_001": [], "strategy_1": 32, "strategy_2": 32, "strategy_executor": [13, 16], "strategy_id": [17, 196], "strategy_nam": 17, "stream": [14, 71, 78, 81], "strength": 2, "strictli": [5, 21], "strike": [9, 19, 44, 72, 126, 128, 131, 134, 136, 140, 146, 157], "strike1": [44, 125, 126, 133, 134], "strike2": [44, 125, 126, 133, 134], "strike_max": 44, "strike_min": 44, "strike_pric": [152, 163], "string": [1, 17, 19, 20, 21, 22, 44, 72, 73, 105, 116, 132, 141, 146, 157, 178, 193, 196], "strke": [44, 125, 133], "strongli": [], "structur": [14, 26], "studio": 2, "style": [62, 66], "sub": 26, "subaccount": [14, 17], "subaccount1": 17, "submiss": 22, "submit": [14, 22, 37, 43, 47, 142, 146, 152, 153, 157, 163, 164], "submit_ord": [1, 2, 5, 6, 8, 10, 13, 19, 22, 25, 26, 40, 43, 47, 109, 110, 111, 112, 120, 121, 122, 123, 144, 145, 146, 150, 155, 156, 157, 161], "subscrib": 14, "subscript": [1, 11, 26], "subsequ": [5, 6, 8], "success": 17, "successfulli": [35, 36, 37], "suffic": 14, "suffici": [146, 157], "suggest": 26, "suit": [2, 26], "suitabl": [2, 17], "sum": [20, 51, 57], "summari": [0, 6, 8, 26, 27], "super": 26, "suppli": [0, 10, 21], "supplier": 20, "support": [2, 6, 7, 8, 13, 14, 17, 21, 25, 26, 44, 63, 67, 128, 136, 146, 157], "sure": [2, 6, 8, 25, 26], "sw": [63, 67], "swim": 26, "switch": 26, "sybmol": 21, "symbol": [1, 2, 5, 6, 8, 12, 13, 19, 20, 21, 22, 23, 25, 36, 44, 63, 67, 72, 73, 74, 146, 152, 153, 157, 163, 164], "symbol2asset": 19, "system": [151, 162], "t": [6, 8, 13, 14, 17, 26], "ta": 13, "tab": 17, "tabl": 196, "tag": [22, 153, 164], "tailor": 7, "take": [6, 8, 17, 22, 25, 41, 44, 62, 63, 66, 67, 73, 74, 75, 125, 133], "take_profit_pric": [22, 146, 152, 157, 163], "taken": 4, "taker": 24, "tall": [63, 67], "tase": [32, 106, 117], "task": 41, "tear": 2, "tearsheet": [0, 1, 26, 46], "tearsheet_fil": [1, 46], "technic": [2, 13, 41], "tediou": 14, "tell": 82, "term": 2, "termin": [2, 13, 25, 26], "test": [0, 2, 15, 17], "text": [62, 63, 66, 67], "than": [16, 17, 44, 82, 146, 147, 157, 158], "thei": [3, 5, 11, 17, 20, 26, 41, 81, 128, 136], "them": [2, 11, 17, 20, 22, 25, 26, 47, 48, 61, 70, 82, 101, 124, 142, 145, 156], "themselv": 20, "theoret": [128, 136], "therefor": [167, 182], "theta": [44, 128, 136], "thetadata": [0, 2, 26], "thetadata_password": 8, "thetadata_usernam": 8, "thetadatabacktest": 8, "thi": [1, 2, 5, 6, 8, 9, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 49, 51, 55, 57, 62, 63, 66, 67, 72, 73, 74, 75, 77, 81, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 107, 118, 146, 153, 157, 164, 167, 168, 177, 178, 182, 183, 192, 193], "thin": [63, 67], "thing": 47, "think": [17, 82], "third": 5, "thoroughli": 15, "those": [13, 17, 166], "though": [146, 157], "thoughtfulli": [], "three": [0, 15, 20, 22], "threshold": [22, 146, 157], "throttl": 20, "through": [2, 13, 14, 17], "tick": 20, "ticker": [9, 19, 20, 32, 44, 81], "time": [3, 5, 6, 8, 9, 12, 13, 14, 17, 20, 21, 25, 32, 41, 43, 44, 45, 71, 72, 73, 78, 81, 82, 87, 88, 96, 97, 102, 103, 107, 113, 114, 118, 128, 136, 146, 157, 168, 178, 183, 193], "time_in_forc": [22, 146, 157], "timedelta": [44, 72, 73, 102, 103, 113, 114], "timefram": 20, "timeshift": [21, 43, 44, 72, 73, 84, 87, 88, 93, 96, 97], "timestamp": [2, 12, 20, 44, 62, 63, 66, 67, 85, 86, 87, 88, 89, 94, 95, 96, 97, 98, 196], "timestep": [5, 21, 43, 44, 72, 73, 84, 93], "timestep_map": [21, 44], "timezon": [20, 21, 26, 44, 90, 91, 99, 100, 176, 181, 191], "tip": 17, "titl": [], "tlt": [30, 52, 58, 73, 75, 80, 111, 112, 122, 123, 146, 147, 153, 157, 158, 164], "to_csv": 5, "to_datalin": 21, "to_default_timezon": [26, 44, 47], "to_dict": [19, 22, 23], "to_posit": 22, "to_request_field": 12, "todai": [17, 74, 82], "todo": [43, 74], "togeth": [5, 22, 25], "token": 17, "tool": [6, 8, 17, 26], "top": [14, 17, 26], "topic": 17, "total": [7, 20, 28, 51, 57, 147, 158, 175, 190], "totalview": 14, "tqqq": 25, "trace": 42, "trace_stat": [26, 27, 178, 193], "track": [19, 23, 26, 52, 53, 58, 59, 148, 149, 159, 160], "trade": [0, 1, 4, 5, 10, 11, 13, 15, 17, 18, 19, 20, 21, 22, 27, 30, 31, 32, 33, 40, 41, 43, 44, 45, 52, 58, 73, 74, 76, 78, 81, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117, 126, 130, 134, 138, 146, 157, 171, 186, 196], "trade_cost": 22, "trade_count": 196, "tradeapi": 12, "trader": [5, 6, 8, 10, 12, 13, 14, 15, 16, 26, 33], "trades_fil": 1, "tradest": 26, "tradier": [11, 26, 44, 77, 153, 164], "tradier_access_token": 17, "tradier_account_numb": 17, "tradier_config": 16, "tradier_is_pap": 17, "trading_fe": 24, "trading_fee_1": 25, "trading_fee_2": 25, "trading_hours_end": 21, "trading_hours_start": 21, "tradingcalendar": [32, 106, 117], "tradingfe": [1, 24, 25, 26], "trail": [22, 146, 152, 157, 163], "trail_perc": [22, 146, 157], "trail_pric": [22, 146, 157], "trailing_stop": [22, 146, 157], "trailing_stop_pric": [152, 163], "transact": [13, 22, 167, 182], "trashcan": 17, "tree": 26, "triangl": [63, 67], "trigger": [22, 146, 157], "trim": 21, "trim_data": 21, "troubleshoot": [], "trough": 7, "true": [1, 5, 12, 13, 16, 17, 22, 24, 25, 26, 32, 43, 44, 46, 72, 73, 74, 105, 116, 151, 162, 168, 170, 183, 185], "try": [25, 146, 157], "tsx": [32, 106, 117], "tsxv": [32, 106, 117], "tupl": [22, 73], "tutori": [15, 26], "tw": [14, 17, 20], "twice": 14, "two": [2, 3, 11, 19, 22, 25, 26, 73, 145, 156], "twsapi": [], "type": [0, 1, 2, 5, 12, 14, 18, 19, 20, 21, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 64, 65, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 129, 130, 131, 132, 133, 134, 135, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194], "typic": [17, 22, 165], "tz_local": 21, "u": [6, 7, 8, 13, 14, 21, 26, 175, 190], "u17369206": [14, 17], "ultra": 14, "under": [13, 14, 17, 25], "underli": [19, 21, 44, 128, 131, 136, 140], "underlying_asset": 19, "underlying_pric": [44, 128, 136], "understand": [2, 4, 25], "unexpect": [], "unexpectedli": [], "uniqu": 3, "unit": [17, 44, 146, 157, 178, 193], "unix": 12, "unless": 5, "unlik": 30, "unnecessari": 17, "unprocess": 22, "unspent_monei": 26, "until": [6, 8, 12, 20, 102, 103, 113, 114, 146, 157], "up": [1, 2, 5, 6, 11, 14, 15, 17, 19, 25, 26, 44, 63, 67, 196], "updat": [20, 22, 26, 36, 38, 108, 119, 146, 157, 167, 182], "update_date_index": 44, "update_paramet": [26, 38, 47], "update_raw": 22, "update_trail_stop_pric": 22, "upgrad": [2, 5, 10, 25, 26], "upload": 14, "upon": [], "upper": 14, "url": [14, 17], "us": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 55, 61, 62, 63, 66, 67, 70, 72, 73, 76, 82, 101, 105, 107, 116, 118, 127, 128, 129, 130, 131, 135, 136, 137, 138, 140, 142, 146, 157, 165, 166, 167, 177, 178, 180, 182, 192, 193, 195, 196], "us_equ": 12, "us_futur": [32, 106, 117], "usag": [17, 26], "usd": [1, 19, 21, 72, 73, 74, 146, 152, 153, 157, 163, 164], "usdc": 1, "usdt": [1, 19, 49, 51, 55, 57, 72, 74, 146, 157], "user": [0, 2, 5, 10, 14, 17, 21, 25, 27, 41, 45, 46, 144, 146, 155, 157, 196], "user123": [14, 17], "userdict": 19, "usernam": [2, 8, 11, 17, 26], "usual": [1, 47, 178, 193], "utc": 21, "util": [], "utm_campaign": 6, "utm_sourc": 6, "utp": 14, "v": [2, 7, 19], "v2": 7, "va12204793": 17, "va22904793": 16, "valid": [2, 19, 21, 22, 44, 125, 126, 133, 134, 146, 157], "valu": [1, 3, 5, 9, 12, 13, 14, 17, 19, 20, 21, 23, 28, 43, 45, 46, 48, 49, 51, 55, 57, 61, 62, 63, 66, 67, 72, 73, 128, 136, 153, 164, 175, 190, 196], "valuat": 1, "value_typ": 23, "var": 26, "var1": 196, "var2": 196, "variabl": [14, 26, 31, 42, 166], "variant": 22, "variat": 7, "varieti": 7, "variou": [2, 6, 7, 8, 14], "vars_backup": 196, "vcpu": 17, "ve": [2, 13, 16, 26], "vector": 26, "vega": [128, 136], "verbiag": [], "veri": [10, 17, 26], "verifi": 17, "versatil": [6, 8, 13, 17], "version": [2, 5, 7, 10, 17, 25, 26], "via": 14, "view": [4, 17], "visit": [7, 16, 17, 25, 26], "visual": [2, 3, 7, 25], "visualstudio": 2, "vital": 2, "vm": 17, "volatil": [7, 22, 128, 136], "volum": [5, 20, 21, 78, 81], "voyz": [], "vwap": [78, 81], "wa": [2, 12, 13, 27, 30, 33, 34, 41, 43, 72, 167, 182], "wait": [17, 22, 39, 109, 110, 111, 112, 120, 121, 122, 123], "wait_for_order_execut": [26, 47], "wait_for_order_registr": [26, 47], "wait_for_orders_execut": [26, 47], "wait_for_orders_registr": [26, 47], "wait_to_be_clos": 22, "wait_to_be_regist": 22, "walk": [2, 17], "want": [1, 2, 5, 8, 10, 12, 13, 16, 17, 25, 26, 41, 44, 62, 66], "was_transmit": 22, "we": [5, 6, 7, 8, 10, 11, 13, 17, 25, 26, 28, 47, 72, 146, 157], "weak": 2, "wealth": 26, "web": [25, 46], "webhook": 17, "websit": [2, 7, 10, 13, 14, 16, 17], "week": [72, 73], "weight": 22, "welcom": 25, "well": 26, "were": [9, 26, 38], "what": [14, 26, 47, 82, 177, 192], "whatev": 13, "when": [0, 1, 2, 5, 6, 8, 13, 14, 17, 19, 20, 22, 25, 26, 27, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 62, 63, 66, 67, 82, 146, 157, 167, 172, 182, 187, 196], "whenev": [167, 182], "where": [22, 25, 42, 146, 157], "whether": [1, 17, 22, 44, 46, 72, 82, 128, 136, 146, 157], "which": [2, 6, 7, 8, 9, 13, 14, 17, 20, 21, 22, 32, 41, 49, 51, 55, 57, 74, 75, 76, 77, 128, 130, 136, 138, 178, 193], "while": [14, 17], "white": [62, 63, 66, 67], "who": [5, 17, 52, 58, 147, 158], "whose": [44, 126, 134], "why": [2, 26], "wide": [13, 17, 63, 67], "width": [62, 66, 72, 73], "wiki": [], "window": 26, "wish": [5, 26], "within": [1, 17, 18, 107, 118, 143, 154], "without": [14, 17, 25, 131, 140], "won": [6, 8], "word": [22, 167, 182], "work": [0, 2, 5, 11, 15, 17, 25, 26, 72, 73, 77, 166], "worker": 17, "workstat": 15, "world": [14, 17], "would": [1, 2, 5, 16, 19, 25, 26, 44, 51, 57, 146, 157, 178, 193], "wrapper": 21, "write": [1, 2, 6, 8], "www": [8, 16], "x": [63, 67], "xam": [32, 106, 117], "xasx": [32, 106, 117], "xbkk": [32, 106, 117], "xbog": [32, 106, 117], "xbom": [32, 106, 117], "xbru": [32, 106, 117], "xbud": [32, 106, 117], "xbue": [32, 106, 117], "xcbf": [32, 106, 117], "xcse": [32, 106, 117], "xdub": [32, 106, 117], "xetr": [32, 106, 117], "xfra": [32, 106, 117], "xhel": [32, 106, 117], "xhkg": [32, 106, 117], "xice": [32, 106, 117], "xidx": [32, 106, 117], "xist": [32, 106, 117], "xjse": [32, 106, 117], "xkar": [32, 106, 117], "xkl": [32, 106, 117], "xkrx": [32, 106, 117], "xli": [32, 106, 117], "xlim": [32, 106, 117], "xlon": [32, 106, 117], "xmad": [32, 106, 117], "xmex": [32, 106, 117], "xmil": [32, 106, 117], "xmo": [32, 106, 117], "xny": [32, 106, 117], "xnze": [32, 106, 117], "xosl": [32, 106, 117], "xpar": [32, 106, 117], "xph": [32, 106, 117], "xpra": [32, 106, 117], "xse": [32, 106, 117], "xsgo": [32, 106, 117], "xshg": [32, 106, 117], "xsto": [32, 106, 117], "xswx": [32, 106, 117], "xtae": [32, 106, 117], "xtai": [32, 106, 117], "xtk": [32, 106, 117], "xtse": [32, 106, 117], "xwar": [32, 106, 117], "xwbo": [32, 106, 117], "xyz1234567890abcdef": 17, "y": [63, 67], "yahoo": [0, 1, 2, 5, 20, 26, 72, 73, 106, 117], "yahoo_data": 44, "yahoodata": 44, "yahoodatabacktest": [1, 10, 25, 26, 32], "yappi": 25, "year": [2, 6, 8], "yearli": 7, "yellow": [62, 63, 66, 67], "yet": [22, 46], "yf": [5, 44], "yfinanc": [5, 44], "yield": 20, "york": [5, 17], "you": [0, 1, 2, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 17, 20, 22, 25, 26, 29, 32, 44, 47, 48, 49, 51, 55, 57, 61, 62, 66, 70, 72, 73, 82, 101, 124, 142, 146, 157, 165, 166, 178, 193], "your": [2, 5, 6, 7, 8, 10, 11, 12, 14, 15, 18, 20, 22, 40, 41, 47, 48, 49, 51, 55, 57, 61, 70, 82, 101, 146, 157, 165, 166, 178, 193, 196], "your_access_token": 16, "your_account_numb": 16, "your_alpaca_api_kei": [25, 26], "your_alpaca_secret": [25, 26], "your_api_kei": [12, 13], "your_api_secret": 12, "your_passphras": 13, "your_polygon_api_kei": [2, 6], "your_secret": 13, "your_secret_kei": 13, "yyyi": [76, 130, 138], "yyyymm": 19, "yyyymmdd": [19, 132, 141], "zero": [167, 182], "zone": [5, 20]}, "titles": ["Backtesting", "Backtesting Function", "How To Backtest", "Indicators Files", "Logs CSV", "Pandas (CSV or other data)", "Polygon.io Backtesting", "Tearsheet HTML", "ThetaData Backtesting", "Trades Files", "Yahoo", "Brokers", "Alpaca", "Crypto Brokers (Using CCXT)", "Interactive Brokers", "Interactive Brokers Legacy", "Tradier", "Deployment Guide", "Entities", "Asset", "Bars", "Data", "Order", "Position", "Trading Fee", "What is Lumibot?", "Lumibot: Backtesting and Algorithmic Trading Library", "Lifecycle Methods", "def after_market_closes", "def before_market_closes", "def before_market_opens", "def before_starting_trading", "def initialize", "def on_abrupt_closing", "def on_bot_crash", "def on_canceled_order", "def on_filled_order", "def on_new_order", "def on_parameters_updated", "def on_partially_filled_order", "def on_trading_iteration", "Summary", "def trace_stats", "Backtesting", "Data Sources", "Strategies", "Traders", "Strategy Methods", "Account Management", "self.get_cash", "self.get_parameters", "self.get_portfolio_value", "self.get_position", "self.get_positions", "self.set_parameters", "self.get_cash", "self.get_parameters", "self.get_portfolio_value", "self.get_position", "self.get_positions", "self.set_parameters", "Chart Functions", "self.add_line", "self.add_marker", "self.get_lines_df", "self.get_markers_df", "self.add_line", "self.add_marker", "self.get_lines_df", "self.get_markers_df", "Data", "self.cancel_realtime_bars", "self.get_historical_prices", "self.get_historical_prices_for_assets", "self.get_last_price", "self.get_last_prices", "self.get_next_trading_day", "self.get_quote", "self.get_realtime_bars", "self.get_yesterday_dividend", "self.get_yesterday_dividends", "self.start_realtime_bars", "DateTime", "self.get_datetime", "self.get_datetime_range", "self.get_last_day", "self.get_last_minute", "self.get_round_day", "self.get_round_minute", "self.get_timestamp", "self.localize_datetime", "self.to_default_timezone", "self.get_datetime", "self.get_datetime_range", "self.get_last_day", "self.get_last_minute", "self.get_round_day", "self.get_round_minute", "self.get_timestamp", "self.localize_datetime", "self.to_default_timezone", "Miscellaneous", "self.await_market_to_close", "self.await_market_to_open", "self.get_parameters", "self.log_message", "self.set_market", "self.sleep", "self.update_parameters", "self.wait_for_order_execution", "self.wait_for_order_registration", "self.wait_for_orders_execution", "self.wait_for_orders_registration", "self.await_market_to_close", "self.await_market_to_open", "self.get_parameters", "self.log_message", "self.set_market", "self.sleep", "self.update_parameters", "self.wait_for_order_execution", "self.wait_for_order_registration", "self.wait_for_orders_execution", "self.wait_for_orders_registration", "Options", "self.get_chain", "self.get_chains", "self.get_expiration", "self.get_greeks", "self.get_multiplier", "self.get_next_trading_day", "self.get_strikes", "self.options_expiry_to_datetime_date", "self.get_chain", "self.get_chains", "self.get_expiration", "self.get_greeks", "self.get_multiplier", "self.get_next_trading_day", "self.get_option_expiration_after_date", "self.get_strikes", "self.options_expiry_to_datetime_date", "Order Management", "self.cancel_open_orders", "self.cancel_order", "self.cancel_orders", "self.create_order", "self.get_asset_potential_total", "self.get_order", "self.get_orders", "self.get_selling_order", "self.sell_all", "self.submit_order", "self.submit_orders", "self.cancel_open_orders", "self.cancel_order", "self.cancel_orders", "self.create_order", "self.get_asset_potential_total", "self.get_order", "self.get_orders", "self.get_selling_order", "self.sell_all", "self.submit_order", "self.submit_orders", "Parameters", "Strategy Properties", "self.cash", "self.first_iteration", "self.initial_budget", "self.is_backtesting", "self.last_on_trading_iteration_datetime", "self.minutes_before_closing", "self.minutes_before_opening", "self.name", "self.portfolio_value", "self.pytz", "self.quote_asset", "self.sleeptime", "self.timezone", "self.unspent_money", "self.pytz", "self.cash", "self.first_iteration", "self.initial_budget", "self.is_backtesting", "self.last_on_trading_iteration_datetime", "self.minutes_before_closing", "self.minutes_before_opening", "self.name", "self.portfolio_value", "self.pytz", "self.quote_asset", "self.sleeptime", "self.timezone", "self.unspent_money", "Variable Backup & Restore"], "titleterms": {"1": [25, 26], "2": [25, 26], "2fa": 14, "3": [25, 26], "4": 25, "5": 25, "6": 25, "7": 25, "8": 25, "In": 5, "It": 196, "To": 2, "With": [22, 25], "account": [14, 25, 48], "ad": 25, "add_lin": [62, 66], "add_mark": [63, 67], "addit": 26, "advanc": 22, "after_market_clos": 28, "algorithm": 26, "all": 26, "alpaca": [12, 17, 25], "an": 25, "api": 25, "ask": [], "asset": 19, "authent": 14, "autom": [], "await_market_to_clos": [102, 113], "await_market_to_open": [103, 114], "backtest": [0, 1, 2, 6, 8, 25, 26, 43], "backup": 196, "bar": 20, "before_market_clos": 29, "before_market_open": 30, "before_starting_trad": 31, "benefit": 196, "bot": 26, "broker": [11, 13, 14, 15, 17, 43], "cancel_open_ord": [143, 154], "cancel_ord": [144, 145, 155, 156], "cancel_realtime_bar": 71, "cash": [167, 182], "ccxt": 13, "chart": 61, "choos": [2, 17], "class": 25, "coinbas": 17, "conclus": [2, 17], "configur": [13, 14, 16, 17, 25, 196], "content": [0, 11, 18, 26, 27, 44, 47], "creat": [25, 26], "create_ord": [146, 157], "crypto": 13, "csv": [4, 5], "data": [2, 5, 14, 21, 43, 44, 70], "databas": 196, "datafram": 5, "datetim": 82, "def": [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42], "definit": [], "deploi": 17, "deploy": 17, "detail": [], "document": [12, 19, 20, 22, 45], "entiti": 18, "environ": 17, "exampl": [5, 13, 14, 16, 17], "extra": 26, "factor": 14, "fee": [24, 25], "file": [0, 2, 3, 9], "final": 17, "first_iter": [168, 183], "follow": 25, "frequent": [], "from": [0, 2], "full": [13, 16], "function": [1, 61], "gener": [0, 2, 17], "get": [16, 25, 26], "get_asset_potential_tot": [147, 158], "get_cash": [49, 55], "get_chain": [125, 126, 133, 134], "get_datetim": [83, 92], "get_datetime_rang": [84, 93], "get_expir": [127, 135], "get_greek": [128, 136], "get_historical_pric": 72, "get_historical_prices_for_asset": 73, "get_last_dai": [85, 94], "get_last_minut": [86, 95], "get_last_pric": [74, 75], "get_lines_df": [64, 68], "get_markers_df": [65, 69], "get_multipli": [129, 137], "get_next_trading_dai": [76, 130, 138], "get_option_expiration_after_d": 139, "get_ord": [148, 149, 159, 160], "get_paramet": [50, 56, 104, 115], "get_portfolio_valu": [51, 57], "get_posit": [52, 53, 58, 59], "get_quot": 77, "get_realtime_bar": 78, "get_round_dai": [87, 96], "get_round_minut": [88, 97], "get_selling_ord": [150, 161], "get_strik": [131, 140], "get_timestamp": [89, 98], "get_yesterday_dividend": [79, 80], "guid": [17, 196], "help": 26, "how": [2, 196], "html": [2, 7], "i": 25, "import": 25, "improv": 25, "indic": [2, 3, 26], "initi": 32, "initial_budget": [169, 184], "instal": [2, 25, 26], "instanti": 25, "interact": [14, 15, 17], "io": [2, 6], "is_backtest": [170, 185], "kei": 25, "kraken": 17, "last_on_trading_iteration_datetim": [171, 186], "leg": 22, "legaci": [15, 17], "librari": 26, "lifecycl": 27, "live": 26, "load": [], "localize_datetim": [90, 99], "log": 4, "log_messag": [105, 116], "lumibot": [2, 25, 26], "lumiwealth": 25, "manag": [48, 142], "market": 14, "method": [27, 47], "minutes_before_clos": [172, 187], "minutes_before_open": [173, 188], "miscellan": 101, "modul": [25, 44], "name": [174, 189], "need": 26, "note": [], "on_abrupt_clos": 33, "on_bot_crash": 34, "on_canceled_ord": 35, "on_filled_ord": 36, "on_new_ord": 37, "on_parameters_upd": 38, "on_partially_filled_ord": 39, "on_trading_iter": 40, "option": [25, 124], "options_expiry_to_datetime_d": [132, 141], "order": [22, 142], "other": 5, "packag": 25, "panda": [5, 44], "paper": [14, 25], "paramet": 165, "perform": 25, "platform": 17, "polygon": [2, 6], "portfolio_valu": [175, 190], "posit": 23, "profil": 25, "properti": 166, "pytz": [176, 181, 191], "question": [], "quote_asset": [177, 192], "refer": [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42], "render": 17, "replit": 17, "resourc": 26, "restor": 196, "run": [2, 13, 16, 25], "secondari": 14, "secret": 17, "self": [49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196], "sell_al": [151, 162], "set": 13, "set_market": [106, 117], "set_paramet": [54, 60], "setup": 14, "sleep": [107, 118], "sleeptim": [178, 193], "sourc": [2, 43, 44], "start": [16, 25, 26], "start_realtime_bar": 81, "step": [17, 25, 26], "storag": 196, "strategi": [13, 14, 16, 17, 25, 26, 45, 47, 166], "structur": 196, "submit_ord": [152, 153, 163, 164], "subscript": 14, "summari": [5, 41], "tabl": 26, "take": 26, "tearsheet": [2, 7], "thetadata": 8, "timezon": [179, 194], "to_default_timezon": [91, 100], "togeth": 26, "trace_stat": 42, "trade": [2, 9, 14, 24, 25, 26], "trader": [25, 46], "tradier": [16, 17], "troubleshoot": [], "two": 14, "type": 22, "unspent_monei": [180, 195], "update_paramet": [108, 119], "us": [13, 14], "usag": 196, "usernam": 14, "var": 196, "variabl": [17, 196], "wait_for_order_execut": [109, 120], "wait_for_order_registr": [110, 121], "wait_for_orders_execut": [111, 122], "wait_for_orders_registr": [112, 123], "what": 25, "why": [], "work": 196, "yahoo": [10, 44], "your": [13, 16, 17, 25, 26]}}) \ No newline at end of file diff --git a/docsrc/_build/doctrees/brokers.interactive_brokers.doctree b/docsrc/_build/doctrees/brokers.interactive_brokers.doctree index 0441c5591..d54aa5b1b 100644 Binary files a/docsrc/_build/doctrees/brokers.interactive_brokers.doctree and b/docsrc/_build/doctrees/brokers.interactive_brokers.doctree differ diff --git a/docsrc/_build/doctrees/environment.pickle b/docsrc/_build/doctrees/environment.pickle index 6029a0a98..bd36efbfa 100644 Binary files a/docsrc/_build/doctrees/environment.pickle and b/docsrc/_build/doctrees/environment.pickle differ diff --git a/docsrc/_build/html/_sources/brokers.interactive_brokers.rst.txt b/docsrc/_build/html/_sources/brokers.interactive_brokers.rst.txt index 2e098410f..b13605583 100644 --- a/docsrc/_build/html/_sources/brokers.interactive_brokers.rst.txt +++ b/docsrc/_build/html/_sources/brokers.interactive_brokers.rst.txt @@ -1,14 +1,14 @@ Interactive Brokers =================== -Interactive Brokers is a brokerage firm that operates in most countries around the world. This makes it a great choice for investing and trading if you don't have access to our other supported platforms. +Interactive Brokers is a brokerage firm that operates in most countries around the world. It's a great choice for investing and trading, especially if you don't have access to other supported platforms. -**Note:** If you do have access to other supported brokers, compare their fee structures to see which one is the best deal for you. +**Note:** If you have access to other supported brokers, compare their fee structures to see which one offers the best deal for you. Market Data Subscriptions ------------------------- -To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various market data subscriptions depending on the exchanges and types of data you need. Here are some common subscriptions: +To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various subscriptions depending on the exchanges and types of data you need. Here are some common options: - **US Securities Snapshot and Futures Value Bundle** - **US Equity and Options Add-On Streaming Bundle** @@ -18,83 +18,87 @@ To access real-time market data, you need to subscribe to the appropriate market .. note:: - Different strategies may require different market data subscriptions. For our top options-related strategies, the OPRA (US Options Exchanges) should suffice. + Different strategies may require different market data subscriptions. For top options-related strategies, the **OPRA (US Options Exchanges)** subscription should suffice. **To subscribe to market data:** +.. important:: + Market data subscriptions are login-specific. Ensure you're logged in with the same credentials you plan to use with Lumibot before proceeding. + 1. Log in to the `IBKR Client Portal `_. 2. Navigate to the **Settings** menu. -.. image:: images/ib-main.png - :alt: IB Main Menu - :align: center - :class: with-border + .. image:: images/ib-main.png + :alt: IB Main Menu + :align: center 3. Under **Account Settings**, find the **Market Data Subscriptions** section. -.. image:: images/ib-settings.png - :alt: IB Settings - :align: center - :class: with-border + .. image:: images/ib-settings.png + :alt: IB Settings + :align: center 4. Click **Configure** and select the desired market data packages. -.. image:: images/ib-market-data-subscriptions.png - :alt: IB Market Data Subscriptions - :align: center - :class: with-border + .. image:: images/ib-market-data-subscriptions.png + :alt: IB Market Data Subscriptions + :align: center -5. Find your desired subscription +5. Find your desired subscription. 6. Follow the prompts to complete the subscription process. -**Note:** Market data subscriptions may incur additional fees. Be sure to review the costs associated with each package before subscribing. +**Note:** Market data subscriptions may incur additional fees. Review the costs associated with each package before subscribing. -Using a Paper Trading Account ------------------------------ +Two-Factor Authentication (2FA) +------------------------------- -When using a paper trading account, you should log in with your paper trading username and password. This allows you to practice trading without risking real money. +Interactive Brokers requires two-factor authentication (2FA) for account security. When using Lumibot, you'll receive 2FA notifications through the IB Key mobile app, which require manual approval. This can interrupt automated trading operations. -**Steps to get your paper trading username and password:** +**Important:** Automated handling of 2FA is not currently supported in Lumibot. -1. **Log in** to the **IBKR Client Portal** using your primary (live) account credentials. -2. Navigate to the **Settings** menu in the upper right corner. -3. Under **Account Settings**, find the **Paper Trading Account** section. -4. Click on **Configure** or **Request Paper Trading Account**. -5. Follow the prompts to set up your paper trading account. - - You may need to agree to terms and conditions. -6. Once the setup is complete, you'll receive a separate **username** and **password** for your paper trading account. -7. Use these credentials when logging into the paper trading environment and configuring your API connection. +**Possible Solution: Create a Secondary Username** -**Note:** The paper trading account is separate from your live account. Ensure you're using the correct credentials for each environment to avoid any login conflicts. +To enable fully automated trading, you can create a secondary username for your account that doesn't require 2FA. This approach is secure and convenient: + +- The primary account maintains full 2FA security for website access. +- The secondary account, used only for API connections, can operate without 2FA. +- Both accounts have separate access controls you can configure. -Automating Two-Factor Authentication ------------------------------------- +.. note:: -Currently, automating two-factor authentication (2FA) is not supported. Lumibot will send you 2FA notifications through IBKey, and you will need to respond to them manually. + When using a secondary account without 2FA: -Using a Secondary Account -------------------------- + - You'll need separate market data subscriptions for each user. + - If trading with both primary and secondary users, you'll pay for market data twice. + - Enhance security by: + - Setting a complex password. + - Restricting IP addresses for TWS/IBGateway access. + - Limiting the account's permissions to only what's needed. + - Keeping API connection details secure. + +See the **Using a Secondary Username** section below for detailed setup instructions. + +Using a Secondary Username +-------------------------- -Interactive Brokers only allows a single login at a time for any given set of credentials. This means you can't use the IBKR website while the API connection is running. If you try, it will disconnect the API connection, causing a re-authentication loop. +Interactive Brokers allows only one login at a time for any given set of credentials. Attempting to use the IBKR website while the API connection is running will disconnect the API connection, causing a re-authentication loop. -An easy solution is to stop the API connection before using the website, but that can be tedious. A more convenient solution is to create a **secondary username** for your account and use that for the API connection. +An easy solution is to stop the API connection before using the website, but this can be tedious. A more convenient solution is to create a **secondary username** for your account and use that for the API connection. **Steps to create a secondary username:** -1. **Log in** to the **IBKR Client Portal** with your primary username. +1. Log in to the **IBKR Client Portal** with your primary username. 2. Click on the **Settings** menu in the upper right corner. -3. Scroll to the bottom-left of the page and find the **Users & Access Rights** link. - - You may need to scroll down to see it. +3. Scroll down and find the **Users & Access Rights** link. 4. Click the **plus sign (+)** button in the **Users** header to add a new user. 5. Fill out the username and password fields for the new user. 6. Click through the settings pages, adjusting notifications and permissions as needed. - - Feel free to disable unnecessary notifications to avoid duplicate emails. 7. At the end of the process, you'll receive an email with a **confirmation code**. **Activating your secondary username:** 1. Log out and log back in using the **new secondary username and password**. -2. Enter the **confirmation code** you received via email. +2. Enter the **confirmation code** received via email. - **Note:** The code expires quickly, so act promptly. 3. You may be prompted to **change the password** for the secondary user. @@ -107,7 +111,24 @@ An easy solution is to stop the API connection before using the website, but tha - You'll see an EULA and a signature block. - Type your **name** (not the new user's name) and click **Submit**. -After completing these steps, your secondary credentials will be ready to use with the API connection. In the future, use your **primary credentials** on the website and the **secondary credentials** for the API connection. +After completing these steps, your secondary credentials will be ready to use with the API connection. Use your **primary credentials** on the website and the **secondary credentials** for the API connection. + +Using a Paper Trading Account +----------------------------- + +When using a paper trading account, log in with your paper trading username and password. This allows you to practice trading without risking real money. + +**Steps to get your paper trading username and password:** + +1. Log in to the **IBKR Client Portal** using your primary (live) account credentials. +2. Navigate to the **Settings** menu in the upper right corner. +3. Under **Account Settings**, find the **Paper Trading Account** section. +4. Click on **Configure** or **Request Paper Trading Account**. +5. Follow the prompts to set up your paper trading account. +6. Once the setup is complete, you'll receive a separate **username** and **password** for your paper trading account. +7. Use these credentials when logging into the paper trading environment and configuring your API connection. + +**Note:** The paper trading account is separate from your live account. Ensure you're using the correct credentials for each environment to avoid any login conflicts. Strategy Setup -------------- @@ -121,16 +142,16 @@ Add these variables to a `.env` file in the same directory as your strategy: * - **Secret** - **Description** - **Example** - * - IB_USERNAME + * - `IB_USERNAME` - Your Interactive Brokers username. - `user123` - * - IB_PASSWORD + * - `IB_PASSWORD` - Your Interactive Brokers password. - `password123` - * - ACCOUNT_ID + * - `ACCOUNT_ID` - (Optional) An Interactive Brokers subaccount to trade on. - `U17369206` - * - IB_API_URL + * - `IB_API_URL` - (Optional) The URL of your self-hosted Interactive Brokers REST API. - `https://localhost:8000` @@ -139,12 +160,10 @@ Example Strategy .. code-block:: python - from lumibot.traders import Trader - # We will get your credentials from the .env file - from lumibot.strategies.examples import Strangle - - trader = Trader() + from lumibot.traders import Trader + from lumibot.strategies.examples import Strangle - strategy = Strangle() - trader.add_strategy(strategy) - trader.run_all() \ No newline at end of file + trader = Trader() + strategy = Strangle() + trader.add_strategy(strategy) + trader.run_all() diff --git a/docsrc/_build/html/brokers.html b/docsrc/_build/html/brokers.html index 983f4592f..ee2f8cbee 100644 --- a/docsrc/_build/html/brokers.html +++ b/docsrc/_build/html/brokers.html @@ -428,9 +428,9 @@

    Brokers

  • Interactive Brokers diff --git a/docsrc/_build/html/brokers.interactive_brokers.html b/docsrc/_build/html/brokers.interactive_brokers.html index 6361ba777..6d831c481 100644 --- a/docsrc/_build/html/brokers.interactive_brokers.html +++ b/docsrc/_build/html/brokers.interactive_brokers.html @@ -418,11 +418,11 @@
    Need Extra Help?

    Interactive Brokers

    -

    Interactive Brokers is a brokerage firm that operates in most countries around the world. This makes it a great choice for investing and trading if you don’t have access to our other supported platforms.

    -

    Note: If you do have access to other supported brokers, compare their fee structures to see which one is the best deal for you.

    +

    Interactive Brokers is a brokerage firm that operates in most countries around the world. It’s a great choice for investing and trading, especially if you don’t have access to other supported platforms.

    +

    Note: If you have access to other supported brokers, compare their fee structures to see which one offers the best deal for you.

    Market Data Subscriptions

    -

    To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various market data subscriptions depending on the exchanges and types of data you need. Here are some common subscriptions:

    +

    To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various subscriptions depending on the exchanges and types of data you need. Here are some common options:

    -
    -

    Using a Paper Trading Account

    -

    When using a paper trading account, you should log in with your paper trading username and password. This allows you to practice trading without risking real money.

    -

    Steps to get your paper trading username and password:

    -
      -
    1. Log in to the IBKR Client Portal using your primary (live) account credentials.

    2. -
    3. Navigate to the Settings menu in the upper right corner.

    4. -
    5. Under Account Settings, find the Paper Trading Account section.

    6. -
    7. Click on Configure or Request Paper Trading Account.

    8. -
    9. Follow the prompts to set up your paper trading account.

    10. -
    -
    -
      -
    • You may need to agree to terms and conditions.

    • +
      +

      Two-Factor Authentication (2FA)

      +

      Interactive Brokers requires two-factor authentication (2FA) for account security. When using Lumibot, you’ll receive 2FA notifications through the IB Key mobile app, which require manual approval. This can interrupt automated trading operations.

      +

      Important: Automated handling of 2FA is not currently supported in Lumibot.

      +

      Possible Solution: Create a Secondary Username

      +

      To enable fully automated trading, you can create a secondary username for your account that doesn’t require 2FA. This approach is secure and convenient:

      +
        +
      • The primary account maintains full 2FA security for website access.

      • +
      • The secondary account, used only for API connections, can operate without 2FA.

      • +
      • Both accounts have separate access controls you can configure.

      -
    -
      -
    1. Once the setup is complete, you’ll receive a separate username and password for your paper trading account.

    2. -
    3. Use these credentials when logging into the paper trading environment and configuring your API connection.

    4. -
    -

    Note: The paper trading account is separate from your live account. Ensure you’re using the correct credentials for each environment to avoid any login conflicts.

    -
    -
    -

    Automating Two-Factor Authentication

    -

    Currently, automating two-factor authentication (2FA) is not supported. Lumibot will send you 2FA notifications through IBKey, and you will need to respond to them manually.

    +
    +

    Note

    +

    When using a secondary account without 2FA:

    +
      +
    • You’ll need separate market data subscriptions for each user.

    • +
    • If trading with both primary and secondary users, you’ll pay for market data twice.

    • +
    • Enhance security by: +- Setting a complex password. +- Restricting IP addresses for TWS/IBGateway access. +- Limiting the account’s permissions to only what’s needed. +- Keeping API connection details secure.

    • +
    +
    +

    See the Using a Secondary Username section below for detailed setup instructions.

    -
    -

    Using a Secondary Account

    -

    Interactive Brokers only allows a single login at a time for any given set of credentials. This means you can’t use the IBKR website while the API connection is running. If you try, it will disconnect the API connection, causing a re-authentication loop.

    -

    An easy solution is to stop the API connection before using the website, but that can be tedious. A more convenient solution is to create a secondary username for your account and use that for the API connection.

    +
    +

    Using a Secondary Username

    +

    Interactive Brokers allows only one login at a time for any given set of credentials. Attempting to use the IBKR website while the API connection is running will disconnect the API connection, causing a re-authentication loop.

    +

    An easy solution is to stop the API connection before using the website, but this can be tedious. A more convenient solution is to create a secondary username for your account and use that for the API connection.

    Steps to create a secondary username:

      -
    1. Log in to the IBKR Client Portal with your primary username.

    2. +
    3. Log in to the IBKR Client Portal with your primary username.

    4. Click on the Settings menu in the upper right corner.

    5. -
    6. Scroll to the bottom-left of the page and find the Users & Access Rights link.

    7. -
    -
    -
      -
    • You may need to scroll down to see it.

    • -
    -
    -
      +
    1. Scroll down and find the Users & Access Rights link.

    2. Click the plus sign (+) button in the Users header to add a new user.

    3. Fill out the username and password fields for the new user.

    4. Click through the settings pages, adjusting notifications and permissions as needed.

    5. -
    -
    -
      -
    • Feel free to disable unnecessary notifications to avoid duplicate emails.

    • -
    -
    -
    1. At the end of the process, you’ll receive an email with a confirmation code.

    Activating your secondary username:

    1. Log out and log back in using the new secondary username and password.

    2. -
    3. Enter the confirmation code you received via email.

    4. +
    5. Enter the confirmation code received via email.

      @@ -530,7 +526,22 @@

      Using a Secondary Account +

      Using a Paper Trading Account

      +

      When using a paper trading account, log in with your paper trading username and password. This allows you to practice trading without risking real money.

      +

      Steps to get your paper trading username and password:

      +
        +
      1. Log in to the IBKR Client Portal using your primary (live) account credentials.

      2. +
      3. Navigate to the Settings menu in the upper right corner.

      4. +
      5. Under Account Settings, find the Paper Trading Account section.

      6. +
      7. Click on Configure or Request Paper Trading Account.

      8. +
      9. Follow the prompts to set up your paper trading account.

      10. +
      11. Once the setup is complete, you’ll receive a separate username and password for your paper trading account.

      12. +
      13. Use these credentials when logging into the paper trading environment and configuring your API connection.

      14. +
      +

      Note: The paper trading account is separate from your live account. Ensure you’re using the correct credentials for each environment to avoid any login conflicts.

    Strategy Setup

    @@ -550,19 +561,19 @@

    Strategy Setup

    IB_USERNAME

    +

    IB_USERNAME

    Your Interactive Brokers username.

    user123

    -

    IB_PASSWORD

    +

    IB_PASSWORD

    Your Interactive Brokers password.

    password123

    -

    ACCOUNT_ID

    +

    ACCOUNT_ID

    (Optional) An Interactive Brokers subaccount to trade on.

    U17369206

    -

    IB_API_URL

    +

    IB_API_URL

    (Optional) The URL of your self-hosted Interactive Brokers REST API.

    https://localhost:8000

    @@ -573,11 +584,9 @@

    Strategy Setup

    Example Strategy

    from lumibot.traders import Trader
    -# We will get your credentials from the .env file
     from lumibot.strategies.examples import Strangle
     
     trader = Trader()
    -
     strategy = Strangle()
     trader.add_strategy(strategy)
     trader.run_all()
    @@ -643,9 +652,9 @@ 

    Example StrategyInteractive Brokers diff --git a/docsrc/_build/html/index.html b/docsrc/_build/html/index.html index dd9d46bd2..63a7de16d 100644 --- a/docsrc/_build/html/index.html +++ b/docsrc/_build/html/index.html @@ -1022,9 +1022,9 @@

    Table of ContentsInteractive Brokers diff --git a/docsrc/_build/html/searchindex.js b/docsrc/_build/html/searchindex.js index 5877cc04c..0487bd533 100644 --- a/docsrc/_build/html/searchindex.js +++ b/docsrc/_build/html/searchindex.js @@ -1 +1 @@ -Search.setIndex({"alltitles": {"Account Management": [[48, null]], "Adding Trading Fees": [[25, "adding-trading-fees"]], "Additional Resources": [[26, "additional-resources"]], "Advanced Order Types": [[22, "advanced-order-types"]], "All Together": [[26, "all-together"]], "Alpaca": [[12, null]], "Alpaca Configuration": [[17, "alpaca-configuration"], [17, "id22"]], "Asset": [[19, null]], "Automating Two-Factor Authentication": [[14, "automating-two-factor-authentication"]], "Backtesting": [[0, null], [43, null]], "Backtesting Broker": [[43, "module-lumibot.backtesting.backtesting_broker"]], "Backtesting Function": [[1, null]], "Bars": [[20, null]], "Benefits of self.vars": [[196, "benefits-of-self-vars"]], "Broker Configuration": [[17, "broker-configuration"]], "Brokers": [[11, null]], "Chart Functions": [[61, null]], "Choosing Your Deployment Platform": [[17, "id1"]], "Choosing a Data Source": [[2, "choosing-a-data-source"]], "Coinbase Configuration": [[17, "coinbase-configuration"], [17, "id23"]], "Conclusion": [[2, "conclusion"], [17, "conclusion"]], "Configuration": [[16, "configuration"]], "Configuration Settings": [[13, "configuration-settings"]], "Contents:": [[0, null], [11, null], [18, null], [27, null], [47, null]], "Crypto Brokers (Using CCXT)": [[13, null]], "Data": [[21, null], [70, null]], "Data Source": [[44, "module-lumibot.data_sources.data_source"]], "Data Source Backtesting": [[43, "module-lumibot.data_sources.data_source_backtesting"]], "Data Sources": [[44, null]], "Database Configuration": [[196, "database-configuration"]], "Database Storage Structure": [[196, "database-storage-structure"]], "DateTime": [[82, null]], "Deploying to Render": [[17, "id2"]], "Deploying to Replit": [[17, "id3"]], "Deployment Guide": [[17, null]], "Documentation": [[12, "module-lumibot.brokers.alpaca"], [19, "module-entities.asset"], [20, "module-entities.bars"], [22, "module-entities.order"], [45, "module-lumibot.strategies.strategy.Strategy"]], "Entities": [[18, null]], "Example Dataframe": [[5, "id1"]], "Example Strategy": [[14, "example-strategy"]], "Example Strategy for Deployment": [[17, "example-strategy-for-deployment"]], "Files Generated from Backtesting": [[0, "files-generated-from-backtesting"], [2, "files-generated-from-backtesting"]], "Final Steps": [[17, "final-steps"]], "Full Example Strategy": [[13, "full-example-strategy"], [16, "full-example-strategy"]], "General Environment Variables": [[17, "general-environment-variables"], [17, "id27"]], "Getting Started": [[16, "getting-started"], [26, "getting-started"]], "Getting Started With Lumibot": [[25, "getting-started-with-lumibot"]], "How It Works": [[196, "how-it-works"]], "How To Backtest": [[2, null]], "In Summary": [[5, "in-summary"]], "Indicators Files": [[2, "indicators-files"], [3, null]], "Indices and tables": [[26, "indices-and-tables"]], "Installing LumiBot": [[2, "installing-lumibot"]], "Interactive Brokers": [[14, null]], "Interactive Brokers Configuration": [[14, "id1"], [17, "interactive-brokers-configuration"], [17, "id25"]], "Interactive Brokers Legacy": [[15, null]], "Interactive Brokers-Legacy Configuration": [[17, "interactive-brokers-legacy-configuration"], [17, "id26"]], "Kraken Configuration": [[17, "kraken-configuration"], [17, "id24"]], "Lifecycle Methods": [[27, null]], "Logs CSV": [[4, null]], "Lumibot: Backtesting and Algorithmic Trading Library": [[26, null]], "Lumiwealth": [[25, "id1"]], "Market Data Subscriptions": [[14, "market-data-subscriptions"]], "Miscellaneous": [[101, null]], "Module contents": [[44, "module-lumibot.data_sources"]], "Need Extra Help?": [[26, "need-extra-help"]], "Options": [[124, null]], "Order": [[22, null]], "Order Management": [[142, null]], "Order With Legs": [[22, "order-with-legs"]], "Pandas": [[44, "module-lumibot.data_sources.pandas_data"]], "Pandas (CSV or other data)": [[5, null]], "Parameters": [[165, null]], "Polygon.io Backtesting": [[6, null]], "Position": [[23, null]], "Profiling to Improve Performance": [[25, "profiling-to-improve-performance"]], "Reference": [[28, "reference"], [29, "reference"], [30, "reference"], [31, "reference"], [32, "reference"], [33, "reference"], [34, "reference"], [35, "reference"], [36, "reference"], [37, "reference"], [38, "reference"], [39, "reference"], [40, "reference"], [42, "reference"]], "Running Your Strategy": [[13, "running-your-strategy"], [16, "running-your-strategy"]], "Running a Backtest with Polygon.io": [[2, "running-a-backtest-with-polygon-io"]], "Secrets Configuration": [[17, "secrets-configuration"]], "Step 1: Install Lumibot": [[26, "step-1-install-lumibot"]], "Step 1: Install the Package": [[25, "step-1-install-the-package"]], "Step 2: Create a Strategy for Backtesting": [[26, "step-2-create-a-strategy-for-backtesting"]], "Step 2: Import the Following Modules": [[25, "step-2-import-the-following-modules"]], "Step 3: Create an Alpaca Paper Trading Account": [[25, "step-3-create-an-alpaca-paper-trading-account"]], "Step 3: Take Your Bot Live": [[26, "step-3-take-your-bot-live"]], "Step 4: Configure Your API Keys": [[25, "step-4-configure-your-api-keys"]], "Step 5: Create a Strategy Class": [[25, "step-5-create-a-strategy-class"]], "Step 6: Instantiate the Trader, Alpaca, and Strategy Classes": [[25, "step-6-instantiate-the-trader-alpaca-and-strategy-classes"]], "Step 7: Backtest the Strategy (Optional)": [[25, "step-7-backtest-the-strategy-optional"]], "Step 8: Run the Strategy": [[25, "step-8-run-the-strategy"]], "Strategies": [[45, null]], "Strategy Methods": [[47, null]], "Strategy Properties": [[166, null]], "Strategy Setup": [[14, "strategy-setup"]], "Summary": [[41, null]], "Table of Contents": [[26, "table-of-contents"]], "Tearsheet HTML": [[2, "tearsheet-html"], [7, null]], "ThetaData Backtesting": [[8, null]], "Trader": [[46, "module-lumibot.traders.trader"]], "Traders": [[46, null]], "Trades Files": [[2, "trades-files"], [9, null]], "Tradier": [[16, null]], "Tradier Configuration": [[17, "tradier-configuration"], [17, "id21"]], "Trading Fee": [[24, null]], "Usage Guide": [[196, "usage-guide"]], "Using a Paper Trading Account": [[14, "using-a-paper-trading-account"]], "Using a Secondary Account": [[14, "using-a-secondary-account"]], "Variable Backup & Restore": [[196, null]], "What is Lumibot?": [[25, null]], "Yahoo": [[10, null], [44, "module-lumibot.data_sources.yahoo_data"]], "def after_market_closes": [[28, null]], "def before_market_closes": [[29, null]], "def before_market_opens": [[30, null]], "def before_starting_trading": [[31, null]], "def initialize": [[32, null]], "def on_abrupt_closing": [[33, null]], "def on_bot_crash": [[34, null]], "def on_canceled_order": [[35, null]], "def on_filled_order": [[36, null]], "def on_new_order": [[37, null]], "def on_parameters_updated": [[38, null]], "def on_partially_filled_order": [[39, null]], "def on_trading_iteration": [[40, null]], "def trace_stats": [[42, null]], "self.add_line": [[62, null], [66, null]], "self.add_marker": [[63, null], [67, null]], "self.await_market_to_close": [[102, null], [113, null]], "self.await_market_to_open": [[103, null], [114, null]], "self.cancel_open_orders": [[143, null], [154, null]], "self.cancel_order": [[144, null], [155, null]], "self.cancel_orders": [[145, null], [156, null]], "self.cancel_realtime_bars": [[71, null]], "self.cash": [[167, null], [182, null]], "self.create_order": [[146, null], [157, null]], "self.first_iteration": [[168, null], [183, null]], "self.get_asset_potential_total": [[147, null], [158, null]], "self.get_cash": [[49, null], [55, null]], "self.get_chain": [[125, null], [133, null]], "self.get_chains": [[126, null], [134, null]], "self.get_datetime": [[83, null], [92, null]], "self.get_datetime_range": [[84, null], [93, null]], "self.get_expiration": [[127, null], [135, null]], "self.get_greeks": [[128, null], [136, null]], "self.get_historical_prices": [[72, null]], "self.get_historical_prices_for_assets": [[73, null]], "self.get_last_day": [[85, null], [94, null]], "self.get_last_minute": [[86, null], [95, null]], "self.get_last_price": [[74, null]], "self.get_last_prices": [[75, null]], "self.get_lines_df": [[64, null], [68, null]], "self.get_markers_df": [[65, null], [69, null]], "self.get_multiplier": [[129, null], [137, null]], "self.get_next_trading_day": [[76, null], [130, null], [138, null]], "self.get_option_expiration_after_date": [[139, null]], "self.get_order": [[148, null], [159, null]], "self.get_orders": [[149, null], [160, null]], "self.get_parameters": [[50, null], [56, null], [104, null], [115, null]], "self.get_portfolio_value": [[51, null], [57, null]], "self.get_position": [[52, null], [58, null]], "self.get_positions": [[53, null], [59, null]], "self.get_quote": [[77, null]], "self.get_realtime_bars": [[78, null]], "self.get_round_day": [[87, null], [96, null]], "self.get_round_minute": [[88, null], [97, null]], "self.get_selling_order": [[150, null], [161, null]], "self.get_strikes": [[131, null], [140, null]], "self.get_timestamp": [[89, null], [98, null]], "self.get_yesterday_dividend": [[79, null]], "self.get_yesterday_dividends": [[80, null]], "self.initial_budget": [[169, null], [184, null]], "self.is_backtesting": [[170, null], [185, null]], "self.last_on_trading_iteration_datetime": [[171, null], [186, null]], "self.localize_datetime": [[90, null], [99, null]], "self.log_message": [[105, null], [116, null]], "self.minutes_before_closing": [[172, null], [187, null]], "self.minutes_before_opening": [[173, null], [188, null]], "self.name": [[174, null], [189, null]], "self.options_expiry_to_datetime_date": [[132, null], [141, null]], "self.portfolio_value": [[175, null], [190, null]], "self.pytz": [[176, null], [181, null], [191, null]], "self.quote_asset": [[177, null], [192, null]], "self.sell_all": [[151, null], [162, null]], "self.set_market": [[106, null], [117, null]], "self.set_parameters": [[54, null], [60, null]], "self.sleep": [[107, null], [118, null]], "self.sleeptime": [[178, null], [193, null]], "self.start_realtime_bars": [[81, null]], "self.submit_order": [[152, null], [163, null]], "self.submit_orders": [[153, null], [164, null]], "self.timezone": [[179, null], [194, null]], "self.to_default_timezone": [[91, null], [100, null]], "self.unspent_money": [[180, null], [195, null]], "self.update_parameters": [[108, null], [119, null]], "self.wait_for_order_execution": [[109, null], [120, null]], "self.wait_for_order_registration": [[110, null], [121, null]], "self.wait_for_orders_execution": [[111, null], [122, null]], "self.wait_for_orders_registration": [[112, null], [123, null]]}, "docnames": ["backtesting", "backtesting.backtesting_function", "backtesting.how_to_backtest", "backtesting.indicators_files", "backtesting.logs_csv", "backtesting.pandas", "backtesting.polygon", "backtesting.tearsheet_html", "backtesting.thetadata", "backtesting.trades_files", "backtesting.yahoo", "brokers", "brokers.alpaca", "brokers.ccxt", "brokers.interactive_brokers", "brokers.interactive_brokers_legacy", "brokers.tradier", "deployment", "entities", "entities.asset", "entities.bars", "entities.data", "entities.order", "entities.position", "entities.trading_fee", "getting_started", "index", "lifecycle_methods", "lifecycle_methods.after_market_closes", "lifecycle_methods.before_market_closes", "lifecycle_methods.before_market_opens", "lifecycle_methods.before_starting_trading", "lifecycle_methods.initialize", "lifecycle_methods.on_abrupt_closing", "lifecycle_methods.on_bot_crash", "lifecycle_methods.on_canceled_order", "lifecycle_methods.on_filled_order", "lifecycle_methods.on_new_order", "lifecycle_methods.on_parameters_updated", "lifecycle_methods.on_partially_filled_order", "lifecycle_methods.on_trading_iteration", "lifecycle_methods.summary", "lifecycle_methods.trace_stats", "lumibot.backtesting", "lumibot.data_sources", "lumibot.strategies", "lumibot.traders", "strategy_methods", "strategy_methods.account", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_cash", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_parameters", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_portfolio_value", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_position", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_positions", "strategy_methods.account/lumibot.strategies.strategy.Strategy.set_parameters", "strategy_methods.account/strategies.strategy.Strategy.get_cash", "strategy_methods.account/strategies.strategy.Strategy.get_parameters", "strategy_methods.account/strategies.strategy.Strategy.get_portfolio_value", "strategy_methods.account/strategies.strategy.Strategy.get_position", "strategy_methods.account/strategies.strategy.Strategy.get_positions", "strategy_methods.account/strategies.strategy.Strategy.set_parameters", "strategy_methods.chart", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_line", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_marker", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_lines_df", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_markers_df", "strategy_methods.chart/strategies.strategy.Strategy.add_line", "strategy_methods.chart/strategies.strategy.Strategy.add_marker", "strategy_methods.chart/strategies.strategy.Strategy.get_lines_df", "strategy_methods.chart/strategies.strategy.Strategy.get_markers_df", "strategy_methods.data", "strategy_methods.data/lumibot.strategies.strategy.Strategy.cancel_realtime_bars", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_price", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_prices", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_quote", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_realtime_bars", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividend", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividends", "strategy_methods.data/lumibot.strategies.strategy.Strategy.start_realtime_bars", "strategy_methods.datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime_range", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_day", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_minute", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_day", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_minute", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_timestamp", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.localize_datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.to_default_timezone", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime_range", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_day", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_minute", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_day", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_minute", "strategy_methods.datetime/strategies.strategy.Strategy.get_timestamp", "strategy_methods.datetime/strategies.strategy.Strategy.localize_datetime", "strategy_methods.datetime/strategies.strategy.Strategy.to_default_timezone", "strategy_methods.misc", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_close", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_open", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.get_parameters", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.log_message", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.set_market", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.sleep", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.update_parameters", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_execution", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_registration", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_execution", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_registration", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_close", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_open", "strategy_methods.misc/strategies.strategy.Strategy.get_parameters", "strategy_methods.misc/strategies.strategy.Strategy.log_message", "strategy_methods.misc/strategies.strategy.Strategy.set_market", "strategy_methods.misc/strategies.strategy.Strategy.sleep", "strategy_methods.misc/strategies.strategy.Strategy.update_parameters", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_execution", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_registration", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_execution", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_registration", "strategy_methods.options", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chain", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chains", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_expiration", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_greeks", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_multiplier", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_strikes", "strategy_methods.options/lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", "strategy_methods.options/strategies.strategy.Strategy.get_chain", "strategy_methods.options/strategies.strategy.Strategy.get_chains", "strategy_methods.options/strategies.strategy.Strategy.get_expiration", "strategy_methods.options/strategies.strategy.Strategy.get_greeks", "strategy_methods.options/strategies.strategy.Strategy.get_multiplier", "strategy_methods.options/strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.options/strategies.strategy.Strategy.get_option_expiration_after_date", "strategy_methods.options/strategies.strategy.Strategy.get_strikes", "strategy_methods.options/strategies.strategy.Strategy.options_expiry_to_datetime_date", "strategy_methods.orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_open_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.create_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_asset_potential_total", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_selling_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.sell_all", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_orders", "strategy_methods.orders/strategies.strategy.Strategy.cancel_open_orders", "strategy_methods.orders/strategies.strategy.Strategy.cancel_order", "strategy_methods.orders/strategies.strategy.Strategy.cancel_orders", "strategy_methods.orders/strategies.strategy.Strategy.create_order", "strategy_methods.orders/strategies.strategy.Strategy.get_asset_potential_total", "strategy_methods.orders/strategies.strategy.Strategy.get_order", "strategy_methods.orders/strategies.strategy.Strategy.get_orders", "strategy_methods.orders/strategies.strategy.Strategy.get_selling_order", "strategy_methods.orders/strategies.strategy.Strategy.sell_all", "strategy_methods.orders/strategies.strategy.Strategy.submit_order", "strategy_methods.orders/strategies.strategy.Strategy.submit_orders", "strategy_methods.parameters", "strategy_properties", "strategy_properties/lumibot.strategies.strategy.Strategy.cash", "strategy_properties/lumibot.strategies.strategy.Strategy.first_iteration", "strategy_properties/lumibot.strategies.strategy.Strategy.initial_budget", "strategy_properties/lumibot.strategies.strategy.Strategy.is_backtesting", "strategy_properties/lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_closing", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_opening", "strategy_properties/lumibot.strategies.strategy.Strategy.name", "strategy_properties/lumibot.strategies.strategy.Strategy.portfolio_value", "strategy_properties/lumibot.strategies.strategy.Strategy.pytz", "strategy_properties/lumibot.strategies.strategy.Strategy.quote_asset", "strategy_properties/lumibot.strategies.strategy.Strategy.sleeptime", "strategy_properties/lumibot.strategies.strategy.Strategy.timezone", "strategy_properties/lumibot.strategies.strategy.Strategy.unspent_money", "strategy_properties/lumibot.strategies.strategy.pytz", "strategy_properties/strategies.strategy.Strategy.cash", "strategy_properties/strategies.strategy.Strategy.first_iteration", "strategy_properties/strategies.strategy.Strategy.initial_budget", "strategy_properties/strategies.strategy.Strategy.is_backtesting", "strategy_properties/strategies.strategy.Strategy.last_on_trading_iteration_datetime", "strategy_properties/strategies.strategy.Strategy.minutes_before_closing", "strategy_properties/strategies.strategy.Strategy.minutes_before_opening", "strategy_properties/strategies.strategy.Strategy.name", "strategy_properties/strategies.strategy.Strategy.portfolio_value", "strategy_properties/strategies.strategy.Strategy.pytz", "strategy_properties/strategies.strategy.Strategy.quote_asset", "strategy_properties/strategies.strategy.Strategy.sleeptime", "strategy_properties/strategies.strategy.Strategy.timezone", "strategy_properties/strategies.strategy.Strategy.unspent_money", "vars"], "envversion": {"sphinx": 64, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2}, "filenames": ["backtesting.rst", "backtesting.backtesting_function.rst", "backtesting.how_to_backtest.rst", "backtesting.indicators_files.rst", "backtesting.logs_csv.rst", "backtesting.pandas.rst", "backtesting.polygon.rst", "backtesting.tearsheet_html.rst", "backtesting.thetadata.rst", "backtesting.trades_files.rst", "backtesting.yahoo.rst", "brokers.rst", "brokers.alpaca.rst", "brokers.ccxt.rst", "brokers.interactive_brokers.rst", "brokers.interactive_brokers_legacy.rst", "brokers.tradier.rst", "deployment.rst", "entities.rst", "entities.asset.rst", "entities.bars.rst", "entities.data.rst", "entities.order.rst", "entities.position.rst", "entities.trading_fee.rst", "getting_started.rst", "index.rst", "lifecycle_methods.rst", "lifecycle_methods.after_market_closes.rst", "lifecycle_methods.before_market_closes.rst", "lifecycle_methods.before_market_opens.rst", "lifecycle_methods.before_starting_trading.rst", "lifecycle_methods.initialize.rst", "lifecycle_methods.on_abrupt_closing.rst", "lifecycle_methods.on_bot_crash.rst", "lifecycle_methods.on_canceled_order.rst", "lifecycle_methods.on_filled_order.rst", "lifecycle_methods.on_new_order.rst", "lifecycle_methods.on_parameters_updated.rst", "lifecycle_methods.on_partially_filled_order.rst", "lifecycle_methods.on_trading_iteration.rst", "lifecycle_methods.summary.rst", "lifecycle_methods.trace_stats.rst", "lumibot.backtesting.rst", "lumibot.data_sources.rst", "lumibot.strategies.rst", "lumibot.traders.rst", "strategy_methods.rst", "strategy_methods.account.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_cash.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_portfolio_value.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_position.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_positions.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.set_parameters.rst", "strategy_methods.account/strategies.strategy.Strategy.get_cash.rst", "strategy_methods.account/strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.account/strategies.strategy.Strategy.get_portfolio_value.rst", "strategy_methods.account/strategies.strategy.Strategy.get_position.rst", "strategy_methods.account/strategies.strategy.Strategy.get_positions.rst", "strategy_methods.account/strategies.strategy.Strategy.set_parameters.rst", "strategy_methods.chart.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_line.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_marker.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_lines_df.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_markers_df.rst", "strategy_methods.chart/strategies.strategy.Strategy.add_line.rst", "strategy_methods.chart/strategies.strategy.Strategy.add_marker.rst", "strategy_methods.chart/strategies.strategy.Strategy.get_lines_df.rst", "strategy_methods.chart/strategies.strategy.Strategy.get_markers_df.rst", "strategy_methods.data.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.cancel_realtime_bars.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_price.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_prices.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_quote.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_realtime_bars.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividend.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividends.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.start_realtime_bars.rst", "strategy_methods.datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime_range.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_day.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_minute.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_day.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_minute.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_timestamp.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.localize_datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.to_default_timezone.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime_range.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_day.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_minute.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_day.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_minute.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_timestamp.rst", "strategy_methods.datetime/strategies.strategy.Strategy.localize_datetime.rst", "strategy_methods.datetime/strategies.strategy.Strategy.to_default_timezone.rst", "strategy_methods.misc.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_close.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_open.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.log_message.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.set_market.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.sleep.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.update_parameters.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_execution.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_registration.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_execution.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_registration.rst", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_close.rst", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_open.rst", "strategy_methods.misc/strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.misc/strategies.strategy.Strategy.log_message.rst", "strategy_methods.misc/strategies.strategy.Strategy.set_market.rst", "strategy_methods.misc/strategies.strategy.Strategy.sleep.rst", "strategy_methods.misc/strategies.strategy.Strategy.update_parameters.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_execution.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_registration.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_execution.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_registration.rst", "strategy_methods.options.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chain.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chains.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_expiration.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_greeks.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_multiplier.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_strikes.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date.rst", "strategy_methods.options/strategies.strategy.Strategy.get_chain.rst", "strategy_methods.options/strategies.strategy.Strategy.get_chains.rst", "strategy_methods.options/strategies.strategy.Strategy.get_expiration.rst", "strategy_methods.options/strategies.strategy.Strategy.get_greeks.rst", "strategy_methods.options/strategies.strategy.Strategy.get_multiplier.rst", "strategy_methods.options/strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.options/strategies.strategy.Strategy.get_option_expiration_after_date.rst", "strategy_methods.options/strategies.strategy.Strategy.get_strikes.rst", "strategy_methods.options/strategies.strategy.Strategy.options_expiry_to_datetime_date.rst", "strategy_methods.orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_open_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.create_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_asset_potential_total.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_selling_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.sell_all.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_open_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.create_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_asset_potential_total.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_selling_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.sell_all.rst", "strategy_methods.orders/strategies.strategy.Strategy.submit_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.submit_orders.rst", "strategy_methods.parameters.rst", "strategy_properties.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.cash.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.first_iteration.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.initial_budget.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.is_backtesting.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_closing.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_opening.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.name.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.portfolio_value.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.pytz.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.quote_asset.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.sleeptime.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.timezone.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.unspent_money.rst", "strategy_properties/lumibot.strategies.strategy.pytz.rst", "strategy_properties/strategies.strategy.Strategy.cash.rst", "strategy_properties/strategies.strategy.Strategy.first_iteration.rst", "strategy_properties/strategies.strategy.Strategy.initial_budget.rst", "strategy_properties/strategies.strategy.Strategy.is_backtesting.rst", "strategy_properties/strategies.strategy.Strategy.last_on_trading_iteration_datetime.rst", "strategy_properties/strategies.strategy.Strategy.minutes_before_closing.rst", "strategy_properties/strategies.strategy.Strategy.minutes_before_opening.rst", "strategy_properties/strategies.strategy.Strategy.name.rst", "strategy_properties/strategies.strategy.Strategy.portfolio_value.rst", "strategy_properties/strategies.strategy.Strategy.pytz.rst", "strategy_properties/strategies.strategy.Strategy.quote_asset.rst", "strategy_properties/strategies.strategy.Strategy.sleeptime.rst", "strategy_properties/strategies.strategy.Strategy.timezone.rst", "strategy_properties/strategies.strategy.Strategy.unspent_money.rst", "vars.rst"], "indexentries": {"_asset_types (entities.asset.asset attribute)": [[19, "entities.asset.Asset._asset_types", false]], "_get_bars_dict() (entities.data.data method)": [[21, "entities.data.Data._get_bars_dict", false]], "_right (entities.asset.asset attribute)": [[19, "entities.asset.Asset._right", false]], "add_child_order() (entities.order.order method)": [[22, "entities.order.Order.add_child_order", false]], "add_line() (in module lumibot.strategies.strategy.strategy)": [[62, "lumibot.strategies.strategy.Strategy.add_line", false], [66, "lumibot.strategies.strategy.Strategy.add_line", false]], "add_marker() (in module lumibot.strategies.strategy.strategy)": [[63, "lumibot.strategies.strategy.Strategy.add_marker", false], [67, "lumibot.strategies.strategy.Strategy.add_marker", false]], "add_order() (entities.position.position method)": [[23, "entities.position.Position.add_order", false]], "add_strategy() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.add_strategy", false]], "add_transaction() (entities.order.order method)": [[22, "entities.order.Order.add_transaction", false]], "after_market_closes() (in module lumibot.strategies.strategy.strategy)": [[28, "lumibot.strategies.strategy.Strategy.after_market_closes", false]], "aggregate_bars() (entities.bars.bars method)": [[20, "entities.bars.Bars.aggregate_bars", false], [20, "id0", false]], "alpaca (class in lumibot.brokers.alpaca)": [[12, "lumibot.brokers.alpaca.Alpaca", false]], "api (lumibot.brokers.alpaca.alpaca attribute)": [[12, "lumibot.brokers.alpaca.Alpaca.api", false]], "asset (class in entities.asset)": [[19, "entities.asset.Asset", false]], "asset (entities.data.data attribute)": [[21, "entities.data.Data.asset", false]], "asset (entities.position.position attribute)": [[23, "entities.position.Position.asset", false]], "asset.assettype (class in entities.asset)": [[19, "entities.asset.Asset.AssetType", false]], "asset.optionright (class in entities.asset)": [[19, "entities.asset.Asset.OptionRight", false]], "asset_type (entities.asset.asset attribute)": [[19, "entities.asset.Asset.asset_type", false], [19, "id0", false]], "asset_type_map (lumibot.brokers.alpaca.alpaca attribute)": [[12, "lumibot.brokers.alpaca.Alpaca.ASSET_TYPE_MAP", false]], "asset_type_must_be_one_of() (entities.asset.asset method)": [[19, "entities.asset.Asset.asset_type_must_be_one_of", false], [19, "id1", false]], "assetsmapping (class in entities.asset)": [[19, "entities.asset.AssetsMapping", false]], "available (entities.position.position attribute)": [[23, "entities.position.Position.available", false]], "available (entities.position.position property)": [[23, "id0", false]], "avg_fill_price (entities.order.order property)": [[22, "entities.order.Order.avg_fill_price", false]], "avg_fill_price (entities.position.position attribute)": [[23, "entities.position.Position.avg_fill_price", false]], "await_market_to_close() (in module lumibot.strategies.strategy.strategy)": [[102, "lumibot.strategies.strategy.Strategy.await_market_to_close", false], [113, "lumibot.strategies.strategy.Strategy.await_market_to_close", false]], "await_market_to_open() (in module lumibot.strategies.strategy.strategy)": [[103, "lumibot.strategies.strategy.Strategy.await_market_to_open", false], [114, "lumibot.strategies.strategy.Strategy.await_market_to_open", false]], "backtestingbroker (class in lumibot.backtesting.backtesting_broker)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker", false]], "bars (class in entities.bars)": [[20, "entities.bars.Bars", false]], "before_market_closes() (in module lumibot.strategies.strategy.strategy)": [[29, "lumibot.strategies.strategy.Strategy.before_market_closes", false]], "before_market_opens() (in module lumibot.strategies.strategy.strategy)": [[30, "lumibot.strategies.strategy.Strategy.before_market_opens", false]], "before_starting_trading() (in module lumibot.strategies.strategy.strategy)": [[31, "lumibot.strategies.strategy.Strategy.before_starting_trading", false]], "bracket (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.BRACKET", false]], "bracket (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.BRACKET", false]], "buy (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY", false]], "buy_to_close (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_CLOSE", false]], "buy_to_cover (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_COVER", false]], "buy_to_open (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_OPEN", false]], "calculate_greeks() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.calculate_greeks", false]], "calculate_trade_cost() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.calculate_trade_cost", false]], "call (entities.asset.asset.optionright attribute)": [[19, "entities.asset.Asset.OptionRight.CALL", false]], "cancel_open_orders() (in module lumibot.strategies.strategy.strategy)": [[143, "lumibot.strategies.strategy.Strategy.cancel_open_orders", false], [154, "lumibot.strategies.strategy.Strategy.cancel_open_orders", false]], "cancel_order() (in module lumibot.strategies.strategy.strategy)": [[144, "lumibot.strategies.strategy.Strategy.cancel_order", false], [155, "lumibot.strategies.strategy.Strategy.cancel_order", false]], "cancel_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.cancel_order", false]], "cancel_order() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.cancel_order", false]], "cancel_orders() (in module lumibot.strategies.strategy.strategy)": [[145, "lumibot.strategies.strategy.Strategy.cancel_orders", false], [156, "lumibot.strategies.strategy.Strategy.cancel_orders", false]], "cancel_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[71, "lumibot.strategies.strategy.Strategy.cancel_realtime_bars", false]], "canceled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CANCELED", false]], "cancelling (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CANCELLING", false]], "cash (lumibot.strategies.strategy.strategy property)": [[167, "lumibot.strategies.strategy.Strategy.cash", false], [182, "lumibot.strategies.strategy.Strategy.cash", false]], "cash_pending() (entities.order.order method)": [[22, "entities.order.Order.cash_pending", false]], "cash_settle_options_contract() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.cash_settle_options_contract", false]], "cash_settled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CASH_SETTLED", false]], "check_data() (entities.data.data method)": [[21, "entities.data.Data.check_data", false], [21, "id0", false]], "clean_trading_times() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.clean_trading_times", false]], "columns() (entities.data.data method)": [[21, "entities.data.Data.columns", false], [21, "id1", false]], "convert_timestep_str_to_timedelta() (lumibot.data_sources.data_source.datasource static method)": [[44, "lumibot.data_sources.data_source.DataSource.convert_timestep_str_to_timedelta", false]], "create_order() (in module lumibot.strategies.strategy.strategy)": [[146, "lumibot.strategies.strategy.Strategy.create_order", false], [157, "lumibot.strategies.strategy.Strategy.create_order", false]], "crypto (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.CRYPTO", false]], "data (class in entities.data)": [[21, "entities.data.Data", false]], "datalines (entities.data.data attribute)": [[21, "entities.data.Data.datalines", false]], "datasource (class in lumibot.data_sources.data_source)": [[44, "lumibot.data_sources.data_source.DataSource", false]], "datasourcebacktesting (class in lumibot.data_sources.data_source_backtesting)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting", false]], "date_end (entities.data.data attribute)": [[21, "entities.data.Data.date_end", false]], "date_start (entities.data.data attribute)": [[21, "entities.data.Data.date_start", false]], "datetime (lumibot.backtesting.backtesting_broker.backtestingbroker property)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.datetime", false]], "default_pytz (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.DEFAULT_PYTZ", false]], "default_timezone (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.DEFAULT_TIMEZONE", false]], "df (entities.data.data attribute)": [[21, "entities.data.Data.df", false]], "entities.asset": [[19, "module-entities.asset", false]], "entities.bars": [[20, "module-entities.bars", false]], "entities.data": [[21, "module-entities.data", false]], "entities.order": [[22, "module-entities.order", false]], "entities.position": [[23, "module-entities.position", false]], "entities.trading_fee": [[24, "module-entities.trading_fee", false]], "equivalent_status() (entities.order.order method)": [[22, "entities.order.Order.equivalent_status", false]], "error (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.ERROR", false]], "expiration (entities.asset.asset attribute)": [[19, "entities.asset.Asset.expiration", false], [19, "id2", false]], "expired (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.EXPIRED", false]], "filled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.FILLED", false]], "filter() (entities.bars.bars method)": [[20, "entities.bars.Bars.filter", false]], "find_asset_in_data_store() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.find_asset_in_data_store", false]], "first_iteration (lumibot.strategies.strategy.strategy property)": [[168, "lumibot.strategies.strategy.Strategy.first_iteration", false], [183, "lumibot.strategies.strategy.Strategy.first_iteration", false]], "forex (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.FOREX", false]], "from_dict() (entities.asset.asset class method)": [[19, "entities.asset.Asset.from_dict", false]], "from_dict() (entities.order.order class method)": [[22, "entities.order.Order.from_dict", false]], "from_dict() (entities.position.position class method)": [[23, "entities.position.Position.from_dict", false]], "future (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.FUTURE", false]], "get_asset_by_name() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_asset_by_name", false]], "get_asset_by_symbol() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_asset_by_symbol", false]], "get_asset_potential_total() (in module lumibot.strategies.strategy.strategy)": [[147, "lumibot.strategies.strategy.Strategy.get_asset_potential_total", false], [158, "lumibot.strategies.strategy.Strategy.get_asset_potential_total", false]], "get_assets() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_assets", false]], "get_bars() (entities.data.data method)": [[21, "entities.data.Data.get_bars", false], [21, "id2", false]], "get_bars() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_bars", false]], "get_bars_between_dates() (entities.data.data method)": [[21, "entities.data.Data.get_bars_between_dates", false]], "get_cash() (in module lumibot.strategies.strategy.strategy)": [[49, "lumibot.strategies.strategy.Strategy.get_cash", false], [55, "lumibot.strategies.strategy.Strategy.get_cash", false]], "get_chain() (in module lumibot.strategies.strategy.strategy)": [[125, "lumibot.strategies.strategy.Strategy.get_chain", false], [133, "lumibot.strategies.strategy.Strategy.get_chain", false]], "get_chain_full_info() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_chain_full_info", false]], "get_chains() (in module lumibot.strategies.strategy.strategy)": [[126, "lumibot.strategies.strategy.Strategy.get_chains", false], [134, "lumibot.strategies.strategy.Strategy.get_chains", false]], "get_chains() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_chains", false]], "get_chains() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_chains", false]], "get_chains() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_chains", false]], "get_datetime() (in module lumibot.strategies.strategy.strategy)": [[83, "lumibot.strategies.strategy.Strategy.get_datetime", false], [92, "lumibot.strategies.strategy.Strategy.get_datetime", false]], "get_datetime() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_datetime", false]], "get_datetime() (lumibot.data_sources.data_source_backtesting.datasourcebacktesting method)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.get_datetime", false]], "get_datetime_range() (in module lumibot.strategies.strategy.strategy)": [[84, "lumibot.strategies.strategy.Strategy.get_datetime_range", false], [93, "lumibot.strategies.strategy.Strategy.get_datetime_range", false]], "get_datetime_range() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_datetime_range", false]], "get_datetime_range() (lumibot.data_sources.data_source_backtesting.datasourcebacktesting method)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.get_datetime_range", false]], "get_expiration() (in module lumibot.strategies.strategy.strategy)": [[127, "lumibot.strategies.strategy.Strategy.get_expiration", false], [135, "lumibot.strategies.strategy.Strategy.get_expiration", false]], "get_fill_price() (entities.order.order method)": [[22, "entities.order.Order.get_fill_price", false]], "get_greeks() (in module lumibot.strategies.strategy.strategy)": [[128, "lumibot.strategies.strategy.Strategy.get_greeks", false], [136, "lumibot.strategies.strategy.Strategy.get_greeks", false]], "get_historical_account_value() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_historical_account_value", false]], "get_historical_account_value() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.get_historical_account_value", false]], "get_historical_prices() (in module lumibot.strategies.strategy.strategy)": [[72, "lumibot.strategies.strategy.Strategy.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_historical_prices", false]], "get_historical_prices_for_assets() (in module lumibot.strategies.strategy.strategy)": [[73, "lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets", false]], "get_increment() (entities.order.order method)": [[22, "entities.order.Order.get_increment", false]], "get_iter_count() (entities.data.data method)": [[21, "entities.data.Data.get_iter_count", false], [21, "id3", false]], "get_last_bar() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_last_bar", false]], "get_last_day() (in module lumibot.strategies.strategy.strategy)": [[85, "lumibot.strategies.strategy.Strategy.get_last_day", false], [94, "lumibot.strategies.strategy.Strategy.get_last_day", false]], "get_last_day() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_day", false]], "get_last_dividend() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_last_dividend", false], [20, "id1", false]], "get_last_minute() (in module lumibot.strategies.strategy.strategy)": [[86, "lumibot.strategies.strategy.Strategy.get_last_minute", false], [95, "lumibot.strategies.strategy.Strategy.get_last_minute", false]], "get_last_minute() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_minute", false]], "get_last_price() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_last_price", false], [20, "id2", false]], "get_last_price() (entities.data.data method)": [[21, "entities.data.Data.get_last_price", false], [21, "id4", false]], "get_last_price() (in module lumibot.strategies.strategy.strategy)": [[74, "lumibot.strategies.strategy.Strategy.get_last_price", false]], "get_last_price() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_price", false]], "get_last_price() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_last_price", false]], "get_last_price() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_last_price", false]], "get_last_prices() (in module lumibot.strategies.strategy.strategy)": [[75, "lumibot.strategies.strategy.Strategy.get_last_prices", false]], "get_last_prices() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_prices", false]], "get_last_prices() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_last_prices", false]], "get_lines_df() (in module lumibot.strategies.strategy.strategy)": [[64, "lumibot.strategies.strategy.Strategy.get_lines_df", false], [68, "lumibot.strategies.strategy.Strategy.get_lines_df", false]], "get_markers_df() (in module lumibot.strategies.strategy.strategy)": [[65, "lumibot.strategies.strategy.Strategy.get_markers_df", false], [69, "lumibot.strategies.strategy.Strategy.get_markers_df", false]], "get_momentum() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_momentum", false], [20, "id3", false]], "get_multiplier() (in module lumibot.strategies.strategy.strategy)": [[129, "lumibot.strategies.strategy.Strategy.get_multiplier", false], [137, "lumibot.strategies.strategy.Strategy.get_multiplier", false]], "get_next_trading_day() (in module lumibot.strategies.strategy.strategy)": [[76, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false], [130, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false], [138, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false]], "get_option_expiration_after_date() (in module lumibot.strategies.strategy.strategy)": [[139, "lumibot.strategies.strategy.Strategy.get_option_expiration_after_date", false]], "get_order() (in module lumibot.strategies.strategy.strategy)": [[148, "lumibot.strategies.strategy.Strategy.get_order", false], [159, "lumibot.strategies.strategy.Strategy.get_order", false]], "get_orders() (in module lumibot.strategies.strategy.strategy)": [[149, "lumibot.strategies.strategy.Strategy.get_orders", false], [160, "lumibot.strategies.strategy.Strategy.get_orders", false]], "get_parameters() (in module lumibot.strategies.strategy.strategy)": [[50, "lumibot.strategies.strategy.Strategy.get_parameters", false], [56, "lumibot.strategies.strategy.Strategy.get_parameters", false], [104, "lumibot.strategies.strategy.Strategy.get_parameters", false], [115, "lumibot.strategies.strategy.Strategy.get_parameters", false]], "get_portfolio_value() (in module lumibot.strategies.strategy.strategy)": [[51, "lumibot.strategies.strategy.Strategy.get_portfolio_value", false], [57, "lumibot.strategies.strategy.Strategy.get_portfolio_value", false]], "get_position() (in module lumibot.strategies.strategy.strategy)": [[52, "lumibot.strategies.strategy.Strategy.get_position", false], [58, "lumibot.strategies.strategy.Strategy.get_position", false]], "get_positions() (in module lumibot.strategies.strategy.strategy)": [[53, "lumibot.strategies.strategy.Strategy.get_positions", false], [59, "lumibot.strategies.strategy.Strategy.get_positions", false]], "get_quote() (entities.data.data method)": [[21, "entities.data.Data.get_quote", false]], "get_quote() (in module lumibot.strategies.strategy.strategy)": [[77, "lumibot.strategies.strategy.Strategy.get_quote", false]], "get_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[78, "lumibot.strategies.strategy.Strategy.get_realtime_bars", false]], "get_round_day() (in module lumibot.strategies.strategy.strategy)": [[87, "lumibot.strategies.strategy.Strategy.get_round_day", false], [96, "lumibot.strategies.strategy.Strategy.get_round_day", false]], "get_round_day() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_round_day", false]], "get_round_minute() (in module lumibot.strategies.strategy.strategy)": [[88, "lumibot.strategies.strategy.Strategy.get_round_minute", false], [97, "lumibot.strategies.strategy.Strategy.get_round_minute", false]], "get_round_minute() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_round_minute", false]], "get_selling_order() (entities.position.position method)": [[23, "entities.position.Position.get_selling_order", false]], "get_selling_order() (in module lumibot.strategies.strategy.strategy)": [[150, "lumibot.strategies.strategy.Strategy.get_selling_order", false], [161, "lumibot.strategies.strategy.Strategy.get_selling_order", false]], "get_start_datetime_and_ts_unit() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_start_datetime_and_ts_unit", false]], "get_strikes() (in module lumibot.strategies.strategy.strategy)": [[131, "lumibot.strategies.strategy.Strategy.get_strikes", false], [140, "lumibot.strategies.strategy.Strategy.get_strikes", false]], "get_strikes() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_strikes", false]], "get_strikes() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_strikes", false]], "get_time_to_close() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_time_to_close", false]], "get_time_to_close() (lumibot.brokers.alpaca.alpaca method)": [[12, "id0", false], [12, "lumibot.brokers.alpaca.Alpaca.get_time_to_close", false]], "get_time_to_open() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_time_to_open", false]], "get_time_to_open() (lumibot.brokers.alpaca.alpaca method)": [[12, "id1", false], [12, "lumibot.brokers.alpaca.Alpaca.get_time_to_open", false]], "get_timestamp() (in module lumibot.strategies.strategy.strategy)": [[89, "lumibot.strategies.strategy.Strategy.get_timestamp", false], [98, "lumibot.strategies.strategy.Strategy.get_timestamp", false]], "get_timestamp() (lumibot.brokers.alpaca.alpaca method)": [[12, "id2", false], [12, "lumibot.brokers.alpaca.Alpaca.get_timestamp", false]], "get_timestamp() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_timestamp", false]], "get_timestep() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_timestep", false]], "get_total_dividends() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_dividends", false]], "get_total_return() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return", false]], "get_total_return_pct() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return_pct", false]], "get_total_return_pct_change() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return_pct_change", false]], "get_total_stock_splits() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_stock_splits", false]], "get_total_volume() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_volume", false], [20, "id4", false]], "get_trading_days_pandas() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_trading_days_pandas", false]], "get_yesterday_dividend() (in module lumibot.strategies.strategy.strategy)": [[79, "lumibot.strategies.strategy.Strategy.get_yesterday_dividend", false]], "get_yesterday_dividend() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_yesterday_dividend", false]], "get_yesterday_dividend() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_yesterday_dividend", false]], "get_yesterday_dividends() (in module lumibot.strategies.strategy.strategy)": [[80, "lumibot.strategies.strategy.Strategy.get_yesterday_dividends", false]], "get_yesterday_dividends() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_yesterday_dividends", false]], "get_yesterday_dividends() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_yesterday_dividends", false]], "hold (entities.position.position attribute)": [[23, "entities.position.Position.hold", false]], "hold (entities.position.position property)": [[23, "id1", false]], "index (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.INDEX", false]], "initial_budget (lumibot.strategies.strategy.strategy property)": [[169, "lumibot.strategies.strategy.Strategy.initial_budget", false], [184, "lumibot.strategies.strategy.Strategy.initial_budget", false]], "initialize() (in module lumibot.strategies.strategy.strategy)": [[32, "lumibot.strategies.strategy.Strategy.initialize", false]], "is_active() (entities.order.order method)": [[22, "entities.order.Order.is_active", false]], "is_backtest_broker (lumibot.traders.trader.trader property)": [[46, "lumibot.traders.trader.Trader.is_backtest_broker", false]], "is_backtesting (lumibot.strategies.strategy.strategy property)": [[170, "lumibot.strategies.strategy.Strategy.is_backtesting", false], [185, "lumibot.strategies.strategy.Strategy.is_backtesting", false]], "is_backtesting_broker (lumibot.backtesting.backtesting_broker.backtestingbroker attribute)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.IS_BACKTESTING_BROKER", false]], "is_backtesting_data_source (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.IS_BACKTESTING_DATA_SOURCE", false]], "is_backtesting_data_source (lumibot.data_sources.data_source_backtesting.datasourcebacktesting attribute)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.IS_BACKTESTING_DATA_SOURCE", false]], "is_buy_order() (entities.order.order method)": [[22, "entities.order.Order.is_buy_order", false]], "is_canceled() (entities.order.order method)": [[22, "entities.order.Order.is_canceled", false]], "is_filled() (entities.order.order method)": [[22, "entities.order.Order.is_filled", false]], "is_market_open() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.is_market_open", false]], "is_market_open() (lumibot.brokers.alpaca.alpaca method)": [[12, "id3", false], [12, "lumibot.brokers.alpaca.Alpaca.is_market_open", false]], "is_option() (entities.order.order method)": [[22, "entities.order.Order.is_option", false]], "is_parent() (entities.order.order method)": [[22, "entities.order.Order.is_parent", false]], "is_sell_order() (entities.order.order method)": [[22, "entities.order.Order.is_sell_order", false]], "is_valid() (entities.asset.asset method)": [[19, "entities.asset.Asset.is_valid", false]], "iter_index (entities.data.data attribute)": [[21, "entities.data.Data.iter_index", false]], "last_on_trading_iteration_datetime (lumibot.strategies.strategy.strategy property)": [[171, "lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", false], [186, "lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", false]], "limit (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.LIMIT", false]], "limit_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.limit_order", false]], "load_data() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.load_data", false]], "localize_datetime() (in module lumibot.strategies.strategy.strategy)": [[90, "lumibot.strategies.strategy.Strategy.localize_datetime", false], [99, "lumibot.strategies.strategy.Strategy.localize_datetime", false]], "localize_datetime() (lumibot.data_sources.data_source.datasource class method)": [[44, "lumibot.data_sources.data_source.DataSource.localize_datetime", false]], "log_message() (in module lumibot.strategies.strategy.strategy)": [[105, "lumibot.strategies.strategy.Strategy.log_message", false], [116, "lumibot.strategies.strategy.Strategy.log_message", false]], "lumibot.backtesting.backtesting_broker": [[43, "module-lumibot.backtesting.backtesting_broker", false]], "lumibot.brokers.alpaca": [[12, "module-lumibot.brokers.alpaca", false]], "lumibot.data_sources": [[44, "module-lumibot.data_sources", false]], "lumibot.data_sources.data_source": [[44, "module-lumibot.data_sources.data_source", false]], "lumibot.data_sources.data_source_backtesting": [[43, "module-lumibot.data_sources.data_source_backtesting", false]], "lumibot.data_sources.pandas_data": [[44, "module-lumibot.data_sources.pandas_data", false]], "lumibot.data_sources.yahoo_data": [[44, "module-lumibot.data_sources.yahoo_data", false]], "lumibot.strategies.strategy.strategy": [[45, "module-lumibot.strategies.strategy.Strategy", false]], "lumibot.traders.trader": [[46, "module-lumibot.traders.trader", false]], "map_asset_type() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.map_asset_type", false]], "market (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.MARKET", false]], "min_timestep (entities.data.data attribute)": [[21, "entities.data.Data.MIN_TIMESTEP", false]], "min_timestep (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.MIN_TIMESTEP", false]], "min_timestep (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.MIN_TIMESTEP", false]], "minutes_before_closing (lumibot.strategies.strategy.strategy property)": [[172, "lumibot.strategies.strategy.Strategy.minutes_before_closing", false], [187, "lumibot.strategies.strategy.Strategy.minutes_before_closing", false]], "minutes_before_opening (lumibot.strategies.strategy.strategy property)": [[173, "lumibot.strategies.strategy.Strategy.minutes_before_opening", false], [188, "lumibot.strategies.strategy.Strategy.minutes_before_opening", false]], "module": [[12, "module-lumibot.brokers.alpaca", false], [19, "module-entities.asset", false], [20, "module-entities.bars", false], [21, "module-entities.data", false], [22, "module-entities.order", false], [23, "module-entities.position", false], [24, "module-entities.trading_fee", false], [43, "module-lumibot.backtesting.backtesting_broker", false], [43, "module-lumibot.data_sources.data_source_backtesting", false], [44, "module-lumibot.data_sources", false], [44, "module-lumibot.data_sources.data_source", false], [44, "module-lumibot.data_sources.pandas_data", false], [44, "module-lumibot.data_sources.yahoo_data", false], [45, "module-lumibot.strategies.strategy.Strategy", false], [46, "module-lumibot.traders.trader", false]], "multileg (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.MULTILEG", false]], "multiplier (entities.asset.asset attribute)": [[19, "entities.asset.Asset.multiplier", false], [19, "id3", false]], "name (lumibot.strategies.strategy.strategy property)": [[174, "lumibot.strategies.strategy.Strategy.name", false], [189, "lumibot.strategies.strategy.Strategy.name", false]], "new (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.NEW", false]], "nobardatafound": [[20, "entities.bars.NoBarDataFound", false]], "oco (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.OCO", false]], "oco (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.OCO", false]], "on_abrupt_closing() (in module lumibot.strategies.strategy.strategy)": [[33, "lumibot.strategies.strategy.Strategy.on_abrupt_closing", false]], "on_bot_crash() (in module lumibot.strategies.strategy.strategy)": [[34, "lumibot.strategies.strategy.Strategy.on_bot_crash", false]], "on_canceled_order() (in module lumibot.strategies.strategy.strategy)": [[35, "lumibot.strategies.strategy.Strategy.on_canceled_order", false]], "on_filled_order() (in module lumibot.strategies.strategy.strategy)": [[36, "lumibot.strategies.strategy.Strategy.on_filled_order", false]], "on_new_order() (in module lumibot.strategies.strategy.strategy)": [[37, "lumibot.strategies.strategy.Strategy.on_new_order", false]], "on_parameters_updated() (in module lumibot.strategies.strategy.strategy)": [[38, "lumibot.strategies.strategy.Strategy.on_parameters_updated", false]], "on_partially_filled_order() (in module lumibot.strategies.strategy.strategy)": [[39, "lumibot.strategies.strategy.Strategy.on_partially_filled_order", false]], "on_trading_iteration() (in module lumibot.strategies.strategy.strategy)": [[40, "lumibot.strategies.strategy.Strategy.on_trading_iteration", false]], "open (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.OPEN", false]], "option (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.OPTION", false]], "options_expiry_to_datetime_date() (in module lumibot.strategies.strategy.strategy)": [[132, "lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", false], [141, "lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", false]], "order (class in entities.order)": [[22, "entities.order.Order", false]], "order.orderclass (class in entities.order)": [[22, "entities.order.Order.OrderClass", false]], "order.orderside (class in entities.order)": [[22, "entities.order.Order.OrderSide", false]], "order.orderstatus (class in entities.order)": [[22, "entities.order.Order.OrderStatus", false]], "order.ordertype (class in entities.order)": [[22, "entities.order.Order.OrderType", false]], "order.transaction (class in entities.order)": [[22, "entities.order.Order.Transaction", false]], "orderdata (class in lumibot.brokers.alpaca)": [[12, "lumibot.brokers.alpaca.OrderData", false]], "orders (entities.position.position attribute)": [[23, "entities.position.Position.orders", false]], "oto (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.OTO", false]], "oto (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.OTO", false]], "pandasdata (class in lumibot.data_sources.pandas_data)": [[44, "lumibot.data_sources.pandas_data.PandasData", false]], "parse_bar_list() (entities.bars.bars class method)": [[20, "entities.bars.Bars.parse_bar_list", false]], "partially_filled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.PARTIALLY_FILLED", false]], "portfolio_value (lumibot.strategies.strategy.strategy property)": [[175, "lumibot.strategies.strategy.Strategy.portfolio_value", false], [190, "lumibot.strategies.strategy.Strategy.portfolio_value", false]], "position (class in entities.position)": [[23, "entities.position.Position", false]], "precision (entities.asset.asset attribute)": [[19, "entities.asset.Asset.precision", false], [19, "id4", false]], "price (entities.order.order.transaction attribute)": [[22, "entities.order.Order.Transaction.price", false]], "process_expired_option_contracts() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.process_expired_option_contracts", false]], "process_pending_orders() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.process_pending_orders", false]], "put (entities.asset.asset.optionright attribute)": [[19, "entities.asset.Asset.OptionRight.PUT", false]], "pytz (lumibot.strategies.strategy.strategy property)": [[176, "lumibot.strategies.strategy.Strategy.pytz", false], [181, "lumibot.strategies.strategy.Strategy.pytz", false], [191, "lumibot.strategies.strategy.Strategy.pytz", false]], "quantity (entities.order.order property)": [[22, "entities.order.Order.quantity", false]], "quantity (entities.order.order.transaction attribute)": [[22, "entities.order.Order.Transaction.quantity", false]], "quantity (entities.position.position attribute)": [[23, "entities.position.Position.quantity", false]], "quantity (entities.position.position property)": [[23, "id2", false]], "query_greeks() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.query_greeks", false]], "quote_asset (lumibot.strategies.strategy.strategy property)": [[177, "lumibot.strategies.strategy.Strategy.quote_asset", false], [192, "lumibot.strategies.strategy.Strategy.quote_asset", false]], "repair_times_and_fill() (entities.data.data method)": [[21, "entities.data.Data.repair_times_and_fill", false], [21, "id5", false]], "right (entities.asset.asset attribute)": [[19, "entities.asset.Asset.right", false], [19, "id5", false]], "right_must_be_one_of() (entities.asset.asset method)": [[19, "entities.asset.Asset.right_must_be_one_of", false], [19, "id6", false]], "run_all() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.run_all", false]], "run_all_async() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.run_all_async", false]], "run_backtest() (in module lumibot.strategies.strategy.strategy)": [[1, "lumibot.strategies.strategy.Strategy.run_backtest", false]], "sell (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL", false]], "sell_all() (in module lumibot.strategies.strategy.strategy)": [[151, "lumibot.strategies.strategy.Strategy.sell_all", false], [162, "lumibot.strategies.strategy.Strategy.sell_all", false]], "sell_short (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_SHORT", false]], "sell_to_close (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_TO_CLOSE", false]], "sell_to_open (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_TO_OPEN", false]], "set_canceled() (entities.order.order method)": [[22, "entities.order.Order.set_canceled", false]], "set_date_format() (entities.data.data method)": [[21, "entities.data.Data.set_date_format", false], [21, "id6", false]], "set_dates() (entities.data.data method)": [[21, "entities.data.Data.set_dates", false], [21, "id7", false]], "set_error() (entities.order.order method)": [[22, "entities.order.Order.set_error", false]], "set_filled() (entities.order.order method)": [[22, "entities.order.Order.set_filled", false]], "set_identifier() (entities.order.order method)": [[22, "entities.order.Order.set_identifier", false]], "set_market() (in module lumibot.strategies.strategy.strategy)": [[106, "lumibot.strategies.strategy.Strategy.set_market", false], [117, "lumibot.strategies.strategy.Strategy.set_market", false]], "set_new() (entities.order.order method)": [[22, "entities.order.Order.set_new", false]], "set_parameters() (in module lumibot.strategies.strategy.strategy)": [[54, "lumibot.strategies.strategy.Strategy.set_parameters", false], [60, "lumibot.strategies.strategy.Strategy.set_parameters", false]], "set_partially_filled() (entities.order.order method)": [[22, "entities.order.Order.set_partially_filled", false]], "set_times() (entities.data.data method)": [[21, "entities.data.Data.set_times", false], [21, "id8", false]], "should_continue() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.should_continue", false]], "sleep() (in module lumibot.strategies.strategy.strategy)": [[107, "lumibot.strategies.strategy.Strategy.sleep", false], [118, "lumibot.strategies.strategy.Strategy.sleep", false]], "sleeptime (lumibot.strategies.strategy.strategy property)": [[178, "lumibot.strategies.strategy.Strategy.sleeptime", false], [193, "lumibot.strategies.strategy.Strategy.sleeptime", false]], "source (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.SOURCE", false]], "source (lumibot.data_sources.pandas_data.pandasdata attribute)": [[44, "lumibot.data_sources.pandas_data.PandasData.SOURCE", false]], "source (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.SOURCE", false]], "split() (entities.bars.bars method)": [[20, "entities.bars.Bars.split", false]], "start_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[81, "lumibot.strategies.strategy.Strategy.start_realtime_bars", false]], "status (entities.order.order property)": [[22, "entities.order.Order.status", false]], "stock (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.STOCK", false]], "stop (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.STOP", false]], "stop_all() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.stop_all", false]], "stop_limit (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.STOP_LIMIT", false]], "stop_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.stop_order", false]], "strategy (entities.position.position attribute)": [[23, "entities.position.Position.strategy", false]], "strike (entities.asset.asset attribute)": [[19, "entities.asset.Asset.strike", false], [19, "id7", false]], "submit_order() (in module lumibot.strategies.strategy.strategy)": [[152, "lumibot.strategies.strategy.Strategy.submit_order", false], [163, "lumibot.strategies.strategy.Strategy.submit_order", false]], "submit_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.submit_order", false]], "submit_orders() (in module lumibot.strategies.strategy.strategy)": [[153, "lumibot.strategies.strategy.Strategy.submit_orders", false], [164, "lumibot.strategies.strategy.Strategy.submit_orders", false]], "submit_orders() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.submit_orders", false]], "submitted (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.SUBMITTED", false]], "sybmol (entities.data.data attribute)": [[21, "entities.data.Data.sybmol", false]], "symbol (entities.asset.asset attribute)": [[19, "entities.asset.Asset.symbol", false], [19, "id8", false]], "symbol (entities.position.position attribute)": [[23, "entities.position.Position.symbol", false]], "symbol2asset() (entities.asset.asset class method)": [[19, "entities.asset.Asset.symbol2asset", false]], "timestep (entities.data.data attribute)": [[21, "entities.data.Data.timestep", false]], "timestep_mapping (entities.data.data attribute)": [[21, "entities.data.Data.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.pandas_data.pandasdata attribute)": [[44, "lumibot.data_sources.pandas_data.PandasData.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.TIMESTEP_MAPPING", false]], "timezone (lumibot.strategies.strategy.strategy property)": [[179, "lumibot.strategies.strategy.Strategy.timezone", false], [194, "lumibot.strategies.strategy.Strategy.timezone", false]], "to_datalines() (entities.data.data method)": [[21, "entities.data.Data.to_datalines", false], [21, "id9", false]], "to_default_timezone() (in module lumibot.strategies.strategy.strategy)": [[91, "lumibot.strategies.strategy.Strategy.to_default_timezone", false], [100, "lumibot.strategies.strategy.Strategy.to_default_timezone", false]], "to_default_timezone() (lumibot.data_sources.data_source.datasource class method)": [[44, "lumibot.data_sources.data_source.DataSource.to_default_timezone", false]], "to_dict() (entities.asset.asset method)": [[19, "entities.asset.Asset.to_dict", false]], "to_dict() (entities.order.order method)": [[22, "entities.order.Order.to_dict", false]], "to_dict() (entities.position.position method)": [[23, "entities.position.Position.to_dict", false]], "to_position() (entities.order.order method)": [[22, "entities.order.Order.to_position", false]], "to_request_fields() (lumibot.brokers.alpaca.orderdata method)": [[12, "lumibot.brokers.alpaca.OrderData.to_request_fields", false]], "trace_stats() (in module lumibot.strategies.strategy.strategy)": [[42, "lumibot.strategies.strategy.Strategy.trace_stats", false]], "trader (class in lumibot.traders.trader)": [[46, "lumibot.traders.trader.Trader", false]], "trading_hours_end (entities.data.data attribute)": [[21, "entities.data.Data.trading_hours_end", false]], "trading_hours_start (entities.data.data attribute)": [[21, "entities.data.Data.trading_hours_start", false]], "tradingfee (class in entities.trading_fee)": [[24, "entities.trading_fee.TradingFee", false]], "trail (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.TRAIL", false]], "trim_data() (entities.data.data method)": [[21, "entities.data.Data.trim_data", false], [21, "id10", false]], "underlying_asset (entities.asset.asset attribute)": [[19, "entities.asset.Asset.underlying_asset", false]], "unprocessed (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.UNPROCESSED", false]], "unspent_money (lumibot.strategies.strategy.strategy property)": [[180, "lumibot.strategies.strategy.Strategy.unspent_money", false], [195, "lumibot.strategies.strategy.Strategy.unspent_money", false]], "update_date_index() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.update_date_index", false]], "update_parameters() (in module lumibot.strategies.strategy.strategy)": [[108, "lumibot.strategies.strategy.Strategy.update_parameters", false], [119, "lumibot.strategies.strategy.Strategy.update_parameters", false]], "update_raw() (entities.order.order method)": [[22, "entities.order.Order.update_raw", false]], "update_trail_stop_price() (entities.order.order method)": [[22, "entities.order.Order.update_trail_stop_price", false]], "value_type() (entities.position.position method)": [[23, "entities.position.Position.value_type", false]], "wait_for_order_execution() (in module lumibot.strategies.strategy.strategy)": [[109, "lumibot.strategies.strategy.Strategy.wait_for_order_execution", false], [120, "lumibot.strategies.strategy.Strategy.wait_for_order_execution", false]], "wait_for_order_registration() (in module lumibot.strategies.strategy.strategy)": [[110, "lumibot.strategies.strategy.Strategy.wait_for_order_registration", false], [121, "lumibot.strategies.strategy.Strategy.wait_for_order_registration", false]], "wait_for_orders_execution() (in module lumibot.strategies.strategy.strategy)": [[111, "lumibot.strategies.strategy.Strategy.wait_for_orders_execution", false], [122, "lumibot.strategies.strategy.Strategy.wait_for_orders_execution", false]], "wait_for_orders_registration() (in module lumibot.strategies.strategy.strategy)": [[112, "lumibot.strategies.strategy.Strategy.wait_for_orders_registration", false], [123, "lumibot.strategies.strategy.Strategy.wait_for_orders_registration", false]], "wait_to_be_closed() (entities.order.order method)": [[22, "entities.order.Order.wait_to_be_closed", false]], "wait_to_be_registered() (entities.order.order method)": [[22, "entities.order.Order.wait_to_be_registered", false]], "was_transmitted() (entities.order.order method)": [[22, "entities.order.Order.was_transmitted", false]], "yahoodata (class in lumibot.data_sources.yahoo_data)": [[44, "lumibot.data_sources.yahoo_data.YahooData", false]]}, "objects": {"entities": [[19, 0, 0, "-", "asset"], [20, 0, 0, "-", "bars"], [21, 0, 0, "-", "data"], [22, 0, 0, "-", "order"], [23, 0, 0, "-", "position"], [24, 0, 0, "-", "trading_fee"]], "entities.asset": [[19, 1, 1, "", "Asset"], [19, 1, 1, "", "AssetsMapping"]], "entities.asset.Asset": [[19, 1, 1, "", "AssetType"], [19, 1, 1, "", "OptionRight"], [19, 2, 1, "", "_asset_types"], [19, 2, 1, "", "_right"], [19, 2, 1, "id0", "asset_type"], [19, 3, 1, "id1", "asset_type_must_be_one_of"], [19, 2, 1, "id2", "expiration"], [19, 3, 1, "", "from_dict"], [19, 3, 1, "", "is_valid"], [19, 2, 1, "id3", "multiplier"], [19, 2, 1, "id4", "precision"], [19, 2, 1, "id5", "right"], [19, 3, 1, "id6", "right_must_be_one_of"], [19, 2, 1, "id7", "strike"], [19, 2, 1, "id8", "symbol"], [19, 3, 1, "", "symbol2asset"], [19, 3, 1, "", "to_dict"], [19, 2, 1, "", "underlying_asset"]], "entities.asset.Asset.AssetType": [[19, 2, 1, "", "CRYPTO"], [19, 2, 1, "", "FOREX"], [19, 2, 1, "", "FUTURE"], [19, 2, 1, "", "INDEX"], [19, 2, 1, "", "OPTION"], [19, 2, 1, "", "STOCK"]], "entities.asset.Asset.OptionRight": [[19, 2, 1, "", "CALL"], [19, 2, 1, "", "PUT"]], "entities.bars": [[20, 1, 1, "", "Bars"], [20, 4, 1, "", "NoBarDataFound"]], "entities.bars.Bars": [[20, 3, 1, "id0", "aggregate_bars"], [20, 3, 1, "", "filter"], [20, 3, 1, "id1", "get_last_dividend"], [20, 3, 1, "id2", "get_last_price"], [20, 3, 1, "id3", "get_momentum"], [20, 3, 1, "", "get_total_dividends"], [20, 3, 1, "", "get_total_return"], [20, 3, 1, "", "get_total_return_pct"], [20, 3, 1, "", "get_total_return_pct_change"], [20, 3, 1, "", "get_total_stock_splits"], [20, 3, 1, "id4", "get_total_volume"], [20, 3, 1, "", "parse_bar_list"], [20, 3, 1, "", "split"]], "entities.data": [[21, 1, 1, "", "Data"]], "entities.data.Data": [[21, 2, 1, "", "MIN_TIMESTEP"], [21, 2, 1, "", "TIMESTEP_MAPPING"], [21, 3, 1, "", "_get_bars_dict"], [21, 2, 1, "", "asset"], [21, 3, 1, "id0", "check_data"], [21, 3, 1, "id1", "columns"], [21, 2, 1, "", "datalines"], [21, 2, 1, "", "date_end"], [21, 2, 1, "", "date_start"], [21, 2, 1, "", "df"], [21, 3, 1, "id2", "get_bars"], [21, 3, 1, "", "get_bars_between_dates"], [21, 3, 1, "id3", "get_iter_count"], [21, 3, 1, "id4", "get_last_price"], [21, 3, 1, "", "get_quote"], [21, 2, 1, "", "iter_index"], [21, 3, 1, "id5", "repair_times_and_fill"], [21, 3, 1, "id6", "set_date_format"], [21, 3, 1, "id7", "set_dates"], [21, 3, 1, "id8", "set_times"], [21, 2, 1, "", "sybmol"], [21, 2, 1, "", "timestep"], [21, 3, 1, "id9", "to_datalines"], [21, 2, 1, "", "trading_hours_end"], [21, 2, 1, "", "trading_hours_start"], [21, 3, 1, "id10", "trim_data"]], "entities.order": [[22, 1, 1, "", "Order"]], "entities.order.Order": [[22, 1, 1, "", "OrderClass"], [22, 1, 1, "", "OrderSide"], [22, 1, 1, "", "OrderStatus"], [22, 1, 1, "", "OrderType"], [22, 1, 1, "", "Transaction"], [22, 3, 1, "", "add_child_order"], [22, 3, 1, "", "add_transaction"], [22, 5, 1, "", "avg_fill_price"], [22, 3, 1, "", "cash_pending"], [22, 3, 1, "", "equivalent_status"], [22, 3, 1, "", "from_dict"], [22, 3, 1, "", "get_fill_price"], [22, 3, 1, "", "get_increment"], [22, 3, 1, "", "is_active"], [22, 3, 1, "", "is_buy_order"], [22, 3, 1, "", "is_canceled"], [22, 3, 1, "", "is_filled"], [22, 3, 1, "", "is_option"], [22, 3, 1, "", "is_parent"], [22, 3, 1, "", "is_sell_order"], [22, 5, 1, "", "quantity"], [22, 3, 1, "", "set_canceled"], [22, 3, 1, "", "set_error"], [22, 3, 1, "", "set_filled"], [22, 3, 1, "", "set_identifier"], [22, 3, 1, "", "set_new"], [22, 3, 1, "", "set_partially_filled"], [22, 5, 1, "", "status"], [22, 3, 1, "", "to_dict"], [22, 3, 1, "", "to_position"], [22, 3, 1, "", "update_raw"], [22, 3, 1, "", "update_trail_stop_price"], [22, 3, 1, "", "wait_to_be_closed"], [22, 3, 1, "", "wait_to_be_registered"], [22, 3, 1, "", "was_transmitted"]], "entities.order.Order.OrderClass": [[22, 2, 1, "", "BRACKET"], [22, 2, 1, "", "MULTILEG"], [22, 2, 1, "", "OCO"], [22, 2, 1, "", "OTO"]], "entities.order.Order.OrderSide": [[22, 2, 1, "", "BUY"], [22, 2, 1, "", "BUY_TO_CLOSE"], [22, 2, 1, "", "BUY_TO_COVER"], [22, 2, 1, "", "BUY_TO_OPEN"], [22, 2, 1, "", "SELL"], [22, 2, 1, "", "SELL_SHORT"], [22, 2, 1, "", "SELL_TO_CLOSE"], [22, 2, 1, "", "SELL_TO_OPEN"]], "entities.order.Order.OrderStatus": [[22, 2, 1, "", "CANCELED"], [22, 2, 1, "", "CANCELLING"], [22, 2, 1, "", "CASH_SETTLED"], [22, 2, 1, "", "ERROR"], [22, 2, 1, "", "EXPIRED"], [22, 2, 1, "", "FILLED"], [22, 2, 1, "", "NEW"], [22, 2, 1, "", "OPEN"], [22, 2, 1, "", "PARTIALLY_FILLED"], [22, 2, 1, "", "SUBMITTED"], [22, 2, 1, "", "UNPROCESSED"]], "entities.order.Order.OrderType": [[22, 2, 1, "", "BRACKET"], [22, 2, 1, "", "LIMIT"], [22, 2, 1, "", "MARKET"], [22, 2, 1, "", "OCO"], [22, 2, 1, "", "OTO"], [22, 2, 1, "", "STOP"], [22, 2, 1, "", "STOP_LIMIT"], [22, 2, 1, "", "TRAIL"]], "entities.order.Order.Transaction": [[22, 2, 1, "", "price"], [22, 2, 1, "", "quantity"]], "entities.position": [[23, 1, 1, "", "Position"]], "entities.position.Position": [[23, 3, 1, "", "add_order"], [23, 2, 1, "", "asset"], [23, 5, 1, "id0", "available"], [23, 2, 1, "", "avg_fill_price"], [23, 3, 1, "", "from_dict"], [23, 3, 1, "", "get_selling_order"], [23, 5, 1, "id1", "hold"], [23, 2, 1, "", "orders"], [23, 5, 1, "id2", "quantity"], [23, 2, 1, "", "strategy"], [23, 2, 1, "", "symbol"], [23, 3, 1, "", "to_dict"], [23, 3, 1, "", "value_type"]], "entities.trading_fee": [[24, 1, 1, "", "TradingFee"]], "lumibot": [[44, 0, 0, "-", "data_sources"]], "lumibot.backtesting": [[43, 0, 0, "-", "backtesting_broker"]], "lumibot.backtesting.backtesting_broker": [[43, 1, 1, "", "BacktestingBroker"]], "lumibot.backtesting.backtesting_broker.BacktestingBroker": [[43, 2, 1, "", "IS_BACKTESTING_BROKER"], [43, 3, 1, "", "calculate_trade_cost"], [43, 3, 1, "", "cancel_order"], [43, 3, 1, "", "cash_settle_options_contract"], [43, 5, 1, "", "datetime"], [43, 3, 1, "", "get_historical_account_value"], [43, 3, 1, "", "get_last_bar"], [43, 3, 1, "", "get_time_to_close"], [43, 3, 1, "", "get_time_to_open"], [43, 3, 1, "", "is_market_open"], [43, 3, 1, "", "limit_order"], [43, 3, 1, "", "process_expired_option_contracts"], [43, 3, 1, "", "process_pending_orders"], [43, 3, 1, "", "should_continue"], [43, 3, 1, "", "stop_order"], [43, 3, 1, "", "submit_order"], [43, 3, 1, "", "submit_orders"]], "lumibot.brokers": [[12, 0, 0, "-", "alpaca"]], "lumibot.brokers.alpaca": [[12, 1, 1, "", "Alpaca"], [12, 1, 1, "", "OrderData"]], "lumibot.brokers.alpaca.Alpaca": [[12, 2, 1, "", "ASSET_TYPE_MAP"], [12, 2, 1, "", "api"], [12, 3, 1, "", "cancel_order"], [12, 3, 1, "", "get_historical_account_value"], [12, 3, 1, "id0", "get_time_to_close"], [12, 3, 1, "id1", "get_time_to_open"], [12, 3, 1, "id2", "get_timestamp"], [12, 3, 1, "id3", "is_market_open"], [12, 3, 1, "", "map_asset_type"]], "lumibot.brokers.alpaca.OrderData": [[12, 3, 1, "", "to_request_fields"]], "lumibot.data_sources": [[44, 0, 0, "-", "data_source"], [43, 0, 0, "-", "data_source_backtesting"], [44, 0, 0, "-", "pandas_data"], [44, 0, 0, "-", "yahoo_data"]], "lumibot.data_sources.data_source": [[44, 1, 1, "", "DataSource"]], "lumibot.data_sources.data_source.DataSource": [[44, 2, 1, "", "DEFAULT_PYTZ"], [44, 2, 1, "", "DEFAULT_TIMEZONE"], [44, 2, 1, "", "IS_BACKTESTING_DATA_SOURCE"], [44, 2, 1, "", "MIN_TIMESTEP"], [44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "calculate_greeks"], [44, 3, 1, "", "convert_timestep_str_to_timedelta"], [44, 3, 1, "", "get_bars"], [44, 3, 1, "", "get_chain_full_info"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_datetime"], [44, 3, 1, "", "get_datetime_range"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_day"], [44, 3, 1, "", "get_last_minute"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_last_prices"], [44, 3, 1, "", "get_round_day"], [44, 3, 1, "", "get_round_minute"], [44, 3, 1, "", "get_strikes"], [44, 3, 1, "", "get_timestamp"], [44, 3, 1, "", "get_timestep"], [44, 3, 1, "", "get_yesterday_dividend"], [44, 3, 1, "", "get_yesterday_dividends"], [44, 3, 1, "", "localize_datetime"], [44, 3, 1, "", "query_greeks"], [44, 3, 1, "", "to_default_timezone"]], "lumibot.data_sources.data_source_backtesting": [[43, 1, 1, "", "DataSourceBacktesting"]], "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting": [[43, 2, 1, "", "IS_BACKTESTING_DATA_SOURCE"], [43, 3, 1, "", "get_datetime"], [43, 3, 1, "", "get_datetime_range"]], "lumibot.data_sources.pandas_data": [[44, 1, 1, "", "PandasData"]], "lumibot.data_sources.pandas_data.PandasData": [[44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "clean_trading_times"], [44, 3, 1, "", "find_asset_in_data_store"], [44, 3, 1, "", "get_asset_by_name"], [44, 3, 1, "", "get_asset_by_symbol"], [44, 3, 1, "", "get_assets"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_last_prices"], [44, 3, 1, "", "get_start_datetime_and_ts_unit"], [44, 3, 1, "", "get_trading_days_pandas"], [44, 3, 1, "", "get_yesterday_dividend"], [44, 3, 1, "", "get_yesterday_dividends"], [44, 3, 1, "", "load_data"], [44, 3, 1, "", "update_date_index"]], "lumibot.data_sources.yahoo_data": [[44, 1, 1, "", "YahooData"]], "lumibot.data_sources.yahoo_data.YahooData": [[44, 2, 1, "", "MIN_TIMESTEP"], [44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_strikes"]], "lumibot.strategies.strategy": [[45, 0, 0, "-", "Strategy"]], "lumibot.strategies.strategy.Strategy": [[66, 6, 1, "", "add_line"], [67, 6, 1, "", "add_marker"], [28, 6, 1, "", "after_market_closes"], [113, 6, 1, "", "await_market_to_close"], [114, 6, 1, "", "await_market_to_open"], [29, 6, 1, "", "before_market_closes"], [30, 6, 1, "", "before_market_opens"], [31, 6, 1, "", "before_starting_trading"], [154, 6, 1, "", "cancel_open_orders"], [155, 6, 1, "", "cancel_order"], [156, 6, 1, "", "cancel_orders"], [71, 6, 1, "", "cancel_realtime_bars"], [182, 5, 1, "", "cash"], [157, 6, 1, "", "create_order"], [183, 5, 1, "", "first_iteration"], [158, 6, 1, "", "get_asset_potential_total"], [55, 6, 1, "", "get_cash"], [133, 6, 1, "", "get_chain"], [134, 6, 1, "", "get_chains"], [92, 6, 1, "", "get_datetime"], [93, 6, 1, "", "get_datetime_range"], [135, 6, 1, "", "get_expiration"], [136, 6, 1, "", "get_greeks"], [72, 6, 1, "", "get_historical_prices"], [73, 6, 1, "", "get_historical_prices_for_assets"], [94, 6, 1, "", "get_last_day"], [95, 6, 1, "", "get_last_minute"], [74, 6, 1, "", "get_last_price"], [75, 6, 1, "", "get_last_prices"], [68, 6, 1, "", "get_lines_df"], [69, 6, 1, "", "get_markers_df"], [137, 6, 1, "", "get_multiplier"], [138, 6, 1, "", "get_next_trading_day"], [139, 6, 1, "", "get_option_expiration_after_date"], [159, 6, 1, "", "get_order"], [160, 6, 1, "", "get_orders"], [115, 6, 1, "", "get_parameters"], [57, 6, 1, "", "get_portfolio_value"], [58, 6, 1, "", "get_position"], [59, 6, 1, "", "get_positions"], [77, 6, 1, "", "get_quote"], [78, 6, 1, "", "get_realtime_bars"], [96, 6, 1, "", "get_round_day"], [97, 6, 1, "", "get_round_minute"], [161, 6, 1, "", "get_selling_order"], [140, 6, 1, "", "get_strikes"], [98, 6, 1, "", "get_timestamp"], [79, 6, 1, "", "get_yesterday_dividend"], [80, 6, 1, "", "get_yesterday_dividends"], [184, 5, 1, "", "initial_budget"], [32, 6, 1, "", "initialize"], [185, 5, 1, "", "is_backtesting"], [186, 5, 1, "", "last_on_trading_iteration_datetime"], [99, 6, 1, "", "localize_datetime"], [116, 6, 1, "", "log_message"], [187, 5, 1, "", "minutes_before_closing"], [188, 5, 1, "", "minutes_before_opening"], [189, 5, 1, "", "name"], [33, 6, 1, "", "on_abrupt_closing"], [34, 6, 1, "", "on_bot_crash"], [35, 6, 1, "", "on_canceled_order"], [36, 6, 1, "", "on_filled_order"], [37, 6, 1, "", "on_new_order"], [38, 6, 1, "", "on_parameters_updated"], [39, 6, 1, "", "on_partially_filled_order"], [40, 6, 1, "", "on_trading_iteration"], [141, 6, 1, "", "options_expiry_to_datetime_date"], [190, 5, 1, "", "portfolio_value"], [191, 5, 1, "", "pytz"], [192, 5, 1, "", "quote_asset"], [1, 6, 1, "", "run_backtest"], [162, 6, 1, "", "sell_all"], [117, 6, 1, "", "set_market"], [60, 6, 1, "", "set_parameters"], [118, 6, 1, "", "sleep"], [193, 5, 1, "", "sleeptime"], [81, 6, 1, "", "start_realtime_bars"], [163, 6, 1, "", "submit_order"], [164, 6, 1, "", "submit_orders"], [194, 5, 1, "", "timezone"], [100, 6, 1, "", "to_default_timezone"], [42, 6, 1, "", "trace_stats"], [195, 5, 1, "", "unspent_money"], [119, 6, 1, "", "update_parameters"], [120, 6, 1, "", "wait_for_order_execution"], [121, 6, 1, "", "wait_for_order_registration"], [122, 6, 1, "", "wait_for_orders_execution"], [123, 6, 1, "", "wait_for_orders_registration"]], "lumibot.traders": [[46, 0, 0, "-", "trader"]], "lumibot.traders.trader": [[46, 1, 1, "", "Trader"]], "lumibot.traders.trader.Trader": [[46, 3, 1, "", "add_strategy"], [46, 5, 1, "", "is_backtest_broker"], [46, 3, 1, "", "run_all"], [46, 3, 1, "", "run_all_async"], [46, 3, 1, "", "stop_all"]]}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "method", "Python method"], "4": ["py", "exception", "Python exception"], "5": ["py", "property", "Python property"], "6": ["py", "function", "Python function"]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:method", "4": "py:exception", "5": "py:property", "6": "py:function"}, "terms": {"": [2, 3, 6, 7, 8, 13, 14, 16, 17, 18, 21, 25, 26, 38, 41, 46, 52, 58, 82, 83, 85, 86, 87, 88, 89, 90, 91, 92, 94, 95, 96, 97, 98, 99, 100, 128, 136, 147, 158, 165, 178, 193, 196], "0": [13, 15, 17, 19, 21, 22, 23, 24, 25, 32, 42, 43, 44, 87, 88, 96, 97, 146, 152, 153, 157, 163, 164, 173, 188, 196], "00": [5, 44, 110, 121, 146, 152, 153, 157, 163, 164, 196], "000": [13, 25, 26], "0000": 5, "0001": 21, "000234": 12, "01": [5, 6, 8, 20, 25, 146, 147, 152, 157, 158, 163], "02": [5, 20], "04": [5, 44], "05": [6, 8, 146, 157, 196], "07": [44, 125, 126, 133, 134], "0830": 12, "09": 5, "0930": 12, "1": [1, 2, 5, 6, 7, 8, 10, 12, 13, 15, 16, 17, 19, 20, 21, 22, 31, 44, 72, 73, 84, 90, 91, 93, 99, 100, 128, 136, 139, 146, 152, 153, 157, 163, 164, 178, 193, 196], "10": [2, 6, 8, 13, 17, 19, 20, 32, 40, 44, 63, 67, 82, 127, 135, 152, 153, 163, 164, 165, 172, 173, 178, 187, 188, 193, 196], "100": [1, 5, 12, 13, 16, 19, 20, 25, 26, 32, 42, 44, 72, 73, 109, 110, 111, 112, 120, 121, 122, 123, 125, 126, 128, 133, 134, 136, 144, 145, 146, 152, 153, 155, 156, 157, 163, 164], "10000": [13, 25], "100000": 5, "102": 196, "10439": 5, "10m": [32, 178, 193], "11": [10, 17, 19, 26], "12": [10, 17, 19, 25, 26, 74], "123456": 17, "123456789": 17, "127": [15, 17], "13": [17, 127, 135], "14": [17, 196], "1400": 12, "15": [5, 17, 20, 32, 44, 72, 73], "155": 19, "15m": 44, "15min": 20, "16": [17, 74], "1600": 12, "1612172730": 12, "16808": 5, "17": [17, 19, 32], "18": 19, "180": 25, "180m": 25, "19": 44, "1990": 82, "1991": 82, "1d": [2, 6, 8, 20, 21, 40, 44], "1dai": 44, "1h": [20, 40], "1hour": 44, "1m": [5, 21, 44], "1minut": 44, "1month": [72, 73], "2": [2, 6, 17, 22, 30, 32, 62, 66, 72, 73, 111, 112, 122, 123, 153, 164, 178, 193], "20": [12, 13, 22, 32, 43, 165], "200": [1, 12, 36, 44, 73, 111, 112, 122, 123, 153, 164], "2018": [1, 20], "2019": [146, 157], "2020": [5, 10, 25, 26, 72, 90, 91, 99, 100, 147, 152, 158, 163], "20200101": [132, 141], "2021": [19, 32, 128, 136, 139], "2022": [74, 127, 135], "20221013": [129, 137], "2023": [2, 6, 8, 44, 125, 126, 133, 134, 196], "20h": 32, "213": [146, 157], "22": 5, "23": 21, "2359": [5, 21], "24": [13, 17, 32, 106, 117], "24h": 72, "25": [5, 17], "26": 19, "2793": 5, "2794": 5, "2796": 5, "2800": 5, "2d": [32, 178, 193], "2fa": 14, "2h": [178, 193], "3": [2, 12, 17, 146, 157], "30": [13, 40, 72, 73, 81, 196], "300": [36, 178, 193], "30am": 13, "31": [1, 5, 10, 25, 26, 44, 125, 126, 133, 134], "32": 5, "3233": 5, "3234": 5, "3235": 5, "3237": 5, "33": 5, "3306": [], "4": [2, 17, 26, 147, 158], "400": 22, "405": 22, "41000": [146, 157], "41250": [152, 163], "41300": [152, 163], "41325": [152, 163], "41d4": [], "420": 22, "446655440000": [], "48": 32, "5": [1, 2, 5, 6, 8, 17, 26, 32, 44, 72, 73, 106, 107, 117, 118, 146, 157, 165, 172, 178, 187, 193, 196], "50": [5, 22, 32, 146, 157, 178, 193], "500": [22, 36], "512000000": 17, "5432": 196, "55": 13, "550e8400": 196, "56": 5, "57": 5, "58": 5, "59": 21, "5d": 5, "5m": [32, 178, 193], "6": [17, 19, 26], "60": [1, 20, 173, 188], "600": 12, "7": [12, 13, 17, 26, 32, 106, 117], "7440": 5, "7496": 15, "7497": [15, 17], "75": 5, "7569": 5, "8": [17, 26], "80": [62, 66], "8000": [14, 17], "8203": 5, "8272": 5, "9": [13, 17, 32], "999": 15, "9wgjls3wixq54fcphwwzjcp8jcfjfkuwsryskkma": 17, "A": [1, 5, 7, 10, 12, 14, 22, 26, 44, 46, 52, 53, 58, 59, 77, 84, 93, 146, 153, 157, 164, 196], "And": [25, 72, 73], "As": [6, 8, 17], "At": [14, 25], "Be": 14, "By": [2, 17, 26, 34, 128, 136, 172, 173, 176, 178, 179, 181, 187, 188, 191, 193, 194], "For": [1, 2, 3, 5, 7, 10, 13, 14, 17, 19, 20, 22, 26, 28, 44, 49, 51, 55, 57, 109, 110, 111, 112, 120, 121, 122, 123, 146, 152, 153, 157, 163, 164, 165], "If": [1, 5, 6, 8, 12, 13, 14, 16, 17, 20, 21, 25, 26, 30, 32, 36, 40, 44, 72, 73, 74, 81, 102, 103, 105, 113, 114, 116, 131, 140, 143, 146, 151, 154, 157, 162], "In": [0, 6, 8, 13, 14, 17, 22, 43, 74, 75, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98], "It": [0, 4, 5, 6, 7, 8, 13, 15, 17, 19, 22, 23, 25, 26, 41, 43, 44, 74, 77, 146, 157], "NOT": 13, "Not": [43, 106, 117], "On": [14, 17], "One": [5, 17, 19, 22, 44, 146, 157], "Or": [25, 26, 165], "That": 16, "The": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 17, 19, 20, 21, 22, 23, 27, 28, 34, 35, 36, 37, 38, 39, 41, 43, 44, 45, 49, 50, 51, 54, 55, 56, 57, 60, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 104, 106, 108, 115, 117, 119, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 136, 137, 138, 139, 140, 146, 147, 150, 151, 153, 157, 158, 161, 162, 164, 165, 167, 169, 171, 172, 173, 174, 175, 176, 177, 179, 181, 182, 184, 186, 187, 188, 189, 190, 191, 192, 194], "Their": 17, "Then": [5, 13, 16, 72], "There": [10, 11, 146, 157], "These": [0, 1, 2, 3, 4, 7, 10, 32, 45, 54, 60, 82], "To": [0, 6, 8, 10, 13, 14, 16, 17, 22, 25, 26, 72], "Will": [20, 25, 62, 63, 66, 67, 74, 75, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 151, 162, 176, 179, 181, 191, 194], "With": [2, 6, 8, 26], "_": [], "__getattr__": [], "__init__": [], "__main__": [2, 6, 8, 13], "__name__": [2, 6, 8, 13], "__setattr__": [], "_asset_typ": 19, "_get_bars_dict": 21, "_right": 19, "_vars_dict": [], "a716": [], "a7py0zidhxde6qkx8ojjknp7cd87hwku": 17, "aapl": [1, 2, 5, 6, 8, 10, 12, 16, 19, 20, 23, 26, 32, 35, 36, 37, 39, 72, 73, 145, 156], "aapl_pric": [10, 26], "abc": [43, 44], "abcdef1234567890abcdef1234567890abcdef1234": 17, "abl": 16, "about": [2, 9, 11, 26, 166], "abov": [2, 15, 19, 20, 32], "abrupt": 33, "abstract": [27, 41, 43, 44, 45], "accept": [5, 19], "access": [7, 14, 16, 17, 20, 25, 26, 165, 196], "access_token": 16, "accompani": 7, "accord": [82, 83, 89, 92, 98], "account": [2, 6, 8, 11, 12, 13, 15, 16, 17, 26, 43, 47, 49, 51, 53, 55, 57, 59, 61, 150, 161, 167, 182], "account_histori": 17, "account_id": [14, 17], "account_numb": 16, "accur": [20, 44], "achiev": [7, 22, 25, 26], "across": [2, 17], "act": 14, "action": [4, 17], "activ": [14, 17, 22, 26, 74, 75, 78, 152, 153, 163, 164], "activex": 15, "actual": [2, 13, 22, 41, 43, 175, 190], "ad": [5, 11, 13, 17, 19, 26, 72, 73], "add": [3, 5, 13, 14, 17, 19, 22, 25, 32, 43, 46, 62, 63, 66, 67], "add_chart_lin": [62, 66], "add_chart_mark": [63, 67], "add_child_ord": 22, "add_lin": [3, 26, 47], "add_mark": [3, 26, 47], "add_ord": 23, "add_strategi": [5, 12, 13, 14, 15, 16, 25, 26, 46], "add_transact": 22, "addit": [2, 14, 17, 19, 22, 146, 157], "addition": [5, 10, 20], "address": 17, "adjust": [1, 7, 14, 20, 21, 44], "adjust_for_delai": [43, 44, 83, 92], "advanc": [0, 2, 5, 25, 26, 146, 157], "advantag": [], "afa": 17, "affili": 6, "afford": 17, "after": [5, 6, 8, 13, 14, 17, 21, 26, 28, 30, 31, 40, 42, 44, 63, 67, 72, 76, 130, 138, 139, 196], "after_market_clos": [26, 27], "again": [40, 103, 114], "against": 26, "aggregate_bar": 20, "ago": [44, 72], "agre": 14, "aka": 5, "algorithm": [15, 17, 25], "alia": 22, "align": 17, "all": [1, 4, 5, 13, 17, 20, 21, 22, 25, 30, 33, 34, 43, 44, 45, 46, 51, 53, 57, 59, 72, 73, 125, 127, 128, 129, 131, 133, 135, 136, 137, 140, 143, 145, 146, 149, 150, 151, 154, 156, 157, 160, 161, 162, 165, 196], "all_vari": 196, "alloc": 10, "allow": [0, 2, 4, 5, 6, 8, 14, 17, 20, 22, 25, 26, 81, 146, 157, 165], "along": 9, "alpaca": [11, 20, 26, 72, 73], "alpaca_api_kei": 17, "alpaca_api_secret": 17, "alpaca_config": [12, 25, 26], "alpaca_is_pap": 17, "alpacastrategi": 12, "alreadi": [22, 30, 36, 41], "also": [5, 10, 15, 17, 22, 25, 26, 32, 43, 72, 146, 151, 157, 162, 166], "altern": 8, "alwai": [13, 30, 43, 106, 117, 167, 182], "america": [5, 20, 44, 176, 179, 181, 191, 194], "amount": [9, 13, 20, 22, 28, 44, 49, 51, 55, 57, 79, 80, 146, 157], "an": [0, 1, 2, 5, 6, 7, 8, 12, 13, 14, 15, 16, 17, 19, 22, 23, 26, 34, 35, 36, 39, 40, 41, 43, 44, 52, 58, 72, 74, 75, 81, 102, 103, 105, 113, 114, 116, 126, 127, 131, 132, 134, 135, 140, 141, 144, 146, 147, 148, 152, 155, 157, 158, 159, 163, 165, 178, 193, 196], "analy": 26, "analysi": [2, 4, 13, 46], "analyt": 26, "analyz": 26, "ani": [0, 1, 2, 5, 6, 7, 8, 10, 13, 14, 15, 17, 21, 22, 25, 41, 43, 62, 66, 72, 73, 105, 116, 145, 156, 165], "annual": [7, 25, 26], "anoth": [], "another_var": [], "anyth": 10, "anytim": 19, "anywai": [], "api": [1, 2, 6, 8, 10, 12, 13, 14, 15, 16, 17, 20, 26, 44, 128, 136], "api_kei": [1, 12, 25, 26, 43, 44], "api_secret": [12, 25, 26], "apikei": 13, "appl": 23, "appli": [1, 17, 44], "applic": [17, 106, 117], "appropri": [14, 20], "ar": [0, 1, 2, 3, 5, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 38, 41, 44, 45, 47, 48, 53, 59, 61, 62, 63, 66, 67, 70, 73, 78, 81, 82, 101, 106, 117, 124, 125, 126, 128, 133, 134, 136, 142, 143, 146, 147, 149, 151, 153, 154, 157, 158, 160, 162, 164, 165, 167, 182, 196], "arg": [1, 21, 44], "argument": [8, 128, 136], "around": [14, 17, 18], "arrai": [17, 21], "arriv": 81, "arrow": [63, 67], "articl": [], "aset": [146, 152, 153, 157, 163, 164], "asex": [32, 106, 117], "ask": [14, 44, 77], "aspect": 2, "asset": [1, 2, 5, 9, 12, 13, 17, 18, 20, 21, 22, 23, 26, 33, 34, 35, 36, 37, 39, 40, 43, 44, 49, 51, 52, 53, 55, 57, 58, 59, 62, 66, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 146, 147, 152, 153, 157, 158, 163, 164, 167, 177, 182, 192], "asset_bar": 30, "asset_bas": [72, 73, 152, 163], "asset_btc": [153, 164], "asset_eth": [153, 164], "asset_pric": [44, 128, 136], "asset_quot": [72, 73, 152, 153, 163, 164], "asset_symbol": 32, "asset_to_get": 13, "asset_typ": [1, 5, 13, 19, 20, 44, 72, 73, 74, 146, 147, 152, 153, 157, 158, 163, 164], "asset_type_map": 12, "asset_type_must_be_one_of": 19, "assetsmap": 19, "assettyp": [5, 13, 19, 146, 152, 153, 157, 163, 164], "assign": 196, "assist": 17, "associ": 14, "assset": [52, 58], "asterisk": [63, 67], "asx": [32, 106, 117], "async": 46, "async_": 46, "asynchron": 46, "attach": 21, "attain": [7, 146, 157], "attempt": [175, 190], "attribut": [19, 196], "attributeerror": [], "authent": [11, 26], "author": 14, "auto_adjust": [1, 44], "autom": [11, 17, 26], "automat": [1, 6, 8, 22, 146, 147, 157, 158, 196], "avail": [2, 9, 10, 17, 20, 21, 23, 26, 47, 72, 73, 106, 117, 128, 136, 153, 164, 167, 182], "averag": [2, 7, 22, 23], "avg_fill_pric": [22, 23], "avoid": 14, "await": [103, 114, 143, 154], "await_market_to_clos": [26, 47], "await_market_to_open": [26, 47], "awar": [5, 20], "back": [14, 196], "background": 17, "backtest": [4, 5, 7, 10, 17, 21, 22, 24, 32, 44, 46, 63, 67, 72, 73, 74, 75, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117, 170, 185], "backtesting_brok": 43, "backtesting_end": [1, 2, 5, 6, 8, 10, 25, 26, 32], "backtesting_start": [1, 2, 5, 6, 8, 10, 25, 26, 32, 43], "backtestingbrok": [5, 6, 8, 10, 43], "backtets": 77, "backup": 26, "backup_table_nam": 196, "backup_variables_to_db": [], "backward": [72, 73], "balanc": 22, "band": [7, 62, 66], "bar": [13, 18, 21, 26, 43, 44, 63, 67, 71, 72, 73, 74, 75, 78, 81, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 128, 136], "bar_list": 20, "bars_agg": 20, "bars_list": 30, "base": [2, 7, 12, 13, 19, 20, 21, 22, 23, 24, 26, 40, 43, 44, 46, 72, 73, 74, 146, 157], "base_asset": [19, 152, 153, 163, 164], "bat": [32, 106, 117], "bband": 7, "becaus": [3, 5, 6, 8, 10, 17, 43], "becuas": 44, "been": [5, 10, 15, 22, 23, 35, 36, 37, 39, 43, 74, 78], "befor": [1, 2, 5, 7, 10, 13, 14, 15, 17, 20, 22, 25, 26, 29, 30, 31, 32, 40, 41, 42, 44, 72, 73, 102, 103, 113, 114, 151, 162, 172, 173, 187, 188, 196], "before_market_clos": [26, 27], "before_market_open": [26, 27, 173, 188], "before_starting_trad": [26, 27, 30], "begin": [2, 43], "beginn": 25, "behav": 17, "behavior": [0, 2], "behind": 19, "being": [26, 35, 36, 37, 38, 39, 44, 46, 72, 126, 134, 146, 157, 168, 183], "belong": 22, "below": [45, 47, 48, 61, 70, 74, 82, 101, 124, 142], "benchmark": [1, 2, 7], "benchmark_asset": [1, 2, 6, 8, 25], "benefit": 26, "best": [14, 17], "better": [7, 22, 146, 157], "between": [1, 2, 13, 20, 21, 26, 32, 72, 178, 193], "bid": [44, 77], "binanc": [13, 26], "bit": [6, 8], "bitcoin": 20, "black": [62, 63, 66, 67], "blacklist": 31, "blob": [15, 25, 26], "block": 14, "blue": [62, 63, 66, 67], "blueprint": 17, "bmf": [32, 106, 117], "boilerpl": [], "bolling": [7, 62, 66], "bool": [1, 22, 43, 44, 46, 72, 73, 74, 105, 116, 128, 136, 153, 164, 168, 170, 183, 185], "boolean": [12, 151, 153, 162, 164], "bot": [15, 17, 25, 32, 34, 45, 196], "both": [8, 22, 25, 30, 146, 157], "bottom": [14, 17], "bought": [36, 146, 157], "bowti": [63, 67], "box": 26, "bracket": [22, 146, 157], "broadcast": [105, 116], "broker": [1, 5, 12, 16, 19, 20, 22, 23, 24, 25, 26, 32, 35, 36, 37, 39, 44, 45, 72, 73, 74, 77, 81, 109, 110, 111, 112, 120, 121, 122, 123, 128, 136, 146, 152, 153, 157, 163, 164, 167, 182], "brokerag": [14, 17], "brown": [62, 63, 66, 67], "browser": [17, 25, 46], "bse": [32, 106, 117], "btc": [13, 19, 20, 72, 73, 74, 146, 152, 153, 157, 163, 164], "budget": [1, 5, 10, 17, 25, 32, 169, 184], "bug": 26, "bui": [1, 2, 5, 6, 7, 8, 9, 10, 12, 13, 16, 19, 22, 25, 26, 36, 40, 45, 49, 55, 105, 109, 110, 111, 112, 116, 120, 121, 122, 123, 144, 145, 146, 152, 153, 155, 156, 157, 163, 164, 167, 182], "build": [26, 27, 45], "built": [2, 5, 26], "bundl": 14, "busi": [29, 30], "butterfli": 17, "button": [14, 17], "buy_to_clos": 22, "buy_to_cov": 22, "buy_to_open": 22, "buy_trading_fe": [1, 25], "bvmf": [32, 106, 117], "byte": 17, "c": 14, "cach": [6, 8], "calcul": [13, 20, 22, 43, 44, 128, 136], "calculate_greek": 44, "calculate_trade_cost": 43, "calendar": [32, 76, 130, 138], "call": [1, 5, 6, 8, 19, 20, 22, 28, 32, 34, 35, 36, 38, 39, 40, 41, 42, 44, 72, 74, 75, 125, 126, 128, 133, 134, 136, 152, 163], "campu": [], "can": [2, 5, 6, 8, 10, 11, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 29, 32, 41, 44, 45, 48, 49, 55, 61, 62, 63, 66, 67, 70, 72, 73, 82, 101, 124, 128, 136, 142, 146, 157, 165, 166, 178, 193], "cancel": [12, 22, 30, 35, 43, 71, 109, 111, 120, 122, 142, 143, 144, 145, 146, 149, 151, 154, 155, 156, 157, 160, 162], "cancel_open_ord": [26, 30, 47, 151, 162], "cancel_ord": [12, 26, 43, 47, 149, 160], "cannot": 10, "capabl": [6, 8], "care": 41, "carri": 25, "case": [19, 21, 22], "cash": [9, 13, 22, 26, 28, 42, 43, 48, 49, 51, 55, 57, 61, 175, 177, 180, 190, 192, 195], "cash_pend": 22, "cash_settl": 22, "cash_settle_options_contract": 43, "categori": [45, 101], "caus": 14, "cboe": [125, 127, 129, 133, 135, 137], "cbot_agricultur": [32, 106, 117], "cbot_bond": [32, 106, 117], "cbot_equ": [32, 106, 117], "cbot_interestr": [32, 106, 117], "cbot_rat": [32, 106, 117], "ccxt": [11, 26], "central": [], "certain": [13, 63, 67], "cfd": 17, "cfe": [32, 106, 117], "chain": [22, 44, 124, 125, 126, 127, 129, 131, 133, 134, 135, 137, 140], "chain_data": 44, "challeng": 17, "chang": [5, 10, 12, 14, 16, 17, 20, 32], "chart": [26, 47, 62, 63, 64, 65, 66, 67, 68, 69], "check": [13, 17, 22, 26, 40, 43, 47, 72, 148, 149, 159, 160, 168, 170, 183, 185], "check_data": 21, "chf": [146, 157], "child": [22, 43], "child_ord": 22, "choic": [6, 8, 14, 17], "choos": [0, 15, 26], "chosen": [13, 16, 17], "chunk_siz": [12, 44, 73], "circl": [63, 67], "class": [1, 2, 5, 6, 8, 10, 12, 13, 16, 17, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 165, 196], "classmethod": [19, 20, 22, 23, 44], "clean_trading_tim": 44, "click": [14, 17], "client": [14, 15, 17], "client_id": 15, "close": [1, 5, 12, 13, 20, 21, 22, 28, 29, 32, 33, 40, 43, 51, 57, 72, 74, 75, 78, 81, 102, 103, 113, 114, 151, 162, 172, 187], "cme": [32, 74, 106, 117], "cme_agricultur": [32, 106, 117], "cme_bond": [32, 106, 117], "cme_equ": [32, 106, 117], "cme_interestr": [32, 106, 117], "cme_rat": [32, 106, 117], "code": [2, 5, 6, 7, 8, 13, 14, 17, 25, 26, 28, 29, 30, 33, 34, 35, 36, 37, 38, 39, 62, 66, 102, 103, 113, 114, 165], "coin": [20, 146, 157], "coinbas": [13, 26], "coinbase_api_kei": 17, "coinbase_api_secret": 17, "coinbase_config": 13, "coinbase_is_sandbox": 17, "coinbasepro": 13, "coinbasepro_config": 13, "collect": [4, 5], "color": [13, 62, 63, 66, 67, 105, 116], "column": [5, 20, 21, 44, 78, 196], "com": [2, 7, 15, 16, 17, 25, 26], "combin": 22, "comex_agricultur": [32, 106, 117], "comfort": 25, "command": [2, 25, 26], "comment": 74, "commiss": 17, "commit": 17, "common": [13, 14], "commun": [25, 26], "compar": [1, 7, 14, 17], "comparison": 2, "compat": 17, "competit": 17, "complet": [13, 14, 15, 17, 22, 26, 74, 75], "complex": 25, "complic": 26, "compon": [27, 41, 196], "compound": [146, 157], "comprehens": [4, 25], "comput": [6, 8, 17, 25, 26], "conclus": [0, 26], "concurr": [], "condit": [2, 14, 22, 40], "condor": [7, 17], "confid": 2, "config": [1, 12, 13, 16, 17, 25, 43], "configur": [2, 11, 15, 26], "confirm": [14, 17], "conflict": [14, 196], "confus": 26, "connect": [12, 13, 14, 17, 105, 116], "connect_stream": [12, 43], "consequ": [], "consid": [5, 20, 177, 192], "consist": [], "consol": [17, 105, 116], "constantli": [13, 26], "construct": 22, "constructor": 32, "contain": [1, 3, 20, 21, 22, 40, 42, 44, 78, 152, 153, 163, 164], "context": 42, "continu": [22, 146, 157], "contract": [5, 19, 20, 22, 32, 43], "control": [178, 193], "conveni": 14, "convers": [19, 178, 193], "convert": [1, 19, 20, 22, 26, 43, 44, 132, 141, 146, 157], "convert_timestep_str_to_timedelta": 44, "copi": 25, "core": 41, "corner": [14, 17], "corpor": 19, "correct": [13, 14, 16], "correctli": 17, "correspond": [17, 35, 36, 37], "cost": [14, 17, 43], "could": [128, 136], "count": [21, 32, 78, 81, 196], "countri": 14, "coupon": [2, 6, 8], "cours": [25, 26], "cover": [17, 26], "crash": [34, 40, 196], "creat": [1, 2, 5, 6, 7, 8, 10, 13, 14, 16, 17, 19, 21, 22, 36, 44, 72, 125, 127, 129, 131, 133, 135, 137, 140, 142, 144, 145, 146, 155, 156, 157], "create_asset": [71, 72, 79], "create_ord": [1, 2, 5, 6, 8, 10, 12, 13, 19, 22, 25, 26, 40, 47, 109, 110, 111, 112, 120, 121, 122, 123, 144, 145, 152, 153, 155, 156, 163, 164], "creation": [], "credenti": [13, 14, 15], "credit": [6, 8, 153, 164], "critic": [], "cross": [63, 67], "crucial": [2, 17, 25], "cryoptocurr": 13, "crypto": [0, 1, 5, 7, 11, 17, 19, 20, 23, 26, 49, 51, 55, 57, 72, 74, 106, 117, 146, 152, 153, 157, 163, 164, 167, 175, 182, 190], "cryptocurr": [1, 2, 6, 8, 13, 17, 20, 72, 73, 74, 75, 146, 157], "csv": [0, 2, 3, 9, 21, 26, 44], "cta": 14, "cumul": 7, "currenc": [19, 72, 146, 157, 167, 175, 177, 182, 190, 192], "current": [12, 13, 14, 17, 21, 36, 37, 42, 43, 44, 49, 51, 52, 55, 57, 58, 62, 63, 66, 67, 72, 73, 77, 78, 82, 83, 84, 85, 86, 87, 88, 89, 92, 93, 94, 95, 96, 97, 98, 128, 136, 143, 149, 153, 154, 160, 164, 167, 175, 178, 182, 190, 193, 196], "current_count": 196, "current_ema": 13, "current_macd": 13, "current_rsi": 13, "curv": 2, "custom": [2, 25, 32, 146, 157, 165], "custom_param": [22, 146, 157], "d": [32, 178, 193], "dai": [0, 1, 2, 5, 6, 8, 10, 17, 21, 22, 26, 30, 31, 32, 40, 44, 72, 73, 76, 79, 80, 84, 85, 86, 87, 93, 94, 95, 96, 130, 138, 146, 153, 157, 164, 178, 193], "daili": [0, 2, 5, 7, 10, 31, 72, 73], "darkblu": [62, 66], "darkgrai": [62, 66], "darkgreen": [62, 66], "darkr": [62, 66], "dash": [16, 62, 66], "dashboard": [6, 8, 25], "data": [0, 1, 3, 6, 8, 10, 11, 13, 18, 19, 20, 23, 26, 30, 31, 40, 45, 47, 62, 66, 71, 72, 73, 78, 81, 83, 89, 90, 91, 92, 98, 99, 100, 176, 179, 181, 191, 194], "data_sourc": [5, 12, 43, 44, 72, 73], "data_source_backtest": 43, "databas": [2, 5, 17, 26], "database_nam": 196, "datafram": [20, 21, 44, 64, 65, 68, 69, 72, 78, 81], "datalin": 21, "dataset": 2, "datasourc": [1, 8, 43, 44], "datasource_class": 1, "datasourcebacktest": [43, 44], "datatim": 82, "date": [0, 1, 2, 5, 6, 8, 10, 19, 21, 26, 32, 44, 74, 76, 82, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 136, 137, 138, 139, 141, 146, 157], "date_cr": 22, "date_end": 21, "date_start": 21, "daterang": 20, "datetim": [1, 2, 5, 6, 8, 10, 13, 19, 20, 21, 25, 26, 32, 43, 44, 47, 62, 63, 66, 67, 72, 76, 78, 81, 83, 84, 90, 91, 92, 93, 99, 100, 127, 130, 132, 135, 138, 139, 141, 146, 157, 171, 186], "datetime64": [5, 21], "datetime_end": [5, 43], "datetime_start": [5, 43], "db": 17, "db_connection_str": [17, 196], "dd": [76, 130, 138], "deal": [14, 26], "debit": [153, 164], "debug": [4, 46, 196], "decid": [17, 72], "decim": [23, 74, 75, 146, 147, 157, 158], "decis": [3, 4], "def": [1, 2, 5, 6, 8, 10, 12, 13, 16, 25, 26, 27, 41, 106, 117, 165, 172, 173, 178, 187, 188, 193, 196], "default": [1, 5, 10, 17, 19, 20, 21, 32, 34, 44, 45, 54, 60, 62, 63, 66, 67, 72, 73, 74, 76, 91, 100, 106, 117, 125, 127, 128, 129, 130, 133, 135, 136, 137, 138, 146, 151, 153, 157, 162, 164, 172, 173, 176, 178, 179, 181, 187, 188, 191, 193, 194, 196], "default_pytz": 44, "default_timezon": 44, "defin": [6, 7, 8, 13, 24, 27, 32, 41, 42, 43, 45, 165, 196], "definit": [], "delai": 44, "delet": 17, "delta": [7, 44, 128, 136], "demonstr": 13, "depend": [14, 17, 72, 73], "deploi": [2, 26], "deploy": 26, "deprec": [1, 15, 146, 157, 180, 195], "depric": 74, "describ": [26, 45], "descript": [1, 14, 17], "deseri": [], "design": [2, 17, 25, 27, 41], "desir": [13, 14, 21, 81, 128, 136], "detail": [0, 2, 3, 4, 9, 17, 19, 72, 148, 159], "detail_text": [62, 63, 66, 67], "determin": [6, 7, 8, 12, 22, 43, 106, 117, 146, 157, 166], "dev": [25, 26], "develop": [17, 26], "df": [5, 13, 20, 21, 30, 72, 73], "dialog": [], "diamond": [63, 67], "dict": [1, 21, 38, 42, 44, 46, 50, 54, 56, 60, 77, 104, 108, 115, 119, 146, 157], "dictionari": [1, 5, 8, 16, 36, 42, 43, 44, 46, 73, 77, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 146, 157, 165], "differ": [2, 3, 5, 7, 11, 13, 14, 17, 20, 25, 26, 45], "differenti": 7, "difficult": 5, "digit": 15, "directli": [17, 43], "directori": [5, 14, 17], "disabl": [14, 15], "disconnect": 14, "discord": [17, 26], "discord_webhook_url": 17, "discov": [25, 26], "displai": [46, 62, 63, 66, 67], "displi": 46, "divid": 47, "dividend": [20, 44, 79, 80, 128, 136, 167, 182], "do": [1, 5, 10, 13, 14, 16, 20, 22, 25, 26, 38, 44, 47, 101, 146, 157], "doc": [], "docstr": 43, "document": [11, 13, 14, 17, 25, 26, 72], "doe": [43, 44, 77, 146, 157], "doesn": [], "dollar": [146, 157, 175, 190], "don": [13, 14, 17, 26], "done": 44, "dot": [62, 63, 66, 67], "down": [14, 17, 25, 33, 63, 67], "downgrad": 17, "download": [2, 5, 6, 8, 25, 26], "drawdown": [2, 7], "dsttzinfo": 44, "dt": [13, 21, 44, 62, 63, 66, 67, 90, 91, 99, 100, 139], "dt_index": 44, "dte": 7, "due": 19, "dump": [28, 42], "duplic": 14, "durat": [7, 32, 146, 153, 157, 164, 178, 193], "dure": [1, 2, 4, 7, 17, 45, 73], "e": [2, 9, 17, 19, 20, 21, 22, 23, 25, 72, 73, 74, 146, 147, 152, 157, 158, 163], "e29b": [], "each": [0, 1, 2, 3, 5, 7, 9, 13, 14, 20, 22, 26, 30, 32, 40, 41, 44, 45, 47, 53, 59, 72, 80, 126, 134, 149, 151, 160, 162, 196], "eas": 17, "easi": [6, 8, 14, 17, 25, 26], "easier": [5, 17], "easiest": 25, "easili": [10, 26, 32, 45], "eastern": 21, "edit": 17, "effect": 17, "effici": 196, "eg": [13, 17, 19, 20, 25, 44, 47, 49, 51, 55, 57, 62, 63, 66, 67, 70, 77, 82, 105, 116, 125, 126, 133, 134, 146, 157, 178, 193], "either": [5, 19, 21, 22, 72, 73, 74, 75], "elif": 36, "els": 43, "ema": 13, "ema_threshold": 165, "email": [7, 14], "empti": [53, 59], "en": 13, "enabl": [13, 15], "encount": 22, "end": [1, 2, 6, 7, 8, 10, 14, 20, 21, 26, 42], "end_dat": 21, "endpoint": 12, "engag": 17, "engin": [26, 41], "enhanc": 25, "enjoi": 25, "enough": [], "ensur": [5, 10, 14, 17, 21, 22, 25, 26, 146, 157], "enter": [14, 17, 19, 22, 31, 146, 157, 178, 193], "entir": 13, "entiti": [5, 13, 19, 20, 21, 22, 23, 24, 25, 26, 44, 72, 73, 80, 146, 152, 153, 157, 163, 164], "entri": [15, 22], "env": [14, 17, 196], "environ": [2, 14, 26, 196], "equal": [172, 173, 178, 187, 188, 193], "equiti": [2, 14, 51, 57], "equival": 22, "equivalent_statu": 22, "error": [13, 17, 22, 34], "error_messag": 22, "especi": [82, 196], "essenti": [2, 17], "est": 5, "etc": [5, 16, 20, 21, 40, 44, 45, 48, 61, 63, 67, 77, 148, 159], "etf": [2, 10], "eth": [20, 73, 146, 153, 157, 164], "ethereum": 20, "eula": 14, "eur": [19, 72, 73, 146, 152, 153, 157, 163, 164], "eurex": [32, 106, 117], "eurusd": 73, "evalu": 43, "even": [2, 6, 8, 30, 153, 164], "event": [4, 26, 33, 34, 35, 36, 37, 38, 39, 43, 63, 67], "everi": [2, 25, 32, 40, 43, 47, 81, 196], "everyth": [17, 26], "ew": [63, 67], "exactli": 26, "exampl": [1, 2, 6, 8, 11, 12, 15, 19, 20, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 52, 53, 58, 59, 62, 63, 66, 67, 71, 72, 73, 74, 75, 79, 80, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 105, 106, 107, 109, 110, 111, 112, 113, 114, 116, 117, 118, 120, 121, 122, 123, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 196], "example_strategi": [13, 25, 26], "exce": 20, "excel": 17, "except": [15, 20, 25, 26, 34], "exchang": [14, 21, 22, 44, 72, 73, 74, 75, 76, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 125, 126, 127, 129, 130, 131, 133, 134, 135, 137, 138, 140, 146, 157], "exchange_id": 13, "excut": [168, 183], "execud": [29, 30], "execut": [2, 9, 17, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 102, 103, 107, 109, 111, 113, 114, 118, 120, 122, 143, 152, 154, 163, 172, 173, 178, 187, 188, 193], "exist": [21, 54, 60], "exit": 22, "exp_dat": [44, 125, 126, 133, 134], "expect": [17, 25, 26, 128, 136], "expens": [17, 128, 136], "expert": [25, 26], "expertis": 26, "expir": [7, 14, 19, 22, 32, 44, 72, 74, 125, 126, 127, 128, 133, 134, 135, 136, 139, 146, 157], "expiration_d": [147, 152, 158, 163], "expiri": [19, 44, 127, 132, 135, 141], "expiry_d": [127, 132, 135, 141], "explain": 2, "exponenti": 7, "export": 2, "expri": 43, "extend": 81, "extens": 2, "extract": 72, "extrem": 22, "ey": 17, "f": [13, 16, 28, 35, 36, 38, 39, 42, 72, 74, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 132, 141, 169, 171, 174, 176, 177, 179, 181, 184, 186, 189, 191, 192, 194, 196], "fact": [], "factor": [11, 26], "fairli": [], "fals": [1, 12, 13, 16, 17, 22, 25, 26, 32, 43, 44, 46, 73, 74, 83, 92, 105, 116, 128, 136, 146, 151, 157, 162], "familiar": 25, "fashion": [], "fast": [22, 25, 26], "faster": [2, 6, 8, 44], "favor": [146, 157], "featur": [0, 2, 6, 8, 26], "fee": [14, 17, 18, 26], "feel": 14, "fetch": [6, 8, 44, 126, 131, 134, 140], "few": [13, 17, 26, 101], "field": [14, 20, 22], "figur": 17, "file": [1, 4, 5, 7, 14, 15, 17, 25, 26, 101, 105, 116, 165, 196], "fill": [14, 17, 21, 22, 23, 36, 39, 43, 146, 157, 167, 182], "filter": 20, "final": [5, 6, 8, 10, 14, 26], "financ": [1, 2, 10, 26], "financi": [20, 25], "find": [13, 14, 15, 16, 17, 26, 44, 76, 127, 129, 130, 131, 135, 137, 138, 139, 140], "find_asset_in_data_stor": 44, "firm": 14, "first": [1, 5, 6, 8, 10, 13, 16, 17, 20, 21, 22, 25, 26, 30, 32, 73, 168, 178, 183, 193, 196], "first_iter": [1, 2, 5, 6, 8, 10, 26], "fit": [17, 101], "fix": [26, 81], "flat": 25, "flat_fe": [24, 25], "flexibl": [2, 5, 6, 8, 25], "float": [1, 5, 19, 20, 22, 23, 36, 39, 43, 44, 49, 51, 55, 57, 62, 63, 66, 67, 74, 75, 79, 80, 102, 103, 107, 113, 114, 118, 128, 131, 136, 140, 146, 147, 153, 157, 158, 164, 167, 169, 175, 182, 184, 190], "flow": 45, "focus": 17, "folder": [2, 5, 10, 13, 17], "follow": [2, 5, 6, 8, 13, 14, 15, 17, 19, 20, 22, 26, 27, 30, 41, 78, 165, 178, 193], "forc": [146, 157], "forex": [0, 2, 5, 6, 8, 12, 17, 19, 26, 44, 73, 74, 146, 152, 153, 157, 163, 164], "forget": 26, "form": [6, 21, 81, 106, 117, 127, 129, 135, 137, 167, 182], "format": [0, 5, 19, 21, 44, 76, 125, 126, 130, 132, 133, 134, 138, 141], "fortun": 26, "found": 26, "frame": 5, "framework": [2, 41], "free": [1, 2, 6, 8, 14, 17, 23, 26, 44, 128, 136], "frequenc": [20, 21], "frequent": 20, "friendli": 17, "from": [1, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 21, 23, 25, 26, 41, 42, 44, 45, 72, 73, 76, 80, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 136, 137, 138, 140, 146, 152, 153, 157, 163, 164, 196], "from_dict": [19, 22, 23], "full": [2, 6, 8, 11, 26, 44, 125, 133], "function": [0, 2, 3, 13, 17, 21, 26, 32, 38, 41, 44, 47, 48, 82, 142], "further": [2, 17], "futur": [0, 5, 12, 14, 17, 19, 20, 26, 43, 44, 74, 146, 147, 152, 157, 158, 163, 180, 195], "g": [2, 9, 17, 20, 21, 22, 23, 25, 72, 73, 146, 157], "gain": 26, "gamma": [128, 136], "gatewai": [], "gbp": [19, 152, 163], "gear": [], "gener": [7, 10, 13, 16, 26, 151, 162], "get": [1, 2, 5, 6, 8, 10, 11, 12, 13, 14, 17, 18, 20, 21, 22, 30, 31, 33, 38, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 55, 56, 57, 58, 59, 61, 70, 72, 73, 75, 77, 79, 80, 82, 104, 115, 124, 147, 148, 149, 150, 158, 159, 160, 161, 165, 166, 167, 172, 173, 175, 178, 182, 187, 188, 190, 193, 196], "get_asset": 44, "get_asset_by_nam": 44, "get_asset_by_symbol": 44, "get_asset_potential_tot": [26, 47], "get_bar": [20, 21, 44], "get_bars_between_d": 21, "get_cash": [26, 47], "get_chain": [26, 44, 47, 127, 129, 131, 135, 137, 140], "get_chain_full_info": 44, "get_datetim": [13, 26, 43, 44, 47], "get_datetime_rang": [26, 43, 44, 47], "get_expir": [26, 47], "get_fill_pric": 22, "get_func_stat": 25, "get_greek": [26, 47], "get_historical_account_valu": [12, 43], "get_historical_pric": [6, 8, 13, 20, 26, 31, 44, 47, 73], "get_historical_prices_for_asset": [26, 30, 47], "get_incr": 22, "get_iter_count": 21, "get_last_bar": 43, "get_last_dai": [26, 44, 47], "get_last_dividend": 20, "get_last_minut": [26, 44, 47], "get_last_pric": [2, 6, 8, 10, 13, 16, 20, 21, 26, 44, 47], "get_lines_df": [26, 47], "get_markers_df": [26, 47], "get_momentum": 20, "get_multipli": [26, 47], "get_next_option_expir": 139, "get_next_trading_dai": [26, 47], "get_ord": [13, 26, 47], "get_paramet": [26, 47, 165], "get_portfolio_valu": [26, 47], "get_posit": [13, 23, 26, 47, 150, 161], "get_quot": [21, 26, 47], "get_round_dai": [26, 44, 47], "get_round_minut": [26, 44, 47], "get_selling_ord": [23, 26, 47], "get_start_datetime_and_ts_unit": 44, "get_strik": [26, 44, 47], "get_symbol_bar": 70, "get_thread_stat": 25, "get_time_to_clos": [12, 43], "get_time_to_open": [12, 43], "get_timestamp": [12, 26, 44, 47], "get_timestep": 44, "get_total_dividend": 20, "get_total_return": 20, "get_total_return_pct": 20, "get_total_return_pct_chang": 20, "get_total_stock_split": 20, "get_total_volum": 20, "get_tracked_ord": [149, 160], "get_trading_days_panda": 44, "get_yesterday_dividend": [26, 44, 47], "getting_start": 15, "github": [13, 15, 17, 20, 25, 26], "give": [6, 8, 13, 131, 140], "given": [14, 20, 21, 43, 44, 52, 58, 71, 72, 73, 76, 84, 93, 125, 127, 129, 130, 131, 133, 135, 137, 138, 139, 140, 143, 148, 154, 159], "global": [15, 17, 20, 45], "go": [2, 5, 12, 15, 17, 25, 26], "goal": 7, "goe": [105, 116], "good": [26, 146, 157], "good_till_d": [22, 146, 157], "goog": [22, 42, 72, 73], "googl": 22, "google_symbol": 42, "gracefulli": 33, "grai": [62, 66], "graph": [7, 62, 63, 66, 67], "great": [14, 17], "greatli": [27, 41], "greek": [44, 124, 128, 136], "green": [13, 62, 63, 66, 67, 105, 116], "grouper_kwarg": 20, "growth": 7, "gtc": [146, 153, 157, 164], "gtd": [146, 157], "guarante": [146, 157], "guarente": [44, 125, 126, 133, 134], "guid": [2, 13, 16, 25, 26], "guidanc": 25, "h": [178, 193], "ha": [0, 7, 15, 20, 22, 26, 35, 36, 37, 39, 45, 71, 74, 78, 196], "handl": [], "happen": [171, 186], "happi": 17, "harm": 7, "hash": [63, 67], "have": [0, 1, 2, 5, 6, 8, 10, 14, 16, 17, 20, 22, 23, 25, 26, 28, 43, 47, 49, 51, 55, 57, 72, 78], "he": 41, "header": 14, "held": [175, 190], "hello": 40, "help": [2, 3, 6, 8, 25], "helper": [20, 22, 45], "here": [1, 2, 5, 6, 8, 11, 12, 13, 14, 15, 16, 17, 18, 25, 26, 41, 165, 166], "hex": [62, 66], "hexagon": [63, 67], "hexagon2": [63, 67], "hexagram": [63, 67], "high": [5, 20, 21, 25, 26, 43, 78, 81], "higher": 22, "highli": [15, 26], "histor": [2, 6, 8, 12, 13, 20, 26, 43, 44, 70, 72, 73], "histori": 17, "historical_limit": 20, "hkex": [32, 106, 117], "hold": [6, 8, 20, 22, 23, 26, 36], "home": 26, "hope": 25, "host": [14, 17], "hour": [13, 20, 21, 32, 40, 44, 72, 73, 106, 117, 178, 193], "hourglass": [63, 67], "hover": [62, 63, 66, 67], "how": [0, 3, 11, 12, 13, 17, 25, 26, 45, 72, 81, 166], "howev": [17, 22, 30, 32, 146, 157], "hr": [5, 21], "html": [0, 1, 3, 9, 20, 26], "http": [2, 6, 8, 12, 13, 14, 15, 16, 17, 20, 25, 26], "i": [0, 1, 2, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 26, 28, 29, 30, 32, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 46, 47, 49, 51, 52, 55, 57, 58, 62, 63, 66, 67, 72, 73, 74, 75, 76, 77, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 102, 103, 106, 113, 114, 117, 125, 126, 127, 129, 130, 132, 133, 134, 135, 137, 138, 141, 146, 147, 149, 151, 153, 157, 158, 160, 162, 164, 166, 167, 168, 170, 172, 173, 177, 178, 182, 183, 185, 187, 188, 192, 193, 196], "ib": [19, 132, 141], "ib_api_url": [14, 17], "ib_password": [14, 17], "ib_subaccount": 17, "ib_usernam": [14, 17], "ibeam": [], "ibkei": 14, "ibkr": 14, "ibkrcampu": [], "ibm": [19, 145, 156], "ic": [32, 106, 117], "iceu": [32, 106, 117], "icon": [], "id": [2, 15, 17, 148, 159, 196], "ideal": [2, 17], "identifi": [2, 13, 19, 22, 148, 159], "idx": 21, "iepa": [32, 106, 117], "illustr": 41, "iloc": [13, 72], "imag": [], "implement": [7, 17, 26, 27, 41, 44, 46], "impli": [128, 136], "implied_volatil": [128, 136], "import": [0, 1, 2, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 26, 41, 42, 44, 45, 63, 67, 73, 80, 146, 152, 153, 157, 163, 164, 165], "importantfunct": 13, "importantli": 22, "improv": 26, "includ": [2, 3, 7, 9, 10, 13, 17, 19, 20, 26, 32, 41, 44, 54, 60, 72, 124, 146, 148, 157, 159, 175, 190], "include_after_hour": [44, 72, 73], "inclus": 20, "incred": 17, "incur": 14, "index": [5, 19, 20, 21, 26, 78], "indic": [0, 1, 5, 13, 46, 52, 53, 58, 59, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 153, 164], "indicators_fil": 1, "individu": [2, 26], "industri": 26, "infinit": [103, 114], "influenc": [3, 27, 41], "info": [44, 105, 116, 125, 126, 133, 134], "inform": [2, 3, 5, 9, 10, 13, 17, 43, 44, 77, 78, 126, 131, 134, 140, 146, 157, 166], "inherit": [6, 8, 45], "initi": [1, 2, 6, 8, 13, 15, 25, 26, 27, 41, 106, 117, 165, 169, 172, 173, 178, 184, 187, 188, 193], "initial_budget": 26, "input": [21, 102, 103, 113, 114], "insert": [], "insid": [47, 166, 172, 187], "insight": [0, 2], "instal": [0, 5, 10, 13, 15, 17], "instanc": [13, 196], "instanti": [13, 16, 26, 43], "instead": [1, 5, 17, 20, 43, 107, 118, 128, 136, 180, 195], "instruct": [17, 146, 152, 153, 157, 163, 164], "instrument": 20, "int": [1, 12, 19, 20, 21, 22, 36, 39, 44, 62, 63, 66, 67, 72, 73, 81, 84, 85, 86, 87, 88, 89, 93, 94, 95, 96, 97, 98, 102, 103, 113, 114, 146, 147, 157, 158, 172, 173, 178, 187, 188, 193], "integ": [72, 73, 178, 193], "integr": [6, 8], "intend": [5, 17], "inter": [0, 5], "interact": [11, 13, 20, 22, 26, 45, 72, 73, 74, 81], "interactive_brok": 15, "interactive_brokers_client_id": 17, "interactive_brokers_config": 15, "interactive_brokers_ip": 17, "interactive_brokers_port": 17, "interactivebrok": [15, 20], "interest": [7, 13, 44, 128, 136], "interfer": [], "intern": [17, 146, 157], "interpret": [2, 178, 193], "interrupt": [33, 196], "interupt": [33, 40], "interv": 5, "intervent": [], "intial": 78, "intra": [0, 5, 10], "intradai": 2, "introduc": 2, "invest": [7, 14, 26], "involv": 9, "io": [0, 13, 20, 26], "ip": [15, 17], "iron": 7, "is_act": 22, "is_backtest": [17, 26], "is_backtest_brok": 46, "is_backtesting_brok": 43, "is_backtesting_data_sourc": [43, 44], "is_buy_ord": 22, "is_cancel": 22, "is_fil": 22, "is_market_open": [12, 43], "is_multileg": [153, 164], "is_opt": 22, "is_par": 22, "is_sell_ord": 22, "is_valid": 19, "isn": [], "isol": [], "issu": 2, "item": [], "iter": [1, 2, 6, 8, 13, 21, 32, 40, 41, 168, 171, 183, 186, 196], "iter_index": 21, "its": [1, 6, 8, 22, 42], "itself": 17, "j": [27, 41], "jan": 82, "join": [25, 26], "jpx": [32, 106, 117], "json": 196, "june": 19, "just": [19, 26, 32, 36, 43, 146, 157], "keep": [17, 22, 23, 81, 146, 157], "keep_bar": 81, "kei": [1, 2, 3, 5, 6, 8, 12, 15, 16, 17, 21, 26, 46, 128, 136, 165, 196], "kept": 81, "keybord": 33, "keyerror": [], "keyword": 22, "kill": [], "kind": [1, 25], "know": [13, 18], "knowledg": [], "known": [44, 74, 75], "kraken": [13, 26, 146, 157], "kraken_api_kei": 17, "kraken_api_secret": 17, "kraken_config": 13, "kucoin": [13, 26], "kucoin_config": 13, "kwarg": [1, 12, 19, 21, 43, 44, 153, 164], "last": [5, 13, 20, 21, 22, 28, 30, 31, 42, 43, 44, 72, 73, 74, 75, 85, 86, 94, 95, 171, 186, 196], "last_dai": [85, 94], "last_minut": [86, 95], "last_ohlc": 72, "last_on_trading_iteration_datetim": 26, "last_pric": [13, 74, 75, 196], "last_upd": 196, "later": 32, "latest": [2, 5, 10, 13, 17, 25, 26, 72], "launch": 30, "layout": [], "learn": [11, 17, 25, 26], "least": [5, 41], "leav": [151, 162], "left": [14, 17, 63, 67], "leg": 26, "legaci": [11, 26], "len": 21, "length": [13, 21, 43, 44, 72, 73, 78, 84, 93], "less": [16, 146, 147, 157, 158], "let": 13, "level": [26, 63, 67, 105, 116], "leverag": [19, 146, 157], "librari": [5, 7, 13, 16, 17, 25], "lifecycl": [26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 47, 168, 172, 173, 178, 183, 187, 188, 193], "lightblu": [62, 66], "lightgrai": [62, 66], "lightgreen": [62, 66], "lightr": [62, 66], "like": [2, 5, 17, 21, 25, 26, 29, 30, 31, 32, 33, 43, 44, 165], "limit": [6, 8, 13, 17, 22, 43, 44, 72, 73, 81, 110, 121, 146, 152, 153, 157, 163, 164], "limit_ord": [43, 146, 157], "limit_pric": [13, 22, 43, 110, 121, 146, 152, 153, 157, 163, 164], "line": [3, 26, 46, 62, 63, 64, 66, 67, 68], "link": [6, 8, 14], "list": [1, 2, 13, 18, 19, 20, 23, 25, 31, 43, 44, 47, 48, 53, 59, 61, 70, 73, 75, 80, 82, 84, 93, 101, 106, 111, 112, 117, 122, 123, 124, 127, 129, 131, 135, 137, 140, 142, 145, 149, 153, 156, 160, 164, 166], "littl": [], "live": [1, 2, 12, 14, 15, 17, 20, 25, 43, 44, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117], "live_config": 17, "ll": [13, 14, 16, 26], "lmt": 44, "lmt_order": 13, "load": [5, 18, 21, 63, 67, 196], "load_data": 44, "load_variables_from_db": [], "local": [20, 21, 42, 44, 90, 91, 99, 100, 128, 136], "localhost": [14, 17, 196], "localize_datetim": [26, 44, 47], "localize_timezon": 21, "locat": 17, "log": [0, 1, 2, 7, 10, 14, 15, 16, 17, 19, 26, 42, 101, 105, 116], "log_messag": [13, 16, 20, 26, 28, 30, 33, 34, 35, 36, 37, 38, 39, 40, 42, 47, 52, 53, 58, 59, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 132, 141, 147, 148, 149, 158, 159, 160, 167, 168, 169, 170, 171, 172, 174, 175, 176, 177, 179, 181, 182, 183, 184, 185, 186, 187, 189, 190, 191, 192, 194], "logfil": [1, 46], "logic": [27, 29, 30, 40, 41, 43, 45], "login": 14, "long": 22, "longer": 2, "longest": 7, "look": [2, 5, 15, 26], "loop": [14, 31, 40, 103, 114, 172, 187], "lose": [], "loss": [7, 22, 43, 62, 63, 66, 67, 146, 152, 153, 157, 163, 164], "lost": [], "lot": [17, 166], "low": [5, 17, 20, 21, 43, 78, 81], "lower": 21, "lse": [32, 106, 117], "luck": 26, "lumi": [2, 7, 8], "lumi10": [2, 6], "lumibot": [0, 1, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 18, 19, 22, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165], "lumiwealth": [7, 15, 26], "m": [178, 193], "mac": 26, "macd": 13, "machin": 2, "machinelearninglongshort": 25, "made": [25, 70, 82], "mai": [5, 13, 14, 17, 19, 22, 25, 72, 73, 81, 146, 157], "main": [17, 18, 22, 26, 33, 40, 45, 146, 157], "main_tick": 165, "maintain": 17, "major": [5, 10], "make": [2, 4, 5, 6, 8, 14, 17, 22, 25, 26, 74, 75], "maker": 24, "manag": [21, 22, 26, 47, 61, 124], "mandatori": [17, 19, 45, 146, 157], "mani": [6, 8, 13, 26, 32, 41, 81], "manual": [2, 14, 17], "map": 19, "map_asset_typ": 12, "margin": [13, 146, 157], "mark": [63, 67], "marker": [3, 46, 63, 65, 67, 69], "market": [2, 11, 12, 13, 17, 22, 25, 26, 28, 29, 30, 31, 32, 40, 43, 74, 75, 102, 103, 106, 109, 110, 111, 112, 113, 114, 117, 120, 121, 122, 123, 146, 151, 152, 153, 157, 162, 163, 164, 172, 173, 175, 187, 188, 190], "marketcalendar": [32, 106, 117], "martingal": 7, "master": 15, "match": [21, 44], "math": 26, "max": [7, 13], "max_bar": 32, "max_pric": 13, "max_work": [12, 43, 44, 73], "maximum": [7, 17, 44], "mean": 14, "meant": 124, "measur": [1, 7], "mechan": [], "memori": 17, "mention": 20, "menu": [14, 26], "merg": 21, "messag": [17, 101, 105, 116], "method": [1, 6, 8, 15, 19, 20, 22, 23, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 70, 101, 124, 125, 127, 129, 131, 133, 135, 137, 140, 165, 168, 172, 173, 178, 183, 187, 188, 193, 196], "metric": [2, 7], "might": [5, 13, 14, 17], "min": 20, "min_timestep": [21, 44], "mind": [], "minim": [], "minimum": 44, "minut": [1, 5, 13, 17, 20, 21, 25, 26, 29, 30, 32, 40, 43, 44, 72, 73, 84, 86, 88, 93, 95, 97, 102, 103, 113, 114, 172, 173, 178, 187, 188, 193], "minutes_before_clos": [1, 26, 29, 32, 40, 102, 113], "minutes_before_open": [1, 26, 30, 103, 114], "miscellan": [26, 47], "miss": 39, "mkt_order": 13, "mm": [76, 130, 138], "mnq": 32, "mobil": [], "mode": [0, 15, 17, 43, 170, 185], "modifi": [10, 25, 26], "modul": [5, 10, 26], "momentum": 20, "monei": [14, 16, 17, 25, 49, 51, 55, 57, 167, 182], "monitor": 17, "month": [17, 85, 94], "more": [0, 2, 3, 11, 13, 14, 16, 17, 18, 20, 25, 26, 43, 44, 47, 70, 72, 101, 124, 128, 136, 142], "most": [0, 5, 7, 14, 17, 20, 25, 41, 72, 78, 128, 136], "mostli": 43, "move": [2, 7, 22, 26], "movement": [22, 146, 157], "much": [5, 6, 8, 12, 44], "multileg": [22, 153, 164], "multipl": [2, 17, 143, 154, 196], "multipli": [19, 20, 36, 39, 44, 125, 126, 129, 131, 133, 134, 137, 140, 152, 163], "must": [1, 2, 5, 6, 8, 10, 12, 16, 21, 22, 41, 72, 73, 131, 140, 146, 157], "my": [17, 25], "my_custom_paramet": 32, "my_custom_stat": 42, "my_last_paramet": 32, "my_limit_pric": 22, "my_other_paramet": 32, "my_other_stat": 42, "my_paramet": 165, "my_stat": 42, "my_stop_loss_pric": 22, "my_stop_pric": 22, "my_take_profit_pric": 22, "my_trail_perc": 22, "my_trail_pric": 22, "mysql": [], "mystrategi": [1, 2, 5, 6, 8, 10, 13, 16, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 165], "n": [63, 67], "name": [0, 1, 5, 10, 14, 17, 19, 21, 25, 26, 32, 44, 46, 62, 63, 66, 67, 74, 105, 116, 165, 196], "namespac": 196, "nan": 21, "nasdaq": [14, 32, 106, 117], "navig": [14, 15, 17], "ne": [63, 67], "nearest": [87, 88, 96, 97], "necessari": [6, 8, 17, 43], "need": [2, 6, 8, 13, 14, 16, 17, 25, 27, 41, 43, 44, 72, 73, 77], "net": [2, 8, 51, 57], "network": 14, "new": [2, 5, 7, 14, 17, 19, 20, 22, 26, 36, 37, 43, 54, 60, 146, 157, 167, 182], "new_york": [20, 44, 176, 179, 181, 191, 194], "newer": 17, "nexpir": 19, "next": [5, 6, 8, 12, 17, 26, 40, 76, 130, 138, 139], "next_option_expir": 139, "next_trading_dai": [76, 130, 138], "nobardatafound": 20, "none": [1, 12, 13, 17, 19, 20, 21, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43, 44, 46, 49, 51, 52, 53, 54, 55, 57, 58, 59, 60, 62, 63, 66, 67, 71, 72, 73, 74, 75, 81, 84, 93, 102, 103, 105, 106, 107, 108, 113, 114, 116, 117, 118, 119, 128, 131, 136, 140, 143, 144, 145, 146, 148, 150, 151, 154, 155, 156, 157, 159, 161, 162], "normal": [5, 16, 131, 140], "notat": 196, "note": [5, 10, 13, 14, 15, 17, 20, 22, 43, 77, 146, 157], "notic": 26, "notif": [14, 17], "now": [16, 25, 44, 74], "num_period": 20, "number": [1, 12, 15, 16, 17, 21, 22, 29, 32, 44, 72, 73, 84, 87, 88, 93, 96, 97, 146, 157, 172, 173, 178, 187, 188, 193], "numpi": 21, "nuzcnprsxjxxouxrhqe5k2k1xnqlpckh2xcutifkcw": 17, "nw": [63, 67], "nyfe": [32, 106, 117], "nymex_agricultur": [32, 106, 117], "nyse": [14, 32, 76, 106, 117, 130, 138], "o": 22, "obect": [146, 157], "object": [1, 5, 10, 12, 18, 19, 20, 21, 22, 23, 24, 35, 36, 37, 39, 43, 44, 46, 52, 53, 58, 59, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 109, 110, 111, 112, 120, 121, 122, 123, 126, 131, 134, 140, 144, 145, 146, 147, 148, 149, 152, 153, 155, 156, 157, 158, 159, 160, 163, 164, 176, 181, 191, 196], "observ": 7, "obtain": [6, 8, 13, 44, 126, 127, 129, 131, 134, 135, 137, 140], "occur": 22, "oco": [22, 146, 152, 157, 163], "octagon": [63, 67], "off": [2, 6, 8], "offer": [2, 7, 14, 17, 26], "offici": 2, "often": 22, "ohlcv": [20, 21, 43], "on_abrupt_clos": [26, 27, 34], "on_bot_crash": [26, 27], "on_canceled_ord": [26, 27], "on_filled_ord": [26, 27], "on_new_ord": [26, 27], "on_parameters_upd": [26, 27], "on_partially_filled_ord": [26, 27], "on_start": [], "on_trading_inter": [12, 32], "on_trading_iter": [1, 2, 5, 6, 8, 10, 13, 16, 25, 26, 27, 28, 41, 42, 47, 102, 103, 113, 114, 165, 168, 172, 178, 183, 187, 193, 196], "onc": [2, 14, 15, 16, 17, 22, 25, 26, 32, 41, 146, 157, 196], "one": [5, 7, 13, 14, 17, 22, 25, 26, 41, 43, 47, 72, 109, 120, 146, 153, 157, 164], "ones": [17, 41], "onli": [1, 5, 10, 13, 14, 15, 17, 19, 20, 21, 22, 23, 25, 26, 32, 41, 43, 44, 46, 72, 73, 74, 77, 81, 128, 136, 143, 153, 154, 164, 172, 187], "open": [1, 2, 5, 12, 17, 20, 21, 22, 25, 29, 30, 31, 40, 43, 63, 67, 72, 78, 81, 102, 103, 113, 114, 143, 144, 145, 149, 151, 154, 155, 156, 160, 162, 173, 188], "open_": 43, "open_interest": 44, "openbook": 14, "oper": [14, 17, 32, 41], "opra": 14, "opt_asset": [128, 136], "optim": [2, 7, 17, 26], "option": [0, 2, 6, 8, 9, 12, 14, 16, 17, 19, 20, 22, 26, 32, 36, 39, 41, 43, 44, 47, 72, 74, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 146, 152, 157, 163], "option_chain": 44, "option_pric": [128, 136], "option_typ": [128, 136], "optionright": 19, "options_expiry_to_datetime_d": [26, 47], "optionscondormartingal": 196, "orang": [62, 63, 66, 67], "order": [1, 2, 5, 6, 8, 9, 10, 12, 13, 18, 19, 23, 25, 26, 29, 30, 35, 36, 37, 39, 40, 41, 43, 47, 105, 109, 110, 111, 112, 116, 120, 121, 122, 123, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 182], "order1": [111, 112, 122, 123, 145, 153, 156, 164], "order2": [111, 112, 122, 123, 145, 153, 156, 164], "order_1": 22, "order_2": 22, "order_class": 22, "order_dict": 22, "order_id": [148, 159], "order_typ": [12, 153, 164], "orderclass": 22, "orderdata": 12, "ordersid": 22, "orderstatu": 22, "ordertyp": 22, "origin": [105, 116], "os": [32, 106, 117], "other": [0, 2, 6, 8, 10, 13, 14, 15, 17, 20, 22, 25, 26, 41, 62, 66, 77, 101, 146, 157, 167, 182, 196], "otherwis": [22, 36], "oto": [22, 146, 157], "our": [7, 13, 14, 17, 25, 26, 28], "out": [14, 26, 43, 47, 52, 58, 74], "output": 196, "outstand": 13, "over": [7, 19, 20, 25, 26, 62, 63, 66, 67], "overal": [1, 7], "overbought": [62, 63, 66, 67], "overhead": [], "overload": [27, 34, 41, 43], "overrid": [102, 103, 113, 114], "oversold": [62, 63, 66, 67], "overview": 2, "overwrit": [54, 60], "own": [2, 5, 6, 8, 12, 13, 16, 17, 23, 25, 26, 150, 161], "pace": 20, "packag": [14, 26], "page": [14, 16, 17, 26], "pai": [6, 8], "paid": [1, 2, 167, 182], "pair": [13, 20, 22, 44, 74, 75, 125, 126, 133, 134, 146, 157], "panda": [0, 2, 10, 20, 21, 26, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 78, 106, 117], "pandas_data": [1, 5, 25, 43, 44], "pandas_ta": 13, "pandasdata": [43, 44], "pandasdatabacktest": [1, 5, 25], "panel": [], "paper": [11, 12, 15, 16, 17, 26, 44], "paper_1": 17, "param": 44, "paramet": [1, 2, 6, 8, 12, 19, 20, 21, 22, 23, 25, 26, 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 66, 67, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 84, 87, 88, 90, 91, 93, 96, 97, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 150, 151, 152, 153, 154, 155, 156, 157, 158, 161, 162, 163, 164, 172, 187], "parent": 22, "parquet": 5, "parse_bar_list": 20, "part": [17, 22, 41, 153, 164, 165], "partial": [22, 39], "partial_fil": 22, "partially_fil": 22, "particular": [22, 125, 127, 129, 133, 135, 137], "particularli": 19, "pass": [1, 2, 5, 8, 10, 18, 28, 36, 40, 41, 45, 102, 103, 113, 114, 128, 136, 146, 157], "password": [2, 8, 13, 14, 17, 196], "password123": [14, 17], "past": [2, 22, 25], "path_to_your_databas": [], "pattern": [27, 41], "paus": [102, 103, 107, 113, 114, 118, 178, 193], "pcal": 44, "pd": [5, 20, 44], "peak": 7, "penetr": [146, 157], "pentagon": [63, 67], "per": [20, 44], "percent": [146, 157], "percent_fe": [24, 25], "percentag": [20, 25], "perfectli": 17, "perform": [0, 2, 3, 7, 17, 26, 41], "period": [1, 2, 5, 7, 13, 21, 81, 196], "permiss": [14, 19], "permit": [], "persist": 196, "perspect": 41, "pick": [5, 10, 17, 26], "pink": [62, 63, 66, 67], "pip": [2, 5, 10, 13, 25, 26], "pk7t6yvax6pmh1em20yn": 17, "place": [9, 13, 18, 146, 151, 157, 162], "plan": [2, 17], "platform": [14, 26], "pleas": [1, 2, 5, 6, 8, 10, 13, 15, 22, 72, 180, 195], "plot": [1, 10, 46, 63, 67], "plot_file_html": 1, "plu": [14, 105, 116, 175, 190], "png": [], "pnl": 22, "point": [3, 7, 9, 15, 22, 44, 62, 66, 72, 73, 147, 158], "polygon": [0, 1, 5, 8, 10, 17, 26], "polygon_api_kei": [1, 2, 17], "polygon_has_paid_subscript": 1, "polygon_max_memory_byt": 17, "polygondatabacktest": [1, 2, 6, 8], "polygondatasourc": 6, "pop": [], "popular": 13, "porfolio": 1, "port": [15, 17], "portal": 14, "portfolio": [7, 9, 13, 23, 28, 51, 57, 63, 67, 175, 190], "portfolio_valu": [2, 6, 8, 10, 13, 26, 28, 42, 177, 192], "posit": [1, 13, 18, 22, 26, 36, 39, 43, 45, 51, 52, 53, 57, 58, 59, 147, 150, 151, 158, 161, 162, 167, 175, 182, 190], "position_fil": [22, 146, 157], "possibl": [5, 32, 44, 62, 63, 66, 67, 153, 164], "post": [153, 164], "postgresql": 196, "potenti": [2, 25, 26, 147, 158], "power": [2, 6, 8, 17, 25, 26], "powershel": 26, "practic": 14, "pre": [26, 153, 164], "preced": 47, "precis": [19, 128, 136], "predetermin": 22, "prefix": [0, 105, 116], "presenc": 17, "present": [72, 73, 128, 136], "press": 17, "prevent": 196, "previou": [7, 79, 80], "previous": [], "price": [2, 6, 8, 9, 13, 16, 17, 19, 20, 21, 22, 23, 31, 36, 39, 43, 44, 45, 47, 62, 63, 66, 67, 70, 72, 73, 74, 75, 78, 128, 136, 146, 152, 153, 157, 163, 164], "primari": [14, 196], "print": [12, 42, 196], "print_al": 25, "printout": 19, "pro": 13, "probabl": 22, "problem": [], "proceed": [5, 10, 25], "process": [4, 6, 8, 14, 17, 25, 37, 39, 152, 153, 163, 164, 196], "process_expired_option_contract": 43, "process_pending_ord": 43, "product": 43, "prof": 25, "profil": 26, "profit": [17, 22, 25, 26, 43, 62, 63, 66, 67], "program": [107, 118, 165, 178, 193], "project": [2, 6, 8, 17], "prompt": 14, "promptli": 14, "proof": 14, "proper": 17, "properli": [], "properti": [22, 23, 26, 43, 45, 46, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195], "proven": 26, "provid": [0, 2, 4, 5, 6, 8, 9, 17, 20, 21, 44, 74, 75, 131, 140, 144, 145, 155, 156], "pstat": 25, "psycopg2": [], "pull": [40, 72], "purpl": [62, 63, 66, 67], "purpos": 17, "put": [5, 12, 16, 19, 25], "pv_dividend": [128, 136], "py": [15, 17, 25, 26], "pycharm": 2, "pymysql": [], "python": [2, 5, 25, 105, 116], "pytz": 26, "qqq": 1, "qtrz3zurd9244ahuw2aoyapgvyra": 16, "qtrz3zurl9244ahuw4aoyapgvyra": 17, "qty": [2, 6, 8], "quantiti": [1, 2, 6, 7, 8, 10, 12, 13, 22, 23, 25, 26, 36, 39, 52, 53, 58, 59, 146, 157], "quantstat": 7, "queri": [44, 128, 136], "query_greek": [44, 128, 136], "question": 7, "quick": 2, "quickli": [2, 14, 17, 25], "quot": [13, 19, 20, 21, 22, 44, 49, 51, 55, 57, 72, 73, 74, 75, 77, 146, 152, 153, 157, 163, 164, 175, 177, 190, 192], "quote_asset": [1, 13, 19, 23, 26, 152, 153, 163, 164], "r": 37, "rais": 34, "randint": 42, "random": 42, "random_numb": 42, "rang": [5, 13, 17, 20, 21], "rate": [1, 6, 8, 20, 44, 128, 136], "rather": 82, "ratio": [2, 7], "raw": [5, 20, 22], "re": [2, 11, 14, 17, 26, 82], "reach": [7, 25, 26, 43], "react": [27, 41], "read": [5, 15, 25, 44], "read_csv": 5, "readi": [2, 14, 17, 41, 146, 157], "readthedoc": 13, "real": [14, 16, 17, 25, 71, 78, 81], "receiv": [5, 14], "recent": [20, 72, 78], "recommend": [0, 15, 17, 25], "record": 26, "red": [62, 63, 66, 67, 105, 116], "redeploi": 17, "reduc": 17, "refer": [2, 3, 17, 26, 27], "refin": [4, 25], "regard": [], "regardless": 82, "regist": [22, 110, 112, 121, 123], "regular": 73, "regularli": 17, "reindex": 21, "reiniti": 31, "relat": [14, 17, 36], "reliabl": [], "remain": [12, 39, 43, 172, 187], "remaind": [146, 157], "rememb": [13, 26], "remov": [180, 195], "render": 26, "repair_times_and_fil": 21, "repl": 17, "replac": [2, 6, 8, 13], "replit": 26, "report": 28, "repositori": [13, 17], "repres": [19, 22, 44, 45, 72, 73, 126, 134], "represent": [12, 21, 22, 44, 72, 73], "request": 14, "requir": [0, 1, 2, 10, 13, 14, 15, 17, 19, 22, 74, 75, 146, 153, 157, 164], "reserv": 17, "reset": 31, "resist": [63, 67], "resourc": 25, "resov": [175, 190], "respect": 20, "respond": [2, 14], "respons": [], "rest": [12, 14, 17, 41], "restart": [17, 40], "restor": 26, "restric": [146, 157], "result": [2, 5, 6, 8, 10, 25, 26, 42], "resum": 196, "retreiv": 23, "retriev": [2, 19, 21, 74, 75, 78, 196], "return": [1, 7, 12, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 64, 65, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194], "review": [2, 14], "right": [14, 17, 19, 28, 63, 67, 72, 152, 163], "right_must_be_one_of": 19, "risk": [1, 7, 14, 25, 44, 128, 136], "risk_free_r": [1, 44, 128, 136], "robot": 26, "robust": [6, 8], "romad": 7, "round": [44, 87, 88, 96, 97], "round_dai": [87, 96], "round_minut": [88, 97], "row": [20, 42, 72, 73, 81], "rsi": [2, 13], "rtype": [22, 44], "rule": 20, "run": [0, 5, 6, 8, 10, 11, 12, 14, 17, 21, 26, 30, 32, 33, 34, 37, 44, 46, 81, 102, 103, 113, 114, 143, 145, 154, 156, 170, 185], "run_al": [5, 13, 14, 15, 16, 25, 26, 46], "run_all_async": 46, "run_backtest": [0, 1, 2, 5, 6, 8, 10, 25], "runtim": 196, "safe": [], "sai": [], "sale": [6, 8], "same": [5, 14, 17, 22, 26, 73], "sampl": [12, 26], "sandbox": [13, 17], "save": [1, 5, 10, 17, 25, 46, 196], "save_logfil": 1, "save_tearsheet": [1, 46], "scalabl": [17, 196], "scale": [7, 196], "scene": 19, "scope": 42, "screen": [], "script": 5, "scroll": [14, 17], "se": [63, 67], "seamlessli": 17, "search": [2, 26], "second": [1, 12, 22, 32, 40, 43, 73, 81, 101, 107, 118, 178, 193], "secondari": [11, 26], "secret": [12, 13, 14, 16, 25, 26], "section": [2, 14, 17, 25, 47], "secur": [2, 5, 10, 14, 19, 22], "see": [2, 13, 14, 15, 17, 19, 20, 25, 26, 44, 48, 61, 70, 82, 101, 124, 142], "seek": [52, 58, 144, 155], "select": [2, 14, 17], "self": [1, 2, 5, 6, 8, 10, 12, 13, 14, 16, 17, 19, 20, 22, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 47, 165], "sell": [1, 7, 9, 22, 23, 29, 33, 34, 36, 40, 43, 45, 146, 150, 151, 152, 153, 157, 161, 162, 163, 164], "sell_al": [26, 29, 33, 34, 47], "sell_short": 22, "sell_to_clos": 22, "sell_to_open": 22, "sell_trading_fe": [1, 25], "send": [14, 17, 105, 116], "sens": 47, "separ": [14, 17], "seri": 21, "serial": [], "server": [], "servic": [17, 105, 116], "session": [], "set": [1, 2, 6, 8, 11, 14, 15, 16, 17, 19, 20, 21, 22, 25, 26, 29, 32, 43, 44, 54, 60, 72, 73, 78, 106, 117, 125, 133, 146, 157, 165, 166, 172, 173, 178, 187, 188, 193, 196], "set_cancel": 22, "set_dat": 21, "set_date_format": 21, "set_error": 22, "set_fil": 22, "set_identifi": 22, "set_market": [13, 26, 32, 47], "set_new": 22, "set_paramet": [26, 47, 165], "set_partially_fil": 22, "set_tim": 21, "settings_fil": 1, "settl": 43, "settlement": 22, "setup": [0, 2, 11, 26], "sever": [0, 2, 10, 11, 45, 165], "share": [13, 16, 20, 22, 29, 31, 36, 39, 44, 146, 157, 175, 190], "sharp": [2, 7], "sheet": 2, "shift": [21, 44, 72, 73, 84, 87, 88, 93, 96, 97], "short": [22, 106, 117], "should": [5, 10, 14, 16, 20, 22, 27, 40, 43, 45, 74, 107, 118, 128, 136], "should_continu": 43, "should_use_last_clos": 74, "show": [1, 7, 52, 53, 58, 59, 147, 148, 149, 158, 159, 160], "show_ind": [1, 46], "show_plot": [1, 46], "show_tearsheet": [1, 46], "showcas": 7, "shown": [25, 26], "shut": 33, "side": [1, 2, 6, 8, 12, 22, 25, 36, 43, 146, 157], "sidebar": 17, "sign": 14, "signatur": 14, "similar": [13, 17, 30], "similarli": [], "simpl": [1, 5, 6, 8, 10, 16, 22, 26, 146, 157], "simple_start_ib": 15, "simple_start_single_fil": [25, 26], "simpli": [6, 8], "simplifi": [6, 8], "simultan": 44, "sinc": 13, "singl": [14, 20, 44, 144, 155], "situat": 5, "six": [32, 106, 117], "size": [63, 67, 81], "skill": 25, "skip": [17, 30], "sleep": [1, 2, 26, 40, 47, 101, 102, 113, 178, 193], "sleeptim": [1, 2, 6, 8, 13, 25, 26, 32, 40, 107, 118], "slightli": [], "slow": 25, "smart": [44, 125, 127, 129, 133, 135, 137, 146, 157], "smoothli": 17, "snakeviz": 25, "snapshot": [14, 42], "snapshot_befor": 42, "so": [6, 8, 10, 13, 14, 17, 19, 22, 25, 26, 47, 82, 128, 136], "socket": [15, 17], "socket_port": 15, "sold": [36, 51, 57, 146, 157], "solid": [62, 66], "solut": 14, "some": [5, 10, 14, 25, 26, 44, 45, 74, 146, 157], "some_var": [], "someth": [5, 13], "sometim": 25, "soon": 17, "sort": [127, 129, 131, 135, 137, 140], "sortino": 7, "sought": [52, 58, 147, 158], "sourc": [0, 5, 8, 13, 20, 83, 89, 90, 91, 92, 98, 99, 100, 176, 179, 181, 191, 194], "speak": [11, 41], "specif": [2, 7, 13, 17, 19, 22, 41, 44, 62, 66, 109, 120, 125, 126, 133, 134, 146, 157, 166], "specifi": [20, 22, 44, 72, 73, 146, 157, 196], "speed": [44, 178, 193], "spend": 25, "split": [20, 45], "spy": [1, 2, 5, 6, 8, 19, 22, 25, 30, 31, 32, 36, 40, 44, 71, 72, 73, 74, 75, 79, 80, 109, 110, 111, 112, 120, 121, 122, 123, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 144, 146, 150, 152, 153, 155, 157, 161, 163, 164, 165], "sqlalchemi": [], "sqlite": 17, "squar": [63, 67], "src": 17, "sse": [32, 106, 117], "standard": [], "star": [63, 67], "start": [1, 2, 5, 6, 7, 8, 10, 11, 13, 17, 20, 21, 30, 32, 44, 72, 73, 78, 81, 102, 113, 173, 188], "start_buff": 44, "start_dat": 21, "start_dt": 44, "startegi": 5, "starter": 17, "starting_posit": 1, "stat": [1, 28, 42], "state": [17, 166, 196], "static": 44, "statist": 2, "stats_fil": [1, 32], "statu": [22, 148, 149, 159, 160], "std": 44, "steea9fhiszntmpihqjudeqolitj0javz": 17, "step": [2, 5, 14], "stike": [44, 125, 133], "still": [146, 157], "stock": [0, 1, 2, 5, 6, 8, 9, 10, 12, 17, 19, 20, 21, 22, 23, 26, 32, 44, 106, 117, 126, 134, 146, 152, 157, 163], "stock_split": 20, "stop": [14, 22, 25, 32, 33, 40, 43, 62, 63, 66, 67, 102, 103, 113, 114, 146, 152, 153, 157, 163, 164, 172, 187, 196], "stop_al": 46, "stop_limit": [22, 146, 157], "stop_loss": [146, 152, 157, 163], "stop_loss_limit": [146, 157], "stop_loss_limit_pric": [22, 146, 157], "stop_loss_pric": [22, 146, 152, 157, 163], "stop_ord": 43, "stop_pric": [22, 43, 146, 152, 153, 157, 163, 164], "storag": 26, "store": 196, "str": [1, 19, 20, 21, 22, 23, 44, 52, 58, 62, 63, 66, 67, 72, 73, 74, 75, 76, 84, 93, 105, 106, 116, 117, 125, 126, 127, 129, 130, 132, 133, 134, 135, 137, 138, 141, 146, 153, 157, 164, 174, 178, 179, 189, 193, 194], "straightforward": 17, "strangl": [14, 15], "strat": 5, "strategi": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 22, 23, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196], "strategy_001": [], "strategy_1": 32, "strategy_2": 32, "strategy_executor": [13, 16], "strategy_id": [17, 196], "strategy_nam": 17, "stream": [14, 71, 78, 81], "strength": 2, "strictli": [5, 21], "strike": [9, 19, 44, 72, 126, 128, 131, 134, 136, 140, 146, 157], "strike1": [44, 125, 126, 133, 134], "strike2": [44, 125, 126, 133, 134], "strike_max": 44, "strike_min": 44, "strike_pric": [152, 163], "string": [1, 17, 19, 20, 21, 22, 44, 72, 73, 105, 116, 132, 141, 146, 157, 178, 193, 196], "strke": [44, 125, 133], "strongli": [], "structur": [14, 26], "studio": 2, "style": [62, 66], "sub": 26, "subaccount": [14, 17], "subaccount1": 17, "submiss": 22, "submit": [14, 22, 37, 43, 47, 142, 146, 152, 153, 157, 163, 164], "submit_ord": [1, 2, 5, 6, 8, 10, 13, 19, 22, 25, 26, 40, 43, 47, 109, 110, 111, 112, 120, 121, 122, 123, 144, 145, 146, 150, 155, 156, 157, 161], "subscrib": 14, "subscript": [1, 11, 26], "subsequ": [5, 6, 8], "success": 17, "successfulli": [35, 36, 37], "suffic": 14, "suffici": [146, 157], "suggest": 26, "suit": [2, 26], "suitabl": [2, 17], "sum": [20, 51, 57], "summari": [0, 6, 8, 26, 27], "super": 26, "suppli": [0, 10, 21], "supplier": 20, "support": [2, 6, 7, 8, 13, 14, 17, 21, 25, 26, 44, 63, 67, 128, 136, 146, 157], "sure": [2, 6, 8, 14, 25, 26], "sw": [63, 67], "swim": 26, "switch": 26, "sybmol": 21, "symbol": [1, 2, 5, 6, 8, 12, 13, 19, 20, 21, 22, 23, 25, 36, 44, 63, 67, 72, 73, 74, 146, 152, 153, 157, 163, 164], "symbol2asset": 19, "system": [151, 162], "t": [6, 8, 13, 14, 17, 26], "ta": 13, "tab": 17, "tabl": 196, "tag": [22, 153, 164], "tailor": 7, "take": [6, 8, 17, 22, 25, 41, 44, 62, 63, 66, 67, 73, 74, 75, 125, 133], "take_profit_pric": [22, 146, 152, 157, 163], "taken": 4, "taker": 24, "tall": [63, 67], "tase": [32, 106, 117], "task": 41, "tear": 2, "tearsheet": [0, 1, 26, 46], "tearsheet_fil": [1, 46], "technic": [2, 13, 41], "tediou": 14, "tell": 82, "term": [2, 14], "termin": [2, 13, 25, 26], "test": [0, 2, 15, 17], "text": [62, 63, 66, 67], "than": [16, 17, 44, 82, 146, 147, 157, 158], "thei": [3, 5, 11, 17, 20, 26, 41, 81, 128, 136], "them": [2, 11, 14, 17, 20, 22, 25, 26, 47, 48, 61, 70, 82, 101, 124, 142, 145, 156], "themselv": 20, "theoret": [128, 136], "therefor": [167, 182], "theta": [44, 128, 136], "thetadata": [0, 2, 26], "thetadata_password": 8, "thetadata_usernam": 8, "thetadatabacktest": 8, "thi": [1, 2, 5, 6, 8, 9, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 49, 51, 55, 57, 62, 63, 66, 67, 72, 73, 74, 75, 77, 81, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 107, 118, 146, 153, 157, 164, 167, 168, 177, 178, 182, 183, 192, 193], "thin": [63, 67], "thing": 47, "think": [17, 82], "third": 5, "thoroughli": 15, "those": [13, 17, 166], "though": [146, 157], "thoughtfulli": [], "three": [0, 15, 20, 22], "threshold": [22, 146, 157], "throttl": 20, "through": [2, 13, 14, 17], "tick": 20, "ticker": [9, 19, 20, 32, 44, 81], "time": [3, 5, 6, 8, 9, 12, 13, 14, 17, 20, 21, 25, 32, 41, 43, 44, 45, 71, 72, 73, 78, 81, 82, 87, 88, 96, 97, 102, 103, 107, 113, 114, 118, 128, 136, 146, 157, 168, 178, 183, 193], "time_in_forc": [22, 146, 157], "timedelta": [44, 72, 73, 102, 103, 113, 114], "timefram": 20, "timeshift": [21, 43, 44, 72, 73, 84, 87, 88, 93, 96, 97], "timestamp": [2, 12, 20, 44, 62, 63, 66, 67, 85, 86, 87, 88, 89, 94, 95, 96, 97, 98, 196], "timestep": [5, 21, 43, 44, 72, 73, 84, 93], "timestep_map": [21, 44], "timezon": [20, 21, 26, 44, 90, 91, 99, 100, 176, 181, 191], "tip": 17, "titl": [], "tlt": [30, 52, 58, 73, 75, 80, 111, 112, 122, 123, 146, 147, 153, 157, 158, 164], "to_csv": 5, "to_datalin": 21, "to_default_timezon": [26, 44, 47], "to_dict": [19, 22, 23], "to_posit": 22, "to_request_field": 12, "todai": [17, 74, 82], "todo": [43, 74], "togeth": [5, 22, 25], "token": 17, "tool": [6, 8, 17, 26], "top": [14, 17, 26], "topic": 17, "total": [7, 20, 28, 51, 57, 147, 158, 175, 190], "totalview": 14, "tqqq": 25, "trace": 42, "trace_stat": [26, 27, 178, 193], "track": [19, 23, 26, 52, 53, 58, 59, 148, 149, 159, 160], "trade": [0, 1, 4, 5, 10, 11, 13, 15, 17, 18, 19, 20, 21, 22, 27, 30, 31, 32, 33, 40, 41, 43, 44, 45, 52, 58, 73, 74, 76, 78, 81, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117, 126, 130, 134, 138, 146, 157, 171, 186, 196], "trade_cost": 22, "trade_count": 196, "tradeapi": 12, "trader": [5, 6, 8, 10, 12, 13, 14, 15, 16, 26, 33], "trades_fil": 1, "tradest": 26, "tradier": [11, 26, 44, 77, 153, 164], "tradier_access_token": 17, "tradier_account_numb": 17, "tradier_config": 16, "tradier_is_pap": 17, "trading_fe": 24, "trading_fee_1": 25, "trading_fee_2": 25, "trading_hours_end": 21, "trading_hours_start": 21, "tradingcalendar": [32, 106, 117], "tradingfe": [1, 24, 25, 26], "trail": [22, 146, 152, 157, 163], "trail_perc": [22, 146, 157], "trail_pric": [22, 146, 157], "trailing_stop": [22, 146, 157], "trailing_stop_pric": [152, 163], "transact": [13, 22, 167, 182], "trashcan": 17, "tree": 26, "triangl": [63, 67], "trigger": [22, 146, 157], "trim": 21, "trim_data": 21, "troubleshoot": [], "trough": 7, "true": [1, 5, 12, 13, 16, 17, 22, 24, 25, 26, 32, 43, 44, 46, 72, 73, 74, 105, 116, 151, 162, 168, 170, 183, 185], "try": [14, 25, 146, 157], "tsx": [32, 106, 117], "tsxv": [32, 106, 117], "tupl": [22, 73], "tutori": [15, 26], "tw": [17, 20], "two": [2, 3, 11, 19, 22, 25, 26, 73, 145, 156], "twsapi": [], "type": [0, 1, 2, 5, 12, 14, 18, 19, 20, 21, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 64, 65, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 129, 130, 131, 132, 133, 134, 135, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194], "typic": [17, 22, 165], "tz_local": 21, "u": [6, 7, 8, 13, 14, 21, 26, 175, 190], "u17369206": [14, 17], "ultra": 14, "under": [13, 14, 17, 25], "underli": [19, 21, 44, 128, 131, 136, 140], "underlying_asset": 19, "underlying_pric": [44, 128, 136], "understand": [2, 4, 25], "unexpect": [], "unexpectedli": [], "uniqu": 3, "unit": [17, 44, 146, 157, 178, 193], "unix": 12, "unless": 5, "unlik": 30, "unnecessari": [14, 17], "unprocess": 22, "unspent_monei": 26, "until": [6, 8, 12, 20, 102, 103, 113, 114, 146, 157], "up": [1, 2, 5, 6, 11, 14, 15, 17, 19, 25, 26, 44, 63, 67, 196], "updat": [20, 22, 26, 36, 38, 108, 119, 146, 157, 167, 182], "update_date_index": 44, "update_paramet": [26, 38, 47], "update_raw": 22, "update_trail_stop_pric": 22, "upgrad": [2, 5, 10, 25, 26], "upload": 14, "upon": [], "upper": 14, "url": [14, 17], "us": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 55, 61, 62, 63, 66, 67, 70, 72, 73, 76, 82, 101, 105, 107, 116, 118, 127, 128, 129, 130, 131, 135, 136, 137, 138, 140, 142, 146, 157, 165, 166, 167, 177, 178, 180, 182, 192, 193, 195, 196], "us_equ": 12, "us_futur": [32, 106, 117], "usag": [17, 26], "usd": [1, 19, 21, 72, 73, 74, 146, 152, 153, 157, 163, 164], "usdc": 1, "usdt": [1, 19, 49, 51, 55, 57, 72, 74, 146, 157], "user": [0, 2, 5, 10, 14, 17, 21, 25, 27, 41, 45, 46, 144, 146, 155, 157, 196], "user123": [14, 17], "userdict": 19, "usernam": [2, 8, 14, 17], "usual": [1, 47, 178, 193], "utc": 21, "util": [], "utm_campaign": 6, "utm_sourc": 6, "utp": 14, "v": [2, 7, 19], "v2": 7, "va12204793": 17, "va22904793": 16, "valid": [2, 19, 21, 22, 44, 125, 126, 133, 134, 146, 157], "valu": [1, 3, 5, 9, 12, 13, 14, 17, 19, 20, 21, 23, 28, 43, 45, 46, 48, 49, 51, 55, 57, 61, 62, 63, 66, 67, 72, 73, 128, 136, 153, 164, 175, 190, 196], "valuat": 1, "value_typ": 23, "var": 26, "var1": 196, "var2": 196, "variabl": [14, 26, 31, 42, 166], "variant": 22, "variat": 7, "varieti": 7, "variou": [2, 6, 7, 8, 14], "vars_backup": 196, "vcpu": 17, "ve": [2, 13, 16, 26], "vector": 26, "vega": [128, 136], "verbiag": [], "veri": [10, 17, 26], "verifi": 17, "versatil": [6, 8, 13, 17], "version": [2, 5, 7, 10, 17, 25, 26], "via": 14, "view": [4, 17], "visit": [7, 16, 17, 25, 26], "visual": [2, 3, 7, 25], "visualstudio": 2, "vital": 2, "vm": 17, "volatil": [7, 22, 128, 136], "volum": [5, 20, 21, 78, 81], "voyz": [], "vwap": [78, 81], "wa": [2, 12, 13, 27, 30, 33, 34, 41, 43, 72, 167, 182], "wait": [17, 22, 39, 109, 110, 111, 112, 120, 121, 122, 123], "wait_for_order_execut": [26, 47], "wait_for_order_registr": [26, 47], "wait_for_orders_execut": [26, 47], "wait_for_orders_registr": [26, 47], "wait_to_be_clos": 22, "wait_to_be_regist": 22, "walk": [2, 17], "want": [1, 2, 5, 8, 10, 12, 13, 16, 17, 25, 26, 41, 44, 62, 66], "was_transmit": 22, "we": [5, 6, 7, 8, 10, 11, 13, 14, 17, 25, 26, 28, 47, 72, 146, 157], "weak": 2, "wealth": 26, "web": [25, 46], "webhook": 17, "websit": [2, 7, 10, 13, 14, 16, 17], "week": [72, 73], "weight": 22, "welcom": 25, "well": 26, "were": [9, 26, 38], "what": [26, 47, 82, 177, 192], "whatev": 13, "when": [0, 1, 2, 5, 6, 8, 13, 14, 17, 19, 20, 22, 25, 26, 27, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 62, 63, 66, 67, 82, 146, 157, 167, 172, 182, 187, 196], "whenev": [167, 182], "where": [22, 25, 42, 146, 157], "whether": [1, 17, 22, 44, 46, 72, 82, 128, 136, 146, 157], "which": [2, 6, 7, 8, 9, 13, 14, 17, 20, 21, 22, 32, 41, 49, 51, 55, 57, 74, 75, 76, 77, 128, 130, 136, 138, 178, 193], "while": [14, 17], "white": [62, 63, 66, 67], "who": [5, 17, 52, 58, 147, 158], "whose": [44, 126, 134], "why": [2, 26], "wide": [13, 17, 63, 67], "width": [62, 66, 72, 73], "wiki": [], "window": 26, "wish": [5, 26], "within": [1, 17, 18, 107, 118, 143, 154], "without": [14, 17, 25, 131, 140], "won": [6, 8], "word": [22, 167, 182], "work": [0, 2, 5, 11, 15, 17, 25, 26, 72, 73, 77, 166], "worker": 17, "workstat": 15, "world": [14, 17], "would": [1, 2, 5, 16, 19, 25, 26, 44, 51, 57, 146, 157, 178, 193], "wrapper": 21, "write": [1, 2, 6, 8], "www": [8, 16], "x": [63, 67], "xam": [32, 106, 117], "xasx": [32, 106, 117], "xbkk": [32, 106, 117], "xbog": [32, 106, 117], "xbom": [32, 106, 117], "xbru": [32, 106, 117], "xbud": [32, 106, 117], "xbue": [32, 106, 117], "xcbf": [32, 106, 117], "xcse": [32, 106, 117], "xdub": [32, 106, 117], "xetr": [32, 106, 117], "xfra": [32, 106, 117], "xhel": [32, 106, 117], "xhkg": [32, 106, 117], "xice": [32, 106, 117], "xidx": [32, 106, 117], "xist": [32, 106, 117], "xjse": [32, 106, 117], "xkar": [32, 106, 117], "xkl": [32, 106, 117], "xkrx": [32, 106, 117], "xli": [32, 106, 117], "xlim": [32, 106, 117], "xlon": [32, 106, 117], "xmad": [32, 106, 117], "xmex": [32, 106, 117], "xmil": [32, 106, 117], "xmo": [32, 106, 117], "xny": [32, 106, 117], "xnze": [32, 106, 117], "xosl": [32, 106, 117], "xpar": [32, 106, 117], "xph": [32, 106, 117], "xpra": [32, 106, 117], "xse": [32, 106, 117], "xsgo": [32, 106, 117], "xshg": [32, 106, 117], "xsto": [32, 106, 117], "xswx": [32, 106, 117], "xtae": [32, 106, 117], "xtai": [32, 106, 117], "xtk": [32, 106, 117], "xtse": [32, 106, 117], "xwar": [32, 106, 117], "xwbo": [32, 106, 117], "xyz1234567890abcdef": 17, "y": [63, 67], "yahoo": [0, 1, 2, 5, 20, 26, 72, 73, 106, 117], "yahoo_data": 44, "yahoodata": 44, "yahoodatabacktest": [1, 10, 25, 26, 32], "yappi": 25, "year": [2, 6, 8], "yearli": 7, "yellow": [62, 63, 66, 67], "yet": [22, 46], "yf": [5, 44], "yfinanc": [5, 44], "yield": 20, "york": [5, 17], "you": [0, 1, 2, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 17, 20, 22, 25, 26, 29, 32, 44, 47, 48, 49, 51, 55, 57, 61, 62, 66, 70, 72, 73, 82, 101, 124, 142, 146, 157, 165, 166, 178, 193], "your": [2, 5, 6, 7, 8, 10, 11, 12, 14, 15, 18, 20, 22, 40, 41, 47, 48, 49, 51, 55, 57, 61, 70, 82, 101, 146, 157, 165, 166, 178, 193, 196], "your_access_token": 16, "your_account_numb": 16, "your_alpaca_api_kei": [25, 26], "your_alpaca_secret": [25, 26], "your_api_kei": [12, 13], "your_api_secret": 12, "your_passphras": 13, "your_polygon_api_kei": [2, 6], "your_secret": 13, "your_secret_kei": 13, "yyyi": [76, 130, 138], "yyyymm": 19, "yyyymmdd": [19, 132, 141], "zero": [167, 182], "zone": [5, 20]}, "titles": ["Backtesting", "Backtesting Function", "How To Backtest", "Indicators Files", "Logs CSV", "Pandas (CSV or other data)", "Polygon.io Backtesting", "Tearsheet HTML", "ThetaData Backtesting", "Trades Files", "Yahoo", "Brokers", "Alpaca", "Crypto Brokers (Using CCXT)", "Interactive Brokers", "Interactive Brokers Legacy", "Tradier", "Deployment Guide", "Entities", "Asset", "Bars", "Data", "Order", "Position", "Trading Fee", "What is Lumibot?", "Lumibot: Backtesting and Algorithmic Trading Library", "Lifecycle Methods", "def after_market_closes", "def before_market_closes", "def before_market_opens", "def before_starting_trading", "def initialize", "def on_abrupt_closing", "def on_bot_crash", "def on_canceled_order", "def on_filled_order", "def on_new_order", "def on_parameters_updated", "def on_partially_filled_order", "def on_trading_iteration", "Summary", "def trace_stats", "Backtesting", "Data Sources", "Strategies", "Traders", "Strategy Methods", "Account Management", "self.get_cash", "self.get_parameters", "self.get_portfolio_value", "self.get_position", "self.get_positions", "self.set_parameters", "self.get_cash", "self.get_parameters", "self.get_portfolio_value", "self.get_position", "self.get_positions", "self.set_parameters", "Chart Functions", "self.add_line", "self.add_marker", "self.get_lines_df", "self.get_markers_df", "self.add_line", "self.add_marker", "self.get_lines_df", "self.get_markers_df", "Data", "self.cancel_realtime_bars", "self.get_historical_prices", "self.get_historical_prices_for_assets", "self.get_last_price", "self.get_last_prices", "self.get_next_trading_day", "self.get_quote", "self.get_realtime_bars", "self.get_yesterday_dividend", "self.get_yesterday_dividends", "self.start_realtime_bars", "DateTime", "self.get_datetime", "self.get_datetime_range", "self.get_last_day", "self.get_last_minute", "self.get_round_day", "self.get_round_minute", "self.get_timestamp", "self.localize_datetime", "self.to_default_timezone", "self.get_datetime", "self.get_datetime_range", "self.get_last_day", "self.get_last_minute", "self.get_round_day", "self.get_round_minute", "self.get_timestamp", "self.localize_datetime", "self.to_default_timezone", "Miscellaneous", "self.await_market_to_close", "self.await_market_to_open", "self.get_parameters", "self.log_message", "self.set_market", "self.sleep", "self.update_parameters", "self.wait_for_order_execution", "self.wait_for_order_registration", "self.wait_for_orders_execution", "self.wait_for_orders_registration", "self.await_market_to_close", "self.await_market_to_open", "self.get_parameters", "self.log_message", "self.set_market", "self.sleep", "self.update_parameters", "self.wait_for_order_execution", "self.wait_for_order_registration", "self.wait_for_orders_execution", "self.wait_for_orders_registration", "Options", "self.get_chain", "self.get_chains", "self.get_expiration", "self.get_greeks", "self.get_multiplier", "self.get_next_trading_day", "self.get_strikes", "self.options_expiry_to_datetime_date", "self.get_chain", "self.get_chains", "self.get_expiration", "self.get_greeks", "self.get_multiplier", "self.get_next_trading_day", "self.get_option_expiration_after_date", "self.get_strikes", "self.options_expiry_to_datetime_date", "Order Management", "self.cancel_open_orders", "self.cancel_order", "self.cancel_orders", "self.create_order", "self.get_asset_potential_total", "self.get_order", "self.get_orders", "self.get_selling_order", "self.sell_all", "self.submit_order", "self.submit_orders", "self.cancel_open_orders", "self.cancel_order", "self.cancel_orders", "self.create_order", "self.get_asset_potential_total", "self.get_order", "self.get_orders", "self.get_selling_order", "self.sell_all", "self.submit_order", "self.submit_orders", "Parameters", "Strategy Properties", "self.cash", "self.first_iteration", "self.initial_budget", "self.is_backtesting", "self.last_on_trading_iteration_datetime", "self.minutes_before_closing", "self.minutes_before_opening", "self.name", "self.portfolio_value", "self.pytz", "self.quote_asset", "self.sleeptime", "self.timezone", "self.unspent_money", "self.pytz", "self.cash", "self.first_iteration", "self.initial_budget", "self.is_backtesting", "self.last_on_trading_iteration_datetime", "self.minutes_before_closing", "self.minutes_before_opening", "self.name", "self.portfolio_value", "self.pytz", "self.quote_asset", "self.sleeptime", "self.timezone", "self.unspent_money", "Variable Backup & Restore"], "titleterms": {"1": [25, 26], "2": [25, 26], "3": [25, 26], "4": 25, "5": 25, "6": 25, "7": 25, "8": 25, "In": 5, "It": 196, "To": 2, "With": [22, 25], "account": [14, 25, 48], "ad": 25, "add_lin": [62, 66], "add_mark": [63, 67], "addit": 26, "advanc": 22, "after_market_clos": 28, "algorithm": 26, "all": 26, "alpaca": [12, 17, 25], "an": 25, "api": 25, "ask": [], "asset": 19, "authent": 14, "autom": 14, "await_market_to_clos": [102, 113], "await_market_to_open": [103, 114], "backtest": [0, 1, 2, 6, 8, 25, 26, 43], "backup": 196, "bar": 20, "before_market_clos": 29, "before_market_open": 30, "before_starting_trad": 31, "benefit": 196, "bot": 26, "broker": [11, 13, 14, 15, 17, 43], "cancel_open_ord": [143, 154], "cancel_ord": [144, 145, 155, 156], "cancel_realtime_bar": 71, "cash": [167, 182], "ccxt": 13, "chart": 61, "choos": [2, 17], "class": 25, "coinbas": 17, "conclus": [2, 17], "configur": [13, 14, 16, 17, 25, 196], "content": [0, 11, 18, 26, 27, 44, 47], "creat": [25, 26], "create_ord": [146, 157], "crypto": 13, "csv": [4, 5], "data": [2, 5, 14, 21, 43, 44, 70], "databas": 196, "datafram": 5, "datetim": 82, "def": [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42], "definit": [], "deploi": 17, "deploy": 17, "detail": [], "document": [12, 19, 20, 22, 45], "entiti": 18, "environ": 17, "exampl": [5, 13, 14, 16, 17], "extra": 26, "factor": 14, "fee": [24, 25], "file": [0, 2, 3, 9], "final": 17, "first_iter": [168, 183], "follow": 25, "frequent": [], "from": [0, 2], "full": [13, 16], "function": [1, 61], "gener": [0, 2, 17], "get": [16, 25, 26], "get_asset_potential_tot": [147, 158], "get_cash": [49, 55], "get_chain": [125, 126, 133, 134], "get_datetim": [83, 92], "get_datetime_rang": [84, 93], "get_expir": [127, 135], "get_greek": [128, 136], "get_historical_pric": 72, "get_historical_prices_for_asset": 73, "get_last_dai": [85, 94], "get_last_minut": [86, 95], "get_last_pric": [74, 75], "get_lines_df": [64, 68], "get_markers_df": [65, 69], "get_multipli": [129, 137], "get_next_trading_dai": [76, 130, 138], "get_option_expiration_after_d": 139, "get_ord": [148, 149, 159, 160], "get_paramet": [50, 56, 104, 115], "get_portfolio_valu": [51, 57], "get_posit": [52, 53, 58, 59], "get_quot": 77, "get_realtime_bar": 78, "get_round_dai": [87, 96], "get_round_minut": [88, 97], "get_selling_ord": [150, 161], "get_strik": [131, 140], "get_timestamp": [89, 98], "get_yesterday_dividend": [79, 80], "guid": [17, 196], "help": 26, "how": [2, 196], "html": [2, 7], "i": 25, "import": 25, "improv": 25, "indic": [2, 3, 26], "initi": 32, "initial_budget": [169, 184], "instal": [2, 25, 26], "instanti": 25, "interact": [14, 15, 17], "io": [2, 6], "is_backtest": [170, 185], "kei": 25, "kraken": 17, "last_on_trading_iteration_datetim": [171, 186], "leg": 22, "legaci": [15, 17], "librari": 26, "lifecycl": 27, "live": 26, "load": [], "localize_datetim": [90, 99], "log": 4, "log_messag": [105, 116], "lumibot": [2, 25, 26], "lumiwealth": 25, "manag": [48, 142], "market": 14, "method": [27, 47], "minutes_before_clos": [172, 187], "minutes_before_open": [173, 188], "miscellan": 101, "modul": [25, 44], "name": [174, 189], "need": 26, "note": [], "on_abrupt_clos": 33, "on_bot_crash": 34, "on_canceled_ord": 35, "on_filled_ord": 36, "on_new_ord": 37, "on_parameters_upd": 38, "on_partially_filled_ord": 39, "on_trading_iter": 40, "option": [25, 124], "options_expiry_to_datetime_d": [132, 141], "order": [22, 142], "other": 5, "packag": 25, "panda": [5, 44], "paper": [14, 25], "paramet": 165, "perform": 25, "platform": 17, "polygon": [2, 6], "portfolio_valu": [175, 190], "posit": 23, "profil": 25, "properti": 166, "pytz": [176, 181, 191], "question": [], "quote_asset": [177, 192], "refer": [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42], "render": 17, "replit": 17, "resourc": 26, "restor": 196, "run": [2, 13, 16, 25], "secondari": 14, "secret": 17, "self": [49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196], "sell_al": [151, 162], "set": 13, "set_market": [106, 117], "set_paramet": [54, 60], "setup": 14, "sleep": [107, 118], "sleeptim": [178, 193], "sourc": [2, 43, 44], "start": [16, 25, 26], "start_realtime_bar": 81, "step": [17, 25, 26], "storag": 196, "strategi": [13, 14, 16, 17, 25, 26, 45, 47, 166], "structur": 196, "submit_ord": [152, 153, 163, 164], "subscript": 14, "summari": [5, 41], "tabl": 26, "take": 26, "tearsheet": [2, 7], "thetadata": 8, "timezon": [179, 194], "to_default_timezon": [91, 100], "togeth": 26, "trace_stat": 42, "trade": [2, 9, 14, 24, 25, 26], "trader": [25, 46], "tradier": [16, 17], "troubleshoot": [], "two": 14, "type": 22, "unspent_monei": [180, 195], "update_paramet": [108, 119], "us": [13, 14], "usag": 196, "var": 196, "variabl": [17, 196], "wait_for_order_execut": [109, 120], "wait_for_order_registr": [110, 121], "wait_for_orders_execut": [111, 122], "wait_for_orders_registr": [112, 123], "what": 25, "why": [], "work": 196, "yahoo": [10, 44], "your": [13, 16, 17, 25, 26]}}) \ No newline at end of file +Search.setIndex({"alltitles": {"Account Management": [[48, null]], "Adding Trading Fees": [[25, "adding-trading-fees"]], "Additional Resources": [[26, "additional-resources"]], "Advanced Order Types": [[22, "advanced-order-types"]], "All Together": [[26, "all-together"]], "Alpaca": [[12, null]], "Alpaca Configuration": [[17, "alpaca-configuration"], [17, "id22"]], "Asset": [[19, null]], "Backtesting": [[0, null], [43, null]], "Backtesting Broker": [[43, "module-lumibot.backtesting.backtesting_broker"]], "Backtesting Function": [[1, null]], "Bars": [[20, null]], "Benefits of self.vars": [[196, "benefits-of-self-vars"]], "Broker Configuration": [[17, "broker-configuration"]], "Brokers": [[11, null]], "Chart Functions": [[61, null]], "Choosing Your Deployment Platform": [[17, "id1"]], "Choosing a Data Source": [[2, "choosing-a-data-source"]], "Coinbase Configuration": [[17, "coinbase-configuration"], [17, "id23"]], "Conclusion": [[2, "conclusion"], [17, "conclusion"]], "Configuration": [[16, "configuration"]], "Configuration Settings": [[13, "configuration-settings"]], "Contents:": [[0, null], [11, null], [18, null], [27, null], [47, null]], "Crypto Brokers (Using CCXT)": [[13, null]], "Data": [[21, null], [70, null]], "Data Source": [[44, "module-lumibot.data_sources.data_source"]], "Data Source Backtesting": [[43, "module-lumibot.data_sources.data_source_backtesting"]], "Data Sources": [[44, null]], "Database Configuration": [[196, "database-configuration"]], "Database Storage Structure": [[196, "database-storage-structure"]], "DateTime": [[82, null]], "Deploying to Render": [[17, "id2"]], "Deploying to Replit": [[17, "id3"]], "Deployment Guide": [[17, null]], "Documentation": [[12, "module-lumibot.brokers.alpaca"], [19, "module-entities.asset"], [20, "module-entities.bars"], [22, "module-entities.order"], [45, "module-lumibot.strategies.strategy.Strategy"]], "Entities": [[18, null]], "Example Dataframe": [[5, "id1"]], "Example Strategy": [[14, "example-strategy"]], "Example Strategy for Deployment": [[17, "example-strategy-for-deployment"]], "Files Generated from Backtesting": [[0, "files-generated-from-backtesting"], [2, "files-generated-from-backtesting"]], "Final Steps": [[17, "final-steps"]], "Full Example Strategy": [[13, "full-example-strategy"], [16, "full-example-strategy"]], "General Environment Variables": [[17, "general-environment-variables"], [17, "id27"]], "Getting Started": [[16, "getting-started"], [26, "getting-started"]], "Getting Started With Lumibot": [[25, "getting-started-with-lumibot"]], "How It Works": [[196, "how-it-works"]], "How To Backtest": [[2, null]], "In Summary": [[5, "in-summary"]], "Indicators Files": [[2, "indicators-files"], [3, null]], "Indices and tables": [[26, "indices-and-tables"]], "Installing LumiBot": [[2, "installing-lumibot"]], "Interactive Brokers": [[14, null]], "Interactive Brokers Configuration": [[14, "id1"], [17, "interactive-brokers-configuration"], [17, "id25"]], "Interactive Brokers Legacy": [[15, null]], "Interactive Brokers-Legacy Configuration": [[17, "interactive-brokers-legacy-configuration"], [17, "id26"]], "Kraken Configuration": [[17, "kraken-configuration"], [17, "id24"]], "Lifecycle Methods": [[27, null]], "Logs CSV": [[4, null]], "Lumibot: Backtesting and Algorithmic Trading Library": [[26, null]], "Lumiwealth": [[25, "id1"]], "Market Data Subscriptions": [[14, "market-data-subscriptions"]], "Miscellaneous": [[101, null]], "Module contents": [[44, "module-lumibot.data_sources"]], "Need Extra Help?": [[26, "need-extra-help"]], "Options": [[124, null]], "Order": [[22, null]], "Order Management": [[142, null]], "Order With Legs": [[22, "order-with-legs"]], "Pandas": [[44, "module-lumibot.data_sources.pandas_data"]], "Pandas (CSV or other data)": [[5, null]], "Parameters": [[165, null]], "Polygon.io Backtesting": [[6, null]], "Position": [[23, null]], "Profiling to Improve Performance": [[25, "profiling-to-improve-performance"]], "Reference": [[28, "reference"], [29, "reference"], [30, "reference"], [31, "reference"], [32, "reference"], [33, "reference"], [34, "reference"], [35, "reference"], [36, "reference"], [37, "reference"], [38, "reference"], [39, "reference"], [40, "reference"], [42, "reference"]], "Running Your Strategy": [[13, "running-your-strategy"], [16, "running-your-strategy"]], "Running a Backtest with Polygon.io": [[2, "running-a-backtest-with-polygon-io"]], "Secrets Configuration": [[17, "secrets-configuration"]], "Step 1: Install Lumibot": [[26, "step-1-install-lumibot"]], "Step 1: Install the Package": [[25, "step-1-install-the-package"]], "Step 2: Create a Strategy for Backtesting": [[26, "step-2-create-a-strategy-for-backtesting"]], "Step 2: Import the Following Modules": [[25, "step-2-import-the-following-modules"]], "Step 3: Create an Alpaca Paper Trading Account": [[25, "step-3-create-an-alpaca-paper-trading-account"]], "Step 3: Take Your Bot Live": [[26, "step-3-take-your-bot-live"]], "Step 4: Configure Your API Keys": [[25, "step-4-configure-your-api-keys"]], "Step 5: Create a Strategy Class": [[25, "step-5-create-a-strategy-class"]], "Step 6: Instantiate the Trader, Alpaca, and Strategy Classes": [[25, "step-6-instantiate-the-trader-alpaca-and-strategy-classes"]], "Step 7: Backtest the Strategy (Optional)": [[25, "step-7-backtest-the-strategy-optional"]], "Step 8: Run the Strategy": [[25, "step-8-run-the-strategy"]], "Strategies": [[45, null]], "Strategy Methods": [[47, null]], "Strategy Properties": [[166, null]], "Strategy Setup": [[14, "strategy-setup"]], "Summary": [[41, null]], "Table of Contents": [[26, "table-of-contents"]], "Tearsheet HTML": [[2, "tearsheet-html"], [7, null]], "ThetaData Backtesting": [[8, null]], "Trader": [[46, "module-lumibot.traders.trader"]], "Traders": [[46, null]], "Trades Files": [[2, "trades-files"], [9, null]], "Tradier": [[16, null]], "Tradier Configuration": [[17, "tradier-configuration"], [17, "id21"]], "Trading Fee": [[24, null]], "Two-Factor Authentication (2FA)": [[14, "two-factor-authentication-2fa"]], "Usage Guide": [[196, "usage-guide"]], "Using a Paper Trading Account": [[14, "using-a-paper-trading-account"]], "Using a Secondary Username": [[14, "using-a-secondary-username"]], "Variable Backup & Restore": [[196, null]], "What is Lumibot?": [[25, null]], "Yahoo": [[10, null], [44, "module-lumibot.data_sources.yahoo_data"]], "def after_market_closes": [[28, null]], "def before_market_closes": [[29, null]], "def before_market_opens": [[30, null]], "def before_starting_trading": [[31, null]], "def initialize": [[32, null]], "def on_abrupt_closing": [[33, null]], "def on_bot_crash": [[34, null]], "def on_canceled_order": [[35, null]], "def on_filled_order": [[36, null]], "def on_new_order": [[37, null]], "def on_parameters_updated": [[38, null]], "def on_partially_filled_order": [[39, null]], "def on_trading_iteration": [[40, null]], "def trace_stats": [[42, null]], "self.add_line": [[62, null], [66, null]], "self.add_marker": [[63, null], [67, null]], "self.await_market_to_close": [[102, null], [113, null]], "self.await_market_to_open": [[103, null], [114, null]], "self.cancel_open_orders": [[143, null], [154, null]], "self.cancel_order": [[144, null], [155, null]], "self.cancel_orders": [[145, null], [156, null]], "self.cancel_realtime_bars": [[71, null]], "self.cash": [[167, null], [182, null]], "self.create_order": [[146, null], [157, null]], "self.first_iteration": [[168, null], [183, null]], "self.get_asset_potential_total": [[147, null], [158, null]], "self.get_cash": [[49, null], [55, null]], "self.get_chain": [[125, null], [133, null]], "self.get_chains": [[126, null], [134, null]], "self.get_datetime": [[83, null], [92, null]], "self.get_datetime_range": [[84, null], [93, null]], "self.get_expiration": [[127, null], [135, null]], "self.get_greeks": [[128, null], [136, null]], "self.get_historical_prices": [[72, null]], "self.get_historical_prices_for_assets": [[73, null]], "self.get_last_day": [[85, null], [94, null]], "self.get_last_minute": [[86, null], [95, null]], "self.get_last_price": [[74, null]], "self.get_last_prices": [[75, null]], "self.get_lines_df": [[64, null], [68, null]], "self.get_markers_df": [[65, null], [69, null]], "self.get_multiplier": [[129, null], [137, null]], "self.get_next_trading_day": [[76, null], [130, null], [138, null]], "self.get_option_expiration_after_date": [[139, null]], "self.get_order": [[148, null], [159, null]], "self.get_orders": [[149, null], [160, null]], "self.get_parameters": [[50, null], [56, null], [104, null], [115, null]], "self.get_portfolio_value": [[51, null], [57, null]], "self.get_position": [[52, null], [58, null]], "self.get_positions": [[53, null], [59, null]], "self.get_quote": [[77, null]], "self.get_realtime_bars": [[78, null]], "self.get_round_day": [[87, null], [96, null]], "self.get_round_minute": [[88, null], [97, null]], "self.get_selling_order": [[150, null], [161, null]], "self.get_strikes": [[131, null], [140, null]], "self.get_timestamp": [[89, null], [98, null]], "self.get_yesterday_dividend": [[79, null]], "self.get_yesterday_dividends": [[80, null]], "self.initial_budget": [[169, null], [184, null]], "self.is_backtesting": [[170, null], [185, null]], "self.last_on_trading_iteration_datetime": [[171, null], [186, null]], "self.localize_datetime": [[90, null], [99, null]], "self.log_message": [[105, null], [116, null]], "self.minutes_before_closing": [[172, null], [187, null]], "self.minutes_before_opening": [[173, null], [188, null]], "self.name": [[174, null], [189, null]], "self.options_expiry_to_datetime_date": [[132, null], [141, null]], "self.portfolio_value": [[175, null], [190, null]], "self.pytz": [[176, null], [181, null], [191, null]], "self.quote_asset": [[177, null], [192, null]], "self.sell_all": [[151, null], [162, null]], "self.set_market": [[106, null], [117, null]], "self.set_parameters": [[54, null], [60, null]], "self.sleep": [[107, null], [118, null]], "self.sleeptime": [[178, null], [193, null]], "self.start_realtime_bars": [[81, null]], "self.submit_order": [[152, null], [163, null]], "self.submit_orders": [[153, null], [164, null]], "self.timezone": [[179, null], [194, null]], "self.to_default_timezone": [[91, null], [100, null]], "self.unspent_money": [[180, null], [195, null]], "self.update_parameters": [[108, null], [119, null]], "self.wait_for_order_execution": [[109, null], [120, null]], "self.wait_for_order_registration": [[110, null], [121, null]], "self.wait_for_orders_execution": [[111, null], [122, null]], "self.wait_for_orders_registration": [[112, null], [123, null]]}, "docnames": ["backtesting", "backtesting.backtesting_function", "backtesting.how_to_backtest", "backtesting.indicators_files", "backtesting.logs_csv", "backtesting.pandas", "backtesting.polygon", "backtesting.tearsheet_html", "backtesting.thetadata", "backtesting.trades_files", "backtesting.yahoo", "brokers", "brokers.alpaca", "brokers.ccxt", "brokers.interactive_brokers", "brokers.interactive_brokers_legacy", "brokers.tradier", "deployment", "entities", "entities.asset", "entities.bars", "entities.data", "entities.order", "entities.position", "entities.trading_fee", "getting_started", "index", "lifecycle_methods", "lifecycle_methods.after_market_closes", "lifecycle_methods.before_market_closes", "lifecycle_methods.before_market_opens", "lifecycle_methods.before_starting_trading", "lifecycle_methods.initialize", "lifecycle_methods.on_abrupt_closing", "lifecycle_methods.on_bot_crash", "lifecycle_methods.on_canceled_order", "lifecycle_methods.on_filled_order", "lifecycle_methods.on_new_order", "lifecycle_methods.on_parameters_updated", "lifecycle_methods.on_partially_filled_order", "lifecycle_methods.on_trading_iteration", "lifecycle_methods.summary", "lifecycle_methods.trace_stats", "lumibot.backtesting", "lumibot.data_sources", "lumibot.strategies", "lumibot.traders", "strategy_methods", "strategy_methods.account", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_cash", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_parameters", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_portfolio_value", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_position", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_positions", "strategy_methods.account/lumibot.strategies.strategy.Strategy.set_parameters", "strategy_methods.account/strategies.strategy.Strategy.get_cash", "strategy_methods.account/strategies.strategy.Strategy.get_parameters", "strategy_methods.account/strategies.strategy.Strategy.get_portfolio_value", "strategy_methods.account/strategies.strategy.Strategy.get_position", "strategy_methods.account/strategies.strategy.Strategy.get_positions", "strategy_methods.account/strategies.strategy.Strategy.set_parameters", "strategy_methods.chart", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_line", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_marker", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_lines_df", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_markers_df", "strategy_methods.chart/strategies.strategy.Strategy.add_line", "strategy_methods.chart/strategies.strategy.Strategy.add_marker", "strategy_methods.chart/strategies.strategy.Strategy.get_lines_df", "strategy_methods.chart/strategies.strategy.Strategy.get_markers_df", "strategy_methods.data", "strategy_methods.data/lumibot.strategies.strategy.Strategy.cancel_realtime_bars", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_price", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_prices", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_quote", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_realtime_bars", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividend", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividends", "strategy_methods.data/lumibot.strategies.strategy.Strategy.start_realtime_bars", "strategy_methods.datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime_range", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_day", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_minute", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_day", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_minute", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_timestamp", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.localize_datetime", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.to_default_timezone", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime_range", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_day", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_minute", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_day", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_minute", "strategy_methods.datetime/strategies.strategy.Strategy.get_timestamp", "strategy_methods.datetime/strategies.strategy.Strategy.localize_datetime", "strategy_methods.datetime/strategies.strategy.Strategy.to_default_timezone", "strategy_methods.misc", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_close", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_open", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.get_parameters", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.log_message", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.set_market", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.sleep", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.update_parameters", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_execution", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_registration", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_execution", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_registration", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_close", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_open", "strategy_methods.misc/strategies.strategy.Strategy.get_parameters", "strategy_methods.misc/strategies.strategy.Strategy.log_message", "strategy_methods.misc/strategies.strategy.Strategy.set_market", "strategy_methods.misc/strategies.strategy.Strategy.sleep", "strategy_methods.misc/strategies.strategy.Strategy.update_parameters", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_execution", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_registration", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_execution", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_registration", "strategy_methods.options", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chain", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chains", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_expiration", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_greeks", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_multiplier", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_strikes", "strategy_methods.options/lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", "strategy_methods.options/strategies.strategy.Strategy.get_chain", "strategy_methods.options/strategies.strategy.Strategy.get_chains", "strategy_methods.options/strategies.strategy.Strategy.get_expiration", "strategy_methods.options/strategies.strategy.Strategy.get_greeks", "strategy_methods.options/strategies.strategy.Strategy.get_multiplier", "strategy_methods.options/strategies.strategy.Strategy.get_next_trading_day", "strategy_methods.options/strategies.strategy.Strategy.get_option_expiration_after_date", "strategy_methods.options/strategies.strategy.Strategy.get_strikes", "strategy_methods.options/strategies.strategy.Strategy.options_expiry_to_datetime_date", "strategy_methods.orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_open_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.create_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_asset_potential_total", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_orders", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_selling_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.sell_all", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_order", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_orders", "strategy_methods.orders/strategies.strategy.Strategy.cancel_open_orders", "strategy_methods.orders/strategies.strategy.Strategy.cancel_order", "strategy_methods.orders/strategies.strategy.Strategy.cancel_orders", "strategy_methods.orders/strategies.strategy.Strategy.create_order", "strategy_methods.orders/strategies.strategy.Strategy.get_asset_potential_total", "strategy_methods.orders/strategies.strategy.Strategy.get_order", "strategy_methods.orders/strategies.strategy.Strategy.get_orders", "strategy_methods.orders/strategies.strategy.Strategy.get_selling_order", "strategy_methods.orders/strategies.strategy.Strategy.sell_all", "strategy_methods.orders/strategies.strategy.Strategy.submit_order", "strategy_methods.orders/strategies.strategy.Strategy.submit_orders", "strategy_methods.parameters", "strategy_properties", "strategy_properties/lumibot.strategies.strategy.Strategy.cash", "strategy_properties/lumibot.strategies.strategy.Strategy.first_iteration", "strategy_properties/lumibot.strategies.strategy.Strategy.initial_budget", "strategy_properties/lumibot.strategies.strategy.Strategy.is_backtesting", "strategy_properties/lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_closing", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_opening", "strategy_properties/lumibot.strategies.strategy.Strategy.name", "strategy_properties/lumibot.strategies.strategy.Strategy.portfolio_value", "strategy_properties/lumibot.strategies.strategy.Strategy.pytz", "strategy_properties/lumibot.strategies.strategy.Strategy.quote_asset", "strategy_properties/lumibot.strategies.strategy.Strategy.sleeptime", "strategy_properties/lumibot.strategies.strategy.Strategy.timezone", "strategy_properties/lumibot.strategies.strategy.Strategy.unspent_money", "strategy_properties/lumibot.strategies.strategy.pytz", "strategy_properties/strategies.strategy.Strategy.cash", "strategy_properties/strategies.strategy.Strategy.first_iteration", "strategy_properties/strategies.strategy.Strategy.initial_budget", "strategy_properties/strategies.strategy.Strategy.is_backtesting", "strategy_properties/strategies.strategy.Strategy.last_on_trading_iteration_datetime", "strategy_properties/strategies.strategy.Strategy.minutes_before_closing", "strategy_properties/strategies.strategy.Strategy.minutes_before_opening", "strategy_properties/strategies.strategy.Strategy.name", "strategy_properties/strategies.strategy.Strategy.portfolio_value", "strategy_properties/strategies.strategy.Strategy.pytz", "strategy_properties/strategies.strategy.Strategy.quote_asset", "strategy_properties/strategies.strategy.Strategy.sleeptime", "strategy_properties/strategies.strategy.Strategy.timezone", "strategy_properties/strategies.strategy.Strategy.unspent_money", "vars"], "envversion": {"sphinx": 64, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2}, "filenames": ["backtesting.rst", "backtesting.backtesting_function.rst", "backtesting.how_to_backtest.rst", "backtesting.indicators_files.rst", "backtesting.logs_csv.rst", "backtesting.pandas.rst", "backtesting.polygon.rst", "backtesting.tearsheet_html.rst", "backtesting.thetadata.rst", "backtesting.trades_files.rst", "backtesting.yahoo.rst", "brokers.rst", "brokers.alpaca.rst", "brokers.ccxt.rst", "brokers.interactive_brokers.rst", "brokers.interactive_brokers_legacy.rst", "brokers.tradier.rst", "deployment.rst", "entities.rst", "entities.asset.rst", "entities.bars.rst", "entities.data.rst", "entities.order.rst", "entities.position.rst", "entities.trading_fee.rst", "getting_started.rst", "index.rst", "lifecycle_methods.rst", "lifecycle_methods.after_market_closes.rst", "lifecycle_methods.before_market_closes.rst", "lifecycle_methods.before_market_opens.rst", "lifecycle_methods.before_starting_trading.rst", "lifecycle_methods.initialize.rst", "lifecycle_methods.on_abrupt_closing.rst", "lifecycle_methods.on_bot_crash.rst", "lifecycle_methods.on_canceled_order.rst", "lifecycle_methods.on_filled_order.rst", "lifecycle_methods.on_new_order.rst", "lifecycle_methods.on_parameters_updated.rst", "lifecycle_methods.on_partially_filled_order.rst", "lifecycle_methods.on_trading_iteration.rst", "lifecycle_methods.summary.rst", "lifecycle_methods.trace_stats.rst", "lumibot.backtesting.rst", "lumibot.data_sources.rst", "lumibot.strategies.rst", "lumibot.traders.rst", "strategy_methods.rst", "strategy_methods.account.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_cash.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_portfolio_value.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_position.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.get_positions.rst", "strategy_methods.account/lumibot.strategies.strategy.Strategy.set_parameters.rst", "strategy_methods.account/strategies.strategy.Strategy.get_cash.rst", "strategy_methods.account/strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.account/strategies.strategy.Strategy.get_portfolio_value.rst", "strategy_methods.account/strategies.strategy.Strategy.get_position.rst", "strategy_methods.account/strategies.strategy.Strategy.get_positions.rst", "strategy_methods.account/strategies.strategy.Strategy.set_parameters.rst", "strategy_methods.chart.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_line.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.add_marker.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_lines_df.rst", "strategy_methods.chart/lumibot.strategies.strategy.Strategy.get_markers_df.rst", "strategy_methods.chart/strategies.strategy.Strategy.add_line.rst", "strategy_methods.chart/strategies.strategy.Strategy.add_marker.rst", "strategy_methods.chart/strategies.strategy.Strategy.get_lines_df.rst", "strategy_methods.chart/strategies.strategy.Strategy.get_markers_df.rst", "strategy_methods.data.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.cancel_realtime_bars.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_price.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_last_prices.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_quote.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_realtime_bars.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividend.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.get_yesterday_dividends.rst", "strategy_methods.data/lumibot.strategies.strategy.Strategy.start_realtime_bars.rst", "strategy_methods.datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_datetime_range.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_day.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_last_minute.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_day.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_round_minute.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.get_timestamp.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.localize_datetime.rst", "strategy_methods.datetime/lumibot.strategies.strategy.Strategy.to_default_timezone.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_datetime_range.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_day.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_last_minute.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_day.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_round_minute.rst", "strategy_methods.datetime/strategies.strategy.Strategy.get_timestamp.rst", "strategy_methods.datetime/strategies.strategy.Strategy.localize_datetime.rst", "strategy_methods.datetime/strategies.strategy.Strategy.to_default_timezone.rst", "strategy_methods.misc.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_close.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.await_market_to_open.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.log_message.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.set_market.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.sleep.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.update_parameters.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_execution.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_order_registration.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_execution.rst", "strategy_methods.misc/lumibot.strategies.strategy.Strategy.wait_for_orders_registration.rst", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_close.rst", "strategy_methods.misc/strategies.strategy.Strategy.await_market_to_open.rst", "strategy_methods.misc/strategies.strategy.Strategy.get_parameters.rst", "strategy_methods.misc/strategies.strategy.Strategy.log_message.rst", "strategy_methods.misc/strategies.strategy.Strategy.set_market.rst", "strategy_methods.misc/strategies.strategy.Strategy.sleep.rst", "strategy_methods.misc/strategies.strategy.Strategy.update_parameters.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_execution.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_order_registration.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_execution.rst", "strategy_methods.misc/strategies.strategy.Strategy.wait_for_orders_registration.rst", "strategy_methods.options.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chain.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_chains.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_expiration.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_greeks.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_multiplier.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.get_strikes.rst", "strategy_methods.options/lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date.rst", "strategy_methods.options/strategies.strategy.Strategy.get_chain.rst", "strategy_methods.options/strategies.strategy.Strategy.get_chains.rst", "strategy_methods.options/strategies.strategy.Strategy.get_expiration.rst", "strategy_methods.options/strategies.strategy.Strategy.get_greeks.rst", "strategy_methods.options/strategies.strategy.Strategy.get_multiplier.rst", "strategy_methods.options/strategies.strategy.Strategy.get_next_trading_day.rst", "strategy_methods.options/strategies.strategy.Strategy.get_option_expiration_after_date.rst", "strategy_methods.options/strategies.strategy.Strategy.get_strikes.rst", "strategy_methods.options/strategies.strategy.Strategy.options_expiry_to_datetime_date.rst", "strategy_methods.orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_open_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.cancel_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.create_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_asset_potential_total.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_orders.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.get_selling_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.sell_all.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_order.rst", "strategy_methods.orders/lumibot.strategies.strategy.Strategy.submit_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_open_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.cancel_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.create_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_asset_potential_total.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_orders.rst", "strategy_methods.orders/strategies.strategy.Strategy.get_selling_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.sell_all.rst", "strategy_methods.orders/strategies.strategy.Strategy.submit_order.rst", "strategy_methods.orders/strategies.strategy.Strategy.submit_orders.rst", "strategy_methods.parameters.rst", "strategy_properties.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.cash.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.first_iteration.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.initial_budget.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.is_backtesting.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_closing.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.minutes_before_opening.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.name.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.portfolio_value.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.pytz.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.quote_asset.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.sleeptime.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.timezone.rst", "strategy_properties/lumibot.strategies.strategy.Strategy.unspent_money.rst", "strategy_properties/lumibot.strategies.strategy.pytz.rst", "strategy_properties/strategies.strategy.Strategy.cash.rst", "strategy_properties/strategies.strategy.Strategy.first_iteration.rst", "strategy_properties/strategies.strategy.Strategy.initial_budget.rst", "strategy_properties/strategies.strategy.Strategy.is_backtesting.rst", "strategy_properties/strategies.strategy.Strategy.last_on_trading_iteration_datetime.rst", "strategy_properties/strategies.strategy.Strategy.minutes_before_closing.rst", "strategy_properties/strategies.strategy.Strategy.minutes_before_opening.rst", "strategy_properties/strategies.strategy.Strategy.name.rst", "strategy_properties/strategies.strategy.Strategy.portfolio_value.rst", "strategy_properties/strategies.strategy.Strategy.pytz.rst", "strategy_properties/strategies.strategy.Strategy.quote_asset.rst", "strategy_properties/strategies.strategy.Strategy.sleeptime.rst", "strategy_properties/strategies.strategy.Strategy.timezone.rst", "strategy_properties/strategies.strategy.Strategy.unspent_money.rst", "vars.rst"], "indexentries": {"_asset_types (entities.asset.asset attribute)": [[19, "entities.asset.Asset._asset_types", false]], "_get_bars_dict() (entities.data.data method)": [[21, "entities.data.Data._get_bars_dict", false]], "_right (entities.asset.asset attribute)": [[19, "entities.asset.Asset._right", false]], "add_child_order() (entities.order.order method)": [[22, "entities.order.Order.add_child_order", false]], "add_line() (in module lumibot.strategies.strategy.strategy)": [[62, "lumibot.strategies.strategy.Strategy.add_line", false], [66, "lumibot.strategies.strategy.Strategy.add_line", false]], "add_marker() (in module lumibot.strategies.strategy.strategy)": [[63, "lumibot.strategies.strategy.Strategy.add_marker", false], [67, "lumibot.strategies.strategy.Strategy.add_marker", false]], "add_order() (entities.position.position method)": [[23, "entities.position.Position.add_order", false]], "add_strategy() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.add_strategy", false]], "add_transaction() (entities.order.order method)": [[22, "entities.order.Order.add_transaction", false]], "after_market_closes() (in module lumibot.strategies.strategy.strategy)": [[28, "lumibot.strategies.strategy.Strategy.after_market_closes", false]], "aggregate_bars() (entities.bars.bars method)": [[20, "entities.bars.Bars.aggregate_bars", false], [20, "id0", false]], "alpaca (class in lumibot.brokers.alpaca)": [[12, "lumibot.brokers.alpaca.Alpaca", false]], "api (lumibot.brokers.alpaca.alpaca attribute)": [[12, "lumibot.brokers.alpaca.Alpaca.api", false]], "asset (class in entities.asset)": [[19, "entities.asset.Asset", false]], "asset (entities.data.data attribute)": [[21, "entities.data.Data.asset", false]], "asset (entities.position.position attribute)": [[23, "entities.position.Position.asset", false]], "asset.assettype (class in entities.asset)": [[19, "entities.asset.Asset.AssetType", false]], "asset.optionright (class in entities.asset)": [[19, "entities.asset.Asset.OptionRight", false]], "asset_type (entities.asset.asset attribute)": [[19, "entities.asset.Asset.asset_type", false], [19, "id0", false]], "asset_type_map (lumibot.brokers.alpaca.alpaca attribute)": [[12, "lumibot.brokers.alpaca.Alpaca.ASSET_TYPE_MAP", false]], "asset_type_must_be_one_of() (entities.asset.asset method)": [[19, "entities.asset.Asset.asset_type_must_be_one_of", false], [19, "id1", false]], "assetsmapping (class in entities.asset)": [[19, "entities.asset.AssetsMapping", false]], "available (entities.position.position attribute)": [[23, "entities.position.Position.available", false]], "available (entities.position.position property)": [[23, "id0", false]], "avg_fill_price (entities.order.order property)": [[22, "entities.order.Order.avg_fill_price", false]], "avg_fill_price (entities.position.position attribute)": [[23, "entities.position.Position.avg_fill_price", false]], "await_market_to_close() (in module lumibot.strategies.strategy.strategy)": [[102, "lumibot.strategies.strategy.Strategy.await_market_to_close", false], [113, "lumibot.strategies.strategy.Strategy.await_market_to_close", false]], "await_market_to_open() (in module lumibot.strategies.strategy.strategy)": [[103, "lumibot.strategies.strategy.Strategy.await_market_to_open", false], [114, "lumibot.strategies.strategy.Strategy.await_market_to_open", false]], "backtestingbroker (class in lumibot.backtesting.backtesting_broker)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker", false]], "bars (class in entities.bars)": [[20, "entities.bars.Bars", false]], "before_market_closes() (in module lumibot.strategies.strategy.strategy)": [[29, "lumibot.strategies.strategy.Strategy.before_market_closes", false]], "before_market_opens() (in module lumibot.strategies.strategy.strategy)": [[30, "lumibot.strategies.strategy.Strategy.before_market_opens", false]], "before_starting_trading() (in module lumibot.strategies.strategy.strategy)": [[31, "lumibot.strategies.strategy.Strategy.before_starting_trading", false]], "bracket (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.BRACKET", false]], "bracket (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.BRACKET", false]], "buy (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY", false]], "buy_to_close (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_CLOSE", false]], "buy_to_cover (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_COVER", false]], "buy_to_open (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.BUY_TO_OPEN", false]], "calculate_greeks() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.calculate_greeks", false]], "calculate_trade_cost() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.calculate_trade_cost", false]], "call (entities.asset.asset.optionright attribute)": [[19, "entities.asset.Asset.OptionRight.CALL", false]], "cancel_open_orders() (in module lumibot.strategies.strategy.strategy)": [[143, "lumibot.strategies.strategy.Strategy.cancel_open_orders", false], [154, "lumibot.strategies.strategy.Strategy.cancel_open_orders", false]], "cancel_order() (in module lumibot.strategies.strategy.strategy)": [[144, "lumibot.strategies.strategy.Strategy.cancel_order", false], [155, "lumibot.strategies.strategy.Strategy.cancel_order", false]], "cancel_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.cancel_order", false]], "cancel_order() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.cancel_order", false]], "cancel_orders() (in module lumibot.strategies.strategy.strategy)": [[145, "lumibot.strategies.strategy.Strategy.cancel_orders", false], [156, "lumibot.strategies.strategy.Strategy.cancel_orders", false]], "cancel_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[71, "lumibot.strategies.strategy.Strategy.cancel_realtime_bars", false]], "canceled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CANCELED", false]], "cancelling (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CANCELLING", false]], "cash (lumibot.strategies.strategy.strategy property)": [[167, "lumibot.strategies.strategy.Strategy.cash", false], [182, "lumibot.strategies.strategy.Strategy.cash", false]], "cash_pending() (entities.order.order method)": [[22, "entities.order.Order.cash_pending", false]], "cash_settle_options_contract() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.cash_settle_options_contract", false]], "cash_settled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.CASH_SETTLED", false]], "check_data() (entities.data.data method)": [[21, "entities.data.Data.check_data", false], [21, "id0", false]], "clean_trading_times() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.clean_trading_times", false]], "columns() (entities.data.data method)": [[21, "entities.data.Data.columns", false], [21, "id1", false]], "convert_timestep_str_to_timedelta() (lumibot.data_sources.data_source.datasource static method)": [[44, "lumibot.data_sources.data_source.DataSource.convert_timestep_str_to_timedelta", false]], "create_order() (in module lumibot.strategies.strategy.strategy)": [[146, "lumibot.strategies.strategy.Strategy.create_order", false], [157, "lumibot.strategies.strategy.Strategy.create_order", false]], "crypto (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.CRYPTO", false]], "data (class in entities.data)": [[21, "entities.data.Data", false]], "datalines (entities.data.data attribute)": [[21, "entities.data.Data.datalines", false]], "datasource (class in lumibot.data_sources.data_source)": [[44, "lumibot.data_sources.data_source.DataSource", false]], "datasourcebacktesting (class in lumibot.data_sources.data_source_backtesting)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting", false]], "date_end (entities.data.data attribute)": [[21, "entities.data.Data.date_end", false]], "date_start (entities.data.data attribute)": [[21, "entities.data.Data.date_start", false]], "datetime (lumibot.backtesting.backtesting_broker.backtestingbroker property)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.datetime", false]], "default_pytz (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.DEFAULT_PYTZ", false]], "default_timezone (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.DEFAULT_TIMEZONE", false]], "df (entities.data.data attribute)": [[21, "entities.data.Data.df", false]], "entities.asset": [[19, "module-entities.asset", false]], "entities.bars": [[20, "module-entities.bars", false]], "entities.data": [[21, "module-entities.data", false]], "entities.order": [[22, "module-entities.order", false]], "entities.position": [[23, "module-entities.position", false]], "entities.trading_fee": [[24, "module-entities.trading_fee", false]], "equivalent_status() (entities.order.order method)": [[22, "entities.order.Order.equivalent_status", false]], "error (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.ERROR", false]], "expiration (entities.asset.asset attribute)": [[19, "entities.asset.Asset.expiration", false], [19, "id2", false]], "expired (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.EXPIRED", false]], "filled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.FILLED", false]], "filter() (entities.bars.bars method)": [[20, "entities.bars.Bars.filter", false]], "find_asset_in_data_store() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.find_asset_in_data_store", false]], "first_iteration (lumibot.strategies.strategy.strategy property)": [[168, "lumibot.strategies.strategy.Strategy.first_iteration", false], [183, "lumibot.strategies.strategy.Strategy.first_iteration", false]], "forex (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.FOREX", false]], "from_dict() (entities.asset.asset class method)": [[19, "entities.asset.Asset.from_dict", false]], "from_dict() (entities.order.order class method)": [[22, "entities.order.Order.from_dict", false]], "from_dict() (entities.position.position class method)": [[23, "entities.position.Position.from_dict", false]], "future (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.FUTURE", false]], "get_asset_by_name() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_asset_by_name", false]], "get_asset_by_symbol() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_asset_by_symbol", false]], "get_asset_potential_total() (in module lumibot.strategies.strategy.strategy)": [[147, "lumibot.strategies.strategy.Strategy.get_asset_potential_total", false], [158, "lumibot.strategies.strategy.Strategy.get_asset_potential_total", false]], "get_assets() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_assets", false]], "get_bars() (entities.data.data method)": [[21, "entities.data.Data.get_bars", false], [21, "id2", false]], "get_bars() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_bars", false]], "get_bars_between_dates() (entities.data.data method)": [[21, "entities.data.Data.get_bars_between_dates", false]], "get_cash() (in module lumibot.strategies.strategy.strategy)": [[49, "lumibot.strategies.strategy.Strategy.get_cash", false], [55, "lumibot.strategies.strategy.Strategy.get_cash", false]], "get_chain() (in module lumibot.strategies.strategy.strategy)": [[125, "lumibot.strategies.strategy.Strategy.get_chain", false], [133, "lumibot.strategies.strategy.Strategy.get_chain", false]], "get_chain_full_info() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_chain_full_info", false]], "get_chains() (in module lumibot.strategies.strategy.strategy)": [[126, "lumibot.strategies.strategy.Strategy.get_chains", false], [134, "lumibot.strategies.strategy.Strategy.get_chains", false]], "get_chains() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_chains", false]], "get_chains() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_chains", false]], "get_chains() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_chains", false]], "get_datetime() (in module lumibot.strategies.strategy.strategy)": [[83, "lumibot.strategies.strategy.Strategy.get_datetime", false], [92, "lumibot.strategies.strategy.Strategy.get_datetime", false]], "get_datetime() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_datetime", false]], "get_datetime() (lumibot.data_sources.data_source_backtesting.datasourcebacktesting method)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.get_datetime", false]], "get_datetime_range() (in module lumibot.strategies.strategy.strategy)": [[84, "lumibot.strategies.strategy.Strategy.get_datetime_range", false], [93, "lumibot.strategies.strategy.Strategy.get_datetime_range", false]], "get_datetime_range() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_datetime_range", false]], "get_datetime_range() (lumibot.data_sources.data_source_backtesting.datasourcebacktesting method)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.get_datetime_range", false]], "get_expiration() (in module lumibot.strategies.strategy.strategy)": [[127, "lumibot.strategies.strategy.Strategy.get_expiration", false], [135, "lumibot.strategies.strategy.Strategy.get_expiration", false]], "get_fill_price() (entities.order.order method)": [[22, "entities.order.Order.get_fill_price", false]], "get_greeks() (in module lumibot.strategies.strategy.strategy)": [[128, "lumibot.strategies.strategy.Strategy.get_greeks", false], [136, "lumibot.strategies.strategy.Strategy.get_greeks", false]], "get_historical_account_value() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_historical_account_value", false]], "get_historical_account_value() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.get_historical_account_value", false]], "get_historical_prices() (in module lumibot.strategies.strategy.strategy)": [[72, "lumibot.strategies.strategy.Strategy.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_historical_prices", false]], "get_historical_prices() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_historical_prices", false]], "get_historical_prices_for_assets() (in module lumibot.strategies.strategy.strategy)": [[73, "lumibot.strategies.strategy.Strategy.get_historical_prices_for_assets", false]], "get_increment() (entities.order.order method)": [[22, "entities.order.Order.get_increment", false]], "get_iter_count() (entities.data.data method)": [[21, "entities.data.Data.get_iter_count", false], [21, "id3", false]], "get_last_bar() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_last_bar", false]], "get_last_day() (in module lumibot.strategies.strategy.strategy)": [[85, "lumibot.strategies.strategy.Strategy.get_last_day", false], [94, "lumibot.strategies.strategy.Strategy.get_last_day", false]], "get_last_day() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_day", false]], "get_last_dividend() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_last_dividend", false], [20, "id1", false]], "get_last_minute() (in module lumibot.strategies.strategy.strategy)": [[86, "lumibot.strategies.strategy.Strategy.get_last_minute", false], [95, "lumibot.strategies.strategy.Strategy.get_last_minute", false]], "get_last_minute() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_minute", false]], "get_last_price() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_last_price", false], [20, "id2", false]], "get_last_price() (entities.data.data method)": [[21, "entities.data.Data.get_last_price", false], [21, "id4", false]], "get_last_price() (in module lumibot.strategies.strategy.strategy)": [[74, "lumibot.strategies.strategy.Strategy.get_last_price", false]], "get_last_price() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_price", false]], "get_last_price() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_last_price", false]], "get_last_price() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_last_price", false]], "get_last_prices() (in module lumibot.strategies.strategy.strategy)": [[75, "lumibot.strategies.strategy.Strategy.get_last_prices", false]], "get_last_prices() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_last_prices", false]], "get_last_prices() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_last_prices", false]], "get_lines_df() (in module lumibot.strategies.strategy.strategy)": [[64, "lumibot.strategies.strategy.Strategy.get_lines_df", false], [68, "lumibot.strategies.strategy.Strategy.get_lines_df", false]], "get_markers_df() (in module lumibot.strategies.strategy.strategy)": [[65, "lumibot.strategies.strategy.Strategy.get_markers_df", false], [69, "lumibot.strategies.strategy.Strategy.get_markers_df", false]], "get_momentum() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_momentum", false], [20, "id3", false]], "get_multiplier() (in module lumibot.strategies.strategy.strategy)": [[129, "lumibot.strategies.strategy.Strategy.get_multiplier", false], [137, "lumibot.strategies.strategy.Strategy.get_multiplier", false]], "get_next_trading_day() (in module lumibot.strategies.strategy.strategy)": [[76, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false], [130, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false], [138, "lumibot.strategies.strategy.Strategy.get_next_trading_day", false]], "get_option_expiration_after_date() (in module lumibot.strategies.strategy.strategy)": [[139, "lumibot.strategies.strategy.Strategy.get_option_expiration_after_date", false]], "get_order() (in module lumibot.strategies.strategy.strategy)": [[148, "lumibot.strategies.strategy.Strategy.get_order", false], [159, "lumibot.strategies.strategy.Strategy.get_order", false]], "get_orders() (in module lumibot.strategies.strategy.strategy)": [[149, "lumibot.strategies.strategy.Strategy.get_orders", false], [160, "lumibot.strategies.strategy.Strategy.get_orders", false]], "get_parameters() (in module lumibot.strategies.strategy.strategy)": [[50, "lumibot.strategies.strategy.Strategy.get_parameters", false], [56, "lumibot.strategies.strategy.Strategy.get_parameters", false], [104, "lumibot.strategies.strategy.Strategy.get_parameters", false], [115, "lumibot.strategies.strategy.Strategy.get_parameters", false]], "get_portfolio_value() (in module lumibot.strategies.strategy.strategy)": [[51, "lumibot.strategies.strategy.Strategy.get_portfolio_value", false], [57, "lumibot.strategies.strategy.Strategy.get_portfolio_value", false]], "get_position() (in module lumibot.strategies.strategy.strategy)": [[52, "lumibot.strategies.strategy.Strategy.get_position", false], [58, "lumibot.strategies.strategy.Strategy.get_position", false]], "get_positions() (in module lumibot.strategies.strategy.strategy)": [[53, "lumibot.strategies.strategy.Strategy.get_positions", false], [59, "lumibot.strategies.strategy.Strategy.get_positions", false]], "get_quote() (entities.data.data method)": [[21, "entities.data.Data.get_quote", false]], "get_quote() (in module lumibot.strategies.strategy.strategy)": [[77, "lumibot.strategies.strategy.Strategy.get_quote", false]], "get_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[78, "lumibot.strategies.strategy.Strategy.get_realtime_bars", false]], "get_round_day() (in module lumibot.strategies.strategy.strategy)": [[87, "lumibot.strategies.strategy.Strategy.get_round_day", false], [96, "lumibot.strategies.strategy.Strategy.get_round_day", false]], "get_round_day() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_round_day", false]], "get_round_minute() (in module lumibot.strategies.strategy.strategy)": [[88, "lumibot.strategies.strategy.Strategy.get_round_minute", false], [97, "lumibot.strategies.strategy.Strategy.get_round_minute", false]], "get_round_minute() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_round_minute", false]], "get_selling_order() (entities.position.position method)": [[23, "entities.position.Position.get_selling_order", false]], "get_selling_order() (in module lumibot.strategies.strategy.strategy)": [[150, "lumibot.strategies.strategy.Strategy.get_selling_order", false], [161, "lumibot.strategies.strategy.Strategy.get_selling_order", false]], "get_start_datetime_and_ts_unit() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_start_datetime_and_ts_unit", false]], "get_strikes() (in module lumibot.strategies.strategy.strategy)": [[131, "lumibot.strategies.strategy.Strategy.get_strikes", false], [140, "lumibot.strategies.strategy.Strategy.get_strikes", false]], "get_strikes() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_strikes", false]], "get_strikes() (lumibot.data_sources.yahoo_data.yahoodata method)": [[44, "lumibot.data_sources.yahoo_data.YahooData.get_strikes", false]], "get_time_to_close() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_time_to_close", false]], "get_time_to_close() (lumibot.brokers.alpaca.alpaca method)": [[12, "id0", false], [12, "lumibot.brokers.alpaca.Alpaca.get_time_to_close", false]], "get_time_to_open() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.get_time_to_open", false]], "get_time_to_open() (lumibot.brokers.alpaca.alpaca method)": [[12, "id1", false], [12, "lumibot.brokers.alpaca.Alpaca.get_time_to_open", false]], "get_timestamp() (in module lumibot.strategies.strategy.strategy)": [[89, "lumibot.strategies.strategy.Strategy.get_timestamp", false], [98, "lumibot.strategies.strategy.Strategy.get_timestamp", false]], "get_timestamp() (lumibot.brokers.alpaca.alpaca method)": [[12, "id2", false], [12, "lumibot.brokers.alpaca.Alpaca.get_timestamp", false]], "get_timestamp() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_timestamp", false]], "get_timestep() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_timestep", false]], "get_total_dividends() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_dividends", false]], "get_total_return() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return", false]], "get_total_return_pct() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return_pct", false]], "get_total_return_pct_change() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_return_pct_change", false]], "get_total_stock_splits() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_stock_splits", false]], "get_total_volume() (entities.bars.bars method)": [[20, "entities.bars.Bars.get_total_volume", false], [20, "id4", false]], "get_trading_days_pandas() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_trading_days_pandas", false]], "get_yesterday_dividend() (in module lumibot.strategies.strategy.strategy)": [[79, "lumibot.strategies.strategy.Strategy.get_yesterday_dividend", false]], "get_yesterday_dividend() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_yesterday_dividend", false]], "get_yesterday_dividend() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_yesterday_dividend", false]], "get_yesterday_dividends() (in module lumibot.strategies.strategy.strategy)": [[80, "lumibot.strategies.strategy.Strategy.get_yesterday_dividends", false]], "get_yesterday_dividends() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.get_yesterday_dividends", false]], "get_yesterday_dividends() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.get_yesterday_dividends", false]], "hold (entities.position.position attribute)": [[23, "entities.position.Position.hold", false]], "hold (entities.position.position property)": [[23, "id1", false]], "index (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.INDEX", false]], "initial_budget (lumibot.strategies.strategy.strategy property)": [[169, "lumibot.strategies.strategy.Strategy.initial_budget", false], [184, "lumibot.strategies.strategy.Strategy.initial_budget", false]], "initialize() (in module lumibot.strategies.strategy.strategy)": [[32, "lumibot.strategies.strategy.Strategy.initialize", false]], "is_active() (entities.order.order method)": [[22, "entities.order.Order.is_active", false]], "is_backtest_broker (lumibot.traders.trader.trader property)": [[46, "lumibot.traders.trader.Trader.is_backtest_broker", false]], "is_backtesting (lumibot.strategies.strategy.strategy property)": [[170, "lumibot.strategies.strategy.Strategy.is_backtesting", false], [185, "lumibot.strategies.strategy.Strategy.is_backtesting", false]], "is_backtesting_broker (lumibot.backtesting.backtesting_broker.backtestingbroker attribute)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.IS_BACKTESTING_BROKER", false]], "is_backtesting_data_source (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.IS_BACKTESTING_DATA_SOURCE", false]], "is_backtesting_data_source (lumibot.data_sources.data_source_backtesting.datasourcebacktesting attribute)": [[43, "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting.IS_BACKTESTING_DATA_SOURCE", false]], "is_buy_order() (entities.order.order method)": [[22, "entities.order.Order.is_buy_order", false]], "is_canceled() (entities.order.order method)": [[22, "entities.order.Order.is_canceled", false]], "is_filled() (entities.order.order method)": [[22, "entities.order.Order.is_filled", false]], "is_market_open() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.is_market_open", false]], "is_market_open() (lumibot.brokers.alpaca.alpaca method)": [[12, "id3", false], [12, "lumibot.brokers.alpaca.Alpaca.is_market_open", false]], "is_option() (entities.order.order method)": [[22, "entities.order.Order.is_option", false]], "is_parent() (entities.order.order method)": [[22, "entities.order.Order.is_parent", false]], "is_sell_order() (entities.order.order method)": [[22, "entities.order.Order.is_sell_order", false]], "is_valid() (entities.asset.asset method)": [[19, "entities.asset.Asset.is_valid", false]], "iter_index (entities.data.data attribute)": [[21, "entities.data.Data.iter_index", false]], "last_on_trading_iteration_datetime (lumibot.strategies.strategy.strategy property)": [[171, "lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", false], [186, "lumibot.strategies.strategy.Strategy.last_on_trading_iteration_datetime", false]], "limit (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.LIMIT", false]], "limit_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.limit_order", false]], "load_data() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.load_data", false]], "localize_datetime() (in module lumibot.strategies.strategy.strategy)": [[90, "lumibot.strategies.strategy.Strategy.localize_datetime", false], [99, "lumibot.strategies.strategy.Strategy.localize_datetime", false]], "localize_datetime() (lumibot.data_sources.data_source.datasource class method)": [[44, "lumibot.data_sources.data_source.DataSource.localize_datetime", false]], "log_message() (in module lumibot.strategies.strategy.strategy)": [[105, "lumibot.strategies.strategy.Strategy.log_message", false], [116, "lumibot.strategies.strategy.Strategy.log_message", false]], "lumibot.backtesting.backtesting_broker": [[43, "module-lumibot.backtesting.backtesting_broker", false]], "lumibot.brokers.alpaca": [[12, "module-lumibot.brokers.alpaca", false]], "lumibot.data_sources": [[44, "module-lumibot.data_sources", false]], "lumibot.data_sources.data_source": [[44, "module-lumibot.data_sources.data_source", false]], "lumibot.data_sources.data_source_backtesting": [[43, "module-lumibot.data_sources.data_source_backtesting", false]], "lumibot.data_sources.pandas_data": [[44, "module-lumibot.data_sources.pandas_data", false]], "lumibot.data_sources.yahoo_data": [[44, "module-lumibot.data_sources.yahoo_data", false]], "lumibot.strategies.strategy.strategy": [[45, "module-lumibot.strategies.strategy.Strategy", false]], "lumibot.traders.trader": [[46, "module-lumibot.traders.trader", false]], "map_asset_type() (lumibot.brokers.alpaca.alpaca method)": [[12, "lumibot.brokers.alpaca.Alpaca.map_asset_type", false]], "market (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.MARKET", false]], "min_timestep (entities.data.data attribute)": [[21, "entities.data.Data.MIN_TIMESTEP", false]], "min_timestep (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.MIN_TIMESTEP", false]], "min_timestep (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.MIN_TIMESTEP", false]], "minutes_before_closing (lumibot.strategies.strategy.strategy property)": [[172, "lumibot.strategies.strategy.Strategy.minutes_before_closing", false], [187, "lumibot.strategies.strategy.Strategy.minutes_before_closing", false]], "minutes_before_opening (lumibot.strategies.strategy.strategy property)": [[173, "lumibot.strategies.strategy.Strategy.minutes_before_opening", false], [188, "lumibot.strategies.strategy.Strategy.minutes_before_opening", false]], "module": [[12, "module-lumibot.brokers.alpaca", false], [19, "module-entities.asset", false], [20, "module-entities.bars", false], [21, "module-entities.data", false], [22, "module-entities.order", false], [23, "module-entities.position", false], [24, "module-entities.trading_fee", false], [43, "module-lumibot.backtesting.backtesting_broker", false], [43, "module-lumibot.data_sources.data_source_backtesting", false], [44, "module-lumibot.data_sources", false], [44, "module-lumibot.data_sources.data_source", false], [44, "module-lumibot.data_sources.pandas_data", false], [44, "module-lumibot.data_sources.yahoo_data", false], [45, "module-lumibot.strategies.strategy.Strategy", false], [46, "module-lumibot.traders.trader", false]], "multileg (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.MULTILEG", false]], "multiplier (entities.asset.asset attribute)": [[19, "entities.asset.Asset.multiplier", false], [19, "id3", false]], "name (lumibot.strategies.strategy.strategy property)": [[174, "lumibot.strategies.strategy.Strategy.name", false], [189, "lumibot.strategies.strategy.Strategy.name", false]], "new (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.NEW", false]], "nobardatafound": [[20, "entities.bars.NoBarDataFound", false]], "oco (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.OCO", false]], "oco (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.OCO", false]], "on_abrupt_closing() (in module lumibot.strategies.strategy.strategy)": [[33, "lumibot.strategies.strategy.Strategy.on_abrupt_closing", false]], "on_bot_crash() (in module lumibot.strategies.strategy.strategy)": [[34, "lumibot.strategies.strategy.Strategy.on_bot_crash", false]], "on_canceled_order() (in module lumibot.strategies.strategy.strategy)": [[35, "lumibot.strategies.strategy.Strategy.on_canceled_order", false]], "on_filled_order() (in module lumibot.strategies.strategy.strategy)": [[36, "lumibot.strategies.strategy.Strategy.on_filled_order", false]], "on_new_order() (in module lumibot.strategies.strategy.strategy)": [[37, "lumibot.strategies.strategy.Strategy.on_new_order", false]], "on_parameters_updated() (in module lumibot.strategies.strategy.strategy)": [[38, "lumibot.strategies.strategy.Strategy.on_parameters_updated", false]], "on_partially_filled_order() (in module lumibot.strategies.strategy.strategy)": [[39, "lumibot.strategies.strategy.Strategy.on_partially_filled_order", false]], "on_trading_iteration() (in module lumibot.strategies.strategy.strategy)": [[40, "lumibot.strategies.strategy.Strategy.on_trading_iteration", false]], "open (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.OPEN", false]], "option (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.OPTION", false]], "options_expiry_to_datetime_date() (in module lumibot.strategies.strategy.strategy)": [[132, "lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", false], [141, "lumibot.strategies.strategy.Strategy.options_expiry_to_datetime_date", false]], "order (class in entities.order)": [[22, "entities.order.Order", false]], "order.orderclass (class in entities.order)": [[22, "entities.order.Order.OrderClass", false]], "order.orderside (class in entities.order)": [[22, "entities.order.Order.OrderSide", false]], "order.orderstatus (class in entities.order)": [[22, "entities.order.Order.OrderStatus", false]], "order.ordertype (class in entities.order)": [[22, "entities.order.Order.OrderType", false]], "order.transaction (class in entities.order)": [[22, "entities.order.Order.Transaction", false]], "orderdata (class in lumibot.brokers.alpaca)": [[12, "lumibot.brokers.alpaca.OrderData", false]], "orders (entities.position.position attribute)": [[23, "entities.position.Position.orders", false]], "oto (entities.order.order.orderclass attribute)": [[22, "entities.order.Order.OrderClass.OTO", false]], "oto (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.OTO", false]], "pandasdata (class in lumibot.data_sources.pandas_data)": [[44, "lumibot.data_sources.pandas_data.PandasData", false]], "parse_bar_list() (entities.bars.bars class method)": [[20, "entities.bars.Bars.parse_bar_list", false]], "partially_filled (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.PARTIALLY_FILLED", false]], "portfolio_value (lumibot.strategies.strategy.strategy property)": [[175, "lumibot.strategies.strategy.Strategy.portfolio_value", false], [190, "lumibot.strategies.strategy.Strategy.portfolio_value", false]], "position (class in entities.position)": [[23, "entities.position.Position", false]], "precision (entities.asset.asset attribute)": [[19, "entities.asset.Asset.precision", false], [19, "id4", false]], "price (entities.order.order.transaction attribute)": [[22, "entities.order.Order.Transaction.price", false]], "process_expired_option_contracts() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.process_expired_option_contracts", false]], "process_pending_orders() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.process_pending_orders", false]], "put (entities.asset.asset.optionright attribute)": [[19, "entities.asset.Asset.OptionRight.PUT", false]], "pytz (lumibot.strategies.strategy.strategy property)": [[176, "lumibot.strategies.strategy.Strategy.pytz", false], [181, "lumibot.strategies.strategy.Strategy.pytz", false], [191, "lumibot.strategies.strategy.Strategy.pytz", false]], "quantity (entities.order.order property)": [[22, "entities.order.Order.quantity", false]], "quantity (entities.order.order.transaction attribute)": [[22, "entities.order.Order.Transaction.quantity", false]], "quantity (entities.position.position attribute)": [[23, "entities.position.Position.quantity", false]], "quantity (entities.position.position property)": [[23, "id2", false]], "query_greeks() (lumibot.data_sources.data_source.datasource method)": [[44, "lumibot.data_sources.data_source.DataSource.query_greeks", false]], "quote_asset (lumibot.strategies.strategy.strategy property)": [[177, "lumibot.strategies.strategy.Strategy.quote_asset", false], [192, "lumibot.strategies.strategy.Strategy.quote_asset", false]], "repair_times_and_fill() (entities.data.data method)": [[21, "entities.data.Data.repair_times_and_fill", false], [21, "id5", false]], "right (entities.asset.asset attribute)": [[19, "entities.asset.Asset.right", false], [19, "id5", false]], "right_must_be_one_of() (entities.asset.asset method)": [[19, "entities.asset.Asset.right_must_be_one_of", false], [19, "id6", false]], "run_all() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.run_all", false]], "run_all_async() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.run_all_async", false]], "run_backtest() (in module lumibot.strategies.strategy.strategy)": [[1, "lumibot.strategies.strategy.Strategy.run_backtest", false]], "sell (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL", false]], "sell_all() (in module lumibot.strategies.strategy.strategy)": [[151, "lumibot.strategies.strategy.Strategy.sell_all", false], [162, "lumibot.strategies.strategy.Strategy.sell_all", false]], "sell_short (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_SHORT", false]], "sell_to_close (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_TO_CLOSE", false]], "sell_to_open (entities.order.order.orderside attribute)": [[22, "entities.order.Order.OrderSide.SELL_TO_OPEN", false]], "set_canceled() (entities.order.order method)": [[22, "entities.order.Order.set_canceled", false]], "set_date_format() (entities.data.data method)": [[21, "entities.data.Data.set_date_format", false], [21, "id6", false]], "set_dates() (entities.data.data method)": [[21, "entities.data.Data.set_dates", false], [21, "id7", false]], "set_error() (entities.order.order method)": [[22, "entities.order.Order.set_error", false]], "set_filled() (entities.order.order method)": [[22, "entities.order.Order.set_filled", false]], "set_identifier() (entities.order.order method)": [[22, "entities.order.Order.set_identifier", false]], "set_market() (in module lumibot.strategies.strategy.strategy)": [[106, "lumibot.strategies.strategy.Strategy.set_market", false], [117, "lumibot.strategies.strategy.Strategy.set_market", false]], "set_new() (entities.order.order method)": [[22, "entities.order.Order.set_new", false]], "set_parameters() (in module lumibot.strategies.strategy.strategy)": [[54, "lumibot.strategies.strategy.Strategy.set_parameters", false], [60, "lumibot.strategies.strategy.Strategy.set_parameters", false]], "set_partially_filled() (entities.order.order method)": [[22, "entities.order.Order.set_partially_filled", false]], "set_times() (entities.data.data method)": [[21, "entities.data.Data.set_times", false], [21, "id8", false]], "should_continue() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.should_continue", false]], "sleep() (in module lumibot.strategies.strategy.strategy)": [[107, "lumibot.strategies.strategy.Strategy.sleep", false], [118, "lumibot.strategies.strategy.Strategy.sleep", false]], "sleeptime (lumibot.strategies.strategy.strategy property)": [[178, "lumibot.strategies.strategy.Strategy.sleeptime", false], [193, "lumibot.strategies.strategy.Strategy.sleeptime", false]], "source (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.SOURCE", false]], "source (lumibot.data_sources.pandas_data.pandasdata attribute)": [[44, "lumibot.data_sources.pandas_data.PandasData.SOURCE", false]], "source (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.SOURCE", false]], "split() (entities.bars.bars method)": [[20, "entities.bars.Bars.split", false]], "start_realtime_bars() (in module lumibot.strategies.strategy.strategy)": [[81, "lumibot.strategies.strategy.Strategy.start_realtime_bars", false]], "status (entities.order.order property)": [[22, "entities.order.Order.status", false]], "stock (entities.asset.asset.assettype attribute)": [[19, "entities.asset.Asset.AssetType.STOCK", false]], "stop (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.STOP", false]], "stop_all() (lumibot.traders.trader.trader method)": [[46, "lumibot.traders.trader.Trader.stop_all", false]], "stop_limit (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.STOP_LIMIT", false]], "stop_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.stop_order", false]], "strategy (entities.position.position attribute)": [[23, "entities.position.Position.strategy", false]], "strike (entities.asset.asset attribute)": [[19, "entities.asset.Asset.strike", false], [19, "id7", false]], "submit_order() (in module lumibot.strategies.strategy.strategy)": [[152, "lumibot.strategies.strategy.Strategy.submit_order", false], [163, "lumibot.strategies.strategy.Strategy.submit_order", false]], "submit_order() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.submit_order", false]], "submit_orders() (in module lumibot.strategies.strategy.strategy)": [[153, "lumibot.strategies.strategy.Strategy.submit_orders", false], [164, "lumibot.strategies.strategy.Strategy.submit_orders", false]], "submit_orders() (lumibot.backtesting.backtesting_broker.backtestingbroker method)": [[43, "lumibot.backtesting.backtesting_broker.BacktestingBroker.submit_orders", false]], "submitted (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.SUBMITTED", false]], "sybmol (entities.data.data attribute)": [[21, "entities.data.Data.sybmol", false]], "symbol (entities.asset.asset attribute)": [[19, "entities.asset.Asset.symbol", false], [19, "id8", false]], "symbol (entities.position.position attribute)": [[23, "entities.position.Position.symbol", false]], "symbol2asset() (entities.asset.asset class method)": [[19, "entities.asset.Asset.symbol2asset", false]], "timestep (entities.data.data attribute)": [[21, "entities.data.Data.timestep", false]], "timestep_mapping (entities.data.data attribute)": [[21, "entities.data.Data.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.data_source.datasource attribute)": [[44, "lumibot.data_sources.data_source.DataSource.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.pandas_data.pandasdata attribute)": [[44, "lumibot.data_sources.pandas_data.PandasData.TIMESTEP_MAPPING", false]], "timestep_mapping (lumibot.data_sources.yahoo_data.yahoodata attribute)": [[44, "lumibot.data_sources.yahoo_data.YahooData.TIMESTEP_MAPPING", false]], "timezone (lumibot.strategies.strategy.strategy property)": [[179, "lumibot.strategies.strategy.Strategy.timezone", false], [194, "lumibot.strategies.strategy.Strategy.timezone", false]], "to_datalines() (entities.data.data method)": [[21, "entities.data.Data.to_datalines", false], [21, "id9", false]], "to_default_timezone() (in module lumibot.strategies.strategy.strategy)": [[91, "lumibot.strategies.strategy.Strategy.to_default_timezone", false], [100, "lumibot.strategies.strategy.Strategy.to_default_timezone", false]], "to_default_timezone() (lumibot.data_sources.data_source.datasource class method)": [[44, "lumibot.data_sources.data_source.DataSource.to_default_timezone", false]], "to_dict() (entities.asset.asset method)": [[19, "entities.asset.Asset.to_dict", false]], "to_dict() (entities.order.order method)": [[22, "entities.order.Order.to_dict", false]], "to_dict() (entities.position.position method)": [[23, "entities.position.Position.to_dict", false]], "to_position() (entities.order.order method)": [[22, "entities.order.Order.to_position", false]], "to_request_fields() (lumibot.brokers.alpaca.orderdata method)": [[12, "lumibot.brokers.alpaca.OrderData.to_request_fields", false]], "trace_stats() (in module lumibot.strategies.strategy.strategy)": [[42, "lumibot.strategies.strategy.Strategy.trace_stats", false]], "trader (class in lumibot.traders.trader)": [[46, "lumibot.traders.trader.Trader", false]], "trading_hours_end (entities.data.data attribute)": [[21, "entities.data.Data.trading_hours_end", false]], "trading_hours_start (entities.data.data attribute)": [[21, "entities.data.Data.trading_hours_start", false]], "tradingfee (class in entities.trading_fee)": [[24, "entities.trading_fee.TradingFee", false]], "trail (entities.order.order.ordertype attribute)": [[22, "entities.order.Order.OrderType.TRAIL", false]], "trim_data() (entities.data.data method)": [[21, "entities.data.Data.trim_data", false], [21, "id10", false]], "underlying_asset (entities.asset.asset attribute)": [[19, "entities.asset.Asset.underlying_asset", false]], "unprocessed (entities.order.order.orderstatus attribute)": [[22, "entities.order.Order.OrderStatus.UNPROCESSED", false]], "unspent_money (lumibot.strategies.strategy.strategy property)": [[180, "lumibot.strategies.strategy.Strategy.unspent_money", false], [195, "lumibot.strategies.strategy.Strategy.unspent_money", false]], "update_date_index() (lumibot.data_sources.pandas_data.pandasdata method)": [[44, "lumibot.data_sources.pandas_data.PandasData.update_date_index", false]], "update_parameters() (in module lumibot.strategies.strategy.strategy)": [[108, "lumibot.strategies.strategy.Strategy.update_parameters", false], [119, "lumibot.strategies.strategy.Strategy.update_parameters", false]], "update_raw() (entities.order.order method)": [[22, "entities.order.Order.update_raw", false]], "update_trail_stop_price() (entities.order.order method)": [[22, "entities.order.Order.update_trail_stop_price", false]], "value_type() (entities.position.position method)": [[23, "entities.position.Position.value_type", false]], "wait_for_order_execution() (in module lumibot.strategies.strategy.strategy)": [[109, "lumibot.strategies.strategy.Strategy.wait_for_order_execution", false], [120, "lumibot.strategies.strategy.Strategy.wait_for_order_execution", false]], "wait_for_order_registration() (in module lumibot.strategies.strategy.strategy)": [[110, "lumibot.strategies.strategy.Strategy.wait_for_order_registration", false], [121, "lumibot.strategies.strategy.Strategy.wait_for_order_registration", false]], "wait_for_orders_execution() (in module lumibot.strategies.strategy.strategy)": [[111, "lumibot.strategies.strategy.Strategy.wait_for_orders_execution", false], [122, "lumibot.strategies.strategy.Strategy.wait_for_orders_execution", false]], "wait_for_orders_registration() (in module lumibot.strategies.strategy.strategy)": [[112, "lumibot.strategies.strategy.Strategy.wait_for_orders_registration", false], [123, "lumibot.strategies.strategy.Strategy.wait_for_orders_registration", false]], "wait_to_be_closed() (entities.order.order method)": [[22, "entities.order.Order.wait_to_be_closed", false]], "wait_to_be_registered() (entities.order.order method)": [[22, "entities.order.Order.wait_to_be_registered", false]], "was_transmitted() (entities.order.order method)": [[22, "entities.order.Order.was_transmitted", false]], "yahoodata (class in lumibot.data_sources.yahoo_data)": [[44, "lumibot.data_sources.yahoo_data.YahooData", false]]}, "objects": {"entities": [[19, 0, 0, "-", "asset"], [20, 0, 0, "-", "bars"], [21, 0, 0, "-", "data"], [22, 0, 0, "-", "order"], [23, 0, 0, "-", "position"], [24, 0, 0, "-", "trading_fee"]], "entities.asset": [[19, 1, 1, "", "Asset"], [19, 1, 1, "", "AssetsMapping"]], "entities.asset.Asset": [[19, 1, 1, "", "AssetType"], [19, 1, 1, "", "OptionRight"], [19, 2, 1, "", "_asset_types"], [19, 2, 1, "", "_right"], [19, 2, 1, "id0", "asset_type"], [19, 3, 1, "id1", "asset_type_must_be_one_of"], [19, 2, 1, "id2", "expiration"], [19, 3, 1, "", "from_dict"], [19, 3, 1, "", "is_valid"], [19, 2, 1, "id3", "multiplier"], [19, 2, 1, "id4", "precision"], [19, 2, 1, "id5", "right"], [19, 3, 1, "id6", "right_must_be_one_of"], [19, 2, 1, "id7", "strike"], [19, 2, 1, "id8", "symbol"], [19, 3, 1, "", "symbol2asset"], [19, 3, 1, "", "to_dict"], [19, 2, 1, "", "underlying_asset"]], "entities.asset.Asset.AssetType": [[19, 2, 1, "", "CRYPTO"], [19, 2, 1, "", "FOREX"], [19, 2, 1, "", "FUTURE"], [19, 2, 1, "", "INDEX"], [19, 2, 1, "", "OPTION"], [19, 2, 1, "", "STOCK"]], "entities.asset.Asset.OptionRight": [[19, 2, 1, "", "CALL"], [19, 2, 1, "", "PUT"]], "entities.bars": [[20, 1, 1, "", "Bars"], [20, 4, 1, "", "NoBarDataFound"]], "entities.bars.Bars": [[20, 3, 1, "id0", "aggregate_bars"], [20, 3, 1, "", "filter"], [20, 3, 1, "id1", "get_last_dividend"], [20, 3, 1, "id2", "get_last_price"], [20, 3, 1, "id3", "get_momentum"], [20, 3, 1, "", "get_total_dividends"], [20, 3, 1, "", "get_total_return"], [20, 3, 1, "", "get_total_return_pct"], [20, 3, 1, "", "get_total_return_pct_change"], [20, 3, 1, "", "get_total_stock_splits"], [20, 3, 1, "id4", "get_total_volume"], [20, 3, 1, "", "parse_bar_list"], [20, 3, 1, "", "split"]], "entities.data": [[21, 1, 1, "", "Data"]], "entities.data.Data": [[21, 2, 1, "", "MIN_TIMESTEP"], [21, 2, 1, "", "TIMESTEP_MAPPING"], [21, 3, 1, "", "_get_bars_dict"], [21, 2, 1, "", "asset"], [21, 3, 1, "id0", "check_data"], [21, 3, 1, "id1", "columns"], [21, 2, 1, "", "datalines"], [21, 2, 1, "", "date_end"], [21, 2, 1, "", "date_start"], [21, 2, 1, "", "df"], [21, 3, 1, "id2", "get_bars"], [21, 3, 1, "", "get_bars_between_dates"], [21, 3, 1, "id3", "get_iter_count"], [21, 3, 1, "id4", "get_last_price"], [21, 3, 1, "", "get_quote"], [21, 2, 1, "", "iter_index"], [21, 3, 1, "id5", "repair_times_and_fill"], [21, 3, 1, "id6", "set_date_format"], [21, 3, 1, "id7", "set_dates"], [21, 3, 1, "id8", "set_times"], [21, 2, 1, "", "sybmol"], [21, 2, 1, "", "timestep"], [21, 3, 1, "id9", "to_datalines"], [21, 2, 1, "", "trading_hours_end"], [21, 2, 1, "", "trading_hours_start"], [21, 3, 1, "id10", "trim_data"]], "entities.order": [[22, 1, 1, "", "Order"]], "entities.order.Order": [[22, 1, 1, "", "OrderClass"], [22, 1, 1, "", "OrderSide"], [22, 1, 1, "", "OrderStatus"], [22, 1, 1, "", "OrderType"], [22, 1, 1, "", "Transaction"], [22, 3, 1, "", "add_child_order"], [22, 3, 1, "", "add_transaction"], [22, 5, 1, "", "avg_fill_price"], [22, 3, 1, "", "cash_pending"], [22, 3, 1, "", "equivalent_status"], [22, 3, 1, "", "from_dict"], [22, 3, 1, "", "get_fill_price"], [22, 3, 1, "", "get_increment"], [22, 3, 1, "", "is_active"], [22, 3, 1, "", "is_buy_order"], [22, 3, 1, "", "is_canceled"], [22, 3, 1, "", "is_filled"], [22, 3, 1, "", "is_option"], [22, 3, 1, "", "is_parent"], [22, 3, 1, "", "is_sell_order"], [22, 5, 1, "", "quantity"], [22, 3, 1, "", "set_canceled"], [22, 3, 1, "", "set_error"], [22, 3, 1, "", "set_filled"], [22, 3, 1, "", "set_identifier"], [22, 3, 1, "", "set_new"], [22, 3, 1, "", "set_partially_filled"], [22, 5, 1, "", "status"], [22, 3, 1, "", "to_dict"], [22, 3, 1, "", "to_position"], [22, 3, 1, "", "update_raw"], [22, 3, 1, "", "update_trail_stop_price"], [22, 3, 1, "", "wait_to_be_closed"], [22, 3, 1, "", "wait_to_be_registered"], [22, 3, 1, "", "was_transmitted"]], "entities.order.Order.OrderClass": [[22, 2, 1, "", "BRACKET"], [22, 2, 1, "", "MULTILEG"], [22, 2, 1, "", "OCO"], [22, 2, 1, "", "OTO"]], "entities.order.Order.OrderSide": [[22, 2, 1, "", "BUY"], [22, 2, 1, "", "BUY_TO_CLOSE"], [22, 2, 1, "", "BUY_TO_COVER"], [22, 2, 1, "", "BUY_TO_OPEN"], [22, 2, 1, "", "SELL"], [22, 2, 1, "", "SELL_SHORT"], [22, 2, 1, "", "SELL_TO_CLOSE"], [22, 2, 1, "", "SELL_TO_OPEN"]], "entities.order.Order.OrderStatus": [[22, 2, 1, "", "CANCELED"], [22, 2, 1, "", "CANCELLING"], [22, 2, 1, "", "CASH_SETTLED"], [22, 2, 1, "", "ERROR"], [22, 2, 1, "", "EXPIRED"], [22, 2, 1, "", "FILLED"], [22, 2, 1, "", "NEW"], [22, 2, 1, "", "OPEN"], [22, 2, 1, "", "PARTIALLY_FILLED"], [22, 2, 1, "", "SUBMITTED"], [22, 2, 1, "", "UNPROCESSED"]], "entities.order.Order.OrderType": [[22, 2, 1, "", "BRACKET"], [22, 2, 1, "", "LIMIT"], [22, 2, 1, "", "MARKET"], [22, 2, 1, "", "OCO"], [22, 2, 1, "", "OTO"], [22, 2, 1, "", "STOP"], [22, 2, 1, "", "STOP_LIMIT"], [22, 2, 1, "", "TRAIL"]], "entities.order.Order.Transaction": [[22, 2, 1, "", "price"], [22, 2, 1, "", "quantity"]], "entities.position": [[23, 1, 1, "", "Position"]], "entities.position.Position": [[23, 3, 1, "", "add_order"], [23, 2, 1, "", "asset"], [23, 5, 1, "id0", "available"], [23, 2, 1, "", "avg_fill_price"], [23, 3, 1, "", "from_dict"], [23, 3, 1, "", "get_selling_order"], [23, 5, 1, "id1", "hold"], [23, 2, 1, "", "orders"], [23, 5, 1, "id2", "quantity"], [23, 2, 1, "", "strategy"], [23, 2, 1, "", "symbol"], [23, 3, 1, "", "to_dict"], [23, 3, 1, "", "value_type"]], "entities.trading_fee": [[24, 1, 1, "", "TradingFee"]], "lumibot": [[44, 0, 0, "-", "data_sources"]], "lumibot.backtesting": [[43, 0, 0, "-", "backtesting_broker"]], "lumibot.backtesting.backtesting_broker": [[43, 1, 1, "", "BacktestingBroker"]], "lumibot.backtesting.backtesting_broker.BacktestingBroker": [[43, 2, 1, "", "IS_BACKTESTING_BROKER"], [43, 3, 1, "", "calculate_trade_cost"], [43, 3, 1, "", "cancel_order"], [43, 3, 1, "", "cash_settle_options_contract"], [43, 5, 1, "", "datetime"], [43, 3, 1, "", "get_historical_account_value"], [43, 3, 1, "", "get_last_bar"], [43, 3, 1, "", "get_time_to_close"], [43, 3, 1, "", "get_time_to_open"], [43, 3, 1, "", "is_market_open"], [43, 3, 1, "", "limit_order"], [43, 3, 1, "", "process_expired_option_contracts"], [43, 3, 1, "", "process_pending_orders"], [43, 3, 1, "", "should_continue"], [43, 3, 1, "", "stop_order"], [43, 3, 1, "", "submit_order"], [43, 3, 1, "", "submit_orders"]], "lumibot.brokers": [[12, 0, 0, "-", "alpaca"]], "lumibot.brokers.alpaca": [[12, 1, 1, "", "Alpaca"], [12, 1, 1, "", "OrderData"]], "lumibot.brokers.alpaca.Alpaca": [[12, 2, 1, "", "ASSET_TYPE_MAP"], [12, 2, 1, "", "api"], [12, 3, 1, "", "cancel_order"], [12, 3, 1, "", "get_historical_account_value"], [12, 3, 1, "id0", "get_time_to_close"], [12, 3, 1, "id1", "get_time_to_open"], [12, 3, 1, "id2", "get_timestamp"], [12, 3, 1, "id3", "is_market_open"], [12, 3, 1, "", "map_asset_type"]], "lumibot.brokers.alpaca.OrderData": [[12, 3, 1, "", "to_request_fields"]], "lumibot.data_sources": [[44, 0, 0, "-", "data_source"], [43, 0, 0, "-", "data_source_backtesting"], [44, 0, 0, "-", "pandas_data"], [44, 0, 0, "-", "yahoo_data"]], "lumibot.data_sources.data_source": [[44, 1, 1, "", "DataSource"]], "lumibot.data_sources.data_source.DataSource": [[44, 2, 1, "", "DEFAULT_PYTZ"], [44, 2, 1, "", "DEFAULT_TIMEZONE"], [44, 2, 1, "", "IS_BACKTESTING_DATA_SOURCE"], [44, 2, 1, "", "MIN_TIMESTEP"], [44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "calculate_greeks"], [44, 3, 1, "", "convert_timestep_str_to_timedelta"], [44, 3, 1, "", "get_bars"], [44, 3, 1, "", "get_chain_full_info"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_datetime"], [44, 3, 1, "", "get_datetime_range"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_day"], [44, 3, 1, "", "get_last_minute"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_last_prices"], [44, 3, 1, "", "get_round_day"], [44, 3, 1, "", "get_round_minute"], [44, 3, 1, "", "get_strikes"], [44, 3, 1, "", "get_timestamp"], [44, 3, 1, "", "get_timestep"], [44, 3, 1, "", "get_yesterday_dividend"], [44, 3, 1, "", "get_yesterday_dividends"], [44, 3, 1, "", "localize_datetime"], [44, 3, 1, "", "query_greeks"], [44, 3, 1, "", "to_default_timezone"]], "lumibot.data_sources.data_source_backtesting": [[43, 1, 1, "", "DataSourceBacktesting"]], "lumibot.data_sources.data_source_backtesting.DataSourceBacktesting": [[43, 2, 1, "", "IS_BACKTESTING_DATA_SOURCE"], [43, 3, 1, "", "get_datetime"], [43, 3, 1, "", "get_datetime_range"]], "lumibot.data_sources.pandas_data": [[44, 1, 1, "", "PandasData"]], "lumibot.data_sources.pandas_data.PandasData": [[44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "clean_trading_times"], [44, 3, 1, "", "find_asset_in_data_store"], [44, 3, 1, "", "get_asset_by_name"], [44, 3, 1, "", "get_asset_by_symbol"], [44, 3, 1, "", "get_assets"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_last_prices"], [44, 3, 1, "", "get_start_datetime_and_ts_unit"], [44, 3, 1, "", "get_trading_days_pandas"], [44, 3, 1, "", "get_yesterday_dividend"], [44, 3, 1, "", "get_yesterday_dividends"], [44, 3, 1, "", "load_data"], [44, 3, 1, "", "update_date_index"]], "lumibot.data_sources.yahoo_data": [[44, 1, 1, "", "YahooData"]], "lumibot.data_sources.yahoo_data.YahooData": [[44, 2, 1, "", "MIN_TIMESTEP"], [44, 2, 1, "", "SOURCE"], [44, 2, 1, "", "TIMESTEP_MAPPING"], [44, 3, 1, "", "get_chains"], [44, 3, 1, "", "get_historical_prices"], [44, 3, 1, "", "get_last_price"], [44, 3, 1, "", "get_strikes"]], "lumibot.strategies.strategy": [[45, 0, 0, "-", "Strategy"]], "lumibot.strategies.strategy.Strategy": [[66, 6, 1, "", "add_line"], [67, 6, 1, "", "add_marker"], [28, 6, 1, "", "after_market_closes"], [113, 6, 1, "", "await_market_to_close"], [114, 6, 1, "", "await_market_to_open"], [29, 6, 1, "", "before_market_closes"], [30, 6, 1, "", "before_market_opens"], [31, 6, 1, "", "before_starting_trading"], [154, 6, 1, "", "cancel_open_orders"], [155, 6, 1, "", "cancel_order"], [156, 6, 1, "", "cancel_orders"], [71, 6, 1, "", "cancel_realtime_bars"], [182, 5, 1, "", "cash"], [157, 6, 1, "", "create_order"], [183, 5, 1, "", "first_iteration"], [158, 6, 1, "", "get_asset_potential_total"], [55, 6, 1, "", "get_cash"], [133, 6, 1, "", "get_chain"], [134, 6, 1, "", "get_chains"], [92, 6, 1, "", "get_datetime"], [93, 6, 1, "", "get_datetime_range"], [135, 6, 1, "", "get_expiration"], [136, 6, 1, "", "get_greeks"], [72, 6, 1, "", "get_historical_prices"], [73, 6, 1, "", "get_historical_prices_for_assets"], [94, 6, 1, "", "get_last_day"], [95, 6, 1, "", "get_last_minute"], [74, 6, 1, "", "get_last_price"], [75, 6, 1, "", "get_last_prices"], [68, 6, 1, "", "get_lines_df"], [69, 6, 1, "", "get_markers_df"], [137, 6, 1, "", "get_multiplier"], [138, 6, 1, "", "get_next_trading_day"], [139, 6, 1, "", "get_option_expiration_after_date"], [159, 6, 1, "", "get_order"], [160, 6, 1, "", "get_orders"], [115, 6, 1, "", "get_parameters"], [57, 6, 1, "", "get_portfolio_value"], [58, 6, 1, "", "get_position"], [59, 6, 1, "", "get_positions"], [77, 6, 1, "", "get_quote"], [78, 6, 1, "", "get_realtime_bars"], [96, 6, 1, "", "get_round_day"], [97, 6, 1, "", "get_round_minute"], [161, 6, 1, "", "get_selling_order"], [140, 6, 1, "", "get_strikes"], [98, 6, 1, "", "get_timestamp"], [79, 6, 1, "", "get_yesterday_dividend"], [80, 6, 1, "", "get_yesterday_dividends"], [184, 5, 1, "", "initial_budget"], [32, 6, 1, "", "initialize"], [185, 5, 1, "", "is_backtesting"], [186, 5, 1, "", "last_on_trading_iteration_datetime"], [99, 6, 1, "", "localize_datetime"], [116, 6, 1, "", "log_message"], [187, 5, 1, "", "minutes_before_closing"], [188, 5, 1, "", "minutes_before_opening"], [189, 5, 1, "", "name"], [33, 6, 1, "", "on_abrupt_closing"], [34, 6, 1, "", "on_bot_crash"], [35, 6, 1, "", "on_canceled_order"], [36, 6, 1, "", "on_filled_order"], [37, 6, 1, "", "on_new_order"], [38, 6, 1, "", "on_parameters_updated"], [39, 6, 1, "", "on_partially_filled_order"], [40, 6, 1, "", "on_trading_iteration"], [141, 6, 1, "", "options_expiry_to_datetime_date"], [190, 5, 1, "", "portfolio_value"], [191, 5, 1, "", "pytz"], [192, 5, 1, "", "quote_asset"], [1, 6, 1, "", "run_backtest"], [162, 6, 1, "", "sell_all"], [117, 6, 1, "", "set_market"], [60, 6, 1, "", "set_parameters"], [118, 6, 1, "", "sleep"], [193, 5, 1, "", "sleeptime"], [81, 6, 1, "", "start_realtime_bars"], [163, 6, 1, "", "submit_order"], [164, 6, 1, "", "submit_orders"], [194, 5, 1, "", "timezone"], [100, 6, 1, "", "to_default_timezone"], [42, 6, 1, "", "trace_stats"], [195, 5, 1, "", "unspent_money"], [119, 6, 1, "", "update_parameters"], [120, 6, 1, "", "wait_for_order_execution"], [121, 6, 1, "", "wait_for_order_registration"], [122, 6, 1, "", "wait_for_orders_execution"], [123, 6, 1, "", "wait_for_orders_registration"]], "lumibot.traders": [[46, 0, 0, "-", "trader"]], "lumibot.traders.trader": [[46, 1, 1, "", "Trader"]], "lumibot.traders.trader.Trader": [[46, 3, 1, "", "add_strategy"], [46, 5, 1, "", "is_backtest_broker"], [46, 3, 1, "", "run_all"], [46, 3, 1, "", "run_all_async"], [46, 3, 1, "", "stop_all"]]}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "method", "Python method"], "4": ["py", "exception", "Python exception"], "5": ["py", "property", "Python property"], "6": ["py", "function", "Python function"]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:method", "4": "py:exception", "5": "py:property", "6": "py:function"}, "terms": {"": [2, 3, 6, 7, 8, 13, 14, 16, 17, 18, 21, 25, 26, 38, 41, 46, 52, 58, 82, 83, 85, 86, 87, 88, 89, 90, 91, 92, 94, 95, 96, 97, 98, 99, 100, 128, 136, 147, 158, 165, 178, 193, 196], "0": [13, 15, 17, 19, 21, 22, 23, 24, 25, 32, 42, 43, 44, 87, 88, 96, 97, 146, 152, 153, 157, 163, 164, 173, 188, 196], "00": [5, 44, 110, 121, 146, 152, 153, 157, 163, 164, 196], "000": [13, 25, 26], "0000": 5, "0001": 21, "000234": 12, "01": [5, 6, 8, 20, 25, 146, 147, 152, 157, 158, 163], "02": [5, 20], "04": [5, 44], "05": [6, 8, 146, 157, 196], "07": [44, 125, 126, 133, 134], "0830": 12, "09": 5, "0930": 12, "1": [1, 2, 5, 6, 7, 8, 10, 12, 13, 15, 16, 17, 19, 20, 21, 22, 31, 44, 72, 73, 84, 90, 91, 93, 99, 100, 128, 136, 139, 146, 152, 153, 157, 163, 164, 178, 193, 196], "10": [2, 6, 8, 13, 17, 19, 20, 32, 40, 44, 63, 67, 82, 127, 135, 152, 153, 163, 164, 165, 172, 173, 178, 187, 188, 193, 196], "100": [1, 5, 12, 13, 16, 19, 20, 25, 26, 32, 42, 44, 72, 73, 109, 110, 111, 112, 120, 121, 122, 123, 125, 126, 128, 133, 134, 136, 144, 145, 146, 152, 153, 155, 156, 157, 163, 164], "10000": [13, 25], "100000": 5, "102": 196, "10439": 5, "10m": [32, 178, 193], "11": [10, 17, 19, 26], "12": [10, 17, 19, 25, 26, 74], "123456": 17, "123456789": 17, "127": [15, 17], "13": [17, 127, 135], "14": [17, 196], "1400": 12, "15": [5, 17, 20, 32, 44, 72, 73], "155": 19, "15m": 44, "15min": 20, "16": [17, 74], "1600": 12, "1612172730": 12, "16808": 5, "17": [17, 19, 32], "18": 19, "180": 25, "180m": 25, "19": 44, "1990": 82, "1991": 82, "1d": [2, 6, 8, 20, 21, 40, 44], "1dai": 44, "1h": [20, 40], "1hour": 44, "1m": [5, 21, 44], "1minut": 44, "1month": [72, 73], "2": [2, 6, 17, 22, 30, 32, 62, 66, 72, 73, 111, 112, 122, 123, 153, 164, 178, 193], "20": [12, 13, 22, 32, 43, 165], "200": [1, 12, 36, 44, 73, 111, 112, 122, 123, 153, 164], "2018": [1, 20], "2019": [146, 157], "2020": [5, 10, 25, 26, 72, 90, 91, 99, 100, 147, 152, 158, 163], "20200101": [132, 141], "2021": [19, 32, 128, 136, 139], "2022": [74, 127, 135], "20221013": [129, 137], "2023": [2, 6, 8, 44, 125, 126, 133, 134, 196], "20h": 32, "213": [146, 157], "22": 5, "23": 21, "2359": [5, 21], "24": [13, 17, 32, 106, 117], "24h": 72, "25": [5, 17], "26": 19, "2793": 5, "2794": 5, "2796": 5, "2800": 5, "2d": [32, 178, 193], "2fa": [11, 26], "2h": [178, 193], "3": [2, 12, 17, 146, 157], "30": [13, 40, 72, 73, 81, 196], "300": [36, 178, 193], "30am": 13, "31": [1, 5, 10, 25, 26, 44, 125, 126, 133, 134], "32": 5, "3233": 5, "3234": 5, "3235": 5, "3237": 5, "33": 5, "3306": [], "4": [2, 17, 26, 147, 158], "400": 22, "405": 22, "41000": [146, 157], "41250": [152, 163], "41300": [152, 163], "41325": [152, 163], "41d4": [], "420": 22, "446655440000": [], "48": 32, "5": [1, 2, 5, 6, 8, 17, 26, 32, 44, 72, 73, 106, 107, 117, 118, 146, 157, 165, 172, 178, 187, 193, 196], "50": [5, 22, 32, 146, 157, 178, 193], "500": [22, 36], "512000000": 17, "5432": 196, "55": 13, "550e8400": 196, "56": 5, "57": 5, "58": 5, "59": 21, "5d": 5, "5m": [32, 178, 193], "6": [17, 19, 26], "60": [1, 20, 173, 188], "600": 12, "7": [12, 13, 17, 26, 32, 106, 117], "7440": 5, "7496": 15, "7497": [15, 17], "75": 5, "7569": 5, "8": [17, 26], "80": [62, 66], "8000": [14, 17], "8203": 5, "8272": 5, "9": [13, 17, 32], "999": 15, "9wgjls3wixq54fcphwwzjcp8jcfjfkuwsryskkma": 17, "A": [1, 5, 7, 10, 12, 14, 22, 26, 44, 46, 52, 53, 58, 59, 77, 84, 93, 146, 153, 157, 164, 196], "And": [25, 72, 73], "As": [6, 8, 17], "At": [14, 25], "Be": [], "By": [2, 17, 26, 34, 128, 136, 172, 173, 176, 178, 179, 181, 187, 188, 191, 193, 194], "For": [1, 2, 3, 5, 7, 10, 13, 14, 17, 19, 20, 22, 26, 28, 44, 49, 51, 55, 57, 109, 110, 111, 112, 120, 121, 122, 123, 146, 152, 153, 157, 163, 164, 165], "If": [1, 5, 6, 8, 12, 13, 14, 16, 17, 20, 21, 25, 26, 30, 32, 36, 40, 44, 72, 73, 74, 81, 102, 103, 105, 113, 114, 116, 131, 140, 143, 146, 151, 154, 157, 162], "In": [0, 6, 8, 13, 17, 22, 43, 74, 75, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98], "It": [0, 4, 5, 6, 7, 8, 13, 14, 15, 17, 19, 22, 23, 25, 26, 41, 43, 44, 74, 77, 146, 157], "NOT": 13, "Not": [43, 106, 117], "On": [14, 17], "One": [5, 17, 19, 22, 44, 146, 157], "Or": [25, 26, 165], "That": 16, "The": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 17, 19, 20, 21, 22, 23, 27, 28, 34, 35, 36, 37, 38, 39, 41, 43, 44, 45, 49, 50, 51, 54, 55, 56, 57, 60, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 104, 106, 108, 115, 117, 119, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 136, 137, 138, 139, 140, 146, 147, 150, 151, 153, 157, 158, 161, 162, 164, 165, 167, 169, 171, 172, 173, 174, 175, 176, 177, 179, 181, 182, 184, 186, 187, 188, 189, 190, 191, 192, 194], "Their": 17, "Then": [5, 13, 16, 72], "There": [10, 11, 146, 157], "These": [0, 1, 2, 3, 4, 7, 10, 32, 45, 54, 60, 82], "To": [0, 6, 8, 10, 13, 14, 16, 17, 22, 25, 26, 72], "Will": [20, 25, 62, 63, 66, 67, 74, 75, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 151, 162, 176, 179, 181, 191, 194], "With": [2, 6, 8, 26], "_": [], "__getattr__": [], "__init__": [], "__main__": [2, 6, 8, 13], "__name__": [2, 6, 8, 13], "__setattr__": [], "_asset_typ": 19, "_get_bars_dict": 21, "_right": 19, "_vars_dict": [], "a716": [], "a7py0zidhxde6qkx8ojjknp7cd87hwku": 17, "aapl": [1, 2, 5, 6, 8, 10, 12, 16, 19, 20, 23, 26, 32, 35, 36, 37, 39, 72, 73, 145, 156], "aapl_pric": [10, 26], "abc": [43, 44], "abcdef1234567890abcdef1234567890abcdef1234": 17, "abl": 16, "about": [2, 9, 11, 26, 166], "abov": [2, 15, 19, 20, 32], "abrupt": 33, "abstract": [27, 41, 43, 44, 45], "accept": [5, 19], "access": [7, 14, 16, 17, 20, 25, 26, 165, 196], "access_token": 16, "accompani": 7, "accord": [82, 83, 89, 92, 98], "account": [2, 6, 8, 11, 12, 13, 15, 16, 17, 26, 43, 47, 49, 51, 53, 55, 57, 59, 61, 150, 161, 167, 182], "account_histori": 17, "account_id": [14, 17], "account_numb": 16, "accur": [20, 44], "achiev": [7, 22, 25, 26], "across": [2, 17], "act": 14, "action": [4, 17], "activ": [14, 17, 22, 26, 74, 75, 78, 152, 153, 163, 164], "activex": 15, "actual": [2, 13, 22, 41, 43, 175, 190], "ad": [5, 11, 13, 17, 19, 26, 72, 73], "add": [3, 5, 13, 14, 17, 19, 22, 25, 32, 43, 46, 62, 63, 66, 67], "add_chart_lin": [62, 66], "add_chart_mark": [63, 67], "add_child_ord": 22, "add_lin": [3, 26, 47], "add_mark": [3, 26, 47], "add_ord": 23, "add_strategi": [5, 12, 13, 14, 15, 16, 25, 26, 46], "add_transact": 22, "addit": [2, 14, 17, 19, 22, 146, 157], "addition": [5, 10, 20], "address": [14, 17], "adjust": [1, 7, 14, 20, 21, 44], "adjust_for_delai": [43, 44, 83, 92], "advanc": [0, 2, 5, 25, 26, 146, 157], "advantag": [], "afa": 17, "affili": 6, "afford": 17, "after": [5, 6, 8, 13, 14, 17, 21, 26, 28, 30, 31, 40, 42, 44, 63, 67, 72, 76, 130, 138, 139, 196], "after_market_clos": [26, 27], "again": [40, 103, 114], "against": 26, "aggregate_bar": 20, "ago": [44, 72], "agre": [], "aka": 5, "algorithm": [15, 17, 25], "alia": 22, "align": 17, "all": [1, 4, 5, 13, 17, 20, 21, 22, 25, 30, 33, 34, 43, 44, 45, 46, 51, 53, 57, 59, 72, 73, 125, 127, 128, 129, 131, 133, 135, 136, 137, 140, 143, 145, 146, 149, 150, 151, 154, 156, 157, 160, 161, 162, 165, 196], "all_vari": 196, "alloc": 10, "allow": [0, 2, 4, 5, 6, 8, 14, 17, 20, 22, 25, 26, 81, 146, 157, 165], "along": 9, "alpaca": [11, 20, 26, 72, 73], "alpaca_api_kei": 17, "alpaca_api_secret": 17, "alpaca_config": [12, 25, 26], "alpaca_is_pap": 17, "alpacastrategi": 12, "alreadi": [22, 30, 36, 41], "also": [5, 10, 15, 17, 22, 25, 26, 32, 43, 72, 146, 151, 157, 162, 166], "altern": 8, "alwai": [13, 30, 43, 106, 117, 167, 182], "america": [5, 20, 44, 176, 179, 181, 191, 194], "amount": [9, 13, 20, 22, 28, 44, 49, 51, 55, 57, 79, 80, 146, 157], "an": [0, 1, 2, 5, 6, 7, 8, 12, 13, 14, 15, 16, 17, 19, 22, 23, 26, 34, 35, 36, 39, 40, 41, 43, 44, 52, 58, 72, 74, 75, 81, 102, 103, 105, 113, 114, 116, 126, 127, 131, 132, 134, 135, 140, 141, 144, 146, 147, 148, 152, 155, 157, 158, 159, 163, 165, 178, 193, 196], "analy": 26, "analysi": [2, 4, 13, 46], "analyt": 26, "analyz": 26, "ani": [0, 1, 2, 5, 6, 7, 8, 10, 13, 14, 15, 17, 21, 22, 25, 41, 43, 62, 66, 72, 73, 105, 116, 145, 156, 165], "annual": [7, 25, 26], "anoth": [], "another_var": [], "anyth": 10, "anytim": 19, "anywai": [], "api": [1, 2, 6, 8, 10, 12, 13, 14, 15, 16, 17, 20, 26, 44, 128, 136], "api_kei": [1, 12, 25, 26, 43, 44], "api_secret": [12, 25, 26], "apikei": 13, "app": 14, "appl": 23, "appli": [1, 17, 44], "applic": [17, 106, 117], "approach": 14, "appropri": [14, 20], "approv": 14, "ar": [0, 1, 2, 3, 5, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 38, 41, 44, 45, 47, 48, 53, 59, 61, 62, 63, 66, 67, 70, 73, 78, 81, 82, 101, 106, 117, 124, 125, 126, 128, 133, 134, 136, 142, 143, 146, 147, 149, 151, 153, 154, 157, 158, 160, 162, 164, 165, 167, 182, 196], "arg": [1, 21, 44], "argument": [8, 128, 136], "around": [14, 17, 18], "arrai": [17, 21], "arriv": 81, "arrow": [63, 67], "articl": [], "aset": [146, 152, 153, 157, 163, 164], "asex": [32, 106, 117], "ask": [14, 44, 77], "aspect": 2, "asset": [1, 2, 5, 9, 12, 13, 17, 18, 20, 21, 22, 23, 26, 33, 34, 35, 36, 37, 39, 40, 43, 44, 49, 51, 52, 53, 55, 57, 58, 59, 62, 66, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 146, 147, 152, 153, 157, 158, 163, 164, 167, 177, 182, 192], "asset_bar": 30, "asset_bas": [72, 73, 152, 163], "asset_btc": [153, 164], "asset_eth": [153, 164], "asset_pric": [44, 128, 136], "asset_quot": [72, 73, 152, 153, 163, 164], "asset_symbol": 32, "asset_to_get": 13, "asset_typ": [1, 5, 13, 19, 20, 44, 72, 73, 74, 146, 147, 152, 153, 157, 158, 163, 164], "asset_type_map": 12, "asset_type_must_be_one_of": 19, "assetsmap": 19, "assettyp": [5, 13, 19, 146, 152, 153, 157, 163, 164], "assign": 196, "assist": 17, "associ": 14, "assset": [52, 58], "asterisk": [63, 67], "asx": [32, 106, 117], "async": 46, "async_": 46, "asynchron": 46, "attach": 21, "attain": [7, 146, 157], "attempt": [14, 175, 190], "attribut": [19, 196], "attributeerror": [], "authent": [11, 26], "author": 14, "auto_adjust": [1, 44], "autom": [14, 17], "automat": [1, 6, 8, 22, 146, 147, 157, 158, 196], "avail": [2, 9, 10, 17, 20, 21, 23, 26, 47, 72, 73, 106, 117, 128, 136, 153, 164, 167, 182], "averag": [2, 7, 22, 23], "avg_fill_pric": [22, 23], "avoid": 14, "await": [103, 114, 143, 154], "await_market_to_clos": [26, 47], "await_market_to_open": [26, 47], "awar": [5, 20], "back": [14, 196], "background": 17, "backtest": [4, 5, 7, 10, 17, 21, 22, 24, 32, 44, 46, 63, 67, 72, 73, 74, 75, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117, 170, 185], "backtesting_brok": 43, "backtesting_end": [1, 2, 5, 6, 8, 10, 25, 26, 32], "backtesting_start": [1, 2, 5, 6, 8, 10, 25, 26, 32, 43], "backtestingbrok": [5, 6, 8, 10, 43], "backtets": 77, "backup": 26, "backup_table_nam": 196, "backup_variables_to_db": [], "backward": [72, 73], "balanc": 22, "band": [7, 62, 66], "bar": [13, 18, 21, 26, 43, 44, 63, 67, 71, 72, 73, 74, 75, 78, 81, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 128, 136], "bar_list": 20, "bars_agg": 20, "bars_list": 30, "base": [2, 7, 12, 13, 19, 20, 21, 22, 23, 24, 26, 40, 43, 44, 46, 72, 73, 74, 146, 157], "base_asset": [19, 152, 153, 163, 164], "bat": [32, 106, 117], "bband": 7, "becaus": [3, 5, 6, 8, 10, 17, 43], "becuas": 44, "been": [5, 10, 15, 22, 23, 35, 36, 37, 39, 43, 74, 78], "befor": [1, 2, 5, 7, 10, 13, 14, 15, 17, 20, 22, 25, 26, 29, 30, 31, 32, 40, 41, 42, 44, 72, 73, 102, 103, 113, 114, 151, 162, 172, 173, 187, 188, 196], "before_market_clos": [26, 27], "before_market_open": [26, 27, 173, 188], "before_starting_trad": [26, 27, 30], "begin": [2, 43], "beginn": 25, "behav": 17, "behavior": [0, 2], "behind": 19, "being": [26, 35, 36, 37, 38, 39, 44, 46, 72, 126, 134, 146, 157, 168, 183], "belong": 22, "below": [14, 45, 47, 48, 61, 70, 74, 82, 101, 124, 142], "benchmark": [1, 2, 7], "benchmark_asset": [1, 2, 6, 8, 25], "benefit": 26, "best": [14, 17], "better": [7, 22, 146, 157], "between": [1, 2, 13, 20, 21, 26, 32, 72, 178, 193], "bid": [44, 77], "binanc": [13, 26], "bit": [6, 8], "bitcoin": 20, "black": [62, 63, 66, 67], "blacklist": 31, "blob": [15, 25, 26], "block": 14, "blue": [62, 63, 66, 67], "blueprint": 17, "bmf": [32, 106, 117], "boilerpl": [], "bolling": [7, 62, 66], "bool": [1, 22, 43, 44, 46, 72, 73, 74, 105, 116, 128, 136, 153, 164, 168, 170, 183, 185], "boolean": [12, 151, 153, 162, 164], "bot": [15, 17, 25, 32, 34, 45, 196], "both": [8, 14, 22, 25, 30, 146, 157], "bottom": 17, "bought": [36, 146, 157], "bowti": [63, 67], "box": 26, "bracket": [22, 146, 157], "broadcast": [105, 116], "broker": [1, 5, 12, 16, 19, 20, 22, 23, 24, 25, 26, 32, 35, 36, 37, 39, 44, 45, 72, 73, 74, 77, 81, 109, 110, 111, 112, 120, 121, 122, 123, 128, 136, 146, 152, 153, 157, 163, 164, 167, 182], "brokerag": [14, 17], "brown": [62, 63, 66, 67], "browser": [17, 25, 46], "bse": [32, 106, 117], "btc": [13, 19, 20, 72, 73, 74, 146, 152, 153, 157, 163, 164], "budget": [1, 5, 10, 17, 25, 32, 169, 184], "bug": 26, "bui": [1, 2, 5, 6, 7, 8, 9, 10, 12, 13, 16, 19, 22, 25, 26, 36, 40, 45, 49, 55, 105, 109, 110, 111, 112, 116, 120, 121, 122, 123, 144, 145, 146, 152, 153, 155, 156, 157, 163, 164, 167, 182], "build": [26, 27, 45], "built": [2, 5, 26], "bundl": 14, "busi": [29, 30], "butterfli": 17, "button": [14, 17], "buy_to_clos": 22, "buy_to_cov": 22, "buy_to_open": 22, "buy_trading_fe": [1, 25], "bvmf": [32, 106, 117], "byte": 17, "c": 14, "cach": [6, 8], "calcul": [13, 20, 22, 43, 44, 128, 136], "calculate_greek": 44, "calculate_trade_cost": 43, "calendar": [32, 76, 130, 138], "call": [1, 5, 6, 8, 19, 20, 22, 28, 32, 34, 35, 36, 38, 39, 40, 41, 42, 44, 72, 74, 75, 125, 126, 128, 133, 134, 136, 152, 163], "campu": [], "can": [2, 5, 6, 8, 10, 11, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 29, 32, 41, 44, 45, 48, 49, 55, 61, 62, 63, 66, 67, 70, 72, 73, 82, 101, 124, 128, 136, 142, 146, 157, 165, 166, 178, 193], "cancel": [12, 22, 30, 35, 43, 71, 109, 111, 120, 122, 142, 143, 144, 145, 146, 149, 151, 154, 155, 156, 157, 160, 162], "cancel_open_ord": [26, 30, 47, 151, 162], "cancel_ord": [12, 26, 43, 47, 149, 160], "cannot": 10, "capabl": [6, 8], "care": 41, "carri": 25, "case": [19, 21, 22], "cash": [9, 13, 22, 26, 28, 42, 43, 48, 49, 51, 55, 57, 61, 175, 177, 180, 190, 192, 195], "cash_pend": 22, "cash_settl": 22, "cash_settle_options_contract": 43, "categori": [45, 101], "caus": 14, "cboe": [125, 127, 129, 133, 135, 137], "cbot_agricultur": [32, 106, 117], "cbot_bond": [32, 106, 117], "cbot_equ": [32, 106, 117], "cbot_interestr": [32, 106, 117], "cbot_rat": [32, 106, 117], "ccxt": [11, 26], "central": [], "certain": [13, 63, 67], "cfd": 17, "cfe": [32, 106, 117], "chain": [22, 44, 124, 125, 126, 127, 129, 131, 133, 134, 135, 137, 140], "chain_data": 44, "challeng": 17, "chang": [5, 10, 12, 14, 16, 17, 20, 32], "chart": [26, 47, 62, 63, 64, 65, 66, 67, 68, 69], "check": [13, 17, 22, 26, 40, 43, 47, 72, 148, 149, 159, 160, 168, 170, 183, 185], "check_data": 21, "chf": [146, 157], "child": [22, 43], "child_ord": 22, "choic": [6, 8, 14, 17], "choos": [0, 15, 26], "chosen": [13, 16, 17], "chunk_siz": [12, 44, 73], "circl": [63, 67], "class": [1, 2, 5, 6, 8, 10, 12, 13, 16, 17, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 165, 196], "classmethod": [19, 20, 22, 23, 44], "clean_trading_tim": 44, "click": [14, 17], "client": [14, 15, 17], "client_id": 15, "close": [1, 5, 12, 13, 20, 21, 22, 28, 29, 32, 33, 40, 43, 51, 57, 72, 74, 75, 78, 81, 102, 103, 113, 114, 151, 162, 172, 187], "cme": [32, 74, 106, 117], "cme_agricultur": [32, 106, 117], "cme_bond": [32, 106, 117], "cme_equ": [32, 106, 117], "cme_interestr": [32, 106, 117], "cme_rat": [32, 106, 117], "code": [2, 5, 6, 7, 8, 13, 14, 17, 25, 26, 28, 29, 30, 33, 34, 35, 36, 37, 38, 39, 62, 66, 102, 103, 113, 114, 165], "coin": [20, 146, 157], "coinbas": [13, 26], "coinbase_api_kei": 17, "coinbase_api_secret": 17, "coinbase_config": 13, "coinbase_is_sandbox": 17, "coinbasepro": 13, "coinbasepro_config": 13, "collect": [4, 5], "color": [13, 62, 63, 66, 67, 105, 116], "column": [5, 20, 21, 44, 78, 196], "com": [2, 7, 15, 16, 17, 25, 26], "combin": 22, "comex_agricultur": [32, 106, 117], "comfort": 25, "command": [2, 25, 26], "comment": 74, "commiss": 17, "commit": 17, "common": [13, 14], "commun": [25, 26], "compar": [1, 7, 14, 17], "comparison": 2, "compat": 17, "competit": 17, "complet": [13, 14, 15, 17, 22, 26, 74, 75], "complex": [14, 25], "complic": 26, "compon": [27, 41, 196], "compound": [146, 157], "comprehens": [4, 25], "comput": [6, 8, 17, 25, 26], "conclus": [0, 26], "concurr": [], "condit": [2, 22, 40], "condor": [7, 17], "confid": 2, "config": [1, 12, 13, 16, 17, 25, 43], "configur": [2, 11, 15, 26], "confirm": [14, 17], "conflict": [14, 196], "confus": 26, "connect": [12, 13, 14, 17, 105, 116], "connect_stream": [12, 43], "consequ": [], "consid": [5, 20, 177, 192], "consist": [], "consol": [17, 105, 116], "constantli": [13, 26], "construct": 22, "constructor": 32, "contain": [1, 3, 20, 21, 22, 40, 42, 44, 78, 152, 153, 163, 164], "context": 42, "continu": [22, 146, 157], "contract": [5, 19, 20, 22, 32, 43], "control": [14, 178, 193], "conveni": 14, "convers": [19, 178, 193], "convert": [1, 19, 20, 22, 26, 43, 44, 132, 141, 146, 157], "convert_timestep_str_to_timedelta": 44, "copi": 25, "core": 41, "corner": [14, 17], "corpor": 19, "correct": [13, 14, 16], "correctli": 17, "correspond": [17, 35, 36, 37], "cost": [14, 17, 43], "could": [128, 136], "count": [21, 32, 78, 81, 196], "countri": 14, "coupon": [2, 6, 8], "cours": [25, 26], "cover": [17, 26], "crash": [34, 40, 196], "creat": [1, 2, 5, 6, 7, 8, 10, 13, 14, 16, 17, 19, 21, 22, 36, 44, 72, 125, 127, 129, 131, 133, 135, 137, 140, 142, 144, 145, 146, 155, 156, 157], "create_asset": [71, 72, 79], "create_ord": [1, 2, 5, 6, 8, 10, 12, 13, 19, 22, 25, 26, 40, 47, 109, 110, 111, 112, 120, 121, 122, 123, 144, 145, 152, 153, 155, 156, 163, 164], "creation": [], "credenti": [13, 14, 15], "credit": [6, 8, 153, 164], "critic": [], "cross": [63, 67], "crucial": [2, 17, 25], "cryoptocurr": 13, "crypto": [0, 1, 5, 7, 11, 17, 19, 20, 23, 26, 49, 51, 55, 57, 72, 74, 106, 117, 146, 152, 153, 157, 163, 164, 167, 175, 182, 190], "cryptocurr": [1, 2, 6, 8, 13, 17, 20, 72, 73, 74, 75, 146, 157], "csv": [0, 2, 3, 9, 21, 26, 44], "cta": 14, "cumul": 7, "currenc": [19, 72, 146, 157, 167, 175, 177, 182, 190, 192], "current": [12, 13, 14, 17, 21, 36, 37, 42, 43, 44, 49, 51, 52, 55, 57, 58, 62, 63, 66, 67, 72, 73, 77, 78, 82, 83, 84, 85, 86, 87, 88, 89, 92, 93, 94, 95, 96, 97, 98, 128, 136, 143, 149, 153, 154, 160, 164, 167, 175, 178, 182, 190, 193, 196], "current_count": 196, "current_ema": 13, "current_macd": 13, "current_rsi": 13, "curv": 2, "custom": [2, 25, 32, 146, 157, 165], "custom_param": [22, 146, 157], "d": [32, 178, 193], "dai": [0, 1, 2, 5, 6, 8, 10, 17, 21, 22, 26, 30, 31, 32, 40, 44, 72, 73, 76, 79, 80, 84, 85, 86, 87, 93, 94, 95, 96, 130, 138, 146, 153, 157, 164, 178, 193], "daili": [0, 2, 5, 7, 10, 31, 72, 73], "darkblu": [62, 66], "darkgrai": [62, 66], "darkgreen": [62, 66], "darkr": [62, 66], "dash": [16, 62, 66], "dashboard": [6, 8, 25], "data": [0, 1, 3, 6, 8, 10, 11, 13, 18, 19, 20, 23, 26, 30, 31, 40, 45, 47, 62, 66, 71, 72, 73, 78, 81, 83, 89, 90, 91, 92, 98, 99, 100, 176, 179, 181, 191, 194], "data_sourc": [5, 12, 43, 44, 72, 73], "data_source_backtest": 43, "databas": [2, 5, 17, 26], "database_nam": 196, "datafram": [20, 21, 44, 64, 65, 68, 69, 72, 78, 81], "datalin": 21, "dataset": 2, "datasourc": [1, 8, 43, 44], "datasource_class": 1, "datasourcebacktest": [43, 44], "datatim": 82, "date": [0, 1, 2, 5, 6, 8, 10, 19, 21, 26, 32, 44, 74, 76, 82, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 136, 137, 138, 139, 141, 146, 157], "date_cr": 22, "date_end": 21, "date_start": 21, "daterang": 20, "datetim": [1, 2, 5, 6, 8, 10, 13, 19, 20, 21, 25, 26, 32, 43, 44, 47, 62, 63, 66, 67, 72, 76, 78, 81, 83, 84, 90, 91, 92, 93, 99, 100, 127, 130, 132, 135, 138, 139, 141, 146, 157, 171, 186], "datetime64": [5, 21], "datetime_end": [5, 43], "datetime_start": [5, 43], "db": 17, "db_connection_str": [17, 196], "dd": [76, 130, 138], "deal": [14, 26], "debit": [153, 164], "debug": [4, 46, 196], "decid": [17, 72], "decim": [23, 74, 75, 146, 147, 157, 158], "decis": [3, 4], "def": [1, 2, 5, 6, 8, 10, 12, 13, 16, 25, 26, 27, 41, 106, 117, 165, 172, 173, 178, 187, 188, 193, 196], "default": [1, 5, 10, 17, 19, 20, 21, 32, 34, 44, 45, 54, 60, 62, 63, 66, 67, 72, 73, 74, 76, 91, 100, 106, 117, 125, 127, 128, 129, 130, 133, 135, 136, 137, 138, 146, 151, 153, 157, 162, 164, 172, 173, 176, 178, 179, 181, 187, 188, 191, 193, 194, 196], "default_pytz": 44, "default_timezon": 44, "defin": [6, 7, 8, 13, 24, 27, 32, 41, 42, 43, 45, 165, 196], "definit": [], "delai": 44, "delet": 17, "delta": [7, 44, 128, 136], "demonstr": 13, "depend": [14, 17, 72, 73], "deploi": [2, 26], "deploy": 26, "deprec": [1, 15, 146, 157, 180, 195], "depric": 74, "describ": [26, 45], "descript": [1, 14, 17], "deseri": [], "design": [2, 17, 25, 27, 41], "desir": [13, 14, 21, 81, 128, 136], "detail": [0, 2, 3, 4, 9, 14, 17, 19, 72, 148, 159], "detail_text": [62, 63, 66, 67], "determin": [6, 7, 8, 12, 22, 43, 106, 117, 146, 157, 166], "dev": [25, 26], "develop": [17, 26], "df": [5, 13, 20, 21, 30, 72, 73], "dialog": [], "diamond": [63, 67], "dict": [1, 21, 38, 42, 44, 46, 50, 54, 56, 60, 77, 104, 108, 115, 119, 146, 157], "dictionari": [1, 5, 8, 16, 36, 42, 43, 44, 46, 73, 77, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 146, 157, 165], "differ": [2, 3, 5, 7, 11, 13, 14, 17, 20, 25, 26, 45], "differenti": 7, "difficult": 5, "digit": 15, "directli": [17, 43], "directori": [5, 14, 17], "disabl": 15, "disconnect": 14, "discord": [17, 26], "discord_webhook_url": 17, "discov": [25, 26], "displai": [46, 62, 63, 66, 67], "displi": 46, "divid": 47, "dividend": [20, 44, 79, 80, 128, 136, 167, 182], "do": [1, 5, 10, 13, 16, 20, 22, 25, 26, 38, 44, 47, 101, 146, 157], "doc": [], "docstr": 43, "document": [11, 13, 14, 17, 25, 26, 72], "doe": [43, 44, 77, 146, 157], "doesn": 14, "dollar": [146, 157, 175, 190], "don": [13, 14, 17, 26], "done": 44, "dot": [62, 63, 66, 67], "down": [14, 17, 25, 33, 63, 67], "downgrad": 17, "download": [2, 5, 6, 8, 25, 26], "drawdown": [2, 7], "dsttzinfo": 44, "dt": [13, 21, 44, 62, 63, 66, 67, 90, 91, 99, 100, 139], "dt_index": 44, "dte": 7, "due": 19, "dump": [28, 42], "duplic": [], "durat": [7, 32, 146, 153, 157, 164, 178, 193], "dure": [1, 2, 4, 7, 17, 45, 73], "e": [2, 9, 17, 19, 20, 21, 22, 23, 25, 72, 73, 74, 146, 147, 152, 157, 158, 163], "e29b": [], "each": [0, 1, 2, 3, 5, 7, 9, 13, 14, 20, 22, 26, 30, 32, 40, 41, 44, 45, 47, 53, 59, 72, 80, 126, 134, 149, 151, 160, 162, 196], "eas": 17, "easi": [6, 8, 14, 17, 25, 26], "easier": [5, 17], "easiest": 25, "easili": [10, 26, 32, 45], "eastern": 21, "edit": 17, "effect": 17, "effici": 196, "eg": [13, 17, 19, 20, 25, 44, 47, 49, 51, 55, 57, 62, 63, 66, 67, 70, 77, 82, 105, 116, 125, 126, 133, 134, 146, 157, 178, 193], "either": [5, 19, 21, 22, 72, 73, 74, 75], "elif": 36, "els": 43, "ema": 13, "ema_threshold": 165, "email": [7, 14], "empti": [53, 59], "en": 13, "enabl": [13, 14, 15], "encount": 22, "end": [1, 2, 6, 7, 8, 10, 14, 20, 21, 26, 42], "end_dat": 21, "endpoint": 12, "engag": 17, "engin": [26, 41], "enhanc": [14, 25], "enjoi": 25, "enough": [], "ensur": [5, 10, 14, 17, 21, 22, 25, 26, 146, 157], "enter": [14, 17, 19, 22, 31, 146, 157, 178, 193], "entir": 13, "entiti": [5, 13, 19, 20, 21, 22, 23, 24, 25, 26, 44, 72, 73, 80, 146, 152, 153, 157, 163, 164], "entri": [15, 22], "env": [14, 17, 196], "environ": [2, 14, 26, 196], "equal": [172, 173, 178, 187, 188, 193], "equiti": [2, 14, 51, 57], "equival": 22, "equivalent_statu": 22, "error": [13, 17, 22, 34], "error_messag": 22, "especi": [14, 82, 196], "essenti": [2, 17], "est": 5, "etc": [5, 16, 20, 21, 40, 44, 45, 48, 61, 63, 67, 77, 148, 159], "etf": [2, 10], "eth": [20, 73, 146, 153, 157, 164], "ethereum": 20, "eula": 14, "eur": [19, 72, 73, 146, 152, 153, 157, 163, 164], "eurex": [32, 106, 117], "eurusd": 73, "evalu": 43, "even": [2, 6, 8, 30, 153, 164], "event": [4, 26, 33, 34, 35, 36, 37, 38, 39, 43, 63, 67], "everi": [2, 25, 32, 40, 43, 47, 81, 196], "everyth": [17, 26], "ew": [63, 67], "exactli": 26, "exampl": [1, 2, 6, 8, 11, 12, 15, 19, 20, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 52, 53, 58, 59, 62, 63, 66, 67, 71, 72, 73, 74, 75, 79, 80, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 105, 106, 107, 109, 110, 111, 112, 113, 114, 116, 117, 118, 120, 121, 122, 123, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 196], "example_strategi": [13, 25, 26], "exce": 20, "excel": 17, "except": [15, 20, 25, 26, 34], "exchang": [14, 21, 22, 44, 72, 73, 74, 75, 76, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 125, 126, 127, 129, 130, 131, 133, 134, 135, 137, 138, 140, 146, 157], "exchange_id": 13, "excut": [168, 183], "execud": [29, 30], "execut": [2, 9, 17, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 102, 103, 107, 109, 111, 113, 114, 118, 120, 122, 143, 152, 154, 163, 172, 173, 178, 187, 188, 193], "exist": [21, 54, 60], "exit": 22, "exp_dat": [44, 125, 126, 133, 134], "expect": [17, 25, 26, 128, 136], "expens": [17, 128, 136], "expert": [25, 26], "expertis": 26, "expir": [7, 14, 19, 22, 32, 44, 72, 74, 125, 126, 127, 128, 133, 134, 135, 136, 139, 146, 157], "expiration_d": [147, 152, 158, 163], "expiri": [19, 44, 127, 132, 135, 141], "expiry_d": [127, 132, 135, 141], "explain": 2, "exponenti": 7, "export": 2, "expri": 43, "extend": 81, "extens": 2, "extract": 72, "extrem": 22, "ey": 17, "f": [13, 16, 28, 35, 36, 38, 39, 42, 72, 74, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 132, 141, 169, 171, 174, 176, 177, 179, 181, 184, 186, 189, 191, 192, 194, 196], "fact": [], "factor": [11, 26], "fairli": [], "fals": [1, 12, 13, 16, 17, 22, 25, 26, 32, 43, 44, 46, 73, 74, 83, 92, 105, 116, 128, 136, 146, 151, 157, 162], "familiar": 25, "fashion": [], "fast": [22, 25, 26], "faster": [2, 6, 8, 44], "favor": [146, 157], "featur": [0, 2, 6, 8, 26], "fee": [14, 17, 18, 26], "feel": [], "fetch": [6, 8, 44, 126, 131, 134, 140], "few": [13, 17, 26, 101], "field": [14, 20, 22], "figur": 17, "file": [1, 4, 5, 7, 14, 15, 17, 25, 26, 101, 105, 116, 165, 196], "fill": [14, 17, 21, 22, 23, 36, 39, 43, 146, 157, 167, 182], "filter": 20, "final": [5, 6, 8, 10, 14, 26], "financ": [1, 2, 10, 26], "financi": [20, 25], "find": [13, 14, 15, 16, 17, 26, 44, 76, 127, 129, 130, 131, 135, 137, 138, 139, 140], "find_asset_in_data_stor": 44, "firm": 14, "first": [1, 5, 6, 8, 10, 13, 16, 17, 20, 21, 22, 25, 26, 30, 32, 73, 168, 178, 183, 193, 196], "first_iter": [1, 2, 5, 6, 8, 10, 26], "fit": [17, 101], "fix": [26, 81], "flat": 25, "flat_fe": [24, 25], "flexibl": [2, 5, 6, 8, 25], "float": [1, 5, 19, 20, 22, 23, 36, 39, 43, 44, 49, 51, 55, 57, 62, 63, 66, 67, 74, 75, 79, 80, 102, 103, 107, 113, 114, 118, 128, 131, 136, 140, 146, 147, 153, 157, 158, 164, 167, 169, 175, 182, 184, 190], "flow": 45, "focus": 17, "folder": [2, 5, 10, 13, 17], "follow": [2, 5, 6, 8, 13, 14, 15, 17, 19, 20, 22, 26, 27, 30, 41, 78, 165, 178, 193], "forc": [146, 157], "forex": [0, 2, 5, 6, 8, 12, 17, 19, 26, 44, 73, 74, 146, 152, 153, 157, 163, 164], "forget": 26, "form": [6, 21, 81, 106, 117, 127, 129, 135, 137, 167, 182], "format": [0, 5, 19, 21, 44, 76, 125, 126, 130, 132, 133, 134, 138, 141], "fortun": 26, "found": 26, "frame": 5, "framework": [2, 41], "free": [1, 2, 6, 8, 17, 23, 26, 44, 128, 136], "frequenc": [20, 21], "frequent": 20, "friendli": 17, "from": [1, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 21, 23, 25, 26, 41, 42, 44, 45, 72, 73, 76, 80, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 136, 137, 138, 140, 146, 152, 153, 157, 163, 164, 196], "from_dict": [19, 22, 23], "full": [2, 6, 8, 11, 14, 26, 44, 125, 133], "fulli": 14, "function": [0, 2, 3, 13, 17, 21, 26, 32, 38, 41, 44, 47, 48, 82, 142], "further": [2, 17], "futur": [0, 5, 12, 14, 17, 19, 20, 26, 43, 44, 74, 146, 147, 152, 157, 158, 163, 180, 195], "g": [2, 9, 17, 20, 21, 22, 23, 25, 72, 73, 146, 157], "gain": 26, "gamma": [128, 136], "gatewai": [], "gbp": [19, 152, 163], "gear": [], "gener": [7, 10, 13, 16, 26, 151, 162], "get": [1, 2, 5, 6, 8, 10, 11, 12, 13, 14, 17, 18, 20, 21, 22, 30, 31, 33, 38, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 55, 56, 57, 58, 59, 61, 70, 72, 73, 75, 77, 79, 80, 82, 104, 115, 124, 147, 148, 149, 150, 158, 159, 160, 161, 165, 166, 167, 172, 173, 175, 178, 182, 187, 188, 190, 193, 196], "get_asset": 44, "get_asset_by_nam": 44, "get_asset_by_symbol": 44, "get_asset_potential_tot": [26, 47], "get_bar": [20, 21, 44], "get_bars_between_d": 21, "get_cash": [26, 47], "get_chain": [26, 44, 47, 127, 129, 131, 135, 137, 140], "get_chain_full_info": 44, "get_datetim": [13, 26, 43, 44, 47], "get_datetime_rang": [26, 43, 44, 47], "get_expir": [26, 47], "get_fill_pric": 22, "get_func_stat": 25, "get_greek": [26, 47], "get_historical_account_valu": [12, 43], "get_historical_pric": [6, 8, 13, 20, 26, 31, 44, 47, 73], "get_historical_prices_for_asset": [26, 30, 47], "get_incr": 22, "get_iter_count": 21, "get_last_bar": 43, "get_last_dai": [26, 44, 47], "get_last_dividend": 20, "get_last_minut": [26, 44, 47], "get_last_pric": [2, 6, 8, 10, 13, 16, 20, 21, 26, 44, 47], "get_lines_df": [26, 47], "get_markers_df": [26, 47], "get_momentum": 20, "get_multipli": [26, 47], "get_next_option_expir": 139, "get_next_trading_dai": [26, 47], "get_ord": [13, 26, 47], "get_paramet": [26, 47, 165], "get_portfolio_valu": [26, 47], "get_posit": [13, 23, 26, 47, 150, 161], "get_quot": [21, 26, 47], "get_round_dai": [26, 44, 47], "get_round_minut": [26, 44, 47], "get_selling_ord": [23, 26, 47], "get_start_datetime_and_ts_unit": 44, "get_strik": [26, 44, 47], "get_symbol_bar": 70, "get_thread_stat": 25, "get_time_to_clos": [12, 43], "get_time_to_open": [12, 43], "get_timestamp": [12, 26, 44, 47], "get_timestep": 44, "get_total_dividend": 20, "get_total_return": 20, "get_total_return_pct": 20, "get_total_return_pct_chang": 20, "get_total_stock_split": 20, "get_total_volum": 20, "get_tracked_ord": [149, 160], "get_trading_days_panda": 44, "get_yesterday_dividend": [26, 44, 47], "getting_start": 15, "github": [13, 15, 17, 20, 25, 26], "give": [6, 8, 13, 131, 140], "given": [14, 20, 21, 43, 44, 52, 58, 71, 72, 73, 76, 84, 93, 125, 127, 129, 130, 131, 133, 135, 137, 138, 139, 140, 143, 148, 154, 159], "global": [15, 17, 20, 45], "go": [2, 5, 12, 15, 17, 25, 26], "goal": 7, "goe": [105, 116], "good": [26, 146, 157], "good_till_d": [22, 146, 157], "goog": [22, 42, 72, 73], "googl": 22, "google_symbol": 42, "gracefulli": 33, "grai": [62, 66], "graph": [7, 62, 63, 66, 67], "great": [14, 17], "greatli": [27, 41], "greek": [44, 124, 128, 136], "green": [13, 62, 63, 66, 67, 105, 116], "grouper_kwarg": 20, "growth": 7, "gtc": [146, 153, 157, 164], "gtd": [146, 157], "guarante": [146, 157], "guarente": [44, 125, 126, 133, 134], "guid": [2, 13, 16, 25, 26], "guidanc": 25, "h": [178, 193], "ha": [0, 7, 15, 20, 22, 26, 35, 36, 37, 39, 45, 71, 74, 78, 196], "handl": 14, "happen": [171, 186], "happi": 17, "harm": 7, "hash": [63, 67], "have": [0, 1, 2, 5, 6, 8, 10, 14, 16, 17, 20, 22, 23, 25, 26, 28, 43, 47, 49, 51, 55, 57, 72, 78], "he": 41, "header": 14, "held": [175, 190], "hello": 40, "help": [2, 3, 6, 8, 25], "helper": [20, 22, 45], "here": [1, 2, 5, 6, 8, 11, 12, 13, 14, 15, 16, 17, 18, 25, 26, 41, 165, 166], "hex": [62, 66], "hexagon": [63, 67], "hexagon2": [63, 67], "hexagram": [63, 67], "high": [5, 20, 21, 25, 26, 43, 78, 81], "higher": 22, "highli": [15, 26], "histor": [2, 6, 8, 12, 13, 20, 26, 43, 44, 70, 72, 73], "histori": 17, "historical_limit": 20, "hkex": [32, 106, 117], "hold": [6, 8, 20, 22, 23, 26, 36], "home": 26, "hope": 25, "host": [14, 17], "hour": [13, 20, 21, 32, 40, 44, 72, 73, 106, 117, 178, 193], "hourglass": [63, 67], "hover": [62, 63, 66, 67], "how": [0, 3, 11, 12, 13, 17, 25, 26, 45, 72, 81, 166], "howev": [17, 22, 30, 32, 146, 157], "hr": [5, 21], "html": [0, 1, 3, 9, 20, 26], "http": [2, 6, 8, 12, 13, 14, 15, 16, 17, 20, 25, 26], "i": [0, 1, 2, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 26, 28, 29, 30, 32, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 46, 47, 49, 51, 52, 55, 57, 58, 62, 63, 66, 67, 72, 73, 74, 75, 76, 77, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 102, 103, 106, 113, 114, 117, 125, 126, 127, 129, 130, 132, 133, 134, 135, 137, 138, 141, 146, 147, 149, 151, 153, 157, 158, 160, 162, 164, 166, 167, 168, 170, 172, 173, 177, 178, 182, 183, 185, 187, 188, 192, 193, 196], "ib": [14, 19, 132, 141], "ib_api_url": [14, 17], "ib_password": [14, 17], "ib_subaccount": 17, "ib_usernam": [14, 17], "ibeam": [], "ibgatewai": 14, "ibkei": [], "ibkr": 14, "ibkrcampu": [], "ibm": [19, 145, 156], "ic": [32, 106, 117], "iceu": [32, 106, 117], "icon": [], "id": [2, 15, 17, 148, 159, 196], "ideal": [2, 17], "identifi": [2, 13, 19, 22, 148, 159], "idx": 21, "iepa": [32, 106, 117], "illustr": 41, "iloc": [13, 72], "imag": [], "implement": [7, 17, 26, 27, 41, 44, 46], "impli": [128, 136], "implied_volatil": [128, 136], "import": [0, 1, 2, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 20, 26, 41, 42, 44, 45, 63, 67, 73, 80, 146, 152, 153, 157, 163, 164, 165], "importantfunct": 13, "importantli": 22, "improv": 26, "includ": [2, 3, 7, 9, 10, 13, 17, 19, 20, 26, 32, 41, 44, 54, 60, 72, 124, 146, 148, 157, 159, 175, 190], "include_after_hour": [44, 72, 73], "inclus": 20, "incred": 17, "incur": 14, "index": [5, 19, 20, 21, 26, 78], "indic": [0, 1, 5, 13, 46, 52, 53, 58, 59, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 153, 164], "indicators_fil": 1, "individu": [2, 26], "industri": 26, "infinit": [103, 114], "influenc": [3, 27, 41], "info": [44, 105, 116, 125, 126, 133, 134], "inform": [2, 3, 5, 9, 10, 13, 17, 43, 44, 77, 78, 126, 131, 134, 140, 146, 157, 166], "inherit": [6, 8, 45], "initi": [1, 2, 6, 8, 13, 15, 25, 26, 27, 41, 106, 117, 165, 169, 172, 173, 178, 184, 187, 188, 193], "initial_budget": 26, "input": [21, 102, 103, 113, 114], "insert": [], "insid": [47, 166, 172, 187], "insight": [0, 2], "instal": [0, 5, 10, 13, 15, 17], "instanc": [13, 196], "instanti": [13, 16, 26, 43], "instead": [1, 5, 17, 20, 43, 107, 118, 128, 136, 180, 195], "instruct": [14, 17, 146, 152, 153, 157, 163, 164], "instrument": 20, "int": [1, 12, 19, 20, 21, 22, 36, 39, 44, 62, 63, 66, 67, 72, 73, 81, 84, 85, 86, 87, 88, 89, 93, 94, 95, 96, 97, 98, 102, 103, 113, 114, 146, 147, 157, 158, 172, 173, 178, 187, 188, 193], "integ": [72, 73, 178, 193], "integr": [6, 8], "intend": [5, 17], "inter": [0, 5], "interact": [11, 13, 20, 22, 26, 45, 72, 73, 74, 81], "interactive_brok": 15, "interactive_brokers_client_id": 17, "interactive_brokers_config": 15, "interactive_brokers_ip": 17, "interactive_brokers_port": 17, "interactivebrok": [15, 20], "interest": [7, 13, 44, 128, 136], "interfer": [], "intern": [17, 146, 157], "interpret": [2, 178, 193], "interrupt": [14, 33, 196], "interupt": [33, 40], "interv": 5, "intervent": [], "intial": 78, "intra": [0, 5, 10], "intradai": 2, "introduc": 2, "invest": [7, 14, 26], "involv": 9, "io": [0, 13, 20, 26], "ip": [14, 15, 17], "iron": 7, "is_act": 22, "is_backtest": [17, 26], "is_backtest_brok": 46, "is_backtesting_brok": 43, "is_backtesting_data_sourc": [43, 44], "is_buy_ord": 22, "is_cancel": 22, "is_fil": 22, "is_market_open": [12, 43], "is_multileg": [153, 164], "is_opt": 22, "is_par": 22, "is_sell_ord": 22, "is_valid": 19, "isn": [], "isol": [], "issu": 2, "item": [], "iter": [1, 2, 6, 8, 13, 21, 32, 40, 41, 168, 171, 183, 186, 196], "iter_index": 21, "its": [1, 6, 8, 22, 42], "itself": 17, "j": [27, 41], "jan": 82, "join": [25, 26], "jpx": [32, 106, 117], "json": 196, "june": 19, "just": [19, 26, 32, 36, 43, 146, 157], "keep": [14, 17, 22, 23, 81, 146, 157], "keep_bar": 81, "kei": [1, 2, 3, 5, 6, 8, 12, 14, 15, 16, 17, 21, 26, 46, 128, 136, 165, 196], "kept": 81, "keybord": 33, "keyerror": [], "keyword": 22, "kill": [], "kind": [1, 25], "know": [13, 18], "knowledg": [], "known": [44, 74, 75], "kraken": [13, 26, 146, 157], "kraken_api_kei": 17, "kraken_api_secret": 17, "kraken_config": 13, "kucoin": [13, 26], "kucoin_config": 13, "kwarg": [1, 12, 19, 21, 43, 44, 153, 164], "last": [5, 13, 20, 21, 22, 28, 30, 31, 42, 43, 44, 72, 73, 74, 75, 85, 86, 94, 95, 171, 186, 196], "last_dai": [85, 94], "last_minut": [86, 95], "last_ohlc": 72, "last_on_trading_iteration_datetim": 26, "last_pric": [13, 74, 75, 196], "last_upd": 196, "later": 32, "latest": [2, 5, 10, 13, 17, 25, 26, 72], "launch": 30, "layout": [], "learn": [11, 17, 25, 26], "least": [5, 41], "leav": [151, 162], "left": [17, 63, 67], "leg": 26, "legaci": [11, 26], "len": 21, "length": [13, 21, 43, 44, 72, 73, 78, 84, 93], "less": [16, 146, 147, 157, 158], "let": 13, "level": [26, 63, 67, 105, 116], "leverag": [19, 146, 157], "librari": [5, 7, 13, 16, 17, 25], "lifecycl": [26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 47, 168, 172, 173, 178, 183, 187, 188, 193], "lightblu": [62, 66], "lightgrai": [62, 66], "lightgreen": [62, 66], "lightr": [62, 66], "like": [2, 5, 17, 21, 25, 26, 29, 30, 31, 32, 33, 43, 44, 165], "limit": [6, 8, 13, 14, 17, 22, 43, 44, 72, 73, 81, 110, 121, 146, 152, 153, 157, 163, 164], "limit_ord": [43, 146, 157], "limit_pric": [13, 22, 43, 110, 121, 146, 152, 153, 157, 163, 164], "line": [3, 26, 46, 62, 63, 64, 66, 67, 68], "link": [6, 8, 14], "list": [1, 2, 13, 18, 19, 20, 23, 25, 31, 43, 44, 47, 48, 53, 59, 61, 70, 73, 75, 80, 82, 84, 93, 101, 106, 111, 112, 117, 122, 123, 124, 127, 129, 131, 135, 137, 140, 142, 145, 149, 153, 156, 160, 164, 166], "littl": [], "live": [1, 2, 12, 14, 15, 17, 20, 25, 43, 44, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117], "live_config": 17, "ll": [13, 14, 16, 26], "lmt": 44, "lmt_order": 13, "load": [5, 18, 21, 63, 67, 196], "load_data": 44, "load_variables_from_db": [], "local": [20, 21, 42, 44, 90, 91, 99, 100, 128, 136], "localhost": [14, 17, 196], "localize_datetim": [26, 44, 47], "localize_timezon": 21, "locat": 17, "log": [0, 1, 2, 7, 10, 14, 15, 16, 17, 19, 26, 42, 101, 105, 116], "log_messag": [13, 16, 20, 26, 28, 30, 33, 34, 35, 36, 37, 38, 39, 40, 42, 47, 52, 53, 58, 59, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 132, 141, 147, 148, 149, 158, 159, 160, 167, 168, 169, 170, 171, 172, 174, 175, 176, 177, 179, 181, 182, 183, 184, 185, 186, 187, 189, 190, 191, 192, 194], "logfil": [1, 46], "logic": [27, 29, 30, 40, 41, 43, 45], "login": 14, "long": 22, "longer": 2, "longest": 7, "look": [2, 5, 15, 26], "loop": [14, 31, 40, 103, 114, 172, 187], "lose": [], "loss": [7, 22, 43, 62, 63, 66, 67, 146, 152, 153, 157, 163, 164], "lost": [], "lot": [17, 166], "low": [5, 17, 20, 21, 43, 78, 81], "lower": 21, "lse": [32, 106, 117], "luck": 26, "lumi": [2, 7, 8], "lumi10": [2, 6], "lumibot": [0, 1, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 18, 19, 22, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165], "lumiwealth": [7, 15, 26], "m": [178, 193], "mac": 26, "macd": 13, "machin": 2, "machinelearninglongshort": 25, "made": [25, 70, 82], "mai": [5, 13, 14, 17, 19, 22, 25, 72, 73, 81, 146, 157], "main": [17, 18, 22, 26, 33, 40, 45, 146, 157], "main_tick": 165, "maintain": [14, 17], "major": [5, 10], "make": [2, 4, 5, 6, 8, 17, 22, 25, 26, 74, 75], "maker": 24, "manag": [21, 22, 26, 47, 61, 124], "mandatori": [17, 19, 45, 146, 157], "mani": [6, 8, 13, 26, 32, 41, 81], "manual": [2, 14, 17], "map": 19, "map_asset_typ": 12, "margin": [13, 146, 157], "mark": [63, 67], "marker": [3, 46, 63, 65, 67, 69], "market": [2, 11, 12, 13, 17, 22, 25, 26, 28, 29, 30, 31, 32, 40, 43, 74, 75, 102, 103, 106, 109, 110, 111, 112, 113, 114, 117, 120, 121, 122, 123, 146, 151, 152, 153, 157, 162, 163, 164, 172, 173, 175, 187, 188, 190], "marketcalendar": [32, 106, 117], "martingal": 7, "master": 15, "match": [21, 44], "math": 26, "max": [7, 13], "max_bar": 32, "max_pric": 13, "max_work": [12, 43, 44, 73], "maximum": [7, 17, 44], "mean": [], "meant": 124, "measur": [1, 7], "mechan": [], "memori": 17, "mention": 20, "menu": [14, 26], "merg": 21, "messag": [17, 101, 105, 116], "method": [1, 6, 8, 15, 19, 20, 22, 23, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 70, 101, 124, 125, 127, 129, 131, 133, 135, 137, 140, 165, 168, 172, 173, 178, 183, 187, 188, 193, 196], "metric": [2, 7], "might": [5, 13, 14, 17], "min": 20, "min_timestep": [21, 44], "mind": [], "minim": [], "minimum": 44, "minut": [1, 5, 13, 17, 20, 21, 25, 26, 29, 30, 32, 40, 43, 44, 72, 73, 84, 86, 88, 93, 95, 97, 102, 103, 113, 114, 172, 173, 178, 187, 188, 193], "minutes_before_clos": [1, 26, 29, 32, 40, 102, 113], "minutes_before_open": [1, 26, 30, 103, 114], "miscellan": [26, 47], "miss": 39, "mkt_order": 13, "mm": [76, 130, 138], "mnq": 32, "mobil": 14, "mode": [0, 15, 17, 43, 170, 185], "modifi": [10, 25, 26], "modul": [5, 10, 26], "momentum": 20, "monei": [14, 16, 17, 25, 49, 51, 55, 57, 167, 182], "monitor": 17, "month": [17, 85, 94], "more": [0, 2, 3, 11, 13, 14, 16, 17, 18, 20, 25, 26, 43, 44, 47, 70, 72, 101, 124, 128, 136, 142], "most": [0, 5, 7, 14, 17, 20, 25, 41, 72, 78, 128, 136], "mostli": 43, "move": [2, 7, 22, 26], "movement": [22, 146, 157], "much": [5, 6, 8, 12, 44], "multileg": [22, 153, 164], "multipl": [2, 17, 143, 154, 196], "multipli": [19, 20, 36, 39, 44, 125, 126, 129, 131, 133, 134, 137, 140, 152, 163], "must": [1, 2, 5, 6, 8, 10, 12, 16, 21, 22, 41, 72, 73, 131, 140, 146, 157], "my": [17, 25], "my_custom_paramet": 32, "my_custom_stat": 42, "my_last_paramet": 32, "my_limit_pric": 22, "my_other_paramet": 32, "my_other_stat": 42, "my_paramet": 165, "my_stat": 42, "my_stop_loss_pric": 22, "my_stop_pric": 22, "my_take_profit_pric": 22, "my_trail_perc": 22, "my_trail_pric": 22, "mysql": [], "mystrategi": [1, 2, 5, 6, 8, 10, 13, 16, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 165], "n": [63, 67], "name": [0, 1, 5, 10, 14, 17, 19, 21, 25, 26, 32, 44, 46, 62, 63, 66, 67, 74, 105, 116, 165, 196], "namespac": 196, "nan": 21, "nasdaq": [14, 32, 106, 117], "navig": [14, 15, 17], "ne": [63, 67], "nearest": [87, 88, 96, 97], "necessari": [6, 8, 17, 43], "need": [2, 6, 8, 13, 14, 16, 17, 25, 27, 41, 43, 44, 72, 73, 77], "net": [2, 8, 51, 57], "network": 14, "new": [2, 5, 7, 14, 17, 19, 20, 22, 26, 36, 37, 43, 54, 60, 146, 157, 167, 182], "new_york": [20, 44, 176, 179, 181, 191, 194], "newer": 17, "nexpir": 19, "next": [5, 6, 8, 12, 17, 26, 40, 76, 130, 138, 139], "next_option_expir": 139, "next_trading_dai": [76, 130, 138], "nobardatafound": 20, "none": [1, 12, 13, 17, 19, 20, 21, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43, 44, 46, 49, 51, 52, 53, 54, 55, 57, 58, 59, 60, 62, 63, 66, 67, 71, 72, 73, 74, 75, 81, 84, 93, 102, 103, 105, 106, 107, 108, 113, 114, 116, 117, 118, 119, 128, 131, 136, 140, 143, 144, 145, 146, 148, 150, 151, 154, 155, 156, 157, 159, 161, 162], "normal": [5, 16, 131, 140], "notat": 196, "note": [5, 10, 13, 14, 15, 17, 20, 22, 43, 77, 146, 157], "notic": 26, "notif": [14, 17], "now": [16, 25, 44, 74], "num_period": 20, "number": [1, 12, 15, 16, 17, 21, 22, 29, 32, 44, 72, 73, 84, 87, 88, 93, 96, 97, 146, 157, 172, 173, 178, 187, 188, 193], "numpi": 21, "nuzcnprsxjxxouxrhqe5k2k1xnqlpckh2xcutifkcw": 17, "nw": [63, 67], "nyfe": [32, 106, 117], "nymex_agricultur": [32, 106, 117], "nyse": [14, 32, 76, 106, 117, 130, 138], "o": 22, "obect": [146, 157], "object": [1, 5, 10, 12, 18, 19, 20, 21, 22, 23, 24, 35, 36, 37, 39, 43, 44, 46, 52, 53, 58, 59, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 109, 110, 111, 112, 120, 121, 122, 123, 126, 131, 134, 140, 144, 145, 146, 147, 148, 149, 152, 153, 155, 156, 157, 158, 159, 160, 163, 164, 176, 181, 191, 196], "observ": 7, "obtain": [6, 8, 13, 44, 126, 127, 129, 131, 134, 135, 137, 140], "occur": 22, "oco": [22, 146, 152, 157, 163], "octagon": [63, 67], "off": [2, 6, 8], "offer": [2, 7, 14, 17, 26], "offici": 2, "often": 22, "ohlcv": [20, 21, 43], "on_abrupt_clos": [26, 27, 34], "on_bot_crash": [26, 27], "on_canceled_ord": [26, 27], "on_filled_ord": [26, 27], "on_new_ord": [26, 27], "on_parameters_upd": [26, 27], "on_partially_filled_ord": [26, 27], "on_start": [], "on_trading_inter": [12, 32], "on_trading_iter": [1, 2, 5, 6, 8, 10, 13, 16, 25, 26, 27, 28, 41, 42, 47, 102, 103, 113, 114, 165, 168, 172, 178, 183, 187, 193, 196], "onc": [2, 14, 15, 16, 17, 22, 25, 26, 32, 41, 146, 157, 196], "one": [5, 7, 13, 14, 17, 22, 25, 26, 41, 43, 47, 72, 109, 120, 146, 153, 157, 164], "ones": [17, 41], "onli": [1, 5, 10, 13, 14, 15, 17, 19, 20, 21, 22, 23, 25, 26, 32, 41, 43, 44, 46, 72, 73, 74, 77, 81, 128, 136, 143, 153, 154, 164, 172, 187], "open": [1, 2, 5, 12, 17, 20, 21, 22, 25, 29, 30, 31, 40, 43, 63, 67, 72, 78, 81, 102, 103, 113, 114, 143, 144, 145, 149, 151, 154, 155, 156, 160, 162, 173, 188], "open_": 43, "open_interest": 44, "openbook": 14, "oper": [14, 17, 32, 41], "opra": 14, "opt_asset": [128, 136], "optim": [2, 7, 17, 26], "option": [0, 2, 6, 8, 9, 12, 14, 16, 17, 19, 20, 22, 26, 32, 36, 39, 41, 43, 44, 47, 72, 74, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 146, 152, 157, 163], "option_chain": 44, "option_pric": [128, 136], "option_typ": [128, 136], "optionright": 19, "options_expiry_to_datetime_d": [26, 47], "optionscondormartingal": 196, "orang": [62, 63, 66, 67], "order": [1, 2, 5, 6, 8, 9, 10, 12, 13, 18, 19, 23, 25, 26, 29, 30, 35, 36, 37, 39, 40, 41, 43, 47, 105, 109, 110, 111, 112, 116, 120, 121, 122, 123, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 182], "order1": [111, 112, 122, 123, 145, 153, 156, 164], "order2": [111, 112, 122, 123, 145, 153, 156, 164], "order_1": 22, "order_2": 22, "order_class": 22, "order_dict": 22, "order_id": [148, 159], "order_typ": [12, 153, 164], "orderclass": 22, "orderdata": 12, "ordersid": 22, "orderstatu": 22, "ordertyp": 22, "origin": [105, 116], "os": [32, 106, 117], "other": [0, 2, 6, 8, 10, 13, 14, 15, 17, 20, 22, 25, 26, 41, 62, 66, 77, 101, 146, 157, 167, 182, 196], "otherwis": [22, 36], "oto": [22, 146, 157], "our": [7, 13, 17, 25, 26, 28], "out": [14, 26, 43, 47, 52, 58, 74], "output": 196, "outstand": 13, "over": [7, 19, 20, 25, 26, 62, 63, 66, 67], "overal": [1, 7], "overbought": [62, 63, 66, 67], "overhead": [], "overload": [27, 34, 41, 43], "overrid": [102, 103, 113, 114], "oversold": [62, 63, 66, 67], "overview": 2, "overwrit": [54, 60], "own": [2, 5, 6, 8, 12, 13, 16, 17, 23, 25, 26, 150, 161], "pace": 20, "packag": [14, 26], "page": [14, 16, 17, 26], "pai": [6, 8, 14], "paid": [1, 2, 167, 182], "pair": [13, 20, 22, 44, 74, 75, 125, 126, 133, 134, 146, 157], "panda": [0, 2, 10, 20, 21, 26, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 78, 106, 117], "pandas_data": [1, 5, 25, 43, 44], "pandas_ta": 13, "pandasdata": [43, 44], "pandasdatabacktest": [1, 5, 25], "panel": [], "paper": [11, 12, 15, 16, 17, 26, 44], "paper_1": 17, "param": 44, "paramet": [1, 2, 6, 8, 12, 19, 20, 21, 22, 23, 25, 26, 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 66, 67, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 84, 87, 88, 90, 91, 93, 96, 97, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 150, 151, 152, 153, 154, 155, 156, 157, 158, 161, 162, 163, 164, 172, 187], "parent": 22, "parquet": 5, "parse_bar_list": 20, "part": [17, 22, 41, 153, 164, 165], "partial": [22, 39], "partial_fil": 22, "partially_fil": 22, "particular": [22, 125, 127, 129, 133, 135, 137], "particularli": 19, "pass": [1, 2, 5, 8, 10, 18, 28, 36, 40, 41, 45, 102, 103, 113, 114, 128, 136, 146, 157], "password": [2, 8, 13, 14, 17, 196], "password123": [14, 17], "past": [2, 22, 25], "path_to_your_databas": [], "pattern": [27, 41], "paus": [102, 103, 107, 113, 114, 118, 178, 193], "pcal": 44, "pd": [5, 20, 44], "peak": 7, "penetr": [146, 157], "pentagon": [63, 67], "per": [20, 44], "percent": [146, 157], "percent_fe": [24, 25], "percentag": [20, 25], "perfectli": 17, "perform": [0, 2, 3, 7, 17, 26, 41], "period": [1, 2, 5, 7, 13, 21, 81, 196], "permiss": [14, 19], "permit": [], "persist": 196, "perspect": 41, "pick": [5, 10, 17, 26], "pink": [62, 63, 66, 67], "pip": [2, 5, 10, 13, 25, 26], "pk7t6yvax6pmh1em20yn": 17, "place": [9, 13, 18, 146, 151, 157, 162], "plan": [2, 14, 17], "platform": [14, 26], "pleas": [1, 2, 5, 6, 8, 10, 13, 15, 22, 72, 180, 195], "plot": [1, 10, 46, 63, 67], "plot_file_html": 1, "plu": [14, 105, 116, 175, 190], "png": [], "pnl": 22, "point": [3, 7, 9, 15, 22, 44, 62, 66, 72, 73, 147, 158], "polygon": [0, 1, 5, 8, 10, 17, 26], "polygon_api_kei": [1, 2, 17], "polygon_has_paid_subscript": 1, "polygon_max_memory_byt": 17, "polygondatabacktest": [1, 2, 6, 8], "polygondatasourc": 6, "pop": [], "popular": 13, "porfolio": 1, "port": [15, 17], "portal": 14, "portfolio": [7, 9, 13, 23, 28, 51, 57, 63, 67, 175, 190], "portfolio_valu": [2, 6, 8, 10, 13, 26, 28, 42, 177, 192], "posit": [1, 13, 18, 22, 26, 36, 39, 43, 45, 51, 52, 53, 57, 58, 59, 147, 150, 151, 158, 161, 162, 167, 175, 182, 190], "position_fil": [22, 146, 157], "possibl": [5, 14, 32, 44, 62, 63, 66, 67, 153, 164], "post": [153, 164], "postgresql": 196, "potenti": [2, 25, 26, 147, 158], "power": [2, 6, 8, 17, 25, 26], "powershel": 26, "practic": 14, "pre": [26, 153, 164], "preced": 47, "precis": [19, 128, 136], "predetermin": 22, "prefix": [0, 105, 116], "presenc": 17, "present": [72, 73, 128, 136], "press": 17, "prevent": 196, "previou": [7, 79, 80], "previous": [], "price": [2, 6, 8, 9, 13, 16, 17, 19, 20, 21, 22, 23, 31, 36, 39, 43, 44, 45, 47, 62, 63, 66, 67, 70, 72, 73, 74, 75, 78, 128, 136, 146, 152, 153, 157, 163, 164], "primari": [14, 196], "print": [12, 42, 196], "print_al": 25, "printout": 19, "pro": 13, "probabl": 22, "problem": [], "proceed": [5, 10, 14, 25], "process": [4, 6, 8, 14, 17, 25, 37, 39, 152, 153, 163, 164, 196], "process_expired_option_contract": 43, "process_pending_ord": 43, "product": 43, "prof": 25, "profil": 26, "profit": [17, 22, 25, 26, 43, 62, 63, 66, 67], "program": [107, 118, 165, 178, 193], "project": [2, 6, 8, 17], "prompt": 14, "promptli": 14, "proof": 14, "proper": 17, "properli": [], "properti": [22, 23, 26, 43, 45, 46, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195], "proven": 26, "provid": [0, 2, 4, 5, 6, 8, 9, 17, 20, 21, 44, 74, 75, 131, 140, 144, 145, 155, 156], "pstat": 25, "psycopg2": [], "pull": [40, 72], "purpl": [62, 63, 66, 67], "purpos": 17, "put": [5, 12, 16, 19, 25], "pv_dividend": [128, 136], "py": [15, 17, 25, 26], "pycharm": 2, "pymysql": [], "python": [2, 5, 25, 105, 116], "pytz": 26, "qqq": 1, "qtrz3zurd9244ahuw2aoyapgvyra": 16, "qtrz3zurl9244ahuw4aoyapgvyra": 17, "qty": [2, 6, 8], "quantiti": [1, 2, 6, 7, 8, 10, 12, 13, 22, 23, 25, 26, 36, 39, 52, 53, 58, 59, 146, 157], "quantstat": 7, "queri": [44, 128, 136], "query_greek": [44, 128, 136], "question": 7, "quick": 2, "quickli": [2, 14, 17, 25], "quot": [13, 19, 20, 21, 22, 44, 49, 51, 55, 57, 72, 73, 74, 75, 77, 146, 152, 153, 157, 163, 164, 175, 177, 190, 192], "quote_asset": [1, 13, 19, 23, 26, 152, 153, 163, 164], "r": 37, "rais": 34, "randint": 42, "random": 42, "random_numb": 42, "rang": [5, 13, 17, 20, 21], "rate": [1, 6, 8, 20, 44, 128, 136], "rather": 82, "ratio": [2, 7], "raw": [5, 20, 22], "re": [2, 11, 14, 17, 26, 82], "reach": [7, 25, 26, 43], "react": [27, 41], "read": [5, 15, 25, 44], "read_csv": 5, "readi": [2, 14, 17, 41, 146, 157], "readthedoc": 13, "real": [14, 16, 17, 25, 71, 78, 81], "receiv": [5, 14], "recent": [20, 72, 78], "recommend": [0, 15, 17, 25], "record": 26, "red": [62, 63, 66, 67, 105, 116], "redeploi": 17, "reduc": 17, "refer": [2, 3, 17, 26, 27], "refin": [4, 25], "regard": [], "regardless": 82, "regist": [22, 110, 112, 121, 123], "regular": 73, "regularli": 17, "reindex": 21, "reiniti": 31, "relat": [14, 17, 36], "reliabl": [], "remain": [12, 39, 43, 172, 187], "remaind": [146, 157], "rememb": [13, 26], "remov": [180, 195], "render": 26, "repair_times_and_fil": 21, "repl": 17, "replac": [2, 6, 8, 13], "replit": 26, "report": 28, "repositori": [13, 17], "repres": [19, 22, 44, 45, 72, 73, 126, 134], "represent": [12, 21, 22, 44, 72, 73], "request": 14, "requir": [0, 1, 2, 10, 13, 14, 15, 17, 19, 22, 74, 75, 146, 153, 157, 164], "reserv": 17, "reset": 31, "resist": [63, 67], "resourc": 25, "resov": [175, 190], "respect": 20, "respond": 2, "respons": [], "rest": [12, 14, 17, 41], "restart": [17, 40], "restor": 26, "restric": [146, 157], "restrict": 14, "result": [2, 5, 6, 8, 10, 25, 26, 42], "resum": 196, "retreiv": 23, "retriev": [2, 19, 21, 74, 75, 78, 196], "return": [1, 7, 12, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 64, 65, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194], "review": [2, 14], "right": [14, 17, 19, 28, 63, 67, 72, 152, 163], "right_must_be_one_of": 19, "risk": [1, 7, 14, 25, 44, 128, 136], "risk_free_r": [1, 44, 128, 136], "robot": 26, "robust": [6, 8], "romad": 7, "round": [44, 87, 88, 96, 97], "round_dai": [87, 96], "round_minut": [88, 97], "row": [20, 42, 72, 73, 81], "rsi": [2, 13], "rtype": [22, 44], "rule": 20, "run": [0, 5, 6, 8, 10, 11, 12, 14, 17, 21, 26, 30, 32, 33, 34, 37, 44, 46, 81, 102, 103, 113, 114, 143, 145, 154, 156, 170, 185], "run_al": [5, 13, 14, 15, 16, 25, 26, 46], "run_all_async": 46, "run_backtest": [0, 1, 2, 5, 6, 8, 10, 25], "runtim": 196, "safe": [], "sai": [], "sale": [6, 8], "same": [5, 14, 17, 22, 26, 73], "sampl": [12, 26], "sandbox": [13, 17], "save": [1, 5, 10, 17, 25, 46, 196], "save_logfil": 1, "save_tearsheet": [1, 46], "scalabl": [17, 196], "scale": [7, 196], "scene": 19, "scope": 42, "screen": [], "script": 5, "scroll": [14, 17], "se": [63, 67], "seamlessli": 17, "search": [2, 26], "second": [1, 12, 22, 32, 40, 43, 73, 81, 101, 107, 118, 178, 193], "secondari": [11, 26], "secret": [12, 13, 14, 16, 25, 26], "section": [2, 14, 17, 25, 47], "secur": [2, 5, 10, 14, 19, 22], "see": [2, 13, 14, 15, 17, 19, 20, 25, 26, 44, 48, 61, 70, 82, 101, 124, 142], "seek": [52, 58, 144, 155], "select": [2, 14, 17], "self": [1, 2, 5, 6, 8, 10, 12, 13, 14, 16, 17, 19, 20, 22, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 47, 165], "sell": [1, 7, 9, 22, 23, 29, 33, 34, 36, 40, 43, 45, 146, 150, 151, 152, 153, 157, 161, 162, 163, 164], "sell_al": [26, 29, 33, 34, 47], "sell_short": 22, "sell_to_clos": 22, "sell_to_open": 22, "sell_trading_fe": [1, 25], "send": [17, 105, 116], "sens": 47, "separ": [14, 17], "seri": 21, "serial": [], "server": [], "servic": [17, 105, 116], "session": [], "set": [1, 2, 6, 8, 11, 14, 15, 16, 17, 19, 20, 21, 22, 25, 26, 29, 32, 43, 44, 54, 60, 72, 73, 78, 106, 117, 125, 133, 146, 157, 165, 166, 172, 173, 178, 187, 188, 193, 196], "set_cancel": 22, "set_dat": 21, "set_date_format": 21, "set_error": 22, "set_fil": 22, "set_identifi": 22, "set_market": [13, 26, 32, 47], "set_new": 22, "set_paramet": [26, 47, 165], "set_partially_fil": 22, "set_tim": 21, "settings_fil": 1, "settl": 43, "settlement": 22, "setup": [0, 2, 11, 26], "sever": [0, 2, 10, 11, 45, 165], "share": [13, 16, 20, 22, 29, 31, 36, 39, 44, 146, 157, 175, 190], "sharp": [2, 7], "sheet": 2, "shift": [21, 44, 72, 73, 84, 87, 88, 93, 96, 97], "short": [22, 106, 117], "should": [5, 10, 14, 16, 20, 22, 27, 40, 43, 45, 74, 107, 118, 128, 136], "should_continu": 43, "should_use_last_clos": 74, "show": [1, 7, 52, 53, 58, 59, 147, 148, 149, 158, 159, 160], "show_ind": [1, 46], "show_plot": [1, 46], "show_tearsheet": [1, 46], "showcas": 7, "shown": [25, 26], "shut": 33, "side": [1, 2, 6, 8, 12, 22, 25, 36, 43, 146, 157], "sidebar": 17, "sign": 14, "signatur": 14, "similar": [13, 17, 30], "similarli": [], "simpl": [1, 5, 6, 8, 10, 16, 22, 26, 146, 157], "simple_start_ib": 15, "simple_start_single_fil": [25, 26], "simpli": [6, 8], "simplifi": [6, 8], "simultan": 44, "sinc": 13, "singl": [20, 44, 144, 155], "situat": 5, "six": [32, 106, 117], "size": [63, 67, 81], "skill": 25, "skip": [17, 30], "sleep": [1, 2, 26, 40, 47, 101, 102, 113, 178, 193], "sleeptim": [1, 2, 6, 8, 13, 25, 26, 32, 40, 107, 118], "slightli": [], "slow": 25, "smart": [44, 125, 127, 129, 133, 135, 137, 146, 157], "smoothli": 17, "snakeviz": 25, "snapshot": [14, 42], "snapshot_befor": 42, "so": [6, 8, 10, 13, 14, 17, 19, 22, 25, 26, 47, 82, 128, 136], "socket": [15, 17], "socket_port": 15, "sold": [36, 51, 57, 146, 157], "solid": [62, 66], "solut": 14, "some": [5, 10, 14, 25, 26, 44, 45, 74, 146, 157], "some_var": [], "someth": [5, 13], "sometim": 25, "soon": 17, "sort": [127, 129, 131, 135, 137, 140], "sortino": 7, "sought": [52, 58, 147, 158], "sourc": [0, 5, 8, 13, 20, 83, 89, 90, 91, 92, 98, 99, 100, 176, 179, 181, 191, 194], "speak": [11, 41], "specif": [2, 7, 13, 14, 17, 19, 22, 41, 44, 62, 66, 109, 120, 125, 126, 133, 134, 146, 157, 166], "specifi": [20, 22, 44, 72, 73, 146, 157, 196], "speed": [44, 178, 193], "spend": 25, "split": [20, 45], "spy": [1, 2, 5, 6, 8, 19, 22, 25, 30, 31, 32, 36, 40, 44, 71, 72, 73, 74, 75, 79, 80, 109, 110, 111, 112, 120, 121, 122, 123, 125, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 140, 144, 146, 150, 152, 153, 155, 157, 161, 163, 164, 165], "sqlalchemi": [], "sqlite": 17, "squar": [63, 67], "src": 17, "sse": [32, 106, 117], "standard": [], "star": [63, 67], "start": [1, 2, 5, 6, 7, 8, 10, 11, 13, 17, 20, 21, 30, 32, 44, 72, 73, 78, 81, 102, 113, 173, 188], "start_buff": 44, "start_dat": 21, "start_dt": 44, "startegi": 5, "starter": 17, "starting_posit": 1, "stat": [1, 28, 42], "state": [17, 166, 196], "static": 44, "statist": 2, "stats_fil": [1, 32], "statu": [22, 148, 149, 159, 160], "std": 44, "steea9fhiszntmpihqjudeqolitj0javz": 17, "step": [2, 5, 14], "stike": [44, 125, 133], "still": [146, 157], "stock": [0, 1, 2, 5, 6, 8, 9, 10, 12, 17, 19, 20, 21, 22, 23, 26, 32, 44, 106, 117, 126, 134, 146, 152, 157, 163], "stock_split": 20, "stop": [14, 22, 25, 32, 33, 40, 43, 62, 63, 66, 67, 102, 103, 113, 114, 146, 152, 153, 157, 163, 164, 172, 187, 196], "stop_al": 46, "stop_limit": [22, 146, 157], "stop_loss": [146, 152, 157, 163], "stop_loss_limit": [146, 157], "stop_loss_limit_pric": [22, 146, 157], "stop_loss_pric": [22, 146, 152, 157, 163], "stop_ord": 43, "stop_pric": [22, 43, 146, 152, 153, 157, 163, 164], "storag": 26, "store": 196, "str": [1, 19, 20, 21, 22, 23, 44, 52, 58, 62, 63, 66, 67, 72, 73, 74, 75, 76, 84, 93, 105, 106, 116, 117, 125, 126, 127, 129, 130, 132, 133, 134, 135, 137, 138, 141, 146, 153, 157, 164, 174, 178, 179, 189, 193, 194], "straightforward": 17, "strangl": [14, 15], "strat": 5, "strategi": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 22, 23, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196], "strategy_001": [], "strategy_1": 32, "strategy_2": 32, "strategy_executor": [13, 16], "strategy_id": [17, 196], "strategy_nam": 17, "stream": [14, 71, 78, 81], "strength": 2, "strictli": [5, 21], "strike": [9, 19, 44, 72, 126, 128, 131, 134, 136, 140, 146, 157], "strike1": [44, 125, 126, 133, 134], "strike2": [44, 125, 126, 133, 134], "strike_max": 44, "strike_min": 44, "strike_pric": [152, 163], "string": [1, 17, 19, 20, 21, 22, 44, 72, 73, 105, 116, 132, 141, 146, 157, 178, 193, 196], "strke": [44, 125, 133], "strongli": [], "structur": [14, 26], "studio": 2, "style": [62, 66], "sub": 26, "subaccount": [14, 17], "subaccount1": 17, "submiss": 22, "submit": [14, 22, 37, 43, 47, 142, 146, 152, 153, 157, 163, 164], "submit_ord": [1, 2, 5, 6, 8, 10, 13, 19, 22, 25, 26, 40, 43, 47, 109, 110, 111, 112, 120, 121, 122, 123, 144, 145, 146, 150, 155, 156, 157, 161], "subscrib": 14, "subscript": [1, 11, 26], "subsequ": [5, 6, 8], "success": 17, "successfulli": [35, 36, 37], "suffic": 14, "suffici": [146, 157], "suggest": 26, "suit": [2, 26], "suitabl": [2, 17], "sum": [20, 51, 57], "summari": [0, 6, 8, 26, 27], "super": 26, "suppli": [0, 10, 21], "supplier": 20, "support": [2, 6, 7, 8, 13, 14, 17, 21, 25, 26, 44, 63, 67, 128, 136, 146, 157], "sure": [2, 6, 8, 25, 26], "sw": [63, 67], "swim": 26, "switch": 26, "sybmol": 21, "symbol": [1, 2, 5, 6, 8, 12, 13, 19, 20, 21, 22, 23, 25, 36, 44, 63, 67, 72, 73, 74, 146, 152, 153, 157, 163, 164], "symbol2asset": 19, "system": [151, 162], "t": [6, 8, 13, 14, 17, 26], "ta": 13, "tab": 17, "tabl": 196, "tag": [22, 153, 164], "tailor": 7, "take": [6, 8, 17, 22, 25, 41, 44, 62, 63, 66, 67, 73, 74, 75, 125, 133], "take_profit_pric": [22, 146, 152, 157, 163], "taken": 4, "taker": 24, "tall": [63, 67], "tase": [32, 106, 117], "task": 41, "tear": 2, "tearsheet": [0, 1, 26, 46], "tearsheet_fil": [1, 46], "technic": [2, 13, 41], "tediou": 14, "tell": 82, "term": 2, "termin": [2, 13, 25, 26], "test": [0, 2, 15, 17], "text": [62, 63, 66, 67], "than": [16, 17, 44, 82, 146, 147, 157, 158], "thei": [3, 5, 11, 17, 20, 26, 41, 81, 128, 136], "them": [2, 11, 17, 20, 22, 25, 26, 47, 48, 61, 70, 82, 101, 124, 142, 145, 156], "themselv": 20, "theoret": [128, 136], "therefor": [167, 182], "theta": [44, 128, 136], "thetadata": [0, 2, 26], "thetadata_password": 8, "thetadata_usernam": 8, "thetadatabacktest": 8, "thi": [1, 2, 5, 6, 8, 9, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 49, 51, 55, 57, 62, 63, 66, 67, 72, 73, 74, 75, 77, 81, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 107, 118, 146, 153, 157, 164, 167, 168, 177, 178, 182, 183, 192, 193], "thin": [63, 67], "thing": 47, "think": [17, 82], "third": 5, "thoroughli": 15, "those": [13, 17, 166], "though": [146, 157], "thoughtfulli": [], "three": [0, 15, 20, 22], "threshold": [22, 146, 157], "throttl": 20, "through": [2, 13, 14, 17], "tick": 20, "ticker": [9, 19, 20, 32, 44, 81], "time": [3, 5, 6, 8, 9, 12, 13, 14, 17, 20, 21, 25, 32, 41, 43, 44, 45, 71, 72, 73, 78, 81, 82, 87, 88, 96, 97, 102, 103, 107, 113, 114, 118, 128, 136, 146, 157, 168, 178, 183, 193], "time_in_forc": [22, 146, 157], "timedelta": [44, 72, 73, 102, 103, 113, 114], "timefram": 20, "timeshift": [21, 43, 44, 72, 73, 84, 87, 88, 93, 96, 97], "timestamp": [2, 12, 20, 44, 62, 63, 66, 67, 85, 86, 87, 88, 89, 94, 95, 96, 97, 98, 196], "timestep": [5, 21, 43, 44, 72, 73, 84, 93], "timestep_map": [21, 44], "timezon": [20, 21, 26, 44, 90, 91, 99, 100, 176, 181, 191], "tip": 17, "titl": [], "tlt": [30, 52, 58, 73, 75, 80, 111, 112, 122, 123, 146, 147, 153, 157, 158, 164], "to_csv": 5, "to_datalin": 21, "to_default_timezon": [26, 44, 47], "to_dict": [19, 22, 23], "to_posit": 22, "to_request_field": 12, "todai": [17, 74, 82], "todo": [43, 74], "togeth": [5, 22, 25], "token": 17, "tool": [6, 8, 17, 26], "top": [14, 17, 26], "topic": 17, "total": [7, 20, 28, 51, 57, 147, 158, 175, 190], "totalview": 14, "tqqq": 25, "trace": 42, "trace_stat": [26, 27, 178, 193], "track": [19, 23, 26, 52, 53, 58, 59, 148, 149, 159, 160], "trade": [0, 1, 4, 5, 10, 11, 13, 15, 17, 18, 19, 20, 21, 22, 27, 30, 31, 32, 33, 40, 41, 43, 44, 45, 52, 58, 73, 74, 76, 78, 81, 82, 83, 85, 86, 87, 88, 89, 92, 94, 95, 96, 97, 98, 106, 117, 126, 130, 134, 138, 146, 157, 171, 186, 196], "trade_cost": 22, "trade_count": 196, "tradeapi": 12, "trader": [5, 6, 8, 10, 12, 13, 14, 15, 16, 26, 33], "trades_fil": 1, "tradest": 26, "tradier": [11, 26, 44, 77, 153, 164], "tradier_access_token": 17, "tradier_account_numb": 17, "tradier_config": 16, "tradier_is_pap": 17, "trading_fe": 24, "trading_fee_1": 25, "trading_fee_2": 25, "trading_hours_end": 21, "trading_hours_start": 21, "tradingcalendar": [32, 106, 117], "tradingfe": [1, 24, 25, 26], "trail": [22, 146, 152, 157, 163], "trail_perc": [22, 146, 157], "trail_pric": [22, 146, 157], "trailing_stop": [22, 146, 157], "trailing_stop_pric": [152, 163], "transact": [13, 22, 167, 182], "trashcan": 17, "tree": 26, "triangl": [63, 67], "trigger": [22, 146, 157], "trim": 21, "trim_data": 21, "troubleshoot": [], "trough": 7, "true": [1, 5, 12, 13, 16, 17, 22, 24, 25, 26, 32, 43, 44, 46, 72, 73, 74, 105, 116, 151, 162, 168, 170, 183, 185], "try": [25, 146, 157], "tsx": [32, 106, 117], "tsxv": [32, 106, 117], "tupl": [22, 73], "tutori": [15, 26], "tw": [14, 17, 20], "twice": 14, "two": [2, 3, 11, 19, 22, 25, 26, 73, 145, 156], "twsapi": [], "type": [0, 1, 2, 5, 12, 14, 18, 19, 20, 21, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 46, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 64, 65, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 129, 130, 131, 132, 133, 134, 135, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194], "typic": [17, 22, 165], "tz_local": 21, "u": [6, 7, 8, 13, 14, 21, 26, 175, 190], "u17369206": [14, 17], "ultra": 14, "under": [13, 14, 17, 25], "underli": [19, 21, 44, 128, 131, 136, 140], "underlying_asset": 19, "underlying_pric": [44, 128, 136], "understand": [2, 4, 25], "unexpect": [], "unexpectedli": [], "uniqu": 3, "unit": [17, 44, 146, 157, 178, 193], "unix": 12, "unless": 5, "unlik": 30, "unnecessari": 17, "unprocess": 22, "unspent_monei": 26, "until": [6, 8, 12, 20, 102, 103, 113, 114, 146, 157], "up": [1, 2, 5, 6, 11, 14, 15, 17, 19, 25, 26, 44, 63, 67, 196], "updat": [20, 22, 26, 36, 38, 108, 119, 146, 157, 167, 182], "update_date_index": 44, "update_paramet": [26, 38, 47], "update_raw": 22, "update_trail_stop_pric": 22, "upgrad": [2, 5, 10, 25, 26], "upload": 14, "upon": [], "upper": 14, "url": [14, 17], "us": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 55, 61, 62, 63, 66, 67, 70, 72, 73, 76, 82, 101, 105, 107, 116, 118, 127, 128, 129, 130, 131, 135, 136, 137, 138, 140, 142, 146, 157, 165, 166, 167, 177, 178, 180, 182, 192, 193, 195, 196], "us_equ": 12, "us_futur": [32, 106, 117], "usag": [17, 26], "usd": [1, 19, 21, 72, 73, 74, 146, 152, 153, 157, 163, 164], "usdc": 1, "usdt": [1, 19, 49, 51, 55, 57, 72, 74, 146, 157], "user": [0, 2, 5, 10, 14, 17, 21, 25, 27, 41, 45, 46, 144, 146, 155, 157, 196], "user123": [14, 17], "userdict": 19, "usernam": [2, 8, 11, 17, 26], "usual": [1, 47, 178, 193], "utc": 21, "util": [], "utm_campaign": 6, "utm_sourc": 6, "utp": 14, "v": [2, 7, 19], "v2": 7, "va12204793": 17, "va22904793": 16, "valid": [2, 19, 21, 22, 44, 125, 126, 133, 134, 146, 157], "valu": [1, 3, 5, 9, 12, 13, 14, 17, 19, 20, 21, 23, 28, 43, 45, 46, 48, 49, 51, 55, 57, 61, 62, 63, 66, 67, 72, 73, 128, 136, 153, 164, 175, 190, 196], "valuat": 1, "value_typ": 23, "var": 26, "var1": 196, "var2": 196, "variabl": [14, 26, 31, 42, 166], "variant": 22, "variat": 7, "varieti": 7, "variou": [2, 6, 7, 8, 14], "vars_backup": 196, "vcpu": 17, "ve": [2, 13, 16, 26], "vector": 26, "vega": [128, 136], "verbiag": [], "veri": [10, 17, 26], "verifi": 17, "versatil": [6, 8, 13, 17], "version": [2, 5, 7, 10, 17, 25, 26], "via": 14, "view": [4, 17], "visit": [7, 16, 17, 25, 26], "visual": [2, 3, 7, 25], "visualstudio": 2, "vital": 2, "vm": 17, "volatil": [7, 22, 128, 136], "volum": [5, 20, 21, 78, 81], "voyz": [], "vwap": [78, 81], "wa": [2, 12, 13, 27, 30, 33, 34, 41, 43, 72, 167, 182], "wait": [17, 22, 39, 109, 110, 111, 112, 120, 121, 122, 123], "wait_for_order_execut": [26, 47], "wait_for_order_registr": [26, 47], "wait_for_orders_execut": [26, 47], "wait_for_orders_registr": [26, 47], "wait_to_be_clos": 22, "wait_to_be_regist": 22, "walk": [2, 17], "want": [1, 2, 5, 8, 10, 12, 13, 16, 17, 25, 26, 41, 44, 62, 66], "was_transmit": 22, "we": [5, 6, 7, 8, 10, 11, 13, 17, 25, 26, 28, 47, 72, 146, 157], "weak": 2, "wealth": 26, "web": [25, 46], "webhook": 17, "websit": [2, 7, 10, 13, 14, 16, 17], "week": [72, 73], "weight": 22, "welcom": 25, "well": 26, "were": [9, 26, 38], "what": [14, 26, 47, 82, 177, 192], "whatev": 13, "when": [0, 1, 2, 5, 6, 8, 13, 14, 17, 19, 20, 22, 25, 26, 27, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 62, 63, 66, 67, 82, 146, 157, 167, 172, 182, 187, 196], "whenev": [167, 182], "where": [22, 25, 42, 146, 157], "whether": [1, 17, 22, 44, 46, 72, 82, 128, 136, 146, 157], "which": [2, 6, 7, 8, 9, 13, 14, 17, 20, 21, 22, 32, 41, 49, 51, 55, 57, 74, 75, 76, 77, 128, 130, 136, 138, 178, 193], "while": [14, 17], "white": [62, 63, 66, 67], "who": [5, 17, 52, 58, 147, 158], "whose": [44, 126, 134], "why": [2, 26], "wide": [13, 17, 63, 67], "width": [62, 66, 72, 73], "wiki": [], "window": 26, "wish": [5, 26], "within": [1, 17, 18, 107, 118, 143, 154], "without": [14, 17, 25, 131, 140], "won": [6, 8], "word": [22, 167, 182], "work": [0, 2, 5, 11, 15, 17, 25, 26, 72, 73, 77, 166], "worker": 17, "workstat": 15, "world": [14, 17], "would": [1, 2, 5, 16, 19, 25, 26, 44, 51, 57, 146, 157, 178, 193], "wrapper": 21, "write": [1, 2, 6, 8], "www": [8, 16], "x": [63, 67], "xam": [32, 106, 117], "xasx": [32, 106, 117], "xbkk": [32, 106, 117], "xbog": [32, 106, 117], "xbom": [32, 106, 117], "xbru": [32, 106, 117], "xbud": [32, 106, 117], "xbue": [32, 106, 117], "xcbf": [32, 106, 117], "xcse": [32, 106, 117], "xdub": [32, 106, 117], "xetr": [32, 106, 117], "xfra": [32, 106, 117], "xhel": [32, 106, 117], "xhkg": [32, 106, 117], "xice": [32, 106, 117], "xidx": [32, 106, 117], "xist": [32, 106, 117], "xjse": [32, 106, 117], "xkar": [32, 106, 117], "xkl": [32, 106, 117], "xkrx": [32, 106, 117], "xli": [32, 106, 117], "xlim": [32, 106, 117], "xlon": [32, 106, 117], "xmad": [32, 106, 117], "xmex": [32, 106, 117], "xmil": [32, 106, 117], "xmo": [32, 106, 117], "xny": [32, 106, 117], "xnze": [32, 106, 117], "xosl": [32, 106, 117], "xpar": [32, 106, 117], "xph": [32, 106, 117], "xpra": [32, 106, 117], "xse": [32, 106, 117], "xsgo": [32, 106, 117], "xshg": [32, 106, 117], "xsto": [32, 106, 117], "xswx": [32, 106, 117], "xtae": [32, 106, 117], "xtai": [32, 106, 117], "xtk": [32, 106, 117], "xtse": [32, 106, 117], "xwar": [32, 106, 117], "xwbo": [32, 106, 117], "xyz1234567890abcdef": 17, "y": [63, 67], "yahoo": [0, 1, 2, 5, 20, 26, 72, 73, 106, 117], "yahoo_data": 44, "yahoodata": 44, "yahoodatabacktest": [1, 10, 25, 26, 32], "yappi": 25, "year": [2, 6, 8], "yearli": 7, "yellow": [62, 63, 66, 67], "yet": [22, 46], "yf": [5, 44], "yfinanc": [5, 44], "yield": 20, "york": [5, 17], "you": [0, 1, 2, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 17, 20, 22, 25, 26, 29, 32, 44, 47, 48, 49, 51, 55, 57, 61, 62, 66, 70, 72, 73, 82, 101, 124, 142, 146, 157, 165, 166, 178, 193], "your": [2, 5, 6, 7, 8, 10, 11, 12, 14, 15, 18, 20, 22, 40, 41, 47, 48, 49, 51, 55, 57, 61, 70, 82, 101, 146, 157, 165, 166, 178, 193, 196], "your_access_token": 16, "your_account_numb": 16, "your_alpaca_api_kei": [25, 26], "your_alpaca_secret": [25, 26], "your_api_kei": [12, 13], "your_api_secret": 12, "your_passphras": 13, "your_polygon_api_kei": [2, 6], "your_secret": 13, "your_secret_kei": 13, "yyyi": [76, 130, 138], "yyyymm": 19, "yyyymmdd": [19, 132, 141], "zero": [167, 182], "zone": [5, 20]}, "titles": ["Backtesting", "Backtesting Function", "How To Backtest", "Indicators Files", "Logs CSV", "Pandas (CSV or other data)", "Polygon.io Backtesting", "Tearsheet HTML", "ThetaData Backtesting", "Trades Files", "Yahoo", "Brokers", "Alpaca", "Crypto Brokers (Using CCXT)", "Interactive Brokers", "Interactive Brokers Legacy", "Tradier", "Deployment Guide", "Entities", "Asset", "Bars", "Data", "Order", "Position", "Trading Fee", "What is Lumibot?", "Lumibot: Backtesting and Algorithmic Trading Library", "Lifecycle Methods", "def after_market_closes", "def before_market_closes", "def before_market_opens", "def before_starting_trading", "def initialize", "def on_abrupt_closing", "def on_bot_crash", "def on_canceled_order", "def on_filled_order", "def on_new_order", "def on_parameters_updated", "def on_partially_filled_order", "def on_trading_iteration", "Summary", "def trace_stats", "Backtesting", "Data Sources", "Strategies", "Traders", "Strategy Methods", "Account Management", "self.get_cash", "self.get_parameters", "self.get_portfolio_value", "self.get_position", "self.get_positions", "self.set_parameters", "self.get_cash", "self.get_parameters", "self.get_portfolio_value", "self.get_position", "self.get_positions", "self.set_parameters", "Chart Functions", "self.add_line", "self.add_marker", "self.get_lines_df", "self.get_markers_df", "self.add_line", "self.add_marker", "self.get_lines_df", "self.get_markers_df", "Data", "self.cancel_realtime_bars", "self.get_historical_prices", "self.get_historical_prices_for_assets", "self.get_last_price", "self.get_last_prices", "self.get_next_trading_day", "self.get_quote", "self.get_realtime_bars", "self.get_yesterday_dividend", "self.get_yesterday_dividends", "self.start_realtime_bars", "DateTime", "self.get_datetime", "self.get_datetime_range", "self.get_last_day", "self.get_last_minute", "self.get_round_day", "self.get_round_minute", "self.get_timestamp", "self.localize_datetime", "self.to_default_timezone", "self.get_datetime", "self.get_datetime_range", "self.get_last_day", "self.get_last_minute", "self.get_round_day", "self.get_round_minute", "self.get_timestamp", "self.localize_datetime", "self.to_default_timezone", "Miscellaneous", "self.await_market_to_close", "self.await_market_to_open", "self.get_parameters", "self.log_message", "self.set_market", "self.sleep", "self.update_parameters", "self.wait_for_order_execution", "self.wait_for_order_registration", "self.wait_for_orders_execution", "self.wait_for_orders_registration", "self.await_market_to_close", "self.await_market_to_open", "self.get_parameters", "self.log_message", "self.set_market", "self.sleep", "self.update_parameters", "self.wait_for_order_execution", "self.wait_for_order_registration", "self.wait_for_orders_execution", "self.wait_for_orders_registration", "Options", "self.get_chain", "self.get_chains", "self.get_expiration", "self.get_greeks", "self.get_multiplier", "self.get_next_trading_day", "self.get_strikes", "self.options_expiry_to_datetime_date", "self.get_chain", "self.get_chains", "self.get_expiration", "self.get_greeks", "self.get_multiplier", "self.get_next_trading_day", "self.get_option_expiration_after_date", "self.get_strikes", "self.options_expiry_to_datetime_date", "Order Management", "self.cancel_open_orders", "self.cancel_order", "self.cancel_orders", "self.create_order", "self.get_asset_potential_total", "self.get_order", "self.get_orders", "self.get_selling_order", "self.sell_all", "self.submit_order", "self.submit_orders", "self.cancel_open_orders", "self.cancel_order", "self.cancel_orders", "self.create_order", "self.get_asset_potential_total", "self.get_order", "self.get_orders", "self.get_selling_order", "self.sell_all", "self.submit_order", "self.submit_orders", "Parameters", "Strategy Properties", "self.cash", "self.first_iteration", "self.initial_budget", "self.is_backtesting", "self.last_on_trading_iteration_datetime", "self.minutes_before_closing", "self.minutes_before_opening", "self.name", "self.portfolio_value", "self.pytz", "self.quote_asset", "self.sleeptime", "self.timezone", "self.unspent_money", "self.pytz", "self.cash", "self.first_iteration", "self.initial_budget", "self.is_backtesting", "self.last_on_trading_iteration_datetime", "self.minutes_before_closing", "self.minutes_before_opening", "self.name", "self.portfolio_value", "self.pytz", "self.quote_asset", "self.sleeptime", "self.timezone", "self.unspent_money", "Variable Backup & Restore"], "titleterms": {"1": [25, 26], "2": [25, 26], "2fa": 14, "3": [25, 26], "4": 25, "5": 25, "6": 25, "7": 25, "8": 25, "In": 5, "It": 196, "To": 2, "With": [22, 25], "account": [14, 25, 48], "ad": 25, "add_lin": [62, 66], "add_mark": [63, 67], "addit": 26, "advanc": 22, "after_market_clos": 28, "algorithm": 26, "all": 26, "alpaca": [12, 17, 25], "an": 25, "api": 25, "ask": [], "asset": 19, "authent": 14, "autom": [], "await_market_to_clos": [102, 113], "await_market_to_open": [103, 114], "backtest": [0, 1, 2, 6, 8, 25, 26, 43], "backup": 196, "bar": 20, "before_market_clos": 29, "before_market_open": 30, "before_starting_trad": 31, "benefit": 196, "bot": 26, "broker": [11, 13, 14, 15, 17, 43], "cancel_open_ord": [143, 154], "cancel_ord": [144, 145, 155, 156], "cancel_realtime_bar": 71, "cash": [167, 182], "ccxt": 13, "chart": 61, "choos": [2, 17], "class": 25, "coinbas": 17, "conclus": [2, 17], "configur": [13, 14, 16, 17, 25, 196], "content": [0, 11, 18, 26, 27, 44, 47], "creat": [25, 26], "create_ord": [146, 157], "crypto": 13, "csv": [4, 5], "data": [2, 5, 14, 21, 43, 44, 70], "databas": 196, "datafram": 5, "datetim": 82, "def": [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42], "definit": [], "deploi": 17, "deploy": 17, "detail": [], "document": [12, 19, 20, 22, 45], "entiti": 18, "environ": 17, "exampl": [5, 13, 14, 16, 17], "extra": 26, "factor": 14, "fee": [24, 25], "file": [0, 2, 3, 9], "final": 17, "first_iter": [168, 183], "follow": 25, "frequent": [], "from": [0, 2], "full": [13, 16], "function": [1, 61], "gener": [0, 2, 17], "get": [16, 25, 26], "get_asset_potential_tot": [147, 158], "get_cash": [49, 55], "get_chain": [125, 126, 133, 134], "get_datetim": [83, 92], "get_datetime_rang": [84, 93], "get_expir": [127, 135], "get_greek": [128, 136], "get_historical_pric": 72, "get_historical_prices_for_asset": 73, "get_last_dai": [85, 94], "get_last_minut": [86, 95], "get_last_pric": [74, 75], "get_lines_df": [64, 68], "get_markers_df": [65, 69], "get_multipli": [129, 137], "get_next_trading_dai": [76, 130, 138], "get_option_expiration_after_d": 139, "get_ord": [148, 149, 159, 160], "get_paramet": [50, 56, 104, 115], "get_portfolio_valu": [51, 57], "get_posit": [52, 53, 58, 59], "get_quot": 77, "get_realtime_bar": 78, "get_round_dai": [87, 96], "get_round_minut": [88, 97], "get_selling_ord": [150, 161], "get_strik": [131, 140], "get_timestamp": [89, 98], "get_yesterday_dividend": [79, 80], "guid": [17, 196], "help": 26, "how": [2, 196], "html": [2, 7], "i": 25, "import": 25, "improv": 25, "indic": [2, 3, 26], "initi": 32, "initial_budget": [169, 184], "instal": [2, 25, 26], "instanti": 25, "interact": [14, 15, 17], "io": [2, 6], "is_backtest": [170, 185], "kei": 25, "kraken": 17, "last_on_trading_iteration_datetim": [171, 186], "leg": 22, "legaci": [15, 17], "librari": 26, "lifecycl": 27, "live": 26, "load": [], "localize_datetim": [90, 99], "log": 4, "log_messag": [105, 116], "lumibot": [2, 25, 26], "lumiwealth": 25, "manag": [48, 142], "market": 14, "method": [27, 47], "minutes_before_clos": [172, 187], "minutes_before_open": [173, 188], "miscellan": 101, "modul": [25, 44], "name": [174, 189], "need": 26, "note": [], "on_abrupt_clos": 33, "on_bot_crash": 34, "on_canceled_ord": 35, "on_filled_ord": 36, "on_new_ord": 37, "on_parameters_upd": 38, "on_partially_filled_ord": 39, "on_trading_iter": 40, "option": [25, 124], "options_expiry_to_datetime_d": [132, 141], "order": [22, 142], "other": 5, "packag": 25, "panda": [5, 44], "paper": [14, 25], "paramet": 165, "perform": 25, "platform": 17, "polygon": [2, 6], "portfolio_valu": [175, 190], "posit": 23, "profil": 25, "properti": 166, "pytz": [176, 181, 191], "question": [], "quote_asset": [177, 192], "refer": [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42], "render": 17, "replit": 17, "resourc": 26, "restor": 196, "run": [2, 13, 16, 25], "secondari": 14, "secret": 17, "self": [49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196], "sell_al": [151, 162], "set": 13, "set_market": [106, 117], "set_paramet": [54, 60], "setup": 14, "sleep": [107, 118], "sleeptim": [178, 193], "sourc": [2, 43, 44], "start": [16, 25, 26], "start_realtime_bar": 81, "step": [17, 25, 26], "storag": 196, "strategi": [13, 14, 16, 17, 25, 26, 45, 47, 166], "structur": 196, "submit_ord": [152, 153, 163, 164], "subscript": 14, "summari": [5, 41], "tabl": 26, "take": 26, "tearsheet": [2, 7], "thetadata": 8, "timezon": [179, 194], "to_default_timezon": [91, 100], "togeth": 26, "trace_stat": 42, "trade": [2, 9, 14, 24, 25, 26], "trader": [25, 46], "tradier": [16, 17], "troubleshoot": [], "two": 14, "type": 22, "unspent_monei": [180, 195], "update_paramet": [108, 119], "us": [13, 14], "usag": 196, "usernam": 14, "var": 196, "variabl": [17, 196], "wait_for_order_execut": [109, 120], "wait_for_order_registr": [110, 121], "wait_for_orders_execut": [111, 122], "wait_for_orders_registr": [112, 123], "what": 25, "why": [], "work": 196, "yahoo": [10, 44], "your": [13, 16, 17, 25, 26]}}) \ No newline at end of file diff --git a/docsrc/brokers.interactive_brokers.rst b/docsrc/brokers.interactive_brokers.rst index 2e098410f..b13605583 100644 --- a/docsrc/brokers.interactive_brokers.rst +++ b/docsrc/brokers.interactive_brokers.rst @@ -1,14 +1,14 @@ Interactive Brokers =================== -Interactive Brokers is a brokerage firm that operates in most countries around the world. This makes it a great choice for investing and trading if you don't have access to our other supported platforms. +Interactive Brokers is a brokerage firm that operates in most countries around the world. It's a great choice for investing and trading, especially if you don't have access to other supported platforms. -**Note:** If you do have access to other supported brokers, compare their fee structures to see which one is the best deal for you. +**Note:** If you have access to other supported brokers, compare their fee structures to see which one offers the best deal for you. Market Data Subscriptions ------------------------- -To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various market data subscriptions depending on the exchanges and types of data you need. Here are some common subscriptions: +To access real-time market data, you need to subscribe to the appropriate market data packages. Interactive Brokers offers various subscriptions depending on the exchanges and types of data you need. Here are some common options: - **US Securities Snapshot and Futures Value Bundle** - **US Equity and Options Add-On Streaming Bundle** @@ -18,83 +18,87 @@ To access real-time market data, you need to subscribe to the appropriate market .. note:: - Different strategies may require different market data subscriptions. For our top options-related strategies, the OPRA (US Options Exchanges) should suffice. + Different strategies may require different market data subscriptions. For top options-related strategies, the **OPRA (US Options Exchanges)** subscription should suffice. **To subscribe to market data:** +.. important:: + Market data subscriptions are login-specific. Ensure you're logged in with the same credentials you plan to use with Lumibot before proceeding. + 1. Log in to the `IBKR Client Portal `_. 2. Navigate to the **Settings** menu. -.. image:: images/ib-main.png - :alt: IB Main Menu - :align: center - :class: with-border + .. image:: images/ib-main.png + :alt: IB Main Menu + :align: center 3. Under **Account Settings**, find the **Market Data Subscriptions** section. -.. image:: images/ib-settings.png - :alt: IB Settings - :align: center - :class: with-border + .. image:: images/ib-settings.png + :alt: IB Settings + :align: center 4. Click **Configure** and select the desired market data packages. -.. image:: images/ib-market-data-subscriptions.png - :alt: IB Market Data Subscriptions - :align: center - :class: with-border + .. image:: images/ib-market-data-subscriptions.png + :alt: IB Market Data Subscriptions + :align: center -5. Find your desired subscription +5. Find your desired subscription. 6. Follow the prompts to complete the subscription process. -**Note:** Market data subscriptions may incur additional fees. Be sure to review the costs associated with each package before subscribing. +**Note:** Market data subscriptions may incur additional fees. Review the costs associated with each package before subscribing. -Using a Paper Trading Account ------------------------------ +Two-Factor Authentication (2FA) +------------------------------- -When using a paper trading account, you should log in with your paper trading username and password. This allows you to practice trading without risking real money. +Interactive Brokers requires two-factor authentication (2FA) for account security. When using Lumibot, you'll receive 2FA notifications through the IB Key mobile app, which require manual approval. This can interrupt automated trading operations. -**Steps to get your paper trading username and password:** +**Important:** Automated handling of 2FA is not currently supported in Lumibot. -1. **Log in** to the **IBKR Client Portal** using your primary (live) account credentials. -2. Navigate to the **Settings** menu in the upper right corner. -3. Under **Account Settings**, find the **Paper Trading Account** section. -4. Click on **Configure** or **Request Paper Trading Account**. -5. Follow the prompts to set up your paper trading account. - - You may need to agree to terms and conditions. -6. Once the setup is complete, you'll receive a separate **username** and **password** for your paper trading account. -7. Use these credentials when logging into the paper trading environment and configuring your API connection. +**Possible Solution: Create a Secondary Username** -**Note:** The paper trading account is separate from your live account. Ensure you're using the correct credentials for each environment to avoid any login conflicts. +To enable fully automated trading, you can create a secondary username for your account that doesn't require 2FA. This approach is secure and convenient: + +- The primary account maintains full 2FA security for website access. +- The secondary account, used only for API connections, can operate without 2FA. +- Both accounts have separate access controls you can configure. -Automating Two-Factor Authentication ------------------------------------- +.. note:: -Currently, automating two-factor authentication (2FA) is not supported. Lumibot will send you 2FA notifications through IBKey, and you will need to respond to them manually. + When using a secondary account without 2FA: -Using a Secondary Account -------------------------- + - You'll need separate market data subscriptions for each user. + - If trading with both primary and secondary users, you'll pay for market data twice. + - Enhance security by: + - Setting a complex password. + - Restricting IP addresses for TWS/IBGateway access. + - Limiting the account's permissions to only what's needed. + - Keeping API connection details secure. + +See the **Using a Secondary Username** section below for detailed setup instructions. + +Using a Secondary Username +-------------------------- -Interactive Brokers only allows a single login at a time for any given set of credentials. This means you can't use the IBKR website while the API connection is running. If you try, it will disconnect the API connection, causing a re-authentication loop. +Interactive Brokers allows only one login at a time for any given set of credentials. Attempting to use the IBKR website while the API connection is running will disconnect the API connection, causing a re-authentication loop. -An easy solution is to stop the API connection before using the website, but that can be tedious. A more convenient solution is to create a **secondary username** for your account and use that for the API connection. +An easy solution is to stop the API connection before using the website, but this can be tedious. A more convenient solution is to create a **secondary username** for your account and use that for the API connection. **Steps to create a secondary username:** -1. **Log in** to the **IBKR Client Portal** with your primary username. +1. Log in to the **IBKR Client Portal** with your primary username. 2. Click on the **Settings** menu in the upper right corner. -3. Scroll to the bottom-left of the page and find the **Users & Access Rights** link. - - You may need to scroll down to see it. +3. Scroll down and find the **Users & Access Rights** link. 4. Click the **plus sign (+)** button in the **Users** header to add a new user. 5. Fill out the username and password fields for the new user. 6. Click through the settings pages, adjusting notifications and permissions as needed. - - Feel free to disable unnecessary notifications to avoid duplicate emails. 7. At the end of the process, you'll receive an email with a **confirmation code**. **Activating your secondary username:** 1. Log out and log back in using the **new secondary username and password**. -2. Enter the **confirmation code** you received via email. +2. Enter the **confirmation code** received via email. - **Note:** The code expires quickly, so act promptly. 3. You may be prompted to **change the password** for the secondary user. @@ -107,7 +111,24 @@ An easy solution is to stop the API connection before using the website, but tha - You'll see an EULA and a signature block. - Type your **name** (not the new user's name) and click **Submit**. -After completing these steps, your secondary credentials will be ready to use with the API connection. In the future, use your **primary credentials** on the website and the **secondary credentials** for the API connection. +After completing these steps, your secondary credentials will be ready to use with the API connection. Use your **primary credentials** on the website and the **secondary credentials** for the API connection. + +Using a Paper Trading Account +----------------------------- + +When using a paper trading account, log in with your paper trading username and password. This allows you to practice trading without risking real money. + +**Steps to get your paper trading username and password:** + +1. Log in to the **IBKR Client Portal** using your primary (live) account credentials. +2. Navigate to the **Settings** menu in the upper right corner. +3. Under **Account Settings**, find the **Paper Trading Account** section. +4. Click on **Configure** or **Request Paper Trading Account**. +5. Follow the prompts to set up your paper trading account. +6. Once the setup is complete, you'll receive a separate **username** and **password** for your paper trading account. +7. Use these credentials when logging into the paper trading environment and configuring your API connection. + +**Note:** The paper trading account is separate from your live account. Ensure you're using the correct credentials for each environment to avoid any login conflicts. Strategy Setup -------------- @@ -121,16 +142,16 @@ Add these variables to a `.env` file in the same directory as your strategy: * - **Secret** - **Description** - **Example** - * - IB_USERNAME + * - `IB_USERNAME` - Your Interactive Brokers username. - `user123` - * - IB_PASSWORD + * - `IB_PASSWORD` - Your Interactive Brokers password. - `password123` - * - ACCOUNT_ID + * - `ACCOUNT_ID` - (Optional) An Interactive Brokers subaccount to trade on. - `U17369206` - * - IB_API_URL + * - `IB_API_URL` - (Optional) The URL of your self-hosted Interactive Brokers REST API. - `https://localhost:8000` @@ -139,12 +160,10 @@ Example Strategy .. code-block:: python - from lumibot.traders import Trader - # We will get your credentials from the .env file - from lumibot.strategies.examples import Strangle - - trader = Trader() + from lumibot.traders import Trader + from lumibot.strategies.examples import Strangle - strategy = Strangle() - trader.add_strategy(strategy) - trader.run_all() \ No newline at end of file + trader = Trader() + strategy = Strangle() + trader.add_strategy(strategy) + trader.run_all()