Google Finance
Description: Empower your agents to retrieve stock data using Arcade.
Author: Arcade
Code: GitHub
Auth: API Key
The Arcade Google Finance toolkit lets you fetch real-time and historical stock data with ease. Use these tools to build intelligent agents and applications that fetch:
- Stock summary data.
- Historical stock data.
Install
pip install arcade_search
pip installing the toolkit is only needed if you are self-hosting Arcade. You do not need to install the toolkit if you’re using Arcade Cloud.
Available Tools
Tool Name | Description |
---|---|
GetStockSummary | Retrieve current price and recent price movement of a stock. |
GetStockHistoricalData | Fetch historical stock price and volume data for a specified time window. |
If you need an action that’s not listed here, please contact us to request a new tool, or create your own tools.
GetStockSummary
Retrieve summary information for a given stock using the Google Finance API via SerpAPI. This tool returns the current price and price change from the most recent trading day.
Parameters
ticker_symbol
(string, required): The stock ticker, e.g., ‘GOOG’.exchange_identifier
(string, required): The market identifier, e.g., ‘NASDAQ’.
GetStockHistoricalData
Fetch historical data for a given stock over a defined time window. This tool returns the stock’s price and volume data along with key events when available.
Parameters
ticker_symbol
(string, required): The stock ticker, e.g., ‘GOOG’.exchange_identifier
(string, required): The market identifier, e.g., ‘NASDAQ’ or ‘NYSE’.window
(enum (GoogleFinanceWindow), optional, defaults to ONE_MONTH): Time window for the graph data.
Auth
The Arcade Google Finance toolkit uses the SerpAPI to get stock data from Google Finance.
- Secret:
SERP_API_KEY
: Your SerpAPI API key.
Setting the SERP_API_KEY
secret is only required if you are self-hosting Arcade. If you’re using Arcade Cloud, the secret is already set for you. To manage your secrets, go to the Secrets page in the Arcade Dashboard.