From c0b71a1684a34624806960aa2c7cbb7996aebb53 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Wed, 16 Aug 2023 10:06:45 -0700 Subject: [PATCH 1/2] Adds example notebook for installing in Google Colab --- examples/googleColabInstallation.ipynb | 2491 ++++++++++++++++++++++++ 1 file changed, 2491 insertions(+) create mode 100644 examples/googleColabInstallation.ipynb diff --git a/examples/googleColabInstallation.ipynb b/examples/googleColabInstallation.ipynb new file mode 100644 index 000000000000..78d3f1532f5e --- /dev/null +++ b/examples/googleColabInstallation.ipynb @@ -0,0 +1,2491 @@ +{ + "nbformat": 4, + "nbformat_minor": 0, + "metadata": { + "colab": { + "provenance": [] + }, + "kernelspec": { + "name": "python3", + "display_name": "Python 3" + }, + "language_info": { + "name": "python" + }, + "widgets": { + "application/vnd.jupyter.widget-state+json": { + "1c14db4b3fa04b67a7265adda2672f58": { + "model_module": "@jupyter-widgets/controls", + "model_name": "DropdownModel", + "model_module_version": "2.0.0", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "2.0.0", + "_model_name": "DropdownModel", + "_options_labels": [ + "Cash and cash equivalents", + "Other short-term investments", + "Total cash", + "Net receivables", + "Inventory", + "Other current assets", + "Total current assets", + "Gross property plant and equipment", + "Accumulated depreciation", + "Net property plant and equipment", + "Equity and other investments", + "Other long-term assets", + "Total non-current assets", + "Total assets", + "Current debt", + "Accounts payable", + "Deferred revenues", + "Other current liabilities", + "Total current liabilities", + "Long-term debt", + "Other long-term liabilities", + "Total non-current liabilities", + "Total liabilities", + "Common stock", + "Retained earnings", + "Accumulated other comprehensive income", + "Total stockholders' equity", + "Total liabilities and stockholders' equity" + ], + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "2.0.0", + "_view_name": "DropdownView", + "description": "", + "description_allow_html": false, + "disabled": false, + "index": 2, + "layout": "IPY_MODEL_5038c42252f245e4906d27a68f23d7cd", + "style": "IPY_MODEL_ce2de0778cf24736b3ed515792072c94", + "tabbable": null, + "tooltip": null + } + }, + "5038c42252f245e4906d27a68f23d7cd": { + "model_module": "@jupyter-widgets/base", + "model_name": "LayoutModel", + "model_module_version": "2.0.0", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "2.0.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "2.0.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border_bottom": null, + "border_left": null, + "border_right": null, + "border_top": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "ce2de0778cf24736b3ed515792072c94": { + "model_module": "@jupyter-widgets/controls", + "model_name": "DescriptionStyleModel", + "model_module_version": "2.0.0", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "2.0.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "2.0.0", + "_view_name": "StyleView", + "description_width": "" + } + } + } + } + }, + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "LNE5BHdkQ6cY" + }, + "outputs": [], + "source": [ + "# You can ignore the red warning messages.\n", + "# The nightly distribution is built from the develop branch on GitHub every night, and will contain bug fixes not available on PyPI.\n", + "# To not use the nightly distribution, run `!pip install openbb`\n", + "# To install locally, follow the instructions here: https://docs.openbb.co/terminal/installation/source\n", + "\n", + "!pip install openbb-nightly" + ] + }, + { + "cell_type": "code", + "source": [ + "# First, restart the runtime by clicking the button.\n", + "\n", + "# Import statements - for many scenarios, the only import needed will be `from openbb_terminal.sdk import openbb`\n", + "\n", + "from IPython.display import display\n", + "from IPython.display import clear_output\n", + "import ipywidgets as widgets\n", + "import numpy as np\n", + "import pandas as pd\n", + "import pandas_ta as ta\n", + "from datetime import datetime\n", + "\n", + "from openbb_terminal.sdk import openbb\n", + "from openbb_terminal import OpenBBFigure\n", + "\n", + "pd.options.plotting.backend = \"plotly\"\n", + "\n", + "# The output of this block can be ignored. The forecast components are not currently compatible with CoLabs.\n", + "# Documentation is found here: https://docs.openbb.co/sdk/usage/basics\n", + "# For additional example notebooks, see: https://my.openbb.co/app/sdk/examples\n", + "# Enter API credentials and generate a personal access token to login remotely: https://my.openbb.co/app/sdk/api-keys" + ], + "metadata": { + "id": "YqSodJvmQ87R" + }, + "execution_count": 3, + "outputs": [] + }, + { + "cell_type": "code", + "source": [ + "# Login with:\n", + "\n", + "#openbb.login(token=\"REPLACE_WITH_PAT\")" + ], + "metadata": { + "id": "KkwFZdBqpmvr" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "code", + "source": [ + "symbol= \"AAPL\"" + ], + "metadata": { + "id": "oWTfr457h470" + }, + "execution_count": 2, + "outputs": [] + }, + { + "cell_type": "code", + "source": [ + "data = openbb.stocks.load(symbol)[\"Close\"].pct_change(21)\n", + "data.tail(2)" + ], + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 107 + }, + "id": "Kwc9TSwXd8jm", + "outputId": "9453751b-5dd1-4961-ab48-8850e89660ef" + }, + "execution_count": 4, + "outputs": [ + { + "output_type": "display_data", + "data": { + "text/plain": [ + "Loading Daily data for AAPL with starting period 2020-08-04.\n" + ], + "text/html": [ + "
Loading Daily data for AAPL with starting period 2020-08-04.\n", + "\n" + ] + }, + "metadata": {} + }, + { + "output_type": "execute_result", + "data": { + "text/plain": [ + "date\n", + "2023-08-08 -0.046710\n", + "2023-08-09 -0.045613\n", + "Name: Close, dtype: float64" + ] + }, + "metadata": {}, + "execution_count": 4 + } + ] + }, + { + "cell_type": "code", + "source": [ + "# Generate output without loading to a variable.\n", + "\n", + "openbb.stocks.load(symbol)[\"Close\"].pct_change(21).plot()" + ], + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 559 + }, + "id": "BgmixSVBYd_N", + "outputId": "bdcb310f-027f-43f9-9fa2-d63114326ebd" + }, + "execution_count": 5, + "outputs": [ + { + "output_type": "display_data", + "data": { + "text/plain": [ + "Loading Daily data for AAPL with starting period 2020-08-04.\n" + ], + "text/html": [ + "
Loading Daily data for AAPL with starting period 2020-08-04.\n", + "\n" + ] + }, + "metadata": {} + }, + { + "output_type": "display_data", + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "
\n", + " | Expiration | \n", + "DTE | \n", + "Strategy | \n", + "Underlying Price | \n", + "Strike 1 | \n", + "Strike 2 | \n", + "Strike 1 Premium | \n", + "Strike 2 Premium | \n", + "Cost | \n", + "Cost Percent | \n", + "Breakeven Upper | \n", + "Breakeven Upper Percent | \n", + "Breakeven Lower | \n", + "Breakeven Lower Percent | \n", + "Max Profit | \n", + "Max Loss | \n", + "Payoff Ratio | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "2023-08-11 | \n", + "2 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "1.02 | \n", + "1.77 | \n", + "2.79 | \n", + "1.555 | \n", + "182.79 | \n", + "1.8783 | \n", + "177.21 | \n", + "-1.2317 | \n", + "inf | \n", + "-2.79 | \n", + "inf | \n", + "
1 | \n", + "2023-08-18 | \n", + "9 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "2.08 | \n", + "2.67 | \n", + "4.75 | \n", + "2.6474 | \n", + "184.75 | \n", + "2.9707 | \n", + "175.25 | \n", + "-2.3242 | \n", + "inf | \n", + "-4.75 | \n", + "inf | \n", + "
2 | \n", + "2023-08-25 | \n", + "16 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "2.97 | \n", + "3.4 | \n", + "6.37 | \n", + "3.5503 | \n", + "186.37 | \n", + "3.8736 | \n", + "173.63 | \n", + "-3.2271 | \n", + "inf | \n", + "-6.37 | \n", + "inf | \n", + "
3 | \n", + "2023-09-01 | \n", + "23 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "3.7 | \n", + "3.9 | \n", + "7.6 | \n", + "4.2359 | \n", + "187.6 | \n", + "4.5591 | \n", + "172.4 | \n", + "-3.9126 | \n", + "inf | \n", + "-7.6 | \n", + "inf | \n", + "
4 | \n", + "2023-09-08 | \n", + "30 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "4.25 | \n", + "4.25 | \n", + "8.5 | \n", + "4.7375 | \n", + "188.5 | \n", + "5.0608 | \n", + "171.5 | \n", + "-4.4142 | \n", + "inf | \n", + "-8.5 | \n", + "inf | \n", + "
5 | \n", + "2023-09-15 | \n", + "37 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "4.95 | \n", + "4.75 | \n", + "9.7 | \n", + "5.4063 | \n", + "189.7 | \n", + "5.7296 | \n", + "170.3 | \n", + "-5.083 | \n", + "inf | \n", + "-9.7 | \n", + "inf | \n", + "
6 | \n", + "2023-09-22 | \n", + "44 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "5.55 | \n", + "5.15 | \n", + "10.7 | \n", + "5.9637 | \n", + "190.7 | \n", + "6.2869 | \n", + "169.3 | \n", + "-5.6404 | \n", + "inf | \n", + "-10.7 | \n", + "inf | \n", + "
7 | \n", + "2023-10-20 | \n", + "72 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "7.45 | \n", + "6.35 | \n", + "13.8 | \n", + "7.6915 | \n", + "193.8 | \n", + "8.0147 | \n", + "166.2 | \n", + "-7.3682 | \n", + "inf | \n", + "-13.8 | \n", + "inf | \n", + "
8 | \n", + "2023-11-17 | \n", + "100 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "9.55 | \n", + "7.85 | \n", + "17.4 | \n", + "9.6979 | \n", + "197.4 | \n", + "10.0212 | \n", + "162.6 | \n", + "-9.3747 | \n", + "inf | \n", + "-17.4 | \n", + "inf | \n", + "
9 | \n", + "2023-12-15 | \n", + "128 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "11.0 | \n", + "8.65 | \n", + "19.65 | \n", + "10.952 | \n", + "199.65 | \n", + "11.2752 | \n", + "160.35 | \n", + "-10.6287 | \n", + "inf | \n", + "-19.65 | \n", + "inf | \n", + "
10 | \n", + "2024-01-19 | \n", + "163 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "12.8 | \n", + "9.55 | \n", + "22.35 | \n", + "12.4568 | \n", + "202.35 | \n", + "12.7801 | \n", + "157.65 | \n", + "-12.1335 | \n", + "inf | \n", + "-22.35 | \n", + "inf | \n", + "
11 | \n", + "2024-03-15 | \n", + "219 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "15.85 | \n", + "11.3 | \n", + "27.15 | \n", + "15.1321 | \n", + "207.15 | \n", + "15.4554 | \n", + "152.85 | \n", + "-14.8088 | \n", + "inf | \n", + "-27.15 | \n", + "inf | \n", + "
12 | \n", + "2024-06-21 | \n", + "317 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "20.15 | \n", + "13.55 | \n", + "33.7 | \n", + "18.7827 | \n", + "213.7 | \n", + "19.106 | \n", + "146.3 | \n", + "-18.4595 | \n", + "inf | \n", + "-33.7 | \n", + "inf | \n", + "
13 | \n", + "2024-09-20 | \n", + "408 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "23.7 | \n", + "15.35 | \n", + "39.05 | \n", + "21.7646 | \n", + "219.05 | \n", + "22.0878 | \n", + "140.95 | \n", + "-21.4413 | \n", + "inf | \n", + "-39.05 | \n", + "inf | \n", + "
14 | \n", + "2024-12-20 | \n", + "499 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "27.05 | \n", + "17.1 | \n", + "44.15 | \n", + "24.6071 | \n", + "224.15 | \n", + "24.9303 | \n", + "135.85 | \n", + "-24.2838 | \n", + "inf | \n", + "-44.15 | \n", + "inf | \n", + "
15 | \n", + "2025-01-17 | \n", + "527 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "27.95 | \n", + "17.45 | \n", + "45.4 | \n", + "25.3038 | \n", + "225.4 | \n", + "25.627 | \n", + "134.6 | \n", + "-24.9805 | \n", + "inf | \n", + "-45.4 | \n", + "inf | \n", + "
16 | \n", + "2025-06-20 | \n", + "681 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "32.55 | \n", + "19.9 | \n", + "52.45 | \n", + "29.2331 | \n", + "232.45 | \n", + "29.5563 | \n", + "127.55 | \n", + "-28.9098 | \n", + "inf | \n", + "-52.45 | \n", + "inf | \n", + "
17 | \n", + "2025-12-19 | \n", + "863 | \n", + "Long Straddle | \n", + "179.42 | \n", + "180.0 | \n", + "180.0 | \n", + "37.3 | \n", + "22.3 | \n", + "59.6 | \n", + "33.2181 | \n", + "239.6 | \n", + "33.5414 | \n", + "120.4 | \n", + "-32.8949 | \n", + "inf | \n", + "-59.6 | \n", + "inf | \n", + "
\n", + " | Expiration | \n", + "Strike | \n", + "Option Type | \n", + "IV | \n", + "ATM IV | \n", + "Skew | \n", + "
---|---|---|---|---|---|---|
0 | \n", + "2023-08-11 | \n", + "50.0 | \n", + "put | \n", + "5.1895 | \n", + "0.2470 | \n", + "4.9425 | \n", + "
1 | \n", + "2023-08-11 | \n", + "60.0 | \n", + "put | \n", + "4.4677 | \n", + "0.2470 | \n", + "4.2207 | \n", + "
2 | \n", + "2023-08-11 | \n", + "65.0 | \n", + "put | \n", + "4.1514 | \n", + "0.2470 | \n", + "3.9044 | \n", + "
3 | \n", + "2023-08-11 | \n", + "70.0 | \n", + "put | \n", + "3.8588 | \n", + "0.2470 | \n", + "3.6118 | \n", + "
4 | \n", + "2023-08-11 | \n", + "75.0 | \n", + "put | \n", + "3.5865 | \n", + "0.2470 | \n", + "3.3395 | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
1508 | \n", + "2025-12-19 | \n", + "290.0 | \n", + "put | \n", + "0.3132 | \n", + "0.2666 | \n", + "0.0466 | \n", + "
1509 | \n", + "2025-12-19 | \n", + "300.0 | \n", + "call | \n", + "0.2225 | \n", + "0.2708 | \n", + "-0.0483 | \n", + "
1510 | \n", + "2025-12-19 | \n", + "300.0 | \n", + "put | \n", + "0.3366 | \n", + "0.2666 | \n", + "0.0700 | \n", + "
1511 | \n", + "2025-12-19 | \n", + "310.0 | \n", + "call | \n", + "0.2211 | \n", + "0.2708 | \n", + "-0.0497 | \n", + "
1512 | \n", + "2025-12-19 | \n", + "310.0 | \n", + "put | \n", + "0.3460 | \n", + "0.2666 | \n", + "0.0794 | \n", + "
1513 rows × 6 columns
\n", + "\n", + " | expiration | \n", + "strike | \n", + "optionType | \n", + "contractSymbol | \n", + "bid | \n", + "bidSize | \n", + "ask | \n", + "askSize | \n", + "impliedVolatility | \n", + "openInterest | \n", + "... | \n", + "change | \n", + "open | \n", + "high | \n", + "low | \n", + "tick | \n", + "lastTradePrice | \n", + "lastTradeTimestamp | \n", + "changePercent | \n", + "previousClose | \n", + "dte | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "2023-08-11 | \n", + "50.0 | \n", + "call | \n", + "AAPL230811C00050000 | \n", + "129.30 | \n", + "1 | \n", + "129.45 | \n", + "1 | \n", + "0.0000 | \n", + "4 | \n", + "... | \n", + "0.000 | \n", + "0.0 | \n", + "0.00 | \n", + "0.00 | \n", + "up | \n", + "129.30 | \n", + "2023-08-08T14:18:27 | \n", + "0.00 | \n", + "130.03 | \n", + "2 | \n", + "
1 | \n", + "2023-08-11 | \n", + "50.0 | \n", + "put | \n", + "AAPL230811P00050000 | \n", + "0.00 | \n", + "0 | \n", + "0.01 | \n", + "624 | \n", + "5.1895 | \n", + "1 | \n", + "... | \n", + "0.000 | \n", + "0.0 | \n", + "0.00 | \n", + "0.00 | \n", + "up | \n", + "0.01 | \n", + "2023-08-08T10:36:09 | \n", + "0.00 | \n", + "0.00 | \n", + "2 | \n", + "
2 | \n", + "2023-08-11 | \n", + "60.0 | \n", + "call | \n", + "AAPL230811C00060000 | \n", + "119.30 | \n", + "1 | \n", + "119.45 | \n", + "1 | \n", + "0.0000 | \n", + "1 | \n", + "... | \n", + "0.000 | \n", + "0.0 | \n", + "0.00 | \n", + "0.00 | \n", + "down | \n", + "118.85 | \n", + "2023-08-07T10:50:09 | \n", + "0.00 | \n", + "120.02 | \n", + "2 | \n", + "
3 | \n", + "2023-08-11 | \n", + "60.0 | \n", + "put | \n", + "AAPL230811P00060000 | \n", + "0.00 | \n", + "0 | \n", + "0.01 | \n", + "624 | \n", + "4.4677 | \n", + "0 | \n", + "... | \n", + "0.000 | \n", + "0.0 | \n", + "0.00 | \n", + "0.00 | \n", + "no_change | \n", + "0.00 | \n", + "None | \n", + "0.00 | \n", + "0.00 | \n", + "2 | \n", + "
4 | \n", + "2023-08-11 | \n", + "65.0 | \n", + "call | \n", + "AAPL230811C00065000 | \n", + "114.30 | \n", + "1 | \n", + "114.45 | \n", + "1 | \n", + "0.0000 | \n", + "0 | \n", + "... | \n", + "0.000 | \n", + "0.0 | \n", + "0.00 | \n", + "0.00 | \n", + "no_change | \n", + "0.00 | \n", + "None | \n", + "0.00 | \n", + "115.02 | \n", + "2 | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
1797 | \n", + "2025-12-19 | \n", + "290.0 | \n", + "put | \n", + "AAPL251219P00290000 | \n", + "109.10 | \n", + "90 | \n", + "112.50 | \n", + "102 | \n", + "0.3132 | \n", + "0 | \n", + "... | \n", + "0.000 | \n", + "0.0 | \n", + "0.00 | \n", + "0.00 | \n", + "down | \n", + "101.00 | \n", + "2023-06-28T10:34:27 | \n", + "0.00 | \n", + "110.05 | \n", + "863 | \n", + "
1798 | \n", + "2025-12-19 | \n", + "300.0 | \n", + "call | \n", + "AAPL251219C00300000 | \n", + "4.05 | \n", + "107 | \n", + "4.20 | \n", + "340 | \n", + "0.2225 | \n", + "5130 | \n", + "... | \n", + "-0.150 | \n", + "4.1 | \n", + "4.10 | \n", + "3.90 | \n", + "no_change | \n", + "4.05 | \n", + "2023-08-09T13:49:34 | \n", + "-3.57 | \n", + "4.20 | \n", + "863 | \n", + "
1799 | \n", + "2025-12-19 | \n", + "300.0 | \n", + "put | \n", + "AAPL251219P00300000 | \n", + "119.30 | \n", + "2 | \n", + "122.40 | \n", + "102 | \n", + "0.3366 | \n", + "1 | \n", + "... | \n", + "2.000 | \n", + "121.0 | \n", + "122.00 | \n", + "121.00 | \n", + "up | \n", + "122.00 | \n", + "2023-08-09T11:06:30 | \n", + "1.67 | \n", + "120.00 | \n", + "863 | \n", + "
1800 | \n", + "2025-12-19 | \n", + "310.0 | \n", + "call | \n", + "AAPL251219C00310000 | \n", + "3.25 | \n", + "130 | \n", + "3.45 | \n", + "150 | \n", + "0.2211 | \n", + "3419 | \n", + "... | \n", + "-0.075 | \n", + "3.3 | \n", + "3.35 | \n", + "3.15 | \n", + "up | \n", + "3.35 | \n", + "2023-08-09T14:24:11 | \n", + "-2.19 | \n", + "3.42 | \n", + "863 | \n", + "
1801 | \n", + "2025-12-19 | \n", + "310.0 | \n", + "put | \n", + "AAPL251219P00310000 | \n", + "129.05 | \n", + "59 | \n", + "132.45 | \n", + "100 | \n", + "0.3460 | \n", + "0 | \n", + "... | \n", + "0.000 | \n", + "0.0 | \n", + "0.00 | \n", + "0.00 | \n", + "up | \n", + "125.50 | \n", + "2023-08-04T14:01:04 | \n", + "0.00 | \n", + "130.05 | \n", + "863 | \n", + "
1802 rows × 27 columns
\n", + "Breakdown | \n", + "Cash and cash equivalents | \n", + "Other short-term investments | \n", + "Total cash | \n", + "Net receivables | \n", + "Inventory | \n", + "Other current assets | \n", + "Total current assets | \n", + "Gross property plant and equipment | \n", + "Accumulated depreciation | \n", + "Net property plant and equipment | \n", + "... | \n", + "Total current liabilities | \n", + "Long-term debt | \n", + "Other long-term liabilities | \n", + "Total non-current liabilities | \n", + "Total liabilities | \n", + "Common stock | \n", + "Retained earnings | \n", + "Accumulated other comprehensive income | \n", + "Total stockholders' equity | \n", + "Total liabilities and stockholders' equity | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-09-30 | \n", + "-0.323240 | \n", + "-0.109787 | \n", + "-0.228851 | \n", + "0.072532 | \n", + "-0.248328 | \n", + "0.504004 | \n", + "0.004220 | \n", + "0.043145 | \n", + "0.029267 | \n", + "0.067875 | \n", + "... | \n", + "0.227134 | \n", + "-0.093001 | \n", + "-0.078444 | \n", + "-0.088222 | \n", + "0.049220 | \n", + "0.130463 | \n", + "-1.551600 | \n", + "-69.153374 | \n", + "-0.196830 | \n", + "0.004994 | \n", + "
2021-09-30 | \n", + "-0.080913 | \n", + "-0.476657 | \n", + "-0.311228 | \n", + "0.630149 | \n", + "0.620291 | \n", + "0.252752 | \n", + "-0.061769 | \n", + "0.059859 | \n", + "0.052771 | \n", + "0.072730 | \n", + "... | \n", + "0.190612 | \n", + "0.105800 | \n", + "-0.021380 | \n", + "0.060552 | \n", + "0.113568 | \n", + "0.129699 | \n", + "-0.628358 | \n", + "-1.401478 | \n", + "-0.034420 | \n", + "0.083714 | \n", + "
2020-09-30 | \n", + "-0.221685 | \n", + "0.023476 | \n", + "-0.095607 | \n", + "-0.296868 | \n", + "-0.010960 | \n", + "-0.088083 | \n", + "-0.117345 | \n", + "0.078879 | \n", + "0.139658 | \n", + "-0.016373 | \n", + "... | \n", + "-0.003084 | \n", + "0.074722 | \n", + "0.078946 | \n", + "0.076221 | \n", + "0.042419 | \n", + "0.124076 | \n", + "-0.673929 | \n", + "-0.304795 | \n", + "-0.277926 | \n", + "-0.043212 | \n", + "
2019-09-30 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "... | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "0.000000 | \n", + "
4 rows × 28 columns
\n", + "Loading Monthly data for AAPL with starting period 1985-01-01.\n", + "\n" + ] + }, + "metadata": {} + }, + { + "output_type": "stream", + "name": "stdout", + "text": [ + "Momentum Score: 0.22871522034849812\n" + ] + }, + { + "output_type": "display_data", + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "