From 6bc451b942d255cadab8afa7b64c3d9c7595eff0 Mon Sep 17 00:00:00 2001 From: Isaac Francisco <78627776+isahers1@users.noreply.github.com> Date: Tue, 13 Aug 2024 12:19:17 -0700 Subject: [PATCH] [docs]: merge tool/toolkit duplicates (#25197) --- docs/docs/integrations/tools/connery.ipynb | 142 +++- .../integrations/tools/connery_toolkit.ipynb | 145 ---- docs/docs/integrations/tools/polygon.ipynb | 675 ++++++++++++------ .../integrations/tools/polygon_toolkit.ipynb | 187 ----- docs/vercel.json | 8 + 5 files changed, 611 insertions(+), 546 deletions(-) delete mode 100644 docs/docs/integrations/tools/connery_toolkit.ipynb delete mode 100644 docs/docs/integrations/tools/polygon_toolkit.ipynb diff --git a/docs/docs/integrations/tools/connery.ipynb b/docs/docs/integrations/tools/connery.ipynb index c1b7cab123f95..6f117c9a2e1ec 100644 --- a/docs/docs/integrations/tools/connery.ipynb +++ b/docs/docs/integrations/tools/connery.ipynb @@ -4,12 +4,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Connery Action Tool\n", + "# Connery Toolkit and Tools\n", "\n", - "Using this tool, you can integrate individual Connery Action into your LangChain agent.\n", - "\n", - "If you want to use more than one Connery Action in your agent,\n", - "check out the [Connery Toolkit](/docs/integrations/tools/connery_toolkit) documentation.\n", + "Using the Connery toolkit and tools, you can integrate Connery Actions into your LangChain agent.\n", "\n", "## What is Connery?\n", "\n", @@ -25,33 +22,136 @@ "- GitHub: https://github.com/connery-io/connery\n", "- Documentation: https://docs.connery.io\n", "\n", - "## Prerequisites\n", + "## Setup\n", + "\n", + "### Installation\n", + "\n", + "You need to install the `langchain_community` package to use the Connery tools." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%pip install -qU langchain-community" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Credentials\n", "\n", "To use Connery Actions in your LangChain agent, you need to do some preparation:\n", "\n", "1. Set up the Connery runner using the [Quickstart](https://docs.connery.io/docs/runner/quick-start/) guide.\n", "2. Install all the plugins with the actions you want to use in your agent.\n", - "3. Set environment variables `CONNERY_RUNNER_URL` and `CONNERY_RUNNER_API_KEY` so the toolkit can communicate with the Connery Runner.\n", + "3. Set environment variables `CONNERY_RUNNER_URL` and `CONNERY_RUNNER_API_KEY` so the toolkit can communicate with the Connery Runner." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import getpass\n", + "import os\n", + "\n", + "for key in [\"CONNERY_RUNNER_URL\", \"CONNERY_RUNNER_API_KEY\"]:\n", + " if key not in os.environ:\n", + " os.environ[key] = getpass.getpass(f\"Please enter the value for {key}: \")" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Toolkit\n", "\n", - "## Example of using Connery Action Tool\n", + "In the example below, we create an agent that uses two Connery Actions to summarize a public webpage and send the summary by email:\n", "\n", - "In the example below, we fetch action by its ID from the Connery Runner and then call it with the specified parameters.\n", + "1. **Summarize public webpage** action from the [Summarization](https://github.com/connery-io/summarization-plugin) plugin.\n", + "2. **Send email** action from the [Gmail](https://github.com/connery-io/gmail) plugin.\n", "\n", - "Here, we use the ID of the **Send email** action from the [Gmail](https://github.com/connery-io/gmail) plugin." + "You can see a LangSmith trace of this example [here](https://smith.langchain.com/public/4af5385a-afe9-46f6-8a53-57fe2d63c5bc/r)." ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `CA72DFB0AB4DF6C830B43E14B0782F70` with `{'publicWebpageUrl': 'http://www.paulgraham.com/vb.html'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[33;1m\u001b[1;3m{'summary': 'The author reflects on the concept of life being short and how having children made them realize the true brevity of life. They discuss how time can be converted into discrete quantities and how limited certain experiences are. The author emphasizes the importance of prioritizing and eliminating unnecessary things in life, as well as actively pursuing meaningful experiences. They also discuss the negative impact of getting caught up in online arguments and the need to be aware of how time is being spent. The author suggests pruning unnecessary activities, not waiting to do things that matter, and savoring the time one has.'}\u001b[0m\u001b[32;1m\u001b[1;3m\n", + "Invoking: `CABC80BB79C15067CA983495324AE709` with `{'recipient': 'test@example.com', 'subject': 'Summary of the webpage', 'body': 'Here is a short summary of the webpage http://www.paulgraham.com/vb.html:\\n\\nThe author reflects on the concept of life being short and how having children made them realize the true brevity of life. They discuss how time can be converted into discrete quantities and how limited certain experiences are. The author emphasizes the importance of prioritizing and eliminating unnecessary things in life, as well as actively pursuing meaningful experiences. They also discuss the negative impact of getting caught up in online arguments and the need to be aware of how time is being spent. The author suggests pruning unnecessary activities, not waiting to do things that matter, and savoring the time one has.\\n\\nYou can find the full webpage [here](http://www.paulgraham.com/vb.html).'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[33;1m\u001b[1;3m{'messageId': '<2f04b00e-122d-c7de-c91e-e78e0c3276d6@gmail.com>'}\u001b[0m\u001b[32;1m\u001b[1;3mI have sent the email with the summary of the webpage to test@example.com. Please check your inbox.\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n", + "I have sent the email with the summary of the webpage to test@example.com. Please check your inbox.\n" + ] + } + ], "source": [ - "%pip install -upgrade --quiet langchain-community" + "import os\n", + "\n", + "from langchain.agents import AgentType, initialize_agent\n", + "from langchain_community.agent_toolkits.connery import ConneryToolkit\n", + "from langchain_community.tools.connery import ConneryService\n", + "from langchain_openai import ChatOpenAI\n", + "\n", + "# Specify your Connery Runner credentials.\n", + "os.environ[\"CONNERY_RUNNER_URL\"] = \"\"\n", + "os.environ[\"CONNERY_RUNNER_API_KEY\"] = \"\"\n", + "\n", + "# Specify OpenAI API key.\n", + "os.environ[\"OPENAI_API_KEY\"] = \"\"\n", + "\n", + "# Specify your email address to receive the email with the summary from example below.\n", + "recepient_email = \"test@example.com\"\n", + "\n", + "# Create a Connery Toolkit with all the available actions from the Connery Runner.\n", + "connery_service = ConneryService()\n", + "connery_toolkit = ConneryToolkit.create_instance(connery_service)\n", + "\n", + "# Use OpenAI Functions agent to execute the prompt using actions from the Connery Toolkit.\n", + "llm = ChatOpenAI(temperature=0)\n", + "agent = initialize_agent(\n", + " connery_toolkit.get_tools(), llm, AgentType.OPENAI_FUNCTIONS, verbose=True\n", + ")\n", + "result = agent.run(\n", + " f\"\"\"Make a short summary of the webpage http://www.paulgraham.com/vb.html in three sentences\n", + "and send it to {recepient_email}. Include the link to the webpage into the body of the email.\"\"\"\n", + ")\n", + "print(result)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "NOTE: Connery Action is a structured tool, so you can only use it in the agents supporting structured tools.\n", + "\n", + "## Tool" ] }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -110,7 +210,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -148,6 +248,18 @@ "source": [ "NOTE: Connery Action is a structured tool, so you can only use it in the agents supporting structured tools." ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## API reference\n", + "\n", + "For detailed documentation of all Connery features and configurations head to the API reference:\n", + "\n", + "- Toolkit: https://api.python.langchain.com/en/latest/agent_toolkits/langchain_community.agent_toolkits.connery.toolkit.ConneryToolkit.html\n", + "- Tool: https://api.python.langchain.com/en/latest/tools/langchain_community.tools.connery.service.ConneryService.html" + ] } ], "metadata": { diff --git a/docs/docs/integrations/tools/connery_toolkit.ipynb b/docs/docs/integrations/tools/connery_toolkit.ipynb deleted file mode 100644 index 846d74908fd4a..0000000000000 --- a/docs/docs/integrations/tools/connery_toolkit.ipynb +++ /dev/null @@ -1,145 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Connery Toolkit\n", - "\n", - "Using this toolkit, you can integrate Connery Actions into your LangChain agent.\n", - "\n", - "If you want to use only one particular Connery Action in your agent,\n", - "check out the [Connery Action Tool](/docs/integrations/tools/connery) documentation.\n", - "\n", - "## What is Connery?\n", - "\n", - "Connery is an open-source plugin infrastructure for AI.\n", - "\n", - "With Connery, you can easily create a custom plugin with a set of actions and seamlessly integrate them into your LangChain agent.\n", - "Connery will take care of critical aspects such as runtime, authorization, secret management, access management, audit logs, and other vital features.\n", - "\n", - "Furthermore, Connery, supported by our community, provides a diverse collection of ready-to-use open-source plugins for added convenience.\n", - "\n", - "Learn more about Connery:\n", - "\n", - "- GitHub: https://github.com/connery-io/connery\n", - "- Documentation: https://docs.connery.io\n", - "\n", - "## Prerequisites\n", - "\n", - "To use Connery Actions in your LangChain agent, you need to do some preparation:\n", - "\n", - "1. Set up the Connery runner using the [Quickstart](https://docs.connery.io/docs/runner/quick-start/) guide.\n", - "2. Install all the plugins with the actions you want to use in your agent.\n", - "3. Set environment variables `CONNERY_RUNNER_URL` and `CONNERY_RUNNER_API_KEY` so the toolkit can communicate with the Connery Runner.\n", - "\n", - "## Example of using Connery Toolkit\n", - "\n", - "In the example below, we create an agent that uses two Connery Actions to summarize a public webpage and send the summary by email:\n", - "\n", - "1. **Summarize public webpage** action from the [Summarization](https://github.com/connery-io/summarization-plugin) plugin.\n", - "2. **Send email** action from the [Gmail](https://github.com/connery-io/gmail) plugin.\n", - "\n", - "You can see a LangSmith trace of this example [here](https://smith.langchain.com/public/4af5385a-afe9-46f6-8a53-57fe2d63c5bc/r)." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "%pip install -qU langchain-community" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "\n", - "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", - "\u001b[32;1m\u001b[1;3m\n", - "Invoking: `CA72DFB0AB4DF6C830B43E14B0782F70` with `{'publicWebpageUrl': 'http://www.paulgraham.com/vb.html'}`\n", - "\n", - "\n", - "\u001b[0m\u001b[33;1m\u001b[1;3m{'summary': 'The author reflects on the concept of life being short and how having children made them realize the true brevity of life. They discuss how time can be converted into discrete quantities and how limited certain experiences are. The author emphasizes the importance of prioritizing and eliminating unnecessary things in life, as well as actively pursuing meaningful experiences. They also discuss the negative impact of getting caught up in online arguments and the need to be aware of how time is being spent. The author suggests pruning unnecessary activities, not waiting to do things that matter, and savoring the time one has.'}\u001b[0m\u001b[32;1m\u001b[1;3m\n", - "Invoking: `CABC80BB79C15067CA983495324AE709` with `{'recipient': 'test@example.com', 'subject': 'Summary of the webpage', 'body': 'Here is a short summary of the webpage http://www.paulgraham.com/vb.html:\\n\\nThe author reflects on the concept of life being short and how having children made them realize the true brevity of life. They discuss how time can be converted into discrete quantities and how limited certain experiences are. The author emphasizes the importance of prioritizing and eliminating unnecessary things in life, as well as actively pursuing meaningful experiences. They also discuss the negative impact of getting caught up in online arguments and the need to be aware of how time is being spent. The author suggests pruning unnecessary activities, not waiting to do things that matter, and savoring the time one has.\\n\\nYou can find the full webpage [here](http://www.paulgraham.com/vb.html).'}`\n", - "\n", - "\n", - "\u001b[0m\u001b[33;1m\u001b[1;3m{'messageId': '<2f04b00e-122d-c7de-c91e-e78e0c3276d6@gmail.com>'}\u001b[0m\u001b[32;1m\u001b[1;3mI have sent the email with the summary of the webpage to test@example.com. Please check your inbox.\u001b[0m\n", - "\n", - "\u001b[1m> Finished chain.\u001b[0m\n", - "I have sent the email with the summary of the webpage to test@example.com. Please check your inbox.\n" - ] - } - ], - "source": [ - "import os\n", - "\n", - "from langchain.agents import AgentType, initialize_agent\n", - "from langchain_community.agent_toolkits.connery import ConneryToolkit\n", - "from langchain_community.tools.connery import ConneryService\n", - "from langchain_openai import ChatOpenAI\n", - "\n", - "# Specify your Connery Runner credentials.\n", - "os.environ[\"CONNERY_RUNNER_URL\"] = \"\"\n", - "os.environ[\"CONNERY_RUNNER_API_KEY\"] = \"\"\n", - "\n", - "# Specify OpenAI API key.\n", - "os.environ[\"OPENAI_API_KEY\"] = \"\"\n", - "\n", - "# Specify your email address to receive the email with the summary from example below.\n", - "recepient_email = \"test@example.com\"\n", - "\n", - "# Create a Connery Toolkit with all the available actions from the Connery Runner.\n", - "connery_service = ConneryService()\n", - "connery_toolkit = ConneryToolkit.create_instance(connery_service)\n", - "\n", - "# Use OpenAI Functions agent to execute the prompt using actions from the Connery Toolkit.\n", - "llm = ChatOpenAI(temperature=0)\n", - "agent = initialize_agent(\n", - " connery_toolkit.get_tools(), llm, AgentType.OPENAI_FUNCTIONS, verbose=True\n", - ")\n", - "result = agent.run(\n", - " f\"\"\"Make a short summary of the webpage http://www.paulgraham.com/vb.html in three sentences\n", - "and send it to {recepient_email}. Include the link to the webpage into the body of the email.\"\"\"\n", - ")\n", - "print(result)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "NOTE: Connery Action is a structured tool, so you can only use it in the agents supporting structured tools." - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.13" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/docs/docs/integrations/tools/polygon.ipynb b/docs/docs/integrations/tools/polygon.ipynb index db0b37caf71e1..fac411b028320 100644 --- a/docs/docs/integrations/tools/polygon.ipynb +++ b/docs/docs/integrations/tools/polygon.ipynb @@ -2,388 +2,670 @@ "cells": [ { "cell_type": "markdown", - "id": "245a954a", - "metadata": { - "id": "245a954a" - }, + "id": "e6fd05db-21c2-4227-9900-0840bc62cb31", + "metadata": {}, + "source": [ + "# Polygon IO Toolkit and Tools\n", + "\n", + "This notebook shows how to use agents to interact with the [Polygon IO](https://polygon.io/) toolkit. The toolkit provides access to Polygon's Stock Market Data API." + ] + }, + { + "cell_type": "markdown", + "id": "a4da342d", + "metadata": {}, "source": [ - "# Polygon IO\n", + "## Setup\n", "\n", - ">[Polygon](https://polygon.io/) The Polygon.io Stocks API provides REST endpoints that let you query the latest market data from all US stock exchanges.\n", + "### Installation\n", "\n", - "This notebook uses tools to get stock market data like the latest quote and news for a ticker from Polygon." + "To use Polygon IO tools, you need to install the `langchain-community` package." ] }, { "cell_type": "code", - "execution_count": 1, - "id": "34bb5968", - "metadata": { - "id": "34bb5968", - "is_executing": true, - "scrolled": true - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - " ········\n" - ] - } - ], + "execution_count": null, + "id": "c17b33e0", + "metadata": {}, + "outputs": [], "source": [ - "import getpass\n", - "import os\n", + "%pip install -qU langchain-community > /dev/null" + ] + }, + { + "cell_type": "markdown", + "id": "3cd00ad2", + "metadata": {}, + "source": [ + "### Credentials\n", "\n", - "os.environ[\"POLYGON_API_KEY\"] = getpass.getpass()" + "Get your Polygon IO API key [here](https://polygon.io/), and then set it below. " ] }, { "cell_type": "code", "execution_count": 2, - "id": "ac4910f8", - "metadata": { - "id": "ac4910f8", - "is_executing": true - }, + "id": "a180a2b8", + "metadata": {}, "outputs": [], "source": [ - "from langchain_community.tools.polygon.aggregates import PolygonAggregates\n", - "from langchain_community.tools.polygon.financials import PolygonFinancials\n", - "from langchain_community.tools.polygon.last_quote import PolygonLastQuote\n", - "from langchain_community.tools.polygon.ticker_news import PolygonTickerNews\n", - "from langchain_community.utilities.polygon import PolygonAPIWrapper" + "import getpass\n", + "import os\n", + "\n", + "if \"POLYGON_API_KEY\" not in os.environ:\n", + " os.environ[\"POLYGON_API_KEY\"] = getpass.getpass()" + ] + }, + { + "cell_type": "markdown", + "id": "ed6f89fa", + "metadata": {}, + "source": [ + "It's also helpful (but not needed) to set up [LangSmith](https://smith.langchain.com/) for best-in-class observability" ] }, { "cell_type": "code", "execution_count": 3, - "id": "8660b910-905b-46f3-9541-920b9fc3d4d6", + "id": "56670cf6", "metadata": {}, "outputs": [], "source": [ - "api_wrapper = PolygonAPIWrapper()\n", - "ticker = \"AAPL\"" + "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", + "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" ] }, { "cell_type": "markdown", - "id": "347f6951-b383-4675-b116-9b7d16c1f505", + "id": "7d93e6bd-03d7-4d3c-b915-8b73164e2ad8", "metadata": {}, "source": [ - "### Get latest quote for ticker" + "## Toolkit\n", + "\n", + "Polygon IO provides both a toolkit and individual tools for each of the tools included in the toolkit. Let's first explore using the toolkit and then we will walk through using the individual tools.\n", + "\n", + "### Initialization\n", + "\n", + "We can initialize the toolkit by importing it alongside the API wrapper needed to use the tools." ] }, { "cell_type": "code", "execution_count": 4, - "id": "84b8f773", + "id": "648a2cb2-308e-4b2e-9b73-37109be4e258", "metadata": { - "id": "84b8f773" + "is_executing": true }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Tool output: {\"P\": 170.5, \"S\": 2, \"T\": \"AAPL\", \"X\": 11, \"i\": [604], \"p\": 170.48, \"q\": 106666224, \"s\": 1, \"t\": 1709945992614283138, \"x\": 12, \"y\": 1709945992614268948, \"z\": 3}\n" - ] - } - ], + "outputs": [], "source": [ - "# Get the last quote for ticker\n", - "last_quote_tool = PolygonLastQuote(api_wrapper=api_wrapper)\n", - "last_quote = last_quote_tool.run(ticker)\n", - "print(f\"Tool output: {last_quote}\")" + "from langchain_community.agent_toolkits.polygon.toolkit import PolygonToolkit\n", + "from langchain_community.utilities.polygon import PolygonAPIWrapper\n", + "\n", + "polygon = PolygonAPIWrapper()\n", + "toolkit = PolygonToolkit.from_polygon_api_wrapper(polygon)" ] }, { - "cell_type": "code", - "execution_count": 5, - "id": "068991a6", - "metadata": { - "id": "068991a6", - "outputId": "c5cdc6ec-03cf-4084-cc6f-6ae792d91d39" - }, - "outputs": [], + "cell_type": "markdown", + "id": "77c3171c", + "metadata": {}, "source": [ - "import json\n", + "### Tools\n", "\n", - "# Convert the last quote response to JSON\n", - "last_quote = last_quote_tool.run(ticker)\n", - "last_quote_json = json.loads(last_quote)" + "We can examine the tools included in this toolkit:" ] }, { "cell_type": "code", - "execution_count": 6, - "id": "174e2556-eb3e-48a4-bde6-9a3309fae9c9", + "execution_count": 5, + "id": "18650040-0ff8-4c0f-a4f2-be6aad7fe63e", "metadata": {}, "outputs": [ { - "name": "stdout", - "output_type": "stream", - "text": [ - "Latest price for AAPL is $170.48\n" - ] + "data": { + "text/plain": [ + "[PolygonAggregates(api_wrapper=PolygonAPIWrapper(polygon_api_key='K231Rg76pOsN_IdT2eWhCC9npBguCYEj')),\n", + " PolygonLastQuote(api_wrapper=PolygonAPIWrapper(polygon_api_key='K231Rg76pOsN_IdT2eWhCC9npBguCYEj')),\n", + " PolygonTickerNews(api_wrapper=PolygonAPIWrapper(polygon_api_key='K231Rg76pOsN_IdT2eWhCC9npBguCYEj')),\n", + " PolygonFinancials(api_wrapper=PolygonAPIWrapper(polygon_api_key='K231Rg76pOsN_IdT2eWhCC9npBguCYEj'))]" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ - "# Print the latest price for ticker\n", - "latest_price = last_quote_json[\"p\"]\n", - "print(f\"Latest price for {ticker} is ${latest_price}\")" + "toolkit.get_tools()" ] }, { "cell_type": "markdown", - "id": "1f478364-f41b-47f2-ac4b-d3154f1c7faa", + "id": "57ed338d", "metadata": {}, "source": [ - "### Get aggregates (historical prices) for ticker" + "### Use within an agent\n", + "\n", + "Next we can add our toolkit to an agent and use it!" ] }, { "cell_type": "code", - "execution_count": 20, - "id": "5e14e091-3150-4bd5-bfd3-de17caa75ee1", + "execution_count": 11, + "id": "e8e92869", "metadata": {}, "outputs": [], "source": [ - "from langchain_community.tools.polygon.aggregates import PolygonAggregatesSchema\n", + "from langchain import hub\n", + "from langchain.agents import AgentExecutor, create_openai_functions_agent\n", + "from langchain_openai import ChatOpenAI\n", "\n", - "# Define param\n", - "params = PolygonAggregatesSchema(\n", - " ticker=ticker,\n", - " timespan=\"day\",\n", - " timespan_multiplier=1,\n", - " from_date=\"2024-03-01\",\n", - " to_date=\"2024-03-08\",\n", - ")\n", - "# Get aggregates for ticker\n", - "aggregates_tool = PolygonAggregates(api_wrapper=api_wrapper)\n", - "aggregates = aggregates_tool.run(tool_input=params.dict())\n", - "aggregates_json = json.loads(aggregates)" + "llm = ChatOpenAI(temperature=0, model=\"gpt-4o\")\n", + "\n", + "instructions = \"\"\"You are an assistant.\"\"\"\n", + "base_prompt = hub.pull(\"langchain-ai/openai-functions-template\")\n", + "prompt = base_prompt.partial(instructions=instructions)\n", + "\n", + "agent = create_openai_functions_agent(llm, toolkit.get_tools(), prompt)" ] }, { "cell_type": "code", - "execution_count": 25, - "id": "a01f3888-d233-400d-b8c4-298d27c8f793", + "execution_count": 12, + "id": "fd7463e4-8716-4d1d-860a-770533eaa742", + "metadata": {}, + "outputs": [], + "source": [ + "agent_executor = AgentExecutor(\n", + " agent=agent,\n", + " tools=toolkit.get_tools(),\n", + " verbose=True,\n", + ")" + ] + }, + { + "cell_type": "markdown", + "id": "71f05fc9-d80d-4614-b9a3-e0a5e43cbbbb", + "metadata": {}, + "source": [ + "We can examine yesterdays information for a certain ticker:" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "b97409f3-dc87-425d-b555-406cf8466a28", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Total aggregates: 6\n", - "Aggregates: [{'v': 73450582.0, 'vw': 179.0322, 'o': 179.55, 'c': 179.66, 'h': 180.53, 'l': 177.38, 't': 1709269200000, 'n': 911077}, {'v': 81505451.0, 'vw': 174.8938, 'o': 176.15, 'c': 175.1, 'h': 176.9, 'l': 173.79, 't': 1709528400000, 'n': 1167166}, {'v': 94702355.0, 'vw': 170.3234, 'o': 170.76, 'c': 170.12, 'h': 172.04, 'l': 169.62, 't': 1709614800000, 'n': 1108820}, {'v': 68568907.0, 'vw': 169.5506, 'o': 171.06, 'c': 169.12, 'h': 171.24, 'l': 168.68, 't': 1709701200000, 'n': 896297}, {'v': 71763761.0, 'vw': 169.3619, 'o': 169.15, 'c': 169, 'h': 170.73, 'l': 168.49, 't': 1709787600000, 'n': 825405}, {'v': 76267041.0, 'vw': 171.5322, 'o': 169, 'c': 170.73, 'h': 173.7, 'l': 168.94, 't': 1709874000000, 'n': 925213}]\n" + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `polygon_aggregates` with `{'ticker': 'AAPL', 'timespan': 'day', 'timespan_multiplier': 1, 'from_date': '2023-10-05', 'to_date': '2023-10-05'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[36;1m\u001b[1;3m[{\"v\": 48527918.0, \"vw\": 174.2297, \"o\": 173.79, \"c\": 174.91, \"h\": 175.45, \"l\": 172.68, \"t\": 1696478400000, \"n\": 509175}]\u001b[0m\u001b[32;1m\u001b[1;3mHere is the financial information for Apple Inc. (AAPL) for October 5, 2023:\n", + "\n", + "- **Opening Price**: $173.79\n", + "- **Closing Price**: $174.91\n", + "- **High Price**: $175.45\n", + "- **Low Price**: $172.68\n", + "- **Volume**: 48,527,918 shares\n", + "- **Volume Weighted Average Price (VWAP)**: $174.2297\n", + "- **Number of Transactions**: 509,175\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" ] + }, + { + "data": { + "text/plain": [ + "{'input': 'What was yesterdays financial info for AAPL?',\n", + " 'output': 'Here is the financial information for Apple Inc. (AAPL) for October 5, 2023:\\n\\n- **Opening Price**: $173.79\\n- **Closing Price**: $174.91\\n- **High Price**: $175.45\\n- **Low Price**: $172.68\\n- **Volume**: 48,527,918 shares\\n- **Volume Weighted Average Price (VWAP)**: $174.2297\\n- **Number of Transactions**: 509,175'}" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ - "print(f\"Total aggregates: {len(aggregates_json)}\")\n", - "print(f\"Aggregates: {aggregates_json}\")" + "agent_executor.invoke({\"input\": \"What was yesterdays financial info for AAPL?\"})" ] }, { "cell_type": "markdown", - "id": "04f1b612-f91f-471c-8264-9cc8c14bdaef", + "id": "19ac461e", "metadata": {}, "source": [ - "### Get latest news for ticker" + "We can also ask for recent news regarding a stock:" ] }, { "cell_type": "code", - "execution_count": null, - "id": "024982db-1402-4bd7-9788-6cb369a9565d", - "metadata": {}, - "outputs": [], - "source": [ - "ticker_news_tool = PolygonTickerNews(api_wrapper=api_wrapper)\n", - "ticker_news = ticker_news_tool.run(ticker)" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "id": "dfd26ef6-2d92-483e-9780-484091bd3774", + "execution_count": 14, + "id": "9e666ee1", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Total news items: 10\n" + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `polygon_ticker_news` with `{'query': 'MSFT'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[38;5;200m\u001b[1;3m[{\"id\": \"931602cbcfeb06e22188e205a1cb6127215b7a62e9a37e5cc7a935e8376ac402\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Prediction: 1 Unstoppable Stock Will Join Nvidia, Apple, Microsoft, and Alphabet in the $2 Trillion Club Within 3 Years\", \"author\": \"The Motley Fool\", \"published_utc\": \"2024-08-08T10:40:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/08/prediction-1-stock-nvidia-microsoft-in-2-trillion/?source=iedfolrf0000001\", \"tickers\": [\"META\", \"NVDA\", \"AAPL\", \"MSFT\", \"GOOG\", \"GOOGL\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785914/two-people-laughing-while-watching-a-video-on-a-smartphone.jpg\", \"description\": \"Meta Platforms (META) is predicted to join the $2 trillion club within 3 years, driven by its advancements in artificial intelligence and potential to drive significant returns for investors.\", \"keywords\": [\"Meta Platforms\", \"Artificial Intelligence\", \"Stock Prediction\"], \"insights\": [{\"ticker\": \"META\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article predicts that Meta Platforms will join the $2 trillion club within 3 years, driven by its advancements in artificial intelligence and potential to drive significant returns for investors.\"}, {\"ticker\": \"NVDA\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Nvidia is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Apple is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}, {\"ticker\": \"MSFT\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Microsoft is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}, {\"ticker\": \"GOOG\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Alphabet is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}, {\"ticker\": \"GOOGL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Alphabet is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}]}, {\"id\": \"2fedf0bd60526169295242173be22d9cb07aa9bf492859d16a25357b057ab0be\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Nasdaq Correction: My Top \\\"Magnificent Seven\\\" Stock to Buy in August\", \"author\": \"Daniel Foelber\", \"published_utc\": \"2024-08-08T10:30:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/08/nasdaq-buy-microsoft-stock-magnificent-seven/?source=iedfolrf0000001\", \"tickers\": [\"MSFT\", \"GOOG\", \"GOOGL\", \"AAPL\", \"AMZN\", \"META\", \"NVDA\", \"TSLA\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785889/gettyimages-1440510600-1201x761-58a9ed0.jpg\", \"description\": \"The article discusses why Microsoft is a compelling investment opportunity among the 'Magnificent Seven' tech stocks, despite the recent market sell-off. It highlights Microsoft's strong profitability, ongoing investments in cloud and AI, and its ability to balance growth and shareholder returns.\", \"keywords\": [\"Microsoft\", \"Magnificent Seven\", \"tech stocks\", \"cloud\", \"AI\", \"growth\", \"shareholder returns\"], \"insights\": [{\"ticker\": \"MSFT\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article argues that Microsoft is a compelling investment opportunity due to its strong profitability, ongoing investments in cloud and AI, and its ability to balance growth and shareholder returns. The author believes Microsoft's strategy of prioritizing innovation and market share growth over short-term profitability is a positive long-term move.\"}, {\"ticker\": \"GOOG\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Alphabet as part of the 'Magnificent Seven' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"GOOGL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Alphabet as part of the 'Magnificent Seven' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Apple as part of the 'Magnificent Seven' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"AMZN\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Amazon as part of the 'Magnificent Seven' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"META\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Meta Platforms (formerly Facebook) as part of the 'Magnificent Seven' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"NVDA\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Nvidia as part of the 'Magnificent Seven' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"TSLA\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Tesla as part of the 'Magnificent Seven' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}]}, {\"id\": \"aa33fcaf9302450660f1e64e4c05e13a18e508103afb8933a75db47c26eb5969\", \"publisher\": {\"name\": \"Zacks Investment Research\", \"homepage_url\": \"https://www.zacks.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/zacks.png\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/zacks.ico\"}, \"title\": \"Zacks Earnings Trends Highlights: Microsoft, Alphabet, Amazon, Apple, Meta, Tesla and Nvidia\", \"author\": \"Zacks.Com\", \"published_utc\": \"2024-08-08T08:34:00Z\", \"article_url\": \"https://www.zacks.com/stock/news/2318733/zacks-earnings-trends-highlights-microsoft-alphabet-amazon-apple-meta-tesla-and-nvidia?cid=CS-ZC-FT-press_releases-2318733\", \"tickers\": [\"MSFT\", \"GOOG\", \"GOOGL\", \"AMZN\", \"AAPL\", \"META\", \"TSLA\", \"NVDA\"], \"image_url\": \"https://staticx-tuner.zacks.com/images/articles/main/14/776.jpg\", \"description\": \"The overall earnings picture for Q2 2024 is one of stability and an improving outlook, with management teams providing a reassuring view of the economic situation. However, estimates for Q3 2024 have started to weaken faster than in previous quarters.\", \"keywords\": [\"earnings\", \"Q2 2024\", \"Q3 2024\", \"economic outlook\", \"earnings estimates\"], \"insights\": [{\"ticker\": \"MSFT\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Microsoft's Q2 earnings report, along with those of other 'Magnificent 7' companies, mostly failed to impress market participants, particularly due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"GOOG\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Similar to Microsoft, the article notes that Alphabet's Q2 earnings report, along with other 'Magnificent 7' companies, mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"GOOGL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Similar to Microsoft, the article notes that Alphabet's Q2 earnings report, along with other 'Magnificent 7' companies, mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"AMZN\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Amazon's Q2 earnings report, along with those of other 'Magnificent 7' companies, mostly failed to impress market participants, particularly due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article includes Apple as one of the 'Magnificent 7' companies, whose Q2 earnings reports mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"META\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Meta Platforms is included in the 'Magnificent 7' group of companies, whose Q2 earnings reports mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"TSLA\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Tesla's Q2 earnings report, along with those of other 'Magnificent 7' companies, mostly failed to impress market participants, particularly due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"NVDA\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Nvidia is part of the 'Magnificent 7' group of companies, whose Q2 earnings reports mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}]}, {\"id\": \"49ff05860d1cafdaaa3935fd800bfb458f07917849754c424b3e5a794e6f5bb7\", \"publisher\": {\"name\": \"GlobeNewswire Inc.\", \"homepage_url\": \"https://www.globenewswire.com\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/globenewswire.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/globenewswire.ico\"}, \"title\": \"VDS: Steve Chen, Randi Zuckerberg, and Juan Antonio Samaranch Lead Top Speaker Lineup at Valencia\\u2019s Premier Tech Event\", \"author\": \"Globe Newswire\", \"published_utc\": \"2024-08-07T19:58:00Z\", \"article_url\": \"https://www.globenewswire.com/news-release/2024/08/07/2926271/0/en/VDS-Steve-Chen-Randi-Zuckerberg-and-Juan-Antonio-Samaranch-Lead-Top-Speaker-Lineup-at-Valencia-s-Premier-Tech-Event.html\", \"tickers\": [\"MSFT\", \"IBM\", \"SSTK\", \"MA\", \"INTC\"], \"image_url\": \"https://www.globenewswire.com/news-release/2024/08/07/2926271/0/en/VDS-Steve-Chen-Randi-Zuckerberg-and-Juan-Antonio-Samaranch-Lead-Top-Speaker-Lineup-at-Valencia-s-Premier-Tech-Event.html\", \"description\": \"VDS, a prominent tech event in Southern Europe, will feature influential speakers like Steve Chen, Randi Zuckerberg, and Juan Antonio Samaranch. The event aims to empower entrepreneurs and foster connections in the tech ecosystem.\", \"keywords\": [\"tech event\", \"tech innovation\", \"entrepreneurs\", \"startups\", \"investors\"], \"insights\": [{\"ticker\": \"MSFT\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Visionary speakers from top companies like Hugging Face, Stability IA, Microsoft, IBM, Cloudera, Shutterstock, Mastercard, Intel, Babel, Eleven Labs, Multiverse, and Freepik will share insights on Artificial Intelligence.\"}, {\"ticker\": \"IBM\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Visionary speakers from top companies like Hugging Face, Stability IA, Microsoft, IBM, Cloudera, Shutterstock, Mastercard, Intel, Babel, Eleven Labs, Multiverse, and Freepik will share insights on Artificial Intelligence.\"}, {\"ticker\": \"SSTK\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Visionary speakers from top companies like Hugging Face, Stability IA, Microsoft, IBM, Cloudera, Shutterstock, Mastercard, Intel, Babel, Eleven Labs, Multiverse, and Freepik will share insights on Artificial Intelligence.\"}, {\"ticker\": \"MA\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Visionary speakers from top companies like Hugging Face, Stability IA, Microsoft, IBM, Cloudera, Shutterstock, Mastercard, Intel, Babel, Eleven Labs, Multiverse, and Freepik will share insights on Artificial Intelligence.\"}, {\"ticker\": \"INTC\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Visionary speakers from top companies like Hugging Face, Stability IA, Microsoft, IBM, Cloudera, Shutterstock, Mastercard, Intel, Babel, Eleven Labs, Multiverse, and Freepik will share insights on Artificial Intelligence.\"}]}, {\"id\": \"167bf58248666b3a16f986ab7dbeaaa02e1a99f22350fbcb41cf00804471810c\", \"publisher\": {\"name\": \"Investing.com\", \"homepage_url\": \"https://www.investing.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/investing.png\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/investing.ico\"}, \"title\": \"Which 'Magnificent 7' Stock Offers the Most Value for Money Today?\", \"author\": \"The Tokenist\", \"published_utc\": \"2024-08-07T19:23:00Z\", \"article_url\": \"https://www.investing.com/analysis/which-magnificent-7-stock-offers-the-most-value-for-money-today-200650755\", \"tickers\": [\"NVDA\", \"GOOG\", \"GOOGL\", \"AMZN\", \"META\", \"MSFT\", \"AAPL\", \"TSLA\"], \"amp_url\": \"https://m.investing.com/analysis/which-magnificent-7-stock-offers-the-most-value-for-money-today-200650755?ampMode=1\", \"image_url\": \"https://i-invdn-com.investing.com/redesign/images/seo/investingcom_analysis_og.jpg\", \"description\": \"The article analyzes the performance and outlook of the 'Magnificent 7' stocks - Apple, Microsoft, Amazon, Alphabet, Meta, Nvidia, and Tesla - in the current market conditions. It highlights the strengths and challenges faced by each company and provides insights on which stock offers the most value for investors.\", \"keywords\": [\"Magnificent 7\", \"stocks\", \"market performance\", \"company analysis\", \"investment value\"], \"insights\": [{\"ticker\": \"NVDA\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Despite facing a delay in the delivery of its Blackwell architecture chips, the article suggests that Nvidia's AI-reliant business model and its dominance in the AI training framework will likely keep it at the center of the generative AI trend, making it a resilient investment option.\"}, {\"ticker\": \"GOOG\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article argues that despite the recent antitrust ruling against Google, Alphabet is likely to continue its growth trajectory, as it is deeply entrenched in the information landscape and its cloud services are expected to benefit from the integration of AI-based tools.\"}, {\"ticker\": \"GOOGL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article argues that despite the recent antitrust ruling against Google, Alphabet is likely to continue its growth trajectory, as it is deeply entrenched in the information landscape and its cloud services are expected to benefit from the integration of AI-based tools.\"}, {\"ticker\": \"AMZN\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"While Amazon's cloud business remains strong, the article notes that the company's overall performance has been lackluster, with missed quarterly estimates and a weaker-than-expected Q3 guidance. However, the article suggests that Amazon's diversification into services like Prime Video and advertising could boost its revenue in the long run.\"}, {\"ticker\": \"META\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article highlights Meta's resilience in the recent market pullback, noting that the company beat revenue and profit estimates in Q2 and provided better-than-expected Q3 guidance. The article also suggests that Meta's Llama 3 AI model could be more capable than ChatGPT, further strengthening the company's position.\"}, {\"ticker\": \"MSFT\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"While Microsoft reported better-than-expected total revenue in Q2, the article notes that the company's Azure cloud growth fell short of expectations, and it also faces antitrust concerns related to the bundling of its products. However, the article suggests that severe penalties are unlikely.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article acknowledges the negative sentiment surrounding Apple, including the canceled Apple car project and declining iPhone sales in China. However, it suggests that the upcoming launch of Apple Intelligence, which combines text, image, and video manipulation capabilities, could bolster the company's position.\"}, {\"ticker\": \"TSLA\", \"sentiment\": \"negative\", \"sentiment_reasoning\": \"The article highlights Tesla's vulnerable position, facing tough competition from Chinese automakers and the challenge of overcoming the technical hurdle of full-self driving (FSD) technology. While the article notes that Tesla's stock has a high valuation, it suggests that the company's precarious position makes it a less attractive investment option compared to the other 'Magnificent 7' stocks.\"}]}, {\"id\": \"65fce379dba5a0e6326879cef7ff51af5bb50245565887d980329f39e991ca75\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"The Starbucks Experience Just Isn't the Same Anymore\", \"author\": \"Mary Long\", \"published_utc\": \"2024-08-07T17:58:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/07/the-starbucks-experience-just-isnt-the-same-anymor/?source=iedfolrf0000001\", \"tickers\": [\"MSFT\", \"SBUX\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785850/mfm_30.jpg\", \"description\": \"Microsoft's Q3 earnings showed strong revenue and profit growth, but investors are impatient about the company's long-term AI investments. Starbucks reported declining same-store sales and profits, as it struggles to reinvent the customer experience.\", \"keywords\": [\"Microsoft\", \"Starbucks\", \"AI\", \"Streaming\", \"Olympics\"], \"insights\": [{\"ticker\": \"MSFT\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Microsoft reported strong revenue and profit growth, but investors are concerned about the long timeline for the company's AI investments, which are expected to take 15 years or more to pay off.\"}, {\"ticker\": \"SBUX\", \"sentiment\": \"negative\", \"sentiment_reasoning\": \"Starbucks reported declining same-store sales and profits, as it struggles to reinvent the customer experience and improve efficiency in its stores.\"}]}, {\"id\": \"e4f1fa2d20d4cf39c305fad8fb157c869b63ac27ed7c33c517cd51ca825a45de\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Where Will CrowdStrike Stock Be in 5 Years?\", \"author\": \"Will Ebiefung\", \"published_utc\": \"2024-08-07T10:30:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/07/where-will-crowdstrike-stock-be-in-5-years/?source=iedfolrf0000001\", \"tickers\": [\"CRWD\", \"PANW\", \"S\", \"MSFT\", \"DAL\", \"NDAQ\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785642/gettyimages-1289228163.jpg\", \"description\": \"CrowdStrike, a cybersecurity company, faces reputational damage and lawsuits after a recent software update caused a global system outage. While the company's fundamentals remain strong, its valuation is considered high, and its shares are expected to underperform in the near future.\", \"keywords\": [\"CrowdStrike\", \"cybersecurity\", \"system outage\", \"valuation\"], \"insights\": [{\"ticker\": \"CRWD\", \"sentiment\": \"negative\", \"sentiment_reasoning\": \"CrowdStrike's shares have fallen significantly due to the global system outage, which has led to reputational damage, lawsuits, and potential loss of enterprise clients. The company's valuation is considered high, and its shares are expected to underperform in the next five years.\"}, {\"ticker\": \"PANW\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Palo Alto Networks is mentioned as a rival to CrowdStrike, offering similar cybersecurity services. However, the article does not provide any specific insights or sentiment about the company.\"}, {\"ticker\": \"S\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"SentinelOne is also mentioned as a rival to CrowdStrike, offering similar cybersecurity services. However, the article does not provide any specific insights or sentiment about the company.\"}, {\"ticker\": \"MSFT\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that the CrowdStrike software update caused a system crash on over 8.5 million Microsoft Windows computers worldwide, but it does not provide any specific insights or sentiment about Microsoft.\"}, {\"ticker\": \"DAL\", \"sentiment\": \"negative\", \"sentiment_reasoning\": \"The article states that Delta Airlines was one of the worst affected companies, claiming the crisis cost it $500 million after a five-day service outage that grounded some of its planes, disrupted labor, and forced it to reschedule thousands of consumer flights.\"}, {\"ticker\": \"NDAQ\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions the Nasdaq's forward price-to-earnings (P/E) multiple estimate of 28, which is used as a comparison to CrowdStrike's higher valuation. However, the article does not provide any specific insights or sentiment about the Nasdaq.\"}]}, {\"id\": \"c72d90f54fb21db148b53ece4d66c0ce13b0335677bc633e435da704991f6f1f\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Prediction: This Will Be One of the World's First $5 Trillion Artificial Intelligence (AI) Stocks\", \"author\": \"The Motley Fool\", \"published_utc\": \"2024-08-07T08:51:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/07/prediction-this-will-be-first-5-trillion-ai-stock/?source=iedfolrf0000001\", \"tickers\": [\"MSFT\", \"NVDA\", \"AAPL\", \"AMD\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785674/the-microsoft-logo-on-a-black-background.jpg\", \"description\": \"Microsoft is quickly becoming a leader in the AI industry, with its Copilot virtual assistant and Azure cloud platform driving significant growth. The article predicts Microsoft could reach a $5 trillion market cap within the next few years, driven by the company's investments in AI infrastructure and software.\", \"keywords\": [\"Microsoft\", \"Artificial Intelligence\", \"Cloud Computing\", \"Copilot\", \"Azure\"], \"insights\": [{\"ticker\": \"MSFT\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article predicts that Microsoft's investments in AI, including Copilot and Azure, will drive the company to a $5 trillion market cap within the next few years, representing significant growth potential.\"}, {\"ticker\": \"NVDA\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article cites Nvidia CEO Jensen Huang's forecast that data center operators can generate $5 in revenue for every $1 spent on chips, which could benefit Microsoft's AI initiatives.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Apple is similarly valued to Microsoft and has a path to the $5 trillion milestone, but does not provide any specific insights about Apple's AI strategy or potential.\"}, {\"ticker\": \"AMD\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article briefly mentions that Microsoft is building data centers with chips from suppliers like Advanced Micro Devices, but does not provide any further analysis or insights about the company.\"}]}, {\"id\": \"6c94364db9626b7b541c480a0b37c0d3437ffe863588d70ea41728a970bf8877\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Opinion: This Is the Best Artificial Intelligence (AI) Stock to Buy Right Now\", \"author\": \"The Motley Fool\", \"published_utc\": \"2024-08-06T08:44:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/06/opinion-this-is-the-best-artificial-intelligence-a/?source=iedfolrf0000001\", \"tickers\": [\"TSM\", \"NVDA\", \"MSFT\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/784732/person-looking-at-an-artifical-intelligence-ai-dashboard.jpg\", \"description\": \"The article discusses Taiwan Semiconductor Manufacturing (TSMC) as the best AI stock to buy right now, citing its leading position in chip fabrication and upcoming 2nm chip technology that could significantly improve power efficiency for AI applications.\", \"keywords\": [\"Taiwan Semiconductor Manufacturing\", \"AI\", \"semiconductor\", \"chip fabrication\"], \"insights\": [{\"ticker\": \"TSM\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article highlights TSMC's leading position in chip fabrication, its upcoming 2nm chip technology that could improve power efficiency for AI, and its strong financial performance, making it a favorable investment option for AI-related applications.\"}, {\"ticker\": \"NVDA\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Nvidia as one of TSMC's clients, but does not provide a specific sentiment or recommendation for Nvidia as a stock.\"}, {\"ticker\": \"MSFT\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Microsoft as one of TSMC's clients, but does not provide a specific sentiment or recommendation for Microsoft as a stock.\"}]}, {\"id\": \"17e9bfed1413912b6d594f0d8f072c1d39d3b5b665b0758c59ca5e6f02f0d59c\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Cloud Wars: Amazon Leads, Microsoft Disappoints, Google Surges\", \"author\": \"The Motley Fool\", \"published_utc\": \"2024-08-06T07:19:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/06/cloud-wars-amazon--microsoft-google/?source=iedfolrf0000001\", \"tickers\": [\"AMZN\", \"MSFT\", \"GOOG\", \"GOOGL\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785957/data-center-woman-holding-laptop.jpg\", \"description\": \"The article discusses the performance of the major cloud providers - Amazon, Microsoft, and Alphabet (Google) - in the latest quarter. Amazon remains the market leader, while Microsoft's growth disappointed Wall Street. Google Cloud, on the other hand, saw a surge in revenue and profitability.\", \"keywords\": [\"cloud services\", \"Amazon\", \"Microsoft\", \"Alphabet\", \"Google Cloud\"], \"insights\": [{\"ticker\": \"AMZN\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Amazon remains the undisputed leader in the cloud services market, with its AWS segment reporting strong revenue growth and profitability.\"}, {\"ticker\": \"MSFT\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Microsoft's Azure platform continues to gain ground, but its growth in the latest quarter disappointed Wall Street, though the company expects acceleration in the second half of 2024.\"}, {\"ticker\": \"GOOG\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Google Cloud's revenue surged and the unit reported its first quarter of over $1 billion in operating profit, indicating strong growth and profitability.\"}, {\"ticker\": \"GOOGL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Google Cloud's revenue surged and the unit reported its first quarter of over $1 billion in operating profit, indicating strong growth and profitability.\"}]}]\u001b[0m\u001b[32;1m\u001b[1;3mHere are some recent news articles regarding Microsoft (MSFT):\n", + "\n", + "1. **Prediction: 1 Unstoppable Stock Will Join Nvidia, Apple, Microsoft, and Alphabet in the $2 Trillion Club Within 3 Years**\n", + " - **Publisher:** The Motley Fool\n", + " - **Published Date:** August 8, 2024\n", + " - **Summary:** The article predicts that Meta Platforms (META) will join the $2 trillion club within 3 years, driven by its advancements in artificial intelligence and potential to drive significant returns for investors. Microsoft is mentioned as one of the companies currently valued at over $2 trillion.\n", + " - [Read more](https://www.fool.com/investing/2024/08/08/prediction-1-stock-nvidia-microsoft-in-2-trillion/?source=iedfolrf0000001)\n", + "\n", + "2. **Nasdaq Correction: My Top \"Magnificent Seven\" Stock to Buy in August**\n", + " - **Publisher:** The Motley Fool\n", + " - **Published Date:** August 8, 2024\n", + " - **Summary:** The article discusses why Microsoft is a compelling investment opportunity among the 'Magnificent Seven' tech stocks, despite the recent market sell-off. It highlights Microsoft's strong profitability, ongoing investments in cloud and AI, and its ability to balance growth and shareholder returns.\n", + " - [Read more](https://www.fool.com/investing/2024/08/08/nasdaq-buy-microsoft-stock-magnificent-seven/?source=iedfolrf0000001)\n", + "\n", + "3. **Zacks Earnings Trends Highlights: Microsoft, Alphabet, Amazon, Apple, Meta, Tesla and Nvidia**\n", + " - **Publisher:** Zacks Investment Research\n", + " - **Published Date:** August 8, 2024\n", + " - **Summary:** The overall earnings picture for Q2 2024 is one of stability and an improving outlook, with management teams providing a reassuring view of the economic situation. However, estimates for Q3 2024 have started to weaken faster than in previous quarters.\n", + " - [Read more](https://www.zacks.com/stock/news/2318733/zacks-earnings-trends-highlights-microsoft-alphabet-amazon-apple-meta-tesla-and-nvidia?cid=CS-ZC-FT-press_releases-2318733)\n", + "\n", + "4. **VDS: Steve Chen, Randi Zuckerberg, and Juan Antonio Samaranch Lead Top Speaker Lineup at Valencia’s Premier Tech Event**\n", + " - **Publisher:** GlobeNewswire Inc.\n", + " - **Published Date:** August 7, 2024\n", + " - **Summary:** VDS, a prominent tech event in Southern Europe, will feature influential speakers like Steve Chen, Randi Zuckerberg, and Juan Antonio Samaranch. The event aims to empower entrepreneurs and foster connections in the tech ecosystem.\n", + " - [Read more](https://www.globenewswire.com/news-release/2024/08/07/2926271/0/en/VDS-Steve-Chen-Randi-Zuckerberg-and-Juan-Antonio-Samaranch-Lead-Top-Speaker-Lineup-at-Valencia-s-Premier-Tech-Event.html)\n", + "\n", + "5. **Which 'Magnificent 7' Stock Offers the Most Value for Money Today?**\n", + " - **Publisher:** Investing.com\n", + " - **Published Date:** August 7, 2024\n", + " - **Summary:** The article analyzes the performance and outlook of the 'Magnificent 7' stocks - Apple, Microsoft, Amazon, Alphabet, Meta, Nvidia, and Tesla - in the current market conditions. It highlights the strengths and challenges faced by each company and provides insights on which stock offers the most value for investors.\n", + " - [Read more](https://www.investing.com/analysis/which-magnificent-7-stock-offers-the-most-value-for-money-today-200650755)\n", + "\n", + "These articles provide a mix of predictions, investment insights, and event highlights related to Microsoft and its position in the tech industry.\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" ] + }, + { + "data": { + "text/plain": [ + "{'input': 'What is the recent new regarding MSFT?',\n", + " 'output': 'Here are some recent news articles regarding Microsoft (MSFT):\\n\\n1. **Prediction: 1 Unstoppable Stock Will Join Nvidia, Apple, Microsoft, and Alphabet in the $2 Trillion Club Within 3 Years**\\n - **Publisher:** The Motley Fool\\n - **Published Date:** August 8, 2024\\n - **Summary:** The article predicts that Meta Platforms (META) will join the $2 trillion club within 3 years, driven by its advancements in artificial intelligence and potential to drive significant returns for investors. Microsoft is mentioned as one of the companies currently valued at over $2 trillion.\\n - [Read more](https://www.fool.com/investing/2024/08/08/prediction-1-stock-nvidia-microsoft-in-2-trillion/?source=iedfolrf0000001)\\n\\n2. **Nasdaq Correction: My Top \"Magnificent Seven\" Stock to Buy in August**\\n - **Publisher:** The Motley Fool\\n - **Published Date:** August 8, 2024\\n - **Summary:** The article discusses why Microsoft is a compelling investment opportunity among the \\'Magnificent Seven\\' tech stocks, despite the recent market sell-off. It highlights Microsoft\\'s strong profitability, ongoing investments in cloud and AI, and its ability to balance growth and shareholder returns.\\n - [Read more](https://www.fool.com/investing/2024/08/08/nasdaq-buy-microsoft-stock-magnificent-seven/?source=iedfolrf0000001)\\n\\n3. **Zacks Earnings Trends Highlights: Microsoft, Alphabet, Amazon, Apple, Meta, Tesla and Nvidia**\\n - **Publisher:** Zacks Investment Research\\n - **Published Date:** August 8, 2024\\n - **Summary:** The overall earnings picture for Q2 2024 is one of stability and an improving outlook, with management teams providing a reassuring view of the economic situation. However, estimates for Q3 2024 have started to weaken faster than in previous quarters.\\n - [Read more](https://www.zacks.com/stock/news/2318733/zacks-earnings-trends-highlights-microsoft-alphabet-amazon-apple-meta-tesla-and-nvidia?cid=CS-ZC-FT-press_releases-2318733)\\n\\n4. **VDS: Steve Chen, Randi Zuckerberg, and Juan Antonio Samaranch Lead Top Speaker Lineup at Valencia’s Premier Tech Event**\\n - **Publisher:** GlobeNewswire Inc.\\n - **Published Date:** August 7, 2024\\n - **Summary:** VDS, a prominent tech event in Southern Europe, will feature influential speakers like Steve Chen, Randi Zuckerberg, and Juan Antonio Samaranch. The event aims to empower entrepreneurs and foster connections in the tech ecosystem.\\n - [Read more](https://www.globenewswire.com/news-release/2024/08/07/2926271/0/en/VDS-Steve-Chen-Randi-Zuckerberg-and-Juan-Antonio-Samaranch-Lead-Top-Speaker-Lineup-at-Valencia-s-Premier-Tech-Event.html)\\n\\n5. **Which \\'Magnificent 7\\' Stock Offers the Most Value for Money Today?**\\n - **Publisher:** Investing.com\\n - **Published Date:** August 7, 2024\\n - **Summary:** The article analyzes the performance and outlook of the \\'Magnificent 7\\' stocks - Apple, Microsoft, Amazon, Alphabet, Meta, Nvidia, and Tesla - in the current market conditions. It highlights the strengths and challenges faced by each company and provides insights on which stock offers the most value for investors.\\n - [Read more](https://www.investing.com/analysis/which-magnificent-7-stock-offers-the-most-value-for-money-today-200650755)\\n\\nThese articles provide a mix of predictions, investment insights, and event highlights related to Microsoft and its position in the tech industry.'}" + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ - "# Convert the news response to JSON array\n", - "ticker_news_json = json.loads(ticker_news)\n", - "print(f\"Total news items: {len(ticker_news_json)}\")" + "agent_executor.invoke({\"input\": \"What is the recent new regarding MSFT?\"})" + ] + }, + { + "cell_type": "markdown", + "id": "24ce5ce7", + "metadata": {}, + "source": [ + "You can also ask about financial information for a company:" ] }, { "cell_type": "code", - "execution_count": 10, - "id": "dbbb4b43-1096-45f3-8000-45538b3c73ee", + "execution_count": 15, + "id": "620e6814", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Title: An AI surprise could fuel a 20% rally for the S&P 500 in 2024, says UBS\n", - "Description: If Gen AI causes a big productivity boost, stocks could see an unexpected rally this year, say UBS strategists.\n", - "Publisher: MarketWatch\n", - "URL: https://www.marketwatch.com/story/an-ai-surprise-could-fuel-a-20-rally-for-the-s-p-500-in-2024-says-ubs-1044d716\n" + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `polygon_financials` with `{'query': 'NVDA'}`\n", + "\n", + "\n", + "\u001b[0m\u001b[36;1m\u001b[1;3m[{\"start_date\": \"2023-04-29\", \"end_date\": \"2024-04-28\", \"timeframe\": \"ttm\", \"fiscal_period\": \"TTM\", \"fiscal_year\": \"\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"financials\": {\"cash_flow_statement\": {\"net_cash_flow_from_operating_activities\": {\"value\": 40524000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -22598000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_financing_activities\": {\"value\": -22598000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow\": {\"value\": 2508000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_investing_activities\": {\"value\": -15418000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -15418000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 40524000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_continuing\": {\"value\": 2508000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}}, \"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_parent\": {\"value\": 42538000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss\": {\"value\": 42538000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"other_comprehensive_income_loss\": {\"value\": -59000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}}, \"income_statement\": {\"income_tax_expense_benefit\": {\"value\": 6291000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"basic_average_shares\": {\"value\": 7402000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"interest_expense_operating\": {\"value\": 255000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"diluted_earnings_per_share\": {\"value\": 17.09, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"income_tax_expense_benefit_deferred\": {\"value\": -2931000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"basic_earnings_per_share\": {\"value\": 17.27, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"operating_income_loss\": {\"value\": 47740000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"net_income_loss_attributable_to_parent\": {\"value\": 42597000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"benefits_costs_expenses\": {\"value\": 30886000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"revenues\": {\"value\": 79774000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 48888000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"nonoperating_income_loss\": {\"value\": 1148000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"cost_of_revenue\": {\"value\": 19715000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"selling_general_and_administrative_expenses\": {\"value\": 2800000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 42597000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"costs_and_expenses\": {\"value\": 30886000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"diluted_average_shares\": {\"value\": 7482000000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"gross_profit\": {\"value\": 60059000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"net_income_loss\": {\"value\": 42597000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 42597000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"operating_expenses\": {\"value\": 12319000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"research_and_development\": {\"value\": 9519000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}}, \"balance_sheet\": {\"intangible_assets\": {\"value\": 986000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}, \"other_current_assets\": {\"value\": 47865000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"equity\": {\"value\": 49142000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"other_current_liabilities\": {\"value\": 11869000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"noncurrent_assets\": {\"value\": 23343000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"equity_attributable_to_parent\": {\"value\": 49142000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"inventory\": {\"value\": 5864000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"noncurrent_liabilities\": {\"value\": 12707000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"liabilities\": {\"value\": 27930000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"assets\": {\"value\": 77072000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"other_noncurrent_assets\": {\"value\": 18351000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"wages\": {\"value\": 639000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"long_term_debt\": {\"value\": 9710000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"liabilities_and_equity\": {\"value\": 77072000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"fixed_assets\": {\"value\": 4006000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"current_assets\": {\"value\": 53729000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"accounts_payable\": {\"value\": 2715000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"other_noncurrent_liabilities\": {\"value\": 2997000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"current_liabilities\": {\"value\": 15223000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}}}}, {\"start_date\": \"2024-01-29\", \"end_date\": \"2024-04-28\", \"filing_date\": \"2024-05-29\", \"acceptance_datetime\": \"2024-05-29T20:36:32Z\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q1\", \"fiscal_year\": \"2025\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0001045810-24-000124\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0001045810-24-000124/files/nvda-20240428_htm.xml\", \"financials\": {\"cash_flow_statement\": {\"net_cash_flow_from_financing_activities\": {\"value\": -9345000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -5693000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 15345000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow\": {\"value\": 307000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_operating_activities\": {\"value\": 15345000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_investing_activities\": {\"value\": -5693000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_continuing\": {\"value\": 307000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -9345000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}}, \"comprehensive_income\": {\"comprehensive_income_loss\": {\"value\": 14745000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 14745000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"other_comprehensive_income_loss\": {\"value\": -136000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}}, \"balance_sheet\": {\"current_assets\": {\"value\": 53729000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"inventory\": {\"value\": 5864000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"long_term_debt\": {\"value\": 9710000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"wages\": {\"value\": 639000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"intangible_assets\": {\"value\": 986000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}, \"other_current_liabilities\": {\"value\": 11869000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"noncurrent_assets\": {\"value\": 23343000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"current_liabilities\": {\"value\": 15223000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"fixed_assets\": {\"value\": 4006000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"equity\": {\"value\": 49142000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"equity_attributable_to_parent\": {\"value\": 49142000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"noncurrent_liabilities\": {\"value\": 12707000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"assets\": {\"value\": 77072000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"other_current_assets\": {\"value\": 47865000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"liabilities\": {\"value\": 27930000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"liabilities_and_equity\": {\"value\": 77072000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"accounts_payable\": {\"value\": 2715000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"other_noncurrent_liabilities\": {\"value\": 2997000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"other_noncurrent_assets\": {\"value\": 18351000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}}, \"income_statement\": {\"diluted_earnings_per_share\": {\"value\": 5.98, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"operating_income_loss\": {\"value\": 16909000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"benefits_costs_expenses\": {\"value\": 8765000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 17279000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 14881000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"costs_and_expenses\": {\"value\": 8765000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"selling_general_and_administrative_expenses\": {\"value\": 777000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"cost_of_revenue\": {\"value\": 5638000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"revenues\": {\"value\": 26044000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"operating_expenses\": {\"value\": 3497000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"income_tax_expense_benefit_deferred\": {\"value\": -1577000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"nonoperating_income_loss\": {\"value\": 370000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 14881000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"interest_expense_operating\": {\"value\": 64000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"gross_profit\": {\"value\": 20406000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"basic_average_shares\": {\"value\": 2462000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"net_income_loss\": {\"value\": 14881000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"income_tax_expense_benefit\": {\"value\": 2398000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"net_income_loss_attributable_to_parent\": {\"value\": 14881000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"research_and_development\": {\"value\": 2720000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"diluted_average_shares\": {\"value\": 2489000000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"basic_earnings_per_share\": {\"value\": 6.04, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}}}}, {\"start_date\": \"2023-10-30\", \"end_date\": \"2024-01-28\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q4\", \"fiscal_year\": \"2024\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"financials\": {\"cash_flow_statement\": {\"net_cash_flow_from_financing_activities_continuing\": {\"value\": -3629000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 11499000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_continuing\": {\"value\": 1761000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -6109000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_financing_activities\": {\"value\": -3629000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow\": {\"value\": 1761000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_operating_activities\": {\"value\": 11499000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_investing_activities\": {\"value\": -6109000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}}, \"balance_sheet\": {\"noncurrent_assets\": {\"value\": 21383000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"other_current_assets\": {\"value\": 39063000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"long_term_debt\": {\"value\": 9709000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"inventory\": {\"value\": 5282000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"other_current_liabilities\": {\"value\": 7257000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"other_noncurrent_liabilities\": {\"value\": 2410000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"noncurrent_liabilities\": {\"value\": 12119000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"current_liabilities\": {\"value\": 10631000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"other_noncurrent_assets\": {\"value\": 16357000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"intangible_assets\": {\"value\": 1112000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"assets\": {\"value\": 65728000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"accounts_payable\": {\"value\": 2699000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"equity\": {\"value\": 42978000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"equity_attributable_to_parent\": {\"value\": 42978000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"liabilities_and_equity\": {\"value\": 65728000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"liabilities\": {\"value\": 22750000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"wages\": {\"value\": 675000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"current_assets\": {\"value\": 44345000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"fixed_assets\": {\"value\": 3914000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}}, \"comprehensive_income\": {\"comprehensive_income_loss\": {\"value\": 12400000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 12400000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"other_comprehensive_income_loss\": {\"value\": 115000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}}, \"income_statement\": {\"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 12285000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"benefits_costs_expenses\": {\"value\": 7997000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"costs_and_expenses\": {\"value\": 7997000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"diluted_average_shares\": {\"value\": 0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"basic_average_shares\": {\"value\": -1000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"net_income_loss\": {\"value\": 12285000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"operating_expenses\": {\"value\": 3177000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"research_and_development\": {\"value\": 2465000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"interest_expense_operating\": {\"value\": 63000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 14106000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"income_tax_expense_benefit\": {\"value\": 1821000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"gross_profit\": {\"value\": 16791000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"net_income_loss_attributable_to_parent\": {\"value\": 12285000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"basic_earnings_per_share\": {\"value\": 4.98, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"cost_of_revenue\": {\"value\": 5312000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"income_tax_expense_benefit_deferred\": {\"value\": -78000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"selling_general_and_administrative_expenses\": {\"value\": 712000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 12285000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"revenues\": {\"value\": 22103000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"operating_income_loss\": {\"value\": 13614000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"diluted_earnings_per_share\": {\"value\": 4.92, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"nonoperating_income_loss\": {\"value\": 492000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}}}}, {\"start_date\": \"2023-01-30\", \"end_date\": \"2024-01-28\", \"filing_date\": \"2024-02-21\", \"acceptance_datetime\": \"2024-02-21T21:36:57Z\", \"timeframe\": \"annual\", \"fiscal_period\": \"FY\", \"fiscal_year\": \"2024\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0001045810-24-000029\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0001045810-24-000029/files/nvda-20240128_htm.xml\", \"financials\": {\"balance_sheet\": {\"other_noncurrent_liabilities\": {\"value\": 2410000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"noncurrent_liabilities\": {\"value\": 12119000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"intangible_assets\": {\"value\": 1112000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}, \"wages\": {\"value\": 675000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"other_current_liabilities\": {\"value\": 7257000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"accounts_payable\": {\"value\": 2699000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"current_assets\": {\"value\": 44345000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"assets\": {\"value\": 65728000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"inventory\": {\"value\": 5282000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"long_term_debt\": {\"value\": 9709000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"current_liabilities\": {\"value\": 10631000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"liabilities_and_equity\": {\"value\": 65728000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"other_current_assets\": {\"value\": 39063000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"equity\": {\"value\": 42978000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"liabilities\": {\"value\": 22750000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"fixed_assets\": {\"value\": 3914000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"other_noncurrent_assets\": {\"value\": 16357000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"equity_attributable_to_parent\": {\"value\": 42978000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"noncurrent_assets\": {\"value\": 21383000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}}, \"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_parent\": {\"value\": 29830000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"other_comprehensive_income_loss\": {\"value\": 70000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss\": {\"value\": 29830000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}}, \"cash_flow_statement\": {\"net_cash_flow_continuing\": {\"value\": 3891000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_financing_activities\": {\"value\": -13633000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_operating_activities\": {\"value\": 28090000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -13633000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -10566000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_investing_activities\": {\"value\": -10566000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow\": {\"value\": 3891000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 28090000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}}, \"income_statement\": {\"net_income_loss\": {\"value\": 29760000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"income_tax_expense_benefit\": {\"value\": 4058000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"gross_profit\": {\"value\": 44301000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"interest_expense_operating\": {\"value\": 257000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"basic_average_shares\": {\"value\": 2469000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"income_tax_expense_benefit_deferred\": {\"value\": -2489000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"costs_and_expenses\": {\"value\": 27104000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"diluted_earnings_per_share\": {\"value\": 11.93, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"operating_expenses\": {\"value\": 11329000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"nonoperating_income_loss\": {\"value\": 846000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"diluted_average_shares\": {\"value\": 2494000000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"operating_income_loss\": {\"value\": 32972000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"income_tax_expense_benefit_current\": {\"value\": 6547000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Current\", \"order\": 2300}, \"benefits_costs_expenses\": {\"value\": 27104000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"selling_general_and_administrative_expenses\": {\"value\": 2654000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"revenues\": {\"value\": 60922000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"net_income_loss_attributable_to_parent\": {\"value\": 29760000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"cost_of_revenue\": {\"value\": 16621000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 33818000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"basic_earnings_per_share\": {\"value\": 12.05, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"research_and_development\": {\"value\": 8675000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 29760000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 29760000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"common_stock_dividends\": {\"value\": 0.16, \"unit\": \"USD / shares\", \"label\": \"Common Stock Dividends\", \"order\": 4600}}}}, {\"start_date\": \"2023-07-31\", \"end_date\": \"2023-10-29\", \"filing_date\": \"2023-11-21\", \"acceptance_datetime\": \"2023-11-21T21:36:29Z\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q3\", \"fiscal_year\": \"2024\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0001045810-23-000227\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0001045810-23-000227/files/nvda-20231029_htm.xml\", \"financials\": {\"balance_sheet\": {\"noncurrent_assets\": {\"value\": 21490000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"other_noncurrent_assets\": {\"value\": 16395000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"assets\": {\"value\": 54148000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"noncurrent_liabilities\": {\"value\": 11782000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"wages\": {\"value\": 516000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"intangible_assets\": {\"value\": 1251000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}, \"long_term_debt\": {\"value\": 9706000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"other_current_assets\": {\"value\": 27879000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"liabilities\": {\"value\": 20883000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"current_assets\": {\"value\": 32658000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"current_liabilities\": {\"value\": 9101000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"fixed_assets\": {\"value\": 3844000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"equity_attributable_to_parent\": {\"value\": 33265000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"other_current_liabilities\": {\"value\": 6205000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"liabilities_and_equity\": {\"value\": 54148000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"accounts_payable\": {\"value\": 2380000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"equity\": {\"value\": 33265000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"inventory\": {\"value\": 4779000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"other_noncurrent_liabilities\": {\"value\": 2076000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}}, \"income_statement\": {\"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 9243000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"diluted_earnings_per_share\": {\"value\": 3.71, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"interest_expense_operating\": {\"value\": 63000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"income_tax_expense_benefit\": {\"value\": 1279000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"net_income_loss_attributable_to_parent\": {\"value\": 9243000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 9243000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"operating_income_loss\": {\"value\": 10417000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"basic_average_shares\": {\"value\": 2468000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"research_and_development\": {\"value\": 2294000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"revenues\": {\"value\": 18120000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"nonoperating_income_loss\": {\"value\": 105000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"operating_expenses\": {\"value\": 2983000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"benefits_costs_expenses\": {\"value\": 7598000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"gross_profit\": {\"value\": 13400000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"basic_earnings_per_share\": {\"value\": 3.75, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 10522000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"income_tax_expense_benefit_deferred\": {\"value\": -530000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"net_income_loss\": {\"value\": 9243000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"cost_of_revenue\": {\"value\": 4720000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"selling_general_and_administrative_expenses\": {\"value\": 689000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"diluted_average_shares\": {\"value\": 2494000000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"costs_and_expenses\": {\"value\": 7598000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}}, \"cash_flow_statement\": {\"net_cash_flow\": {\"value\": -363000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_financing_activities\": {\"value\": -4525000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_operating_activities\": {\"value\": 7332000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -4525000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_continuing\": {\"value\": -363000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -3170000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 7332000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_investing_activities\": {\"value\": -3170000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}}, \"comprehensive_income\": {\"other_comprehensive_income_loss\": {\"value\": -37000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 9206000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss\": {\"value\": 9206000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}}}}, {\"start_date\": \"2023-05-01\", \"end_date\": \"2023-07-30\", \"filing_date\": \"2023-08-28\", \"acceptance_datetime\": \"2023-08-25T23:36:34Z\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q2\", \"fiscal_year\": \"2024\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0001045810-23-000175\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0001045810-23-000175/files/nvda-20230730_htm.xml\", \"financials\": {\"cash_flow_statement\": {\"net_cash_flow_from_investing_activities_continuing\": {\"value\": -446000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_operating_activities\": {\"value\": 6348000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_investing_activities\": {\"value\": -446000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow\": {\"value\": 803000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 6348000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_continuing\": {\"value\": 803000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -5099000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_financing_activities\": {\"value\": -5099000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}}, \"income_statement\": {\"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"operating_income_loss\": {\"value\": 6800000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"income_tax_expense_benefit_deferred\": {\"value\": -746000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"nonoperating_income_loss\": {\"value\": 181000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 6188000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"benefits_costs_expenses\": {\"value\": 6526000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"costs_and_expenses\": {\"value\": 6526000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"income_tax_expense_benefit\": {\"value\": 793000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"gross_profit\": {\"value\": 9462000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"basic_earnings_per_share\": {\"value\": 2.5, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 6981000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"net_income_loss_attributable_to_parent\": {\"value\": 6188000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"research_and_development\": {\"value\": 2040000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"interest_expense_operating\": {\"value\": 65000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 6188000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"net_income_loss\": {\"value\": 6188000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"selling_general_and_administrative_expenses\": {\"value\": 622000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"revenues\": {\"value\": 13507000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"operating_expenses\": {\"value\": 2662000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"diluted_earnings_per_share\": {\"value\": 2.48, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"cost_of_revenue\": {\"value\": 4045000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"basic_average_shares\": {\"value\": 2473000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"diluted_average_shares\": {\"value\": 2499000000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}}, \"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_parent\": {\"value\": 6187000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss\": {\"value\": 6187000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"other_comprehensive_income_loss\": {\"value\": -1000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}}, \"balance_sheet\": {\"noncurrent_assets\": {\"value\": 20758000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"other_noncurrent_liabilities\": {\"value\": 2015000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"equity\": {\"value\": 27501000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"other_current_liabilities\": {\"value\": 7763000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"liabilities_and_equity\": {\"value\": 49555000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"accounts_payable\": {\"value\": 1929000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"fixed_assets\": {\"value\": 3799000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"current_assets\": {\"value\": 28797000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"noncurrent_liabilities\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"current_liabilities\": {\"value\": 10334000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"inventory\": {\"value\": 4319000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"long_term_debt\": {\"value\": 9705000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"equity_attributable_to_parent\": {\"value\": 27501000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"liabilities\": {\"value\": 22054000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"other_current_assets\": {\"value\": 24478000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"other_noncurrent_assets\": {\"value\": 15564000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"intangible_assets\": {\"value\": 1395000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}, \"wages\": {\"value\": 642000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"assets\": {\"value\": 49555000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}}}}, {\"start_date\": \"2023-01-30\", \"end_date\": \"2023-04-30\", \"filing_date\": \"2023-05-26\", \"acceptance_datetime\": \"2023-05-26T20:17:32Z\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q1\", \"fiscal_year\": \"2024\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0001045810-23-000093\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0001045810-23-000093/files/nvda-20230430_htm.xml\", \"financials\": {\"income_statement\": {\"interest_expense_operating\": {\"value\": 66000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"operating_expenses\": {\"value\": 2508000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 2043000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"income_tax_expense_benefit_deferred\": {\"value\": -1135000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"operating_income_loss\": {\"value\": 2140000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"selling_general_and_administrative_expenses\": {\"value\": 633000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 2043000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"net_income_loss\": {\"value\": 2043000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"basic_average_shares\": {\"value\": 2470000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"income_tax_expense_benefit\": {\"value\": 166000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"diluted_average_shares\": {\"value\": 2490000000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"net_income_loss_attributable_to_parent\": {\"value\": 2043000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"costs_and_expenses\": {\"value\": 4983000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"revenues\": {\"value\": 7192000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 2209000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"basic_earnings_per_share\": {\"value\": 0.83, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"gross_profit\": {\"value\": 4648000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"cost_of_revenue\": {\"value\": 2544000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"benefits_costs_expenses\": {\"value\": 4983000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"nonoperating_income_loss\": {\"value\": 69000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"research_and_development\": {\"value\": 1875000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"diluted_earnings_per_share\": {\"value\": 0.82, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}}, \"balance_sheet\": {\"equity_attributable_to_parent\": {\"value\": 24520000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"current_liabilities\": {\"value\": 7260000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"other_noncurrent_liabilities\": {\"value\": 1726000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"wages\": {\"value\": 320000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"long_term_debt\": {\"value\": 10954000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"fixed_assets\": {\"value\": 3740000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"inventory\": {\"value\": 4611000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"other_current_liabilities\": {\"value\": 5799000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"liabilities_and_equity\": {\"value\": 44460000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"equity\": {\"value\": 24520000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"noncurrent_assets\": {\"value\": 19577000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"liabilities\": {\"value\": 19940000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"other_noncurrent_assets\": {\"value\": 14296000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"other_current_assets\": {\"value\": 20272000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"assets\": {\"value\": 44460000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"accounts_payable\": {\"value\": 1141000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"intangible_assets\": {\"value\": 1541000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}, \"current_assets\": {\"value\": 24883000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"noncurrent_liabilities\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}}, \"cash_flow_statement\": {\"net_cash_flow_from_operating_activities\": {\"value\": 2911000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 2911000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_financing_activities\": {\"value\": -380000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -841000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -380000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_continuing\": {\"value\": 1690000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_investing_activities\": {\"value\": -841000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow\": {\"value\": 1690000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}}, \"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_parent\": {\"value\": 2036000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"other_comprehensive_income_loss\": {\"value\": -7000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss\": {\"value\": 2036000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}}}}, {\"start_date\": \"2022-10-31\", \"end_date\": \"2023-01-29\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q4\", \"fiscal_year\": \"2023\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"financials\": {\"income_statement\": {\"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 1414000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"basic_average_shares\": {\"value\": -8000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"selling_general_and_administrative_expenses\": {\"value\": 625000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"benefits_costs_expenses\": {\"value\": 4763000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"gross_profit\": {\"value\": 3833000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"other_operating_expenses\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Other Operating Expenses\", \"order\": 1040}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 1414000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"nonoperating_income_loss\": {\"value\": 32000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"cost_of_revenue\": {\"value\": 2218000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"net_income_loss\": {\"value\": 1414000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"operating_expenses\": {\"value\": 2577000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"costs_and_expenses\": {\"value\": 4763000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"operating_income_loss\": {\"value\": 1256000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"interest_expense_operating\": {\"value\": 64000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 1288000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"net_income_loss_attributable_to_parent\": {\"value\": 1414000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"income_tax_expense_benefit\": {\"value\": -126000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"revenues\": {\"value\": 6051000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"diluted_earnings_per_share\": {\"value\": 0.5700000000000001, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"research_and_development\": {\"value\": 1952000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"basic_earnings_per_share\": {\"value\": 0.5800000000000001, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"income_tax_expense_benefit_deferred\": {\"value\": -647000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"diluted_average_shares\": {\"value\": -10000000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}}, \"cash_flow_statement\": {\"net_cash_flow\": {\"value\": 589000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -3000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_operating_activities\": {\"value\": 2248000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -1656000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_financing_activities\": {\"value\": -1656000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_investing_activities\": {\"value\": -3000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 2248000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_continuing\": {\"value\": 589000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}}, \"balance_sheet\": {\"other_current_assets\": {\"value\": 17914000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"wages\": {\"value\": 530000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"liabilities\": {\"value\": 19081000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"noncurrent_liabilities\": {\"value\": 12518000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"assets\": {\"value\": 41182000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"equity_attributable_to_parent\": {\"value\": 22101000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"noncurrent_assets\": {\"value\": 18109000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"other_noncurrent_liabilities\": {\"value\": 1565000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"long_term_debt\": {\"value\": 10953000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"liabilities_and_equity\": {\"value\": 41182000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"inventory\": {\"value\": 5159000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"fixed_assets\": {\"value\": 3807000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"equity\": {\"value\": 22101000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"current_liabilities\": {\"value\": 6563000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"current_assets\": {\"value\": 23073000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"accounts_payable\": {\"value\": 1193000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"other_noncurrent_assets\": {\"value\": 12626000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"other_current_liabilities\": {\"value\": 4840000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"intangible_assets\": {\"value\": 1676000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}}, \"comprehensive_income\": {\"other_comprehensive_income_loss\": {\"value\": 80000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss\": {\"value\": 1494000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 1494000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}}}}, {\"start_date\": \"2022-01-31\", \"end_date\": \"2023-01-29\", \"filing_date\": \"2023-02-24\", \"timeframe\": \"annual\", \"fiscal_period\": \"FY\", \"fiscal_year\": \"2023\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0001045810-23-000017\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0001045810-23-000017/files/nvda-20230129_htm.xml\", \"financials\": {\"income_statement\": {\"income_tax_expense_benefit_deferred\": {\"value\": -2164000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"net_income_loss_attributable_to_parent\": {\"value\": 4368000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"basic_average_shares\": {\"value\": 2487000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 4368000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 4181000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"operating_income_loss\": {\"value\": 4224000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"nonoperating_income_loss\": {\"value\": -43000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"costs_and_expenses\": {\"value\": 22793000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"operating_expenses\": {\"value\": 11132000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"selling_general_and_administrative_expenses\": {\"value\": 2440000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"net_income_loss\": {\"value\": 4368000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 4368000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"cost_of_revenue\": {\"value\": 11618000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"income_tax_expense_benefit\": {\"value\": -187000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"diluted_earnings_per_share\": {\"value\": 1.74, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"gross_profit\": {\"value\": 15356000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"common_stock_dividends\": {\"value\": 0.16, \"unit\": \"USD / shares\", \"label\": \"Common Stock Dividends\", \"order\": 4600}, \"revenues\": {\"value\": 26974000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"research_and_development\": {\"value\": 7339000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"income_tax_expense_benefit_current\": {\"value\": 1977000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Current\", \"order\": 2300}, \"benefits_costs_expenses\": {\"value\": 22793000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"diluted_average_shares\": {\"value\": 2507000000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"other_operating_expenses\": {\"value\": 1353000000.0, \"unit\": \"USD\", \"label\": \"Other Operating Expenses\", \"order\": 1040}, \"interest_expense_operating\": {\"value\": 262000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"basic_earnings_per_share\": {\"value\": 1.76, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}}, \"cash_flow_statement\": {\"net_cash_flow_continuing\": {\"value\": 1399000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow\": {\"value\": 1399000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_operating_activities\": {\"value\": 5641000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": 7375000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -11617000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_investing_activities\": {\"value\": 7375000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_from_financing_activities\": {\"value\": -11617000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 5641000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}}, \"balance_sheet\": {\"inventory\": {\"value\": 5159000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"current_assets\": {\"value\": 23073000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"noncurrent_liabilities\": {\"value\": 12518000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"noncurrent_assets\": {\"value\": 18109000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"current_liabilities\": {\"value\": 6563000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"equity\": {\"value\": 22101000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"other_current_assets\": {\"value\": 17914000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"intangible_assets\": {\"value\": 1676000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}, \"fixed_assets\": {\"value\": 3807000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"wages\": {\"value\": 530000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"liabilities\": {\"value\": 19081000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"other_current_liabilities\": {\"value\": 4840000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"long_term_debt\": {\"value\": 10953000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"assets\": {\"value\": 41182000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"liabilities_and_equity\": {\"value\": 41182000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"other_noncurrent_assets\": {\"value\": 12626000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"accounts_payable\": {\"value\": 1193000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"equity_attributable_to_parent\": {\"value\": 22101000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"other_noncurrent_liabilities\": {\"value\": 1565000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}}, \"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"comprehensive_income_loss\": {\"value\": 4336000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 4336000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"other_comprehensive_income_loss\": {\"value\": -32000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}}}}, {\"start_date\": \"2022-08-01\", \"end_date\": \"2022-10-30\", \"filing_date\": \"2022-11-18\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q3\", \"fiscal_year\": \"2023\", \"cik\": \"0001045810\", \"sic\": \"3674\", \"tickers\": [\"NVDA\"], \"company_name\": \"NVIDIA CORP\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0001045810-22-000166\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0001045810-22-000166/files/nvda-20221030_htm.xml\", \"financials\": {\"balance_sheet\": {\"assets\": {\"value\": 40488000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"liabilities\": {\"value\": 19139000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"other_current_assets\": {\"value\": 18769000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"long_term_debt\": {\"value\": 10950000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"equity_attributable_to_parent\": {\"value\": 21349000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"noncurrent_liabilities\": {\"value\": 12284000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"current_liabilities\": {\"value\": 6855000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"liabilities_and_equity\": {\"value\": 40488000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"other_current_liabilities\": {\"value\": 5057000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"accounts_payable\": {\"value\": 1491000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"inventory\": {\"value\": 4454000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"equity\": {\"value\": 21349000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"intangible_assets\": {\"value\": 1850000000.0, \"unit\": \"USD\", \"label\": \"Intangible Assets\", \"order\": 330}, \"other_noncurrent_liabilities\": {\"value\": 1334000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"wages\": {\"value\": 307000000.0, \"unit\": \"USD\", \"label\": \"Wages\", \"order\": 730}, \"noncurrent_assets\": {\"value\": 17265000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"other_noncurrent_assets\": {\"value\": 11641000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"current_assets\": {\"value\": 23223000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"fixed_assets\": {\"value\": 3774000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}}, \"comprehensive_income\": {\"other_comprehensive_income_loss\": {\"value\": -33000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 647000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss\": {\"value\": 647000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}}, \"cash_flow_statement\": {\"net_cash_flow_from_investing_activities\": {\"value\": 3148000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_continuing\": {\"value\": -213000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_operating_activities\": {\"value\": 392000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow\": {\"value\": -213000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -3753000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 392000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_financing_activities\": {\"value\": -3753000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": 3148000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}}, \"income_statement\": {\"selling_general_and_administrative_expenses\": {\"value\": 631000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"revenues\": {\"value\": 5931000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 680000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"interest_expense_operating\": {\"value\": 65000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"income_tax_expense_benefit_deferred\": {\"value\": -532000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"nonoperating_income_loss\": {\"value\": 12000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"operating_income_loss\": {\"value\": 601000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"costs_and_expenses\": {\"value\": 5318000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"income_tax_expense_benefit\": {\"value\": -67000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"operating_expenses\": {\"value\": 2576000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 680000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 613000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"basic_average_shares\": {\"value\": 2483000000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"gross_profit\": {\"value\": 3177000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"net_income_loss_attributable_to_parent\": {\"value\": 680000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"basic_earnings_per_share\": {\"value\": 0.27, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"net_income_loss\": {\"value\": 680000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"research_and_development\": {\"value\": 1945000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"other_operating_expenses\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Other Operating Expenses\", \"order\": 1040}, \"benefits_costs_expenses\": {\"value\": 5318000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"diluted_average_shares\": {\"value\": 2499000000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"cost_of_revenue\": {\"value\": 2754000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"diluted_earnings_per_share\": {\"value\": 0.27, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}}}}]\u001b[0m\u001b[32;1m\u001b[1;3mHere are the financial numbers for Nvidia for the last quarter (Q1 of fiscal year 2025):\n", + "\n", + "### Income Statement\n", + "- **Revenues:** $26,044,000,000\n", + "- **Cost of Revenue:** $5,638,000,000\n", + "- **Gross Profit:** $20,406,000,000\n", + "- **Operating Expenses:** $3,497,000,000\n", + " - **Research and Development:** $2,720,000,000\n", + " - **Selling, General, and Administrative Expenses:** $777,000,000\n", + "- **Operating Income:** $16,909,000,000\n", + "- **Nonoperating Income:** $370,000,000\n", + "- **Income Before Tax:** $17,279,000,000\n", + "- **Income Tax Expense:** $2,398,000,000\n", + "- **Net Income:** $14,881,000,000\n", + "- **Net Income Attributable to Parent:** $14,881,000,000\n", + "- **Basic Earnings Per Share:** $6.04\n", + "- **Diluted Earnings Per Share:** $5.98\n", + "\n", + "### Balance Sheet\n", + "- **Total Assets:** $77,072,000,000\n", + " - **Current Assets:** $53,729,000,000\n", + " - **Inventory:** $5,864,000,000\n", + " - **Other Current Assets:** $47,865,000,000\n", + " - **Noncurrent Assets:** $23,343,000,000\n", + " - **Fixed Assets:** $4,006,000,000\n", + " - **Intangible Assets:** $986,000,000\n", + " - **Other Non-current Assets:** $18,351,000,000\n", + "- **Total Liabilities:** $27,930,000,000\n", + " - **Current Liabilities:** $15,223,000,000\n", + " - **Accounts Payable:** $2,715,000,000\n", + " - **Other Current Liabilities:** $11,869,000,000\n", + " - **Noncurrent Liabilities:** $12,707,000,000\n", + " - **Long-term Debt:** $9,710,000,000\n", + " - **Other Non-current Liabilities:** $2,997,000,000\n", + "- **Total Equity:** $49,142,000,000\n", + " - **Equity Attributable to Parent:** $49,142,000,000\n", + "\n", + "### Cash Flow Statement\n", + "- **Net Cash Flow from Operating Activities:** $15,345,000,000\n", + "- **Net Cash Flow from Investing Activities:** -$5,693,000,000\n", + "- **Net Cash Flow from Financing Activities:** -$9,345,000,000\n", + "- **Net Cash Flow:** $307,000,000\n", + "\n", + "### Comprehensive Income\n", + "- **Comprehensive Income:** $14,745,000,000\n", + "- **Other Comprehensive Income:** -$136,000,000\n", + "- **Comprehensive Income Attributable to Parent:** $14,745,000,000\n", + "\n", + "These numbers reflect Nvidia's strong financial performance in the first quarter of fiscal year 2025.\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" ] + }, + { + "data": { + "text/plain": [ + "{'input': 'What were last quarters financial numbers for Nvidia?',\n", + " 'output': \"Here are the financial numbers for Nvidia for the last quarter (Q1 of fiscal year 2025):\\n\\n### Income Statement\\n- **Revenues:** $26,044,000,000\\n- **Cost of Revenue:** $5,638,000,000\\n- **Gross Profit:** $20,406,000,000\\n- **Operating Expenses:** $3,497,000,000\\n - **Research and Development:** $2,720,000,000\\n - **Selling, General, and Administrative Expenses:** $777,000,000\\n- **Operating Income:** $16,909,000,000\\n- **Nonoperating Income:** $370,000,000\\n- **Income Before Tax:** $17,279,000,000\\n- **Income Tax Expense:** $2,398,000,000\\n- **Net Income:** $14,881,000,000\\n- **Net Income Attributable to Parent:** $14,881,000,000\\n- **Basic Earnings Per Share:** $6.04\\n- **Diluted Earnings Per Share:** $5.98\\n\\n### Balance Sheet\\n- **Total Assets:** $77,072,000,000\\n - **Current Assets:** $53,729,000,000\\n - **Inventory:** $5,864,000,000\\n - **Other Current Assets:** $47,865,000,000\\n - **Noncurrent Assets:** $23,343,000,000\\n - **Fixed Assets:** $4,006,000,000\\n - **Intangible Assets:** $986,000,000\\n - **Other Non-current Assets:** $18,351,000,000\\n- **Total Liabilities:** $27,930,000,000\\n - **Current Liabilities:** $15,223,000,000\\n - **Accounts Payable:** $2,715,000,000\\n - **Other Current Liabilities:** $11,869,000,000\\n - **Noncurrent Liabilities:** $12,707,000,000\\n - **Long-term Debt:** $9,710,000,000\\n - **Other Non-current Liabilities:** $2,997,000,000\\n- **Total Equity:** $49,142,000,000\\n - **Equity Attributable to Parent:** $49,142,000,000\\n\\n### Cash Flow Statement\\n- **Net Cash Flow from Operating Activities:** $15,345,000,000\\n- **Net Cash Flow from Investing Activities:** -$5,693,000,000\\n- **Net Cash Flow from Financing Activities:** -$9,345,000,000\\n- **Net Cash Flow:** $307,000,000\\n\\n### Comprehensive Income\\n- **Comprehensive Income:** $14,745,000,000\\n- **Other Comprehensive Income:** -$136,000,000\\n- **Comprehensive Income Attributable to Parent:** $14,745,000,000\\n\\nThese numbers reflect Nvidia's strong financial performance in the first quarter of fiscal year 2025.\"}" + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ - "# Inspect the first news item\n", - "news_item = ticker_news_json[0]\n", - "print(f\"Title: {news_item['title']}\")\n", - "print(f\"Description: {news_item['description']}\")\n", - "print(f\"Publisher: {news_item['publisher']['name']}\")\n", - "print(f\"URL: {news_item['article_url']}\")" + "agent_executor.invoke(\n", + " {\"input\": \"What were last quarters financial numbers for Nvidia?\"}\n", + ")" ] }, { "cell_type": "markdown", - "id": "675cbae0-a754-45b0-be01-738333c3255e", + "id": "7d691721", "metadata": {}, "source": [ - "### Get financials for ticker" + "Lastly, you can get live data, although this requires a \"Stocks Advanced\" subscription" ] }, { "cell_type": "code", - "execution_count": 28, - "id": "f46a8c88-8793-470d-8fce-31e8d4b1f77c", + "execution_count": null, + "id": "46df4d17", "metadata": {}, "outputs": [], "source": [ - "financials_tool = PolygonFinancials(api_wrapper=api_wrapper)\n", - "financials = financials_tool.run(ticker)" + "agent_executor.invoke({\"input\": \"What is Doordash stock price right now?\"})" + ] + }, + { + "cell_type": "markdown", + "id": "74e4c4ae", + "metadata": {}, + "source": [ + "### API reference\n", + "\n", + "For detailed documentation of all the Polygon IO toolkit features and configurations head to the API reference: https://api.python.langchain.com/en/latest/agent_toolkits/langchain_community.agent_toolkits.polygon.toolkit.PolygonToolkit.html" + ] + }, + { + "cell_type": "markdown", + "id": "a8e2e6e3", + "metadata": {}, + "source": [ + "## Tools\n", + "\n", + "First, let's set up the API wrapper that we will use for all the tools and then we will walk through each one of them." ] }, { "cell_type": "code", - "execution_count": 30, - "id": "3495021c-a31b-4dba-8daf-811c43e24bd9", + "execution_count": 16, + "id": "f9958d3c", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Total reporting periods: 10\n" - ] - } - ], + "outputs": [], "source": [ - "# Convert the financials response to JSON\n", - "financials_json = json.loads(financials)\n", - "print(f\"Total reporting periods: {len(financials_json)}\")" + "from langchain_community.utilities.polygon import PolygonAPIWrapper\n", + "\n", + "api_wrapper = PolygonAPIWrapper()" + ] + }, + { + "cell_type": "markdown", + "id": "08c095fb", + "metadata": {}, + "source": [ + "### Aggregate\n", + "\n", + "This tool shows aggregate information for a stock." ] }, { "cell_type": "code", - "execution_count": 31, - "id": "86215a03-a927-4334-a82b-54cb9574ed05", + "execution_count": 25, + "id": "9805b04f", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Company name: APPLE INC\n", - "CIK: 0000320193\n", - "Fiscal period: TTM\n", - "End date: 2023-12-30\n", - "Start date: 2022-12-31\n" + "content='[{\"v\": 61125243.0, \"vw\": 219.4773, \"o\": 224.37, \"c\": 218.36, \"h\": 224.48, \"l\": 217.02, \"t\": 1722484800000, \"n\": 876046}, {\"v\": 102635321.0, \"vw\": 221.9519, \"o\": 219.15, \"c\": 219.86, \"h\": 225.6, \"l\": 217.71, \"t\": 1722571200000, \"n\": 1132479}, {\"v\": 119382508.0, \"vw\": 207.801, \"o\": 199.09, \"c\": 209.27, \"h\": 213.5, \"l\": 196, \"t\": 1722830400000, \"n\": 1661493}, {\"v\": 69545387.0, \"vw\": 206.739, \"o\": 205.3, \"c\": 207.23, \"h\": 209.99, \"l\": 201.07, \"t\": 1722916800000, \"n\": 921946}, {\"v\": 60109650.0, \"vw\": 210.7375, \"o\": 206.9, \"c\": 209.82, \"h\": 213.64, \"l\": 206.39, \"t\": 1723003200000, \"n\": 741607}]' name='polygon_aggregates' tool_call_id='1'\n" ] } ], "source": [ - "# Print the latest reporting period's financials metadata\n", - "financial_data = financials_json[0]\n", - "print(f\"Company name: {financial_data['company_name']}\")\n", - "print(f\"CIK: {financial_data['cik']}\")\n", - "print(f\"Fiscal period: {financial_data['fiscal_period']}\")\n", - "print(f\"End date: {financial_data['end_date']}\")\n", - "print(f\"Start date: {financial_data['start_date']}\")" + "from langchain_community.tools.polygon.aggregates import PolygonAggregates\n", + "\n", + "aggregate_tool = PolygonAggregates(api_wrapper=api_wrapper)\n", + "\n", + "# We can invoke directly with input\n", + "res = aggregate_tool.invoke(\n", + " {\n", + " \"ticker\": \"AAPL\",\n", + " \"timespan\": \"day\",\n", + " \"timespan_multiplier\": 1,\n", + " \"from_date\": \"2024-08-01\",\n", + " \"to_date\": \"2024-08-07\",\n", + " }\n", + ")\n", + "\n", + "model_generated_tool_call = {\n", + " \"args\": {\n", + " \"ticker\": \"AAPL\",\n", + " \"timespan\": \"day\",\n", + " \"timespan_multiplier\": 1,\n", + " \"from_date\": \"2024-08-01\",\n", + " \"to_date\": \"2024-08-07\",\n", + " },\n", + " \"id\": \"1\",\n", + " \"name\": aggregate_tool.name,\n", + " \"type\": \"tool_call\",\n", + "}\n", + "\n", + "# Or we can invoke with a tool call\n", + "res = aggregate_tool.invoke(model_generated_tool_call)\n", + "\n", + "print(res)" + ] + }, + { + "cell_type": "markdown", + "id": "1495b160", + "metadata": {}, + "source": [ + "### Financials\n", + "\n", + "This tool provides general financial information about a stock" ] }, { "cell_type": "code", - "execution_count": 32, - "id": "2665d48b-fd44-4279-a2fe-e42836d3acdb", + "execution_count": 35, + "id": "47f3c4f6", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Income statement: {'diluted_earnings_per_share': {'value': 6.42, 'unit': 'USD / shares', 'label': 'Diluted Earnings Per Share', 'order': 4300}, 'costs_and_expenses': {'value': 267270000000.0, 'unit': 'USD', 'label': 'Costs And Expenses', 'order': 600}, 'net_income_loss_attributable_to_noncontrolling_interest': {'value': 0, 'unit': 'USD', 'label': 'Net Income/Loss Attributable To Noncontrolling Interest', 'order': 3300}, 'net_income_loss_attributable_to_parent': {'value': 100913000000.0, 'unit': 'USD', 'label': 'Net Income/Loss Attributable To Parent', 'order': 3500}, 'income_tax_expense_benefit': {'value': 17523000000.0, 'unit': 'USD', 'label': 'Income Tax Expense/Benefit', 'order': 2200}, 'income_loss_from_continuing_operations_before_tax': {'value': 118436000000.0, 'unit': 'USD', 'label': 'Income/Loss From Continuing Operations Before Tax', 'order': 1500}, 'operating_expenses': {'value': 55013000000.0, 'unit': 'USD', 'label': 'Operating Expenses', 'order': 1000}, 'benefits_costs_expenses': {'value': 267270000000.0, 'unit': 'USD', 'label': 'Benefits Costs and Expenses', 'order': 200}, 'diluted_average_shares': {'value': 47151996000.0, 'unit': 'shares', 'label': 'Diluted Average Shares', 'order': 4500}, 'cost_of_revenue': {'value': 212035000000.0, 'unit': 'USD', 'label': 'Cost Of Revenue', 'order': 300}, 'operating_income_loss': {'value': 118658000000.0, 'unit': 'USD', 'label': 'Operating Income/Loss', 'order': 1100}, 'net_income_loss_available_to_common_stockholders_basic': {'value': 100913000000.0, 'unit': 'USD', 'label': 'Net Income/Loss Available To Common Stockholders, Basic', 'order': 3700}, 'preferred_stock_dividends_and_other_adjustments': {'value': 0, 'unit': 'USD', 'label': 'Preferred Stock Dividends And Other Adjustments', 'order': 3900}, 'research_and_development': {'value': 29902000000.0, 'unit': 'USD', 'label': 'Research and Development', 'order': 1030}, 'revenues': {'value': 385706000000.0, 'unit': 'USD', 'label': 'Revenues', 'order': 100}, 'participating_securities_distributed_and_undistributed_earnings_loss_basic': {'value': 0, 'unit': 'USD', 'label': 'Participating Securities, Distributed And Undistributed Earnings/Loss, Basic', 'order': 3800}, 'selling_general_and_administrative_expenses': {'value': 25111000000.0, 'unit': 'USD', 'label': 'Selling, General, and Administrative Expenses', 'order': 1010}, 'nonoperating_income_loss': {'value': -222000000.0, 'unit': 'USD', 'label': 'Nonoperating Income/Loss', 'order': 900}, 'income_loss_from_continuing_operations_after_tax': {'value': 100913000000.0, 'unit': 'USD', 'label': 'Income/Loss From Continuing Operations After Tax', 'order': 1400}, 'basic_earnings_per_share': {'value': 6.46, 'unit': 'USD / shares', 'label': 'Basic Earnings Per Share', 'order': 4200}, 'basic_average_shares': {'value': 46946265000.0, 'unit': 'shares', 'label': 'Basic Average Shares', 'order': 4400}, 'gross_profit': {'value': 173671000000.0, 'unit': 'USD', 'label': 'Gross Profit', 'order': 800}, 'net_income_loss': {'value': 100913000000.0, 'unit': 'USD', 'label': 'Net Income/Loss', 'order': 3200}}\n" + "content='[{\"start_date\": \"2023-03-31\", \"end_date\": \"2024-03-30\", \"timeframe\": \"ttm\", \"fiscal_period\": \"TTM\", \"fiscal_year\": \"\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"APPLE INC\", \"financials\": {\"cash_flow_statement\": {\"net_cash_flow_from_operating_activities\": {\"value\": 110563000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow\": {\"value\": 6792000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": 4448000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_investing_activities\": {\"value\": 4448000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_continuing\": {\"value\": 6792000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 110563000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_financing_activities\": {\"value\": -108219000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -108219000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}}, \"comprehensive_income\": {\"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": 2786000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}, \"other_comprehensive_income_loss\": {\"value\": 103175000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 103175000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss\": {\"value\": 103175000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}}, \"income_statement\": {\"income_loss_from_continuing_operations_after_tax\": {\"value\": 100389000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 100389000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"net_income_loss_attributable_to_parent\": {\"value\": 100389000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 118112000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"gross_profit\": {\"value\": 173966000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"operating_expenses\": {\"value\": 55726000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"operating_income_loss\": {\"value\": 118240000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"diluted_earnings_per_share\": {\"value\": 6.43, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"basic_earnings_per_share\": {\"value\": 6.459999999999999, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"research_and_development\": {\"value\": 30348000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"selling_general_and_administrative_expenses\": {\"value\": 25378000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"cost_of_revenue\": {\"value\": 207657000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"benefits_costs_expenses\": {\"value\": 263511000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"net_income_loss\": {\"value\": 100389000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"diluted_average_shares\": {\"value\": 31248980000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"nonoperating_income_loss\": {\"value\": -128000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"income_tax_expense_benefit\": {\"value\": 17723000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"costs_and_expenses\": {\"value\": 263511000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"basic_average_shares\": {\"value\": 31107158000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"revenues\": {\"value\": 381623000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}}, \"balance_sheet\": {\"accounts_payable\": {\"value\": 45753000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"other_noncurrent_assets\": {\"value\": 165449000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"other_noncurrent_liabilities\": {\"value\": 36795000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"assets\": {\"value\": 337411000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"noncurrent_liabilities\": {\"value\": 139395000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"liabilities_and_equity\": {\"value\": 337411000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"noncurrent_assets\": {\"value\": 208995000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"equity\": {\"value\": 74194000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"inventory\": {\"value\": 6232000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"fixed_assets\": {\"value\": 43546000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"other_current_assets\": {\"value\": 122184000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"current_assets\": {\"value\": 128416000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"liabilities\": {\"value\": 263217000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"long_term_debt\": {\"value\": 102600000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"other_current_liabilities\": {\"value\": 78069000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"current_liabilities\": {\"value\": 123822000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"equity_attributable_to_parent\": {\"value\": 74194000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}}}}, {\"start_date\": \"2023-12-31\", \"end_date\": \"2024-03-30\", \"filing_date\": \"2024-05-03\", \"acceptance_datetime\": \"2024-05-02T22:04:25Z\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q2\", \"fiscal_year\": \"2024\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"Apple Inc.\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0000320193-24-000069\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0000320193-24-000069/files/aapl-20240330_htm.xml\", \"financials\": {\"balance_sheet\": {\"other_current_liabilities\": {\"value\": 78069000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"inventory\": {\"value\": 6232000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"long_term_debt\": {\"value\": 102600000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"accounts_payable\": {\"value\": 45753000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"fixed_assets\": {\"value\": 43546000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"equity\": {\"value\": 74194000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"noncurrent_liabilities\": {\"value\": 139395000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"current_assets\": {\"value\": 128416000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"other_noncurrent_liabilities\": {\"value\": 36795000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"equity_attributable_to_parent\": {\"value\": 74194000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"liabilities\": {\"value\": 263217000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"assets\": {\"value\": 337411000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"other_noncurrent_assets\": {\"value\": 165449000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"other_current_assets\": {\"value\": 122184000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"current_liabilities\": {\"value\": 123822000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"liabilities_and_equity\": {\"value\": 337411000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"noncurrent_assets\": {\"value\": 208995000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}}, \"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_parent\": {\"value\": 24054000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss\": {\"value\": 24054000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"other_comprehensive_income_loss\": {\"value\": 24054000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": 418000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}}, \"income_statement\": {\"basic_earnings_per_share\": {\"value\": 1.53, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"net_income_loss\": {\"value\": 23636000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"cost_of_revenue\": {\"value\": 48482000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"revenues\": {\"value\": 90753000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"benefits_costs_expenses\": {\"value\": 62695000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 23636000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"diluted_earnings_per_share\": {\"value\": 1.53, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"selling_general_and_administrative_expenses\": {\"value\": 6468000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"income_tax_expense_benefit\": {\"value\": 4422000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"basic_average_shares\": {\"value\": 15405856000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"gross_profit\": {\"value\": 42271000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"operating_expenses\": {\"value\": 14371000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 28058000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"net_income_loss_attributable_to_parent\": {\"value\": 23636000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 23636000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"research_and_development\": {\"value\": 7903000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"nonoperating_income_loss\": {\"value\": 158000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"costs_and_expenses\": {\"value\": 62695000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"operating_income_loss\": {\"value\": 27900000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"diluted_average_shares\": {\"value\": 15464709000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}}, \"cash_flow_statement\": {\"net_cash_flow_from_operating_activities_continuing\": {\"value\": 22690000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow\": {\"value\": -8053000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_investing_activities\": {\"value\": -310000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -30433000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_financing_activities\": {\"value\": -30433000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -310000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_continuing\": {\"value\": -8053000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_operating_activities\": {\"value\": 22690000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}}}}, {\"start_date\": \"2023-10-01\", \"end_date\": \"2023-12-30\", \"filing_date\": \"2024-02-02\", \"acceptance_datetime\": \"2024-02-01T23:03:38Z\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q1\", \"fiscal_year\": \"2024\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"Apple Inc.\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0000320193-24-000006\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0000320193-24-000006/files/aapl-20231230_htm.xml\", \"financials\": {\"income_statement\": {\"operating_expenses\": {\"value\": 14482000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"benefits_costs_expenses\": {\"value\": 79252000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"net_income_loss\": {\"value\": 33916000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"research_and_development\": {\"value\": 7696000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"selling_general_and_administrative_expenses\": {\"value\": 6786000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"basic_earnings_per_share\": {\"value\": 2.19, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"gross_profit\": {\"value\": 54855000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"income_tax_expense_benefit\": {\"value\": 6407000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"cost_of_revenue\": {\"value\": 64720000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"diluted_earnings_per_share\": {\"value\": 2.18, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"costs_and_expenses\": {\"value\": 79252000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"operating_income_loss\": {\"value\": 40373000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"basic_average_shares\": {\"value\": 15509763000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"revenues\": {\"value\": 119575000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"nonoperating_income_loss\": {\"value\": -50000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 33916000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 40323000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"net_income_loss_attributable_to_parent\": {\"value\": 33916000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"diluted_average_shares\": {\"value\": 15576641000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 33916000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}}, \"balance_sheet\": {\"noncurrent_liabilities\": {\"value\": 145441000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"current_liabilities\": {\"value\": 133973000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"assets\": {\"value\": 353514000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"other_current_liabilities\": {\"value\": 75827000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"inventory\": {\"value\": 6511000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"equity_attributable_to_parent\": {\"value\": 74100000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"liabilities_and_equity\": {\"value\": 353514000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"other_noncurrent_liabilities\": {\"value\": 39441000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"long_term_debt\": {\"value\": 106000000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"liabilities\": {\"value\": 279414000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"other_current_assets\": {\"value\": 137181000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"fixed_assets\": {\"value\": 43666000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"other_noncurrent_assets\": {\"value\": 166156000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"accounts_payable\": {\"value\": 58146000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"equity\": {\"value\": 74100000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"noncurrent_assets\": {\"value\": 209822000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"current_assets\": {\"value\": 143692000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}}, \"cash_flow_statement\": {\"net_cash_flow\": {\"value\": 11237000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": 1927000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_financing_activities\": {\"value\": -30585000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_continuing\": {\"value\": 11237000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -30585000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 39895000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_operating_activities\": {\"value\": 39895000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_investing_activities\": {\"value\": 1927000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}}, \"comprehensive_income\": {\"comprehensive_income_loss\": {\"value\": 35990000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": 2074000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}, \"other_comprehensive_income_loss\": {\"value\": 35990000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 35990000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}}}}, {\"start_date\": \"2023-07-02\", \"end_date\": \"2023-09-30\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q4\", \"fiscal_year\": \"2023\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"Apple Inc.\", \"financials\": {\"income_statement\": {\"selling_general_and_administrative_expenses\": {\"value\": 6151000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"nonoperating_income_loss\": {\"value\": 29000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"interest_expense_operating\": {\"value\": 1002000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"research_and_development\": {\"value\": 7307000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"cost_of_revenue\": {\"value\": 49071000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 22956000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"diluted_average_shares\": {\"value\": -46716000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"operating_expenses\": {\"value\": 13458000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"income_tax_expense_benefit\": {\"value\": 4042000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"net_income_loss\": {\"value\": 22956000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"diluted_earnings_per_share\": {\"value\": 1.46, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"operating_income_loss\": {\"value\": 26969000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"costs_and_expenses\": {\"value\": 62500000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 22956000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"gross_profit\": {\"value\": 40427000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"basic_average_shares\": {\"value\": -48266000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"revenues\": {\"value\": 89498000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"basic_earnings_per_share\": {\"value\": 1.4699999999999998, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 26998000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"benefits_costs_expenses\": {\"value\": 62500000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"net_income_loss_attributable_to_parent\": {\"value\": 22956000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}}, \"cash_flow_statement\": {\"net_cash_flow_from_investing_activities\": {\"value\": 2394000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_continuing\": {\"value\": 839000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow\": {\"value\": 839000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": 2394000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_operating_activities\": {\"value\": 21598000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 21598000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_financing_activities\": {\"value\": -23153000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -23153000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}}, \"balance_sheet\": {\"noncurrent_liabilities\": {\"value\": 145129000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"assets\": {\"value\": 352583000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"long_term_debt\": {\"value\": 105103000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"current_liabilities\": {\"value\": 145308000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"current_assets\": {\"value\": 143566000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"accounts_payable\": {\"value\": 62611000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"equity_attributable_to_parent\": {\"value\": 62146000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"liabilities\": {\"value\": 290437000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"other_noncurrent_liabilities\": {\"value\": 40026000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"inventory\": {\"value\": 6331000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"other_current_assets\": {\"value\": 137235000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"equity\": {\"value\": 62146000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"fixed_assets\": {\"value\": 43715000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"other_noncurrent_assets\": {\"value\": 165302000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"noncurrent_assets\": {\"value\": 209017000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"liabilities_and_equity\": {\"value\": 352583000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"other_current_liabilities\": {\"value\": 82697000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}}, \"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_parent\": {\"value\": 23305000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"other_comprehensive_income_loss\": {\"value\": 23305000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss\": {\"value\": 23305000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": 349000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}}}}, {\"start_date\": \"2022-09-25\", \"end_date\": \"2023-09-30\", \"filing_date\": \"2023-11-03\", \"acceptance_datetime\": \"2023-11-02T22:08:27Z\", \"timeframe\": \"annual\", \"fiscal_period\": \"FY\", \"fiscal_year\": \"2023\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"Apple Inc.\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0000320193-23-000106\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0000320193-23-000106/files/aapl-20230930_htm.xml\", \"financials\": {\"cash_flow_statement\": {\"net_cash_flow_continuing\": {\"value\": 5760000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -108488000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 110543000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_financing_activities\": {\"value\": -108488000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_operating_activities\": {\"value\": 110543000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_investing_activities\": {\"value\": 3705000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": 3705000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow\": {\"value\": 5760000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}}, \"comprehensive_income\": {\"comprehensive_income_loss\": {\"value\": 96652000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": -343000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 96652000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"other_comprehensive_income_loss\": {\"value\": 96652000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}}, \"balance_sheet\": {\"fixed_assets\": {\"value\": 43715000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"liabilities\": {\"value\": 290437000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"current_assets\": {\"value\": 143566000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"equity_attributable_to_parent\": {\"value\": 62146000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"other_current_assets\": {\"value\": 137235000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"inventory\": {\"value\": 6331000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"other_current_liabilities\": {\"value\": 82697000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"noncurrent_assets\": {\"value\": 209017000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"other_noncurrent_assets\": {\"value\": 165302000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"long_term_debt\": {\"value\": 105103000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"liabilities_and_equity\": {\"value\": 352583000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"equity\": {\"value\": 62146000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"assets\": {\"value\": 352583000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"accounts_payable\": {\"value\": 62611000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"other_noncurrent_liabilities\": {\"value\": 40026000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"current_liabilities\": {\"value\": 145308000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"noncurrent_liabilities\": {\"value\": 145129000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}}, \"income_statement\": {\"income_tax_expense_benefit\": {\"value\": 16741000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"research_and_development\": {\"value\": 29915000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"revenues\": {\"value\": 383285000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"basic_earnings_per_share\": {\"value\": 6.16, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"cost_of_revenue\": {\"value\": 214137000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"benefits_costs_expenses\": {\"value\": 269549000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"selling_general_and_administrative_expenses\": {\"value\": 24932000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"operating_income_loss\": {\"value\": 114301000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"interest_expense_operating\": {\"value\": 3933000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"costs_and_expenses\": {\"value\": 269549000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"diluted_earnings_per_share\": {\"value\": 6.13, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"nonoperating_income_loss\": {\"value\": -565000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"diluted_average_shares\": {\"value\": 15812547000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"net_income_loss\": {\"value\": 96995000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"net_income_loss_attributable_to_parent\": {\"value\": 96995000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 96995000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"operating_expenses\": {\"value\": 54847000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"basic_average_shares\": {\"value\": 15744231000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 113736000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"gross_profit\": {\"value\": 169148000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 96995000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}}}}, {\"start_date\": \"2023-04-02\", \"end_date\": \"2023-07-01\", \"filing_date\": \"2023-08-04\", \"acceptance_datetime\": \"2023-08-03T22:04:43Z\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q3\", \"fiscal_year\": \"2023\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"Apple Inc.\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0000320193-23-000077\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0000320193-23-000077/files/aapl-20230701_htm.xml\", \"financials\": {\"cash_flow_statement\": {\"net_cash_flow_from_financing_activities\": {\"value\": -24048000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow\": {\"value\": 2769000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_investing_activities\": {\"value\": 437000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -24048000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": 437000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_operating_activities\": {\"value\": 26380000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_continuing\": {\"value\": 2769000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 26380000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}}, \"balance_sheet\": {\"equity_attributable_to_parent\": {\"value\": 60274000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"inventory\": {\"value\": 7351000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"fixed_assets\": {\"value\": 43550000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"assets\": {\"value\": 335038000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"equity\": {\"value\": 60274000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"other_current_assets\": {\"value\": 115308000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"other_current_liabilities\": {\"value\": 78264000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"other_noncurrent_assets\": {\"value\": 168829000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"liabilities_and_equity\": {\"value\": 335038000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"current_assets\": {\"value\": 122659000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"noncurrent_assets\": {\"value\": 212379000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"other_noncurrent_liabilities\": {\"value\": 44501000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"noncurrent_liabilities\": {\"value\": 149801000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"current_liabilities\": {\"value\": 124963000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"long_term_debt\": {\"value\": 105300000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"accounts_payable\": {\"value\": 46699000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"liabilities\": {\"value\": 274764000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}}, \"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_parent\": {\"value\": 19826000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"other_comprehensive_income_loss\": {\"value\": 19826000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": -55000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}, \"comprehensive_income_loss\": {\"value\": 19826000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}}, \"income_statement\": {\"interest_expense_operating\": {\"value\": 998000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 19881000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"selling_general_and_administrative_expenses\": {\"value\": 5973000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"costs_and_expenses\": {\"value\": 59064000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"income_tax_expense_benefit\": {\"value\": 2852000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"operating_income_loss\": {\"value\": 22998000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"basic_average_shares\": {\"value\": 15697614000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"basic_earnings_per_share\": {\"value\": 1.27, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"net_income_loss_attributable_to_parent\": {\"value\": 19881000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"benefits_costs_expenses\": {\"value\": 59064000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"cost_of_revenue\": {\"value\": 45384000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"net_income_loss\": {\"value\": 19881000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"diluted_earnings_per_share\": {\"value\": 1.26, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"research_and_development\": {\"value\": 7442000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"diluted_average_shares\": {\"value\": 15775021000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"gross_profit\": {\"value\": 36413000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"operating_expenses\": {\"value\": 13415000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 19881000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"revenues\": {\"value\": 81797000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"nonoperating_income_loss\": {\"value\": -265000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 22733000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}}}}, {\"start_date\": \"2023-01-01\", \"end_date\": \"2023-04-01\", \"filing_date\": \"2023-05-05\", \"acceptance_datetime\": \"2023-05-04T22:03:52Z\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q2\", \"fiscal_year\": \"2023\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"Apple Inc.\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0000320193-23-000064\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0000320193-23-000064/files/aapl-20230401_htm.xml\", \"financials\": {\"comprehensive_income\": {\"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": 1166000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}, \"comprehensive_income_loss\": {\"value\": 25326000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"other_comprehensive_income_loss\": {\"value\": 25326000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 25326000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}}, \"balance_sheet\": {\"fixed_assets\": {\"value\": 43398000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"liabilities\": {\"value\": 270002000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"long_term_debt\": {\"value\": 107600000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"liabilities_and_equity\": {\"value\": 332160000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"current_assets\": {\"value\": 112913000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"other_noncurrent_assets\": {\"value\": 175849000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"other_current_liabilities\": {\"value\": 77130000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"assets\": {\"value\": 332160000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"accounts_payable\": {\"value\": 42945000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"inventory\": {\"value\": 7482000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"noncurrent_assets\": {\"value\": 219247000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"noncurrent_liabilities\": {\"value\": 149927000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"other_current_assets\": {\"value\": 105431000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"equity\": {\"value\": 62158000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"other_noncurrent_liabilities\": {\"value\": 42327000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"equity_attributable_to_parent\": {\"value\": 62158000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"current_liabilities\": {\"value\": 120075000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}}, \"cash_flow_statement\": {\"net_cash_flow_from_operating_activities\": {\"value\": 28560000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 28560000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_financing_activities\": {\"value\": -25724000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow\": {\"value\": 5155000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": 2319000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -25724000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_investing_activities\": {\"value\": 2319000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_continuing\": {\"value\": 5155000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}}, \"income_statement\": {\"operating_income_loss\": {\"value\": 28318000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"diluted_earnings_per_share\": {\"value\": 1.52, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"selling_general_and_administrative_expenses\": {\"value\": 6201000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"gross_profit\": {\"value\": 41976000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"net_income_loss_attributable_to_parent\": {\"value\": 24160000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"diluted_average_shares\": {\"value\": 15847050000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"income_tax_expense_benefit\": {\"value\": 4222000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"interest_expense_operating\": {\"value\": 930000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"nonoperating_income_loss\": {\"value\": 64000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"operating_expenses\": {\"value\": 13658000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"benefits_costs_expenses\": {\"value\": 66454000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 24160000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"net_income_loss\": {\"value\": 24160000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 24160000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"cost_of_revenue\": {\"value\": 52860000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 28382000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"research_and_development\": {\"value\": 7457000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"costs_and_expenses\": {\"value\": 66454000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"revenues\": {\"value\": 94836000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"basic_earnings_per_share\": {\"value\": 1.53, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"basic_average_shares\": {\"value\": 15787154000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}}}}, {\"start_date\": \"2022-09-25\", \"end_date\": \"2022-12-31\", \"filing_date\": \"2023-02-03\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q1\", \"fiscal_year\": \"2023\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"Apple Inc.\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0000320193-23-000006\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0000320193-23-000006/files/aapl-20221231_htm.xml\", \"financials\": {\"cash_flow_statement\": {\"net_cash_flow_continuing\": {\"value\": -3003000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 34005000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -35563000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_operating_activities\": {\"value\": 34005000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_from_financing_activities\": {\"value\": -35563000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -1445000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow\": {\"value\": -3003000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_investing_activities\": {\"value\": -1445000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}}, \"comprehensive_income\": {\"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": -1803000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}, \"other_comprehensive_income_loss\": {\"value\": 28195000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss\": {\"value\": 28195000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"comprehensive_income_loss_attributable_to_parent\": {\"value\": 28195000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}}, \"balance_sheet\": {\"other_noncurrent_liabilities\": {\"value\": 43334000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Liabilities\", \"order\": 820}, \"equity_attributable_to_parent\": {\"value\": 56727000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"long_term_debt\": {\"value\": 109400000000.0, \"unit\": \"USD\", \"label\": \"Long-term Debt\", \"order\": 810}, \"current_assets\": {\"value\": 128777000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"other_current_liabilities\": {\"value\": 79368000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"inventory\": {\"value\": 6820000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"accounts_payable\": {\"value\": 57918000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"noncurrent_assets\": {\"value\": 217970000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"other_noncurrent_assets\": {\"value\": 175019000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"other_current_assets\": {\"value\": 121957000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"liabilities_and_equity\": {\"value\": 346747000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"equity\": {\"value\": 56727000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"fixed_assets\": {\"value\": 42951000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"liabilities\": {\"value\": 290020000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"current_liabilities\": {\"value\": 137286000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"noncurrent_liabilities\": {\"value\": 152734000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"assets\": {\"value\": 346747000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}}, \"income_statement\": {\"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"basic_earnings_per_share\": {\"value\": 1.89, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"nonoperating_income_loss\": {\"value\": -393000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"gross_profit\": {\"value\": 50332000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"basic_average_shares\": {\"value\": 15892723000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"interest_expense_operating\": {\"value\": 1003000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 29998000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"operating_expenses\": {\"value\": 14316000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"operating_income_loss\": {\"value\": 36016000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"net_income_loss\": {\"value\": 29998000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"selling_general_and_administrative_expenses\": {\"value\": 6607000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"income_tax_expense_benefit\": {\"value\": 5625000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 29998000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"cost_of_revenue\": {\"value\": 66822000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"diluted_average_shares\": {\"value\": 15955718000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"costs_and_expenses\": {\"value\": 81531000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"diluted_earnings_per_share\": {\"value\": 1.88, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"benefits_costs_expenses\": {\"value\": 81531000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"revenues\": {\"value\": 117154000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"research_and_development\": {\"value\": 7709000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 35623000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"net_income_loss_attributable_to_parent\": {\"value\": 29998000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}}}}, {\"start_date\": \"2022-06-26\", \"end_date\": \"2022-09-24\", \"timeframe\": \"quarterly\", \"fiscal_period\": \"Q4\", \"fiscal_year\": \"2022\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"Apple Inc.\", \"financials\": {\"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_parent\": {\"value\": 18909000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"comprehensive_income_loss\": {\"value\": 18909000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}, \"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": -1812000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}, \"other_comprehensive_income_loss\": {\"value\": 18909000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}}, \"balance_sheet\": {\"liabilities\": {\"value\": 302083000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"current_assets\": {\"value\": 135405000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"other_current_assets\": {\"value\": 130459000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"noncurrent_liabilities\": {\"value\": 148101000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"inventory\": {\"value\": 4946000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}, \"equity\": {\"value\": 50672000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"liabilities_and_equity\": {\"value\": 352755000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"other_current_liabilities\": {\"value\": 89867000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"equity_attributable_to_parent\": {\"value\": 50672000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"fixed_assets\": {\"value\": 42117000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"accounts_payable\": {\"value\": 64115000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"assets\": {\"value\": 352755000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"other_noncurrent_assets\": {\"value\": 175233000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"current_liabilities\": {\"value\": 153982000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"noncurrent_assets\": {\"value\": 217350000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}}, \"cash_flow_statement\": {\"net_cash_flow_continuing\": {\"value\": -3884000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -1217000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 24127000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_operating_activities\": {\"value\": 24127000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow\": {\"value\": -3884000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_financing_activities\": {\"value\": -26794000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_investing_activities\": {\"value\": -1217000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow_from_financing_activities_continuing\": {\"value\": -26794000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}}, \"income_statement\": {\"interest_expense_operating\": {\"value\": 827000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"net_income_loss_attributable_to_parent\": {\"value\": 20721000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"nonoperating_income_loss\": {\"value\": -237000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"research_and_development\": {\"value\": 6761000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 20721000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"basic_earnings_per_share\": {\"value\": 1.29, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"revenues\": {\"value\": 90146000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"costs_and_expenses\": {\"value\": 65489000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"diluted_average_shares\": {\"value\": -69118000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"benefits_costs_expenses\": {\"value\": 65489000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"operating_expenses\": {\"value\": 13201000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"cost_of_revenue\": {\"value\": 52051000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"income_tax_expense_benefit\": {\"value\": 3936000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"income_tax_expense_benefit_deferred\": {\"value\": -1861000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"diluted_earnings_per_share\": {\"value\": 1.29, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}, \"net_income_loss\": {\"value\": 20721000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 20721000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"basic_average_shares\": {\"value\": -61861000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 24657000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"selling_general_and_administrative_expenses\": {\"value\": 6440000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"operating_income_loss\": {\"value\": 24894000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"gross_profit\": {\"value\": 38095000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}}}}, {\"start_date\": \"2021-09-26\", \"end_date\": \"2022-09-24\", \"filing_date\": \"2022-10-28\", \"timeframe\": \"annual\", \"fiscal_period\": \"FY\", \"fiscal_year\": \"2022\", \"cik\": \"0000320193\", \"sic\": \"3571\", \"tickers\": [\"AAPL\"], \"company_name\": \"Apple Inc.\", \"source_filing_url\": \"https://api.polygon.io/v1/reference/sec/filings/0000320193-22-000108\", \"source_filing_file_url\": \"http://api.polygon.io/v1/reference/sec/filings/0000320193-22-000108/files/aapl-20220924_htm.xml\", \"financials\": {\"cash_flow_statement\": {\"net_cash_flow_from_financing_activities_continuing\": {\"value\": -110749000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities, Continuing\", \"order\": 800}, \"net_cash_flow_from_financing_activities\": {\"value\": -110749000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Financing Activities\", \"order\": 700}, \"net_cash_flow_from_investing_activities_continuing\": {\"value\": -22354000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities, Continuing\", \"order\": 500}, \"net_cash_flow_from_operating_activities_continuing\": {\"value\": 122151000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities, Continuing\", \"order\": 200}, \"net_cash_flow_from_investing_activities\": {\"value\": -22354000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Investing Activities\", \"order\": 400}, \"net_cash_flow\": {\"value\": -10952000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow\", \"order\": 1100}, \"net_cash_flow_from_operating_activities\": {\"value\": 122151000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow From Operating Activities\", \"order\": 100}, \"net_cash_flow_continuing\": {\"value\": -10952000000.0, \"unit\": \"USD\", \"label\": \"Net Cash Flow, Continuing\", \"order\": 1200}}, \"balance_sheet\": {\"other_current_assets\": {\"value\": 130459000000.0, \"unit\": \"USD\", \"label\": \"Other Current Assets\", \"order\": 250}, \"equity_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Noncontrolling Interest\", \"order\": 1500}, \"other_noncurrent_assets\": {\"value\": 175233000000.0, \"unit\": \"USD\", \"label\": \"Other Non-current Assets\", \"order\": 350}, \"fixed_assets\": {\"value\": 42117000000.0, \"unit\": \"USD\", \"label\": \"Fixed Assets\", \"order\": 320}, \"equity_attributable_to_parent\": {\"value\": 50672000000.0, \"unit\": \"USD\", \"label\": \"Equity Attributable To Parent\", \"order\": 1600}, \"noncurrent_assets\": {\"value\": 217350000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Assets\", \"order\": 300}, \"accounts_payable\": {\"value\": 64115000000.0, \"unit\": \"USD\", \"label\": \"Accounts Payable\", \"order\": 710}, \"current_assets\": {\"value\": 135405000000.0, \"unit\": \"USD\", \"label\": \"Current Assets\", \"order\": 200}, \"equity\": {\"value\": 50672000000.0, \"unit\": \"USD\", \"label\": \"Equity\", \"order\": 1400}, \"assets\": {\"value\": 352755000000.0, \"unit\": \"USD\", \"label\": \"Assets\", \"order\": 100}, \"other_current_liabilities\": {\"value\": 89867000000.0, \"unit\": \"USD\", \"label\": \"Other Current Liabilities\", \"order\": 740}, \"liabilities\": {\"value\": 302083000000.0, \"unit\": \"USD\", \"label\": \"Liabilities\", \"order\": 600}, \"liabilities_and_equity\": {\"value\": 352755000000.0, \"unit\": \"USD\", \"label\": \"Liabilities And Equity\", \"order\": 1900}, \"noncurrent_liabilities\": {\"value\": 148101000000.0, \"unit\": \"USD\", \"label\": \"Noncurrent Liabilities\", \"order\": 800}, \"current_liabilities\": {\"value\": 153982000000.0, \"unit\": \"USD\", \"label\": \"Current Liabilities\", \"order\": 700}, \"inventory\": {\"value\": 4946000000.0, \"unit\": \"USD\", \"label\": \"Inventory\", \"order\": 230}}, \"comprehensive_income\": {\"comprehensive_income_loss_attributable_to_parent\": {\"value\": 88531000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Parent\", \"order\": 300}, \"other_comprehensive_income_loss_attributable_to_parent\": {\"value\": -11272000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss Attributable To Parent\", \"order\": 600}, \"other_comprehensive_income_loss\": {\"value\": 88531000000.0, \"unit\": \"USD\", \"label\": \"Other Comprehensive Income/Loss\", \"order\": 400}, \"comprehensive_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss Attributable To Noncontrolling Interest\", \"order\": 200}, \"comprehensive_income_loss\": {\"value\": 88531000000.0, \"unit\": \"USD\", \"label\": \"Comprehensive Income/Loss\", \"order\": 100}}, \"income_statement\": {\"basic_average_shares\": {\"value\": 16215963000.0, \"unit\": \"shares\", \"label\": \"Basic Average Shares\", \"order\": 4400}, \"income_tax_expense_benefit_deferred\": {\"value\": 895000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit, Deferred\", \"order\": 2400}, \"diluted_average_shares\": {\"value\": 16325819000.0, \"unit\": \"shares\", \"label\": \"Diluted Average Shares\", \"order\": 4500}, \"preferred_stock_dividends_and_other_adjustments\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Preferred Stock Dividends And Other Adjustments\", \"order\": 3900}, \"revenues\": {\"value\": 394328000000.0, \"unit\": \"USD\", \"label\": \"Revenues\", \"order\": 100}, \"gross_profit\": {\"value\": 170782000000.0, \"unit\": \"USD\", \"label\": \"Gross Profit\", \"order\": 800}, \"research_and_development\": {\"value\": 26251000000.0, \"unit\": \"USD\", \"label\": \"Research and Development\", \"order\": 1030}, \"participating_securities_distributed_and_undistributed_earnings_loss_basic\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Participating Securities, Distributed And Undistributed Earnings/Loss, Basic\", \"order\": 3800}, \"income_loss_from_continuing_operations_before_tax\": {\"value\": 119103000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations Before Tax\", \"order\": 1500}, \"net_income_loss_attributable_to_noncontrolling_interest\": {\"value\": 0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Noncontrolling Interest\", \"order\": 3300}, \"interest_expense_operating\": {\"value\": 2931000000.0, \"unit\": \"USD\", \"label\": \"Interest Expense, Operating\", \"order\": 2700}, \"basic_earnings_per_share\": {\"value\": 6.15, \"unit\": \"USD / shares\", \"label\": \"Basic Earnings Per Share\", \"order\": 4200}, \"costs_and_expenses\": {\"value\": 275225000000.0, \"unit\": \"USD\", \"label\": \"Costs And Expenses\", \"order\": 600}, \"selling_general_and_administrative_expenses\": {\"value\": 25094000000.0, \"unit\": \"USD\", \"label\": \"Selling, General, and Administrative Expenses\", \"order\": 1010}, \"benefits_costs_expenses\": {\"value\": 275225000000.0, \"unit\": \"USD\", \"label\": \"Benefits Costs and Expenses\", \"order\": 200}, \"nonoperating_income_loss\": {\"value\": -334000000.0, \"unit\": \"USD\", \"label\": \"Nonoperating Income/Loss\", \"order\": 900}, \"income_loss_from_continuing_operations_after_tax\": {\"value\": 99803000000.0, \"unit\": \"USD\", \"label\": \"Income/Loss From Continuing Operations After Tax\", \"order\": 1400}, \"net_income_loss_available_to_common_stockholders_basic\": {\"value\": 99803000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Available To Common Stockholders, Basic\", \"order\": 3700}, \"net_income_loss\": {\"value\": 99803000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss\", \"order\": 3200}, \"income_tax_expense_benefit\": {\"value\": 19300000000.0, \"unit\": \"USD\", \"label\": \"Income Tax Expense/Benefit\", \"order\": 2200}, \"cost_of_revenue\": {\"value\": 223546000000.0, \"unit\": \"USD\", \"label\": \"Cost Of Revenue\", \"order\": 300}, \"operating_income_loss\": {\"value\": 119437000000.0, \"unit\": \"USD\", \"label\": \"Operating Income/Loss\", \"order\": 1100}, \"net_income_loss_attributable_to_parent\": {\"value\": 99803000000.0, \"unit\": \"USD\", \"label\": \"Net Income/Loss Attributable To Parent\", \"order\": 3500}, \"operating_expenses\": {\"value\": 51345000000.0, \"unit\": \"USD\", \"label\": \"Operating Expenses\", \"order\": 1000}, \"diluted_earnings_per_share\": {\"value\": 6.11, \"unit\": \"USD / shares\", \"label\": \"Diluted Earnings Per Share\", \"order\": 4300}}}}]' name='polygon_financials' tool_call_id='1'\n" ] } ], "source": [ - "# Print the latest reporting period's income statement\n", - "print(f\"Income statement: {financial_data['financials']['income_statement']}\")" + "from langchain_community.tools.polygon.financials import PolygonFinancials\n", + "\n", + "financials_tool = PolygonFinancials(api_wrapper=api_wrapper)\n", + "\n", + "# We can invoke directly with input\n", + "res = financials_tool.invoke({\"query\": \"AAPL\"})\n", + "\n", + "model_generated_tool_call = {\n", + " \"args\": {\"query\": \"AAPL\"},\n", + " \"id\": \"1\",\n", + " \"name\": financials_tool.name,\n", + " \"type\": \"tool_call\",\n", + "}\n", + "\n", + "# Or we can invoke with a tool call\n", + "res = financials_tool.invoke(model_generated_tool_call)\n", + "\n", + "print(res)" + ] + }, + { + "cell_type": "markdown", + "id": "bb94e685", + "metadata": {}, + "source": [ + "### Last Quote\n", + "\n", + "This tool provides information about the live data of a stock, although it requires a \"Stocks Advanced\" subscription to use." ] }, { "cell_type": "code", - "execution_count": 34, - "id": "9e24d339-c0d5-4b6a-9ba6-3f97e46ff6df", + "execution_count": null, + "id": "4ec10205", + "metadata": {}, + "outputs": [], + "source": [ + "from langchain_community.tools.polygon.last_quote import PolygonLastQuote\n", + "\n", + "last_quote_tool = PolygonLastQuote(api_wrapper=api_wrapper)\n", + "\n", + "# We can invoke directly with input\n", + "res = last_quote_tool.invoke({\"query\": \"AAPL\"})\n", + "\n", + "model_generated_tool_call = {\n", + " \"args\": {\"query\": \"AAPL\"},\n", + " \"id\": \"1\",\n", + " \"name\": last_quote_tool.name,\n", + " \"type\": \"tool_call\",\n", + "}\n", + "\n", + "# Or we can invoke with a tool call\n", + "res = last_quote_tool.invoke(model_generated_tool_call)" + ] + }, + { + "cell_type": "markdown", + "id": "ffc4e890", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Balance sheet: {'equity_attributable_to_noncontrolling_interest': {'value': 0, 'unit': 'USD', 'label': 'Equity Attributable To Noncontrolling Interest', 'order': 1500}, 'other_noncurrent_liabilities': {'value': 39441000000.0, 'unit': 'USD', 'label': 'Other Non-current Liabilities', 'order': 820}, 'equity': {'value': 74100000000.0, 'unit': 'USD', 'label': 'Equity', 'order': 1400}, 'liabilities': {'value': 279414000000.0, 'unit': 'USD', 'label': 'Liabilities', 'order': 600}, 'noncurrent_assets': {'value': 209822000000.0, 'unit': 'USD', 'label': 'Noncurrent Assets', 'order': 300}, 'equity_attributable_to_parent': {'value': 74100000000.0, 'unit': 'USD', 'label': 'Equity Attributable To Parent', 'order': 1600}, 'liabilities_and_equity': {'value': 353514000000.0, 'unit': 'USD', 'label': 'Liabilities And Equity', 'order': 1900}, 'other_current_liabilities': {'value': 75827000000.0, 'unit': 'USD', 'label': 'Other Current Liabilities', 'order': 740}, 'inventory': {'value': 6511000000.0, 'unit': 'USD', 'label': 'Inventory', 'order': 230}, 'other_noncurrent_assets': {'value': 166156000000.0, 'unit': 'USD', 'label': 'Other Non-current Assets', 'order': 350}, 'other_current_assets': {'value': 137181000000.0, 'unit': 'USD', 'label': 'Other Current Assets', 'order': 250}, 'current_liabilities': {'value': 133973000000.0, 'unit': 'USD', 'label': 'Current Liabilities', 'order': 700}, 'noncurrent_liabilities': {'value': 145441000000.0, 'unit': 'USD', 'label': 'Noncurrent Liabilities', 'order': 800}, 'fixed_assets': {'value': 43666000000.0, 'unit': 'USD', 'label': 'Fixed Assets', 'order': 320}, 'long_term_debt': {'value': 106000000000.0, 'unit': 'USD', 'label': 'Long-term Debt', 'order': 810}, 'current_assets': {'value': 143692000000.0, 'unit': 'USD', 'label': 'Current Assets', 'order': 200}, 'assets': {'value': 353514000000.0, 'unit': 'USD', 'label': 'Assets', 'order': 100}, 'accounts_payable': {'value': 58146000000.0, 'unit': 'USD', 'label': 'Accounts Payable', 'order': 710}}\n" - ] - } - ], "source": [ - "# Print the latest reporting period's balance sheet\n", - "print(f\"Balance sheet: {financial_data['financials']['balance_sheet']}\")" + "### Ticker News\n", + "\n", + "This tool provides recent news about a certain ticker." ] }, { "cell_type": "code", "execution_count": 33, - "id": "4bfb47f1-8b9e-4293-be18-c4e9ab945d51", + "id": "04bba316", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Cash flow statement: {'net_cash_flow_continuing': {'value': 20000000000.0, 'unit': 'USD', 'label': 'Net Cash Flow, Continuing', 'order': 1200}, 'net_cash_flow_from_investing_activities_continuing': {'value': 7077000000.0, 'unit': 'USD', 'label': 'Net Cash Flow From Investing Activities, Continuing', 'order': 500}, 'net_cash_flow_from_investing_activities': {'value': 7077000000.0, 'unit': 'USD', 'label': 'Net Cash Flow From Investing Activities', 'order': 400}, 'net_cash_flow_from_financing_activities_continuing': {'value': -103510000000.0, 'unit': 'USD', 'label': 'Net Cash Flow From Financing Activities, Continuing', 'order': 800}, 'net_cash_flow_from_operating_activities': {'value': 116433000000.0, 'unit': 'USD', 'label': 'Net Cash Flow From Operating Activities', 'order': 100}, 'net_cash_flow_from_financing_activities': {'value': -103510000000.0, 'unit': 'USD', 'label': 'Net Cash Flow From Financing Activities', 'order': 700}, 'net_cash_flow_from_operating_activities_continuing': {'value': 116433000000.0, 'unit': 'USD', 'label': 'Net Cash Flow From Operating Activities, Continuing', 'order': 200}, 'net_cash_flow': {'value': 20000000000.0, 'unit': 'USD', 'label': 'Net Cash Flow', 'order': 1100}}\n" + "content='[{\"id\": \"4fd9f3a653f3d1c6d99a21d7cc62b883e8547109c95778e34de7c6c9ecaccfe4\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Warren Buffett Is Slashing Berkshire Hathaway\\'s Position in Apple Stock\", \"author\": \"Parkev Tatevosian, Cfa\", \"published_utc\": \"2024-08-08T14:16:30Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/08/warren-buffett-is-slashing-berkshire-hathaways-pos/?source=iedfolrf0000001\", \"tickers\": [\"AAPL\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/786449/buffett17-tmf.jpg\", \"description\": \"Warren Buffett, the renowned investor, has sold a significant portion of his Apple stock holdings, worth around $90 billion. This move has raised questions about whether it could be Buffett\\'s biggest investing mistake.\", \"keywords\": [\"Warren Buffett\", \"Apple\", \"investing\"], \"insights\": [{\"ticker\": \"AAPL\", \"sentiment\": \"negative\", \"sentiment_reasoning\": \"The article suggests that Buffett\\'s decision to sell a large portion of his Apple stock holdings could be a mistake, implying a negative sentiment towards the company\\'s future performance.\"}]}, {\"id\": \"931602cbcfeb06e22188e205a1cb6127215b7a62e9a37e5cc7a935e8376ac402\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Prediction: 1 Unstoppable Stock Will Join Nvidia, Apple, Microsoft, and Alphabet in the $2 Trillion Club Within 3 Years\", \"author\": \"The Motley Fool\", \"published_utc\": \"2024-08-08T10:40:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/08/prediction-1-stock-nvidia-microsoft-in-2-trillion/?source=iedfolrf0000001\", \"tickers\": [\"META\", \"NVDA\", \"AAPL\", \"MSFT\", \"GOOG\", \"GOOGL\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785914/two-people-laughing-while-watching-a-video-on-a-smartphone.jpg\", \"description\": \"Meta Platforms (META) is predicted to join the $2 trillion club within 3 years, driven by its advancements in artificial intelligence and potential to drive significant returns for investors.\", \"keywords\": [\"Meta Platforms\", \"Artificial Intelligence\", \"Stock Prediction\"], \"insights\": [{\"ticker\": \"META\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article predicts that Meta Platforms will join the $2 trillion club within 3 years, driven by its advancements in artificial intelligence and potential to drive significant returns for investors.\"}, {\"ticker\": \"NVDA\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Nvidia is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Apple is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}, {\"ticker\": \"MSFT\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Microsoft is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}, {\"ticker\": \"GOOG\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Alphabet is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}, {\"ticker\": \"GOOGL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Alphabet is mentioned as one of the companies currently valued at over $2 trillion, indicating its strong market position.\"}]}, {\"id\": \"2fedf0bd60526169295242173be22d9cb07aa9bf492859d16a25357b057ab0be\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Nasdaq Correction: My Top \\\\\"Magnificent Seven\\\\\" Stock to Buy in August\", \"author\": \"Daniel Foelber\", \"published_utc\": \"2024-08-08T10:30:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/08/nasdaq-buy-microsoft-stock-magnificent-seven/?source=iedfolrf0000001\", \"tickers\": [\"MSFT\", \"GOOG\", \"GOOGL\", \"AAPL\", \"AMZN\", \"META\", \"NVDA\", \"TSLA\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785889/gettyimages-1440510600-1201x761-58a9ed0.jpg\", \"description\": \"The article discusses why Microsoft is a compelling investment opportunity among the \\'Magnificent Seven\\' tech stocks, despite the recent market sell-off. It highlights Microsoft\\'s strong profitability, ongoing investments in cloud and AI, and its ability to balance growth and shareholder returns.\", \"keywords\": [\"Microsoft\", \"Magnificent Seven\", \"tech stocks\", \"cloud\", \"AI\", \"growth\", \"shareholder returns\"], \"insights\": [{\"ticker\": \"MSFT\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article argues that Microsoft is a compelling investment opportunity due to its strong profitability, ongoing investments in cloud and AI, and its ability to balance growth and shareholder returns. The author believes Microsoft\\'s strategy of prioritizing innovation and market share growth over short-term profitability is a positive long-term move.\"}, {\"ticker\": \"GOOG\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Alphabet as part of the \\'Magnificent Seven\\' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"GOOGL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Alphabet as part of the \\'Magnificent Seven\\' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Apple as part of the \\'Magnificent Seven\\' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"AMZN\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Amazon as part of the \\'Magnificent Seven\\' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"META\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Meta Platforms (formerly Facebook) as part of the \\'Magnificent Seven\\' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"NVDA\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Nvidia as part of the \\'Magnificent Seven\\' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}, {\"ticker\": \"TSLA\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions Tesla as part of the \\'Magnificent Seven\\' tech stocks, but does not provide any specific analysis or sentiment on the company.\"}]}, {\"id\": \"aa33fcaf9302450660f1e64e4c05e13a18e508103afb8933a75db47c26eb5969\", \"publisher\": {\"name\": \"Zacks Investment Research\", \"homepage_url\": \"https://www.zacks.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/zacks.png\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/zacks.ico\"}, \"title\": \"Zacks Earnings Trends Highlights: Microsoft, Alphabet, Amazon, Apple, Meta, Tesla and Nvidia\", \"author\": \"Zacks.Com\", \"published_utc\": \"2024-08-08T08:34:00Z\", \"article_url\": \"https://www.zacks.com/stock/news/2318733/zacks-earnings-trends-highlights-microsoft-alphabet-amazon-apple-meta-tesla-and-nvidia?cid=CS-ZC-FT-press_releases-2318733\", \"tickers\": [\"MSFT\", \"GOOG\", \"GOOGL\", \"AMZN\", \"AAPL\", \"META\", \"TSLA\", \"NVDA\"], \"image_url\": \"https://staticx-tuner.zacks.com/images/articles/main/14/776.jpg\", \"description\": \"The overall earnings picture for Q2 2024 is one of stability and an improving outlook, with management teams providing a reassuring view of the economic situation. However, estimates for Q3 2024 have started to weaken faster than in previous quarters.\", \"keywords\": [\"earnings\", \"Q2 2024\", \"Q3 2024\", \"economic outlook\", \"earnings estimates\"], \"insights\": [{\"ticker\": \"MSFT\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Microsoft\\'s Q2 earnings report, along with those of other \\'Magnificent 7\\' companies, mostly failed to impress market participants, particularly due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"GOOG\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Similar to Microsoft, the article notes that Alphabet\\'s Q2 earnings report, along with other \\'Magnificent 7\\' companies, mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"GOOGL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Similar to Microsoft, the article notes that Alphabet\\'s Q2 earnings report, along with other \\'Magnificent 7\\' companies, mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"AMZN\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Amazon\\'s Q2 earnings report, along with those of other \\'Magnificent 7\\' companies, mostly failed to impress market participants, particularly due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article includes Apple as one of the \\'Magnificent 7\\' companies, whose Q2 earnings reports mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"META\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Meta Platforms is included in the \\'Magnificent 7\\' group of companies, whose Q2 earnings reports mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"TSLA\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Tesla\\'s Q2 earnings report, along with those of other \\'Magnificent 7\\' companies, mostly failed to impress market participants, particularly due to their rising capex levels towards AI projects.\"}, {\"ticker\": \"NVDA\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"Nvidia is part of the \\'Magnificent 7\\' group of companies, whose Q2 earnings reports mostly failed to impress market participants due to their rising capex levels towards AI projects.\"}]}, {\"id\": \"209a172471f92a42b472dd6c53f7e969483ae1cc5f3601edaa6ee1e34502e961\", \"publisher\": {\"name\": \"Investing.com\", \"homepage_url\": \"https://www.investing.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/investing.png\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/investing.ico\"}, \"title\": \"Airbnb: Stock Drops Post-Earnings, Why Its a Good Buy Now?\", \"author\": \"Marketbeat.Com\", \"published_utc\": \"2024-08-08T07:10:00Z\", \"article_url\": \"https://www.investing.com/analysis/airbnb-stock-drops-postearnings-why-its-a-good-buy-now-200650772\", \"tickers\": [\"ABNB\", \"AAPL\", \"BAC\", \"BACpB\", \"BACpE\", \"BACpK\", \"BACpL\", \"BACpM\", \"BACpN\", \"BACpO\", \"BACpP\", \"BACpQ\", \"BACpS\", \"BMLpG\", \"BMLpH\", \"BMLpJ\", \"BMLpL\", \"MERpK\", \"BKNG\", \"BRK.A\", \"BRK.B\"], \"amp_url\": \"https://m.investing.com/analysis/airbnb-stock-drops-postearnings-why-its-a-good-buy-now-200650772?ampMode=1\", \"image_url\": \"https://i-invdn-com.investing.com/redesign/images/seo/investingcom_analysis_og.jpg\", \"description\": \"Airbnb stock dropped 14% after reporting strong Q2 2024 earnings, but the company\\'s fundamentals remain strong. Analysts see potential for the stock to rally 45.6% to $190 per share as the weaker dollar boosts tourism in the US.\", \"keywords\": [\"Airbnb\", \"stock market\", \"earnings\", \"tourism\", \"US dollar\"], \"insights\": [{\"ticker\": \"ABNB\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article highlights Airbnb\\'s strong financial performance, including 11% revenue growth, 16% increase in free cash flow, and 9% rise in net bookings. The company is also rewarding shareholders through share buybacks, and Wall Street analysts have a positive outlook on the stock.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article references Berkshire Hathaway\\'s decision to sell half of its stake in Apple, which could be interpreted as a neutral signal for the stock.\"}, {\"ticker\": \"BAC\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpB\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpE\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpK\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpM\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpN\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpO\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpP\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpQ\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BACpS\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BMLpG\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BMLpH\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BMLpJ\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BMLpL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"MERpK\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Berkshire Hathaway has closed some of its positions in Bank of America, which could be seen as a neutral signal for the stock.\"}, {\"ticker\": \"BKNG\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article compares Airbnb\\'s valuation to that of Booking Holdings, but does not provide a specific sentiment for the latter company.\"}, {\"ticker\": \"BRK.A\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Warren Buffett\\'s Berkshire Hathaway has sold half of its stake in Apple and closed some positions in Bank of America, which could be seen as a neutral signal for the broader market.\"}, {\"ticker\": \"BRK.B\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Warren Buffett\\'s Berkshire Hathaway has sold half of its stake in Apple and closed some positions in Bank of America, which could be seen as a neutral signal for the broader market.\"}]}, {\"id\": \"2aff70b4646c05b2e044c3e8df668a0445939b3cfb545b37a8796706d7f7de42\", \"publisher\": {\"name\": \"GlobeNewswire Inc.\", \"homepage_url\": \"https://www.globenewswire.com\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/globenewswire.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/globenewswire.ico\"}, \"title\": \"Global Refurbished Electronics Market Size To Worth USD 123.71 Billion By 2033 | CAGR Of 10.03%\", \"author\": \"Spherical Insights & Consulting\", \"published_utc\": \"2024-08-08T00:00:00Z\", \"article_url\": \"https://www.globenewswire.com/news-release/2024/08/08/2926517/0/en/Global-Refurbished-Electronics-Market-Size-To-Worth-USD-123-71-Billion-By-2033-CAGR-Of-10-03.html\", \"tickers\": [\"AAPL\", \"LNVGY\", \"EBAY\", \"DELL\", \"HPQ\", \"BBY\", \"NEGG\"], \"image_url\": \"https://ml.globenewswire.com/Resource/Download/b27a94e8-407e-46ae-a5c2-47bb2a1c8a2e\", \"description\": \"The global refurbished electronics market is expected to grow from $47.57 billion in 2023 to $123.71 billion by 2033, driven by environmentally conscious consumers and the need for cost-effective alternatives to new electronics.\", \"keywords\": [\"refurbished electronics\", \"e-waste\", \"sustainability\", \"cost-effective alternatives\"], \"insights\": [{\"ticker\": \"AAPL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Apple is a major player in the refurbished electronics market, indicating the company\\'s focus on sustainability and providing affordable options for consumers.\"}, {\"ticker\": \"LNVGY\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Lenovo\\'s presence in the refurbished electronics market demonstrates the company\\'s diversification and focus on providing affordable technology options.\"}, {\"ticker\": \"EBAY\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"eBay\\'s involvement in the refurbished electronics market suggests the platform\\'s role in facilitating the sale of reconditioned devices, catering to cost-conscious consumers.\"}, {\"ticker\": \"DELL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Dell\\'s inclusion as a key player in the refurbished electronics market indicates the company\\'s commitment to sustainability and providing affordable technology solutions.\"}, {\"ticker\": \"HPQ\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"HP\\'s refurbished laptop venture in India demonstrates the company\\'s efforts to expand its presence in the growing refurbished electronics market.\"}, {\"ticker\": \"BBY\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Best Buy\\'s presence in the refurbished electronics market demonstrates the company\\'s efforts to cater to cost-conscious consumers and promote sustainability.\"}, {\"ticker\": \"NEGG\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Newegg\\'s involvement in the refurbished electronics market indicates the company\\'s efforts to offer a wide range of affordable and sustainable technology options to consumers.\"}]}, {\"id\": \"167bf58248666b3a16f986ab7dbeaaa02e1a99f22350fbcb41cf00804471810c\", \"publisher\": {\"name\": \"Investing.com\", \"homepage_url\": \"https://www.investing.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/investing.png\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/investing.ico\"}, \"title\": \"Which \\'Magnificent 7\\' Stock Offers the Most Value for Money Today?\", \"author\": \"The Tokenist\", \"published_utc\": \"2024-08-07T19:23:00Z\", \"article_url\": \"https://www.investing.com/analysis/which-magnificent-7-stock-offers-the-most-value-for-money-today-200650755\", \"tickers\": [\"NVDA\", \"GOOG\", \"GOOGL\", \"AMZN\", \"META\", \"MSFT\", \"AAPL\", \"TSLA\"], \"amp_url\": \"https://m.investing.com/analysis/which-magnificent-7-stock-offers-the-most-value-for-money-today-200650755?ampMode=1\", \"image_url\": \"https://i-invdn-com.investing.com/redesign/images/seo/investingcom_analysis_og.jpg\", \"description\": \"The article analyzes the performance and outlook of the \\'Magnificent 7\\' stocks - Apple, Microsoft, Amazon, Alphabet, Meta, Nvidia, and Tesla - in the current market conditions. It highlights the strengths and challenges faced by each company and provides insights on which stock offers the most value for investors.\", \"keywords\": [\"Magnificent 7\", \"stocks\", \"market performance\", \"company analysis\", \"investment value\"], \"insights\": [{\"ticker\": \"NVDA\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"Despite facing a delay in the delivery of its Blackwell architecture chips, the article suggests that Nvidia\\'s AI-reliant business model and its dominance in the AI training framework will likely keep it at the center of the generative AI trend, making it a resilient investment option.\"}, {\"ticker\": \"GOOG\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article argues that despite the recent antitrust ruling against Google, Alphabet is likely to continue its growth trajectory, as it is deeply entrenched in the information landscape and its cloud services are expected to benefit from the integration of AI-based tools.\"}, {\"ticker\": \"GOOGL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article argues that despite the recent antitrust ruling against Google, Alphabet is likely to continue its growth trajectory, as it is deeply entrenched in the information landscape and its cloud services are expected to benefit from the integration of AI-based tools.\"}, {\"ticker\": \"AMZN\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"While Amazon\\'s cloud business remains strong, the article notes that the company\\'s overall performance has been lackluster, with missed quarterly estimates and a weaker-than-expected Q3 guidance. However, the article suggests that Amazon\\'s diversification into services like Prime Video and advertising could boost its revenue in the long run.\"}, {\"ticker\": \"META\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article highlights Meta\\'s resilience in the recent market pullback, noting that the company beat revenue and profit estimates in Q2 and provided better-than-expected Q3 guidance. The article also suggests that Meta\\'s Llama 3 AI model could be more capable than ChatGPT, further strengthening the company\\'s position.\"}, {\"ticker\": \"MSFT\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"While Microsoft reported better-than-expected total revenue in Q2, the article notes that the company\\'s Azure cloud growth fell short of expectations, and it also faces antitrust concerns related to the bundling of its products. However, the article suggests that severe penalties are unlikely.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article acknowledges the negative sentiment surrounding Apple, including the canceled Apple car project and declining iPhone sales in China. However, it suggests that the upcoming launch of Apple Intelligence, which combines text, image, and video manipulation capabilities, could bolster the company\\'s position.\"}, {\"ticker\": \"TSLA\", \"sentiment\": \"negative\", \"sentiment_reasoning\": \"The article highlights Tesla\\'s vulnerable position, facing tough competition from Chinese automakers and the challenge of overcoming the technical hurdle of full-self driving (FSD) technology. While the article notes that Tesla\\'s stock has a high valuation, it suggests that the company\\'s precarious position makes it a less attractive investment option compared to the other \\'Magnificent 7\\' stocks.\"}]}, {\"id\": \"f24e849794dc680a12fee8274eb3edd66e8b21cd8d0b441c9662800a3af75db8\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Where Will Duolingo Be in 5 Years?\", \"author\": \"Anders Bylund\", \"published_utc\": \"2024-08-07T15:37:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/07/where-will-duolingo-be-in-5-years/?source=iedfolrf0000001\", \"tickers\": [\"AAPL\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/786227/group-of-happy-teenagers.jpg\", \"description\": \"Duolingo, a leading language learning app, has nearly tripled its revenue in three years and has a higher cash-based profit margin than Apple and Alphabet. The company aims to expand beyond language learning to become a global education platform, similar to the growth trajectories of Netflix and Google.\", \"keywords\": [\"Duolingo\", \"language learning\", \"education platform\", \"revenue growth\", \"profit margin\", \"Netflix\", \"Google\"], \"insights\": [{\"ticker\": \"GOOG\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article compares Duolingo\\'s mission and long-term mindset to that of Alphabet (Google), noting that while Duolingo may not match the market success of its mentor, the mere attempt should generate shareholder value.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article highlights that Duolingo\\'s cash-based profit margin is higher than that of Apple, indicating the company\\'s strong financial performance.\"}]}, {\"id\": \"c72d90f54fb21db148b53ece4d66c0ce13b0335677bc633e435da704991f6f1f\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Prediction: This Will Be One of the World\\'s First $5 Trillion Artificial Intelligence (AI) Stocks\", \"author\": \"The Motley Fool\", \"published_utc\": \"2024-08-07T08:51:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/07/prediction-this-will-be-first-5-trillion-ai-stock/?source=iedfolrf0000001\", \"tickers\": [\"MSFT\", \"NVDA\", \"AAPL\", \"AMD\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785674/the-microsoft-logo-on-a-black-background.jpg\", \"description\": \"Microsoft is quickly becoming a leader in the AI industry, with its Copilot virtual assistant and Azure cloud platform driving significant growth. The article predicts Microsoft could reach a $5 trillion market cap within the next few years, driven by the company\\'s investments in AI infrastructure and software.\", \"keywords\": [\"Microsoft\", \"Artificial Intelligence\", \"Cloud Computing\", \"Copilot\", \"Azure\"], \"insights\": [{\"ticker\": \"MSFT\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article predicts that Microsoft\\'s investments in AI, including Copilot and Azure, will drive the company to a $5 trillion market cap within the next few years, representing significant growth potential.\"}, {\"ticker\": \"NVDA\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article cites Nvidia CEO Jensen Huang\\'s forecast that data center operators can generate $5 in revenue for every $1 spent on chips, which could benefit Microsoft\\'s AI initiatives.\"}, {\"ticker\": \"AAPL\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article mentions that Apple is similarly valued to Microsoft and has a path to the $5 trillion milestone, but does not provide any specific insights about Apple\\'s AI strategy or potential.\"}, {\"ticker\": \"AMD\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article briefly mentions that Microsoft is building data centers with chips from suppliers like Advanced Micro Devices, but does not provide any further analysis or insights about the company.\"}]}, {\"id\": \"5397eb0e051db10042f076aa48b1c70f32a7360cf999ac28c16fca2a7dcf4c9c\", \"publisher\": {\"name\": \"The Motley Fool\", \"homepage_url\": \"https://www.fool.com/\", \"logo_url\": \"https://s3.polygon.io/public/assets/news/logos/themotleyfool.svg\", \"favicon_url\": \"https://s3.polygon.io/public/assets/news/favicons/themotleyfool.ico\"}, \"title\": \"Warren Buffett Just Sold $90 Billion of Apple Stock. Could This Be the Biggest Investing Mistake He\\'s Ever Made?\", \"author\": \"The Motley Fool\", \"published_utc\": \"2024-08-07T08:50:00Z\", \"article_url\": \"https://www.fool.com/investing/2024/08/07/warren-buffett-just-sold-90-billion-of-apple-stock/?source=iedfolrf0000001\", \"tickers\": [\"AAPL\", \"BRK.A\", \"BRK.B\"], \"image_url\": \"https://g.foolcdn.com/editorial/images/785927/buffett22-tmf.png\", \"description\": \"Warren Buffett sold $90 billion worth of Apple stock, raising questions about whether it could be his biggest investing mistake. The article discusses Buffett\\'s potential reasons for the sale and whether Apple remains a good investment opportunity.\", \"keywords\": [\"Warren Buffett\", \"Apple\", \"Investing\", \"Mistake\"], \"insights\": [{\"ticker\": \"AAPL\", \"sentiment\": \"positive\", \"sentiment_reasoning\": \"The article suggests that Apple remains a good investment opportunity, particularly due to its new artificial intelligence capabilities and the potential for an \\'AI-driven iPhone upgrade supercycle\\'.\"}, {\"ticker\": \"BRK.A\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article discusses Buffett\\'s sale of Apple stock from Berkshire Hathaway\\'s portfolio, but does not make a clear judgment on the overall sentiment towards Berkshire Hathaway.\"}, {\"ticker\": \"BRK.B\", \"sentiment\": \"neutral\", \"sentiment_reasoning\": \"The article discusses Buffett\\'s sale of Apple stock from Berkshire Hathaway\\'s portfolio, but does not make a clear judgment on the overall sentiment towards Berkshire Hathaway.\"}]}]' name='polygon_ticker_news' tool_call_id='1'\n" ] } ], "source": [ - "# Print the latest reporting period's cash flow statement\n", - "print(f\"Cash flow statement: {financial_data['financials']['cash_flow_statement']}\")" + "from langchain_community.tools.polygon.ticker_news import PolygonTickerNews\n", + "\n", + "news_tool = PolygonTickerNews(api_wrapper=api_wrapper)\n", + "\n", + "# We can invoke directly with input\n", + "res = news_tool.invoke({\"query\": \"AAPL\"})\n", + "\n", + "model_generated_tool_call = {\n", + " \"args\": {\"query\": \"AAPL\"},\n", + " \"id\": \"1\",\n", + " \"name\": news_tool.name,\n", + " \"type\": \"tool_call\",\n", + "}\n", + "\n", + "# Or we can invoke with a tool call\n", + "res = news_tool.invoke(model_generated_tool_call)\n", + "\n", + "print(res)" + ] + }, + { + "cell_type": "markdown", + "id": "89786297", + "metadata": {}, + "source": [ + "### API reference\n", + "\n", + "For detailed documentation of all Polygon IO tools head to the API reference for each:\n", + "\n", + "- Aggregate: https://api.python.langchain.com/en/latest/tools/langchain_community.tools.polygon.aggregates.PolygonAggregates.html\n", + "- Financials: https://api.python.langchain.com/en/latest/tools/langchain_community.tools.polygon.financials.PolygonFinancials.html\n", + "- Last Quote: https://api.python.langchain.com/en/latest/tools/langchain_community.tools.polygon.last_quote.PolygonLastQuote.html\n", + "- Ticker News: https://api.python.langchain.com/en/latest/tools/langchain_community.tools.polygon.ticker_news.PolygonTickerNews.html" ] } ], "metadata": { - "colab": { - "provenance": [] - }, "kernelspec": { - "display_name": "Python (langchain)", + "display_name": "Python 3 (ipykernel)", "language": "python", - "name": "langchain" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -395,12 +677,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.18" - }, - "vscode": { - "interpreter": { - "hash": "53f3bc57609c7a84333bb558594977aa5b4026b1d6070b93987956689e367341" - } + "version": "3.11.9" } }, "nbformat": 4, diff --git a/docs/docs/integrations/tools/polygon_toolkit.ipynb b/docs/docs/integrations/tools/polygon_toolkit.ipynb deleted file mode 100644 index 87c8aa0af9982..0000000000000 --- a/docs/docs/integrations/tools/polygon_toolkit.ipynb +++ /dev/null @@ -1,187 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "id": "e6fd05db-21c2-4227-9900-0840bc62cb31", - "metadata": {}, - "source": [ - "# Polygon IO Toolkit\n", - "\n", - "This notebook shows how to use agents to interact with the [Polygon IO](https://polygon.io/) toolkit. The toolkit provides access to Polygon's Stock Market Data API." - ] - }, - { - "cell_type": "markdown", - "id": "a4da342d", - "metadata": {}, - "source": [ - "## Example Use\n", - "\n", - "\n", - "### Setup" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "c17b33e0", - "metadata": {}, - "outputs": [], - "source": [ - "%pip install --upgrade --quiet langchain-community > /dev/null" - ] - }, - { - "cell_type": "markdown", - "id": "3cd00ad2", - "metadata": {}, - "source": [ - "Get your Polygon IO API key [here](https://polygon.io/), and then set it below.\n", - "Note that the tool used in this example requires a \"Stocks Advanced\" subscription" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "id": "a180a2b8", - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "········\n" - ] - } - ], - "source": [ - "import getpass\n", - "import os\n", - "\n", - "os.environ[\"POLYGON_API_KEY\"] = getpass.getpass()" - ] - }, - { - "cell_type": "markdown", - "id": "ed6f89fa", - "metadata": {}, - "source": [ - "It's also helpful (but not needed) to set up [LangSmith](https://smith.langchain.com/) for best-in-class observability" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "56670cf6", - "metadata": {}, - "outputs": [], - "source": [ - "# os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n", - "# os.environ[\"LANGCHAIN_API_KEY\"] = getpass.getpass()" - ] - }, - { - "cell_type": "markdown", - "id": "7d93e6bd-03d7-4d3c-b915-8b73164e2ad8", - "metadata": {}, - "source": [ - "### Initializing the agent" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "id": "648a2cb2-308e-4b2e-9b73-37109be4e258", - "metadata": { - "is_executing": true - }, - "outputs": [], - "source": [ - "from langchain import hub\n", - "from langchain.agents import AgentExecutor, create_openai_functions_agent\n", - "from langchain_community.agent_toolkits.polygon.toolkit import PolygonToolkit\n", - "from langchain_community.utilities.polygon import PolygonAPIWrapper\n", - "from langchain_openai import ChatOpenAI\n", - "\n", - "llm = ChatOpenAI(temperature=0)\n", - "\n", - "instructions = \"\"\"You are an assistant.\"\"\"\n", - "base_prompt = hub.pull(\"langchain-ai/openai-functions-template\")\n", - "prompt = base_prompt.partial(instructions=instructions)" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "id": "18650040-0ff8-4c0f-a4f2-be6aad7fe63e", - "metadata": {}, - "outputs": [], - "source": [ - "polygon = PolygonAPIWrapper()\n", - "toolkit = PolygonToolkit.from_polygon_api_wrapper(polygon)\n", - "agent = create_openai_functions_agent(llm, toolkit.get_tools(), prompt)" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "id": "fd7463e4-8716-4d1d-860a-770533eaa742", - "metadata": {}, - "outputs": [], - "source": [ - "agent_executor = AgentExecutor(\n", - " agent=agent,\n", - " tools=toolkit.get_tools(),\n", - " verbose=True,\n", - ")" - ] - }, - { - "cell_type": "markdown", - "id": "71f05fc9-d80d-4614-b9a3-e0a5e43cbbbb", - "metadata": {}, - "source": [ - "### Get the last price quote for a stock" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "b97409f3-dc87-425d-b555-406cf8466a28", - "metadata": {}, - "outputs": [], - "source": [ - "agent_executor.invoke({\"input\": \"What is the latest stock price for AAPL?\"})" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "9e666ee1", - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.1" - } - }, - "nbformat": 4, - "nbformat_minor": 5 -} diff --git a/docs/vercel.json b/docs/vercel.json index dea9be45dfddb..36fbad5dc9521 100644 --- a/docs/vercel.json +++ b/docs/vercel.json @@ -78,6 +78,14 @@ "source": "/v0.2/docs/integrations/toolkits/airbyte_structured_qa/", "destination": "/v0.2/docs/integrations/document_loaders/airbyte/" }, + { + "source": "/v0.2/docs/integrations/tools/connery_toolkit/", + "destination": "/v0.2/docs/integrations/tools/connery/" + }, + { + "source": "/v0.2/docs/integrations/tools/polygon_toolkit/", + "destination": "/v0.2/docs/integrations/tools/polygon/" + }, { "source": "/v0.2/docs/integrations/toolkits/document_comparison_toolkit(/?)", "destination": "/v0.2/docs/tutorials/rag/"