StockAppScript
This is a function to retrieve stock prices from the FinnHub API, created to replace GOOGLEFINANCE() on Google Spreadsheets.
Install / Use
/learn @mjisoton/StockAppScriptREADME
StockAppScript
This is an App Script to be used on the Google platform, created in order to replace the GOOGLEFINANCE() function on Google Spreadsheets. It doesn't replicate every functionality, since it was made with the solo intent to request stock prices via an JSON API.
How to set up
It is pretty straightforward:
- Open the Google Spreadsheets you want;
- Menu Tools > Script Editor;
- Copy the function there;
- Save (Ctrl + S).
Examples
You just have to use the STOCK() function just like you use the native functions. For example:
=STOCK("MXRF11"; "c")
Parameters
The first parameter is the stock to be requested. Simple like that. But bare in mind that the function will append the ".SA" suffix to South American stock exchanges. If you want to request any other type of stocks, just change or remove the suffix on the function. The second parameter is always one letter, being:
- o: Open price of the day
- h: High price of the day
- l: Low price of the day
- c: Current price
- pc: Previous close price
About the API
FibbHub is a free service which provides an JSON API with "real-time stock info, institutional-grade fundamental and alternative data to supercharge your investment for FREE". To create an account, go to https://finnhub.io/. There is a paid tier which allows you to use very cool endpoints.
Related Skills
valuecell
10.3kValueCell is a community-driven, multi-agent platform for financial applications.
beanquery-mcp
45Beancount MCP Server is an experimental implementation that utilizes the Model Context Protocol (MCP) to enable AI assistants to query and analyze Beancount ledger files using Beancount Query Language (BQL) and the beanquery tool.
REFERENCE
An intelligent middleware layer between crypto wallets and traditional payment systems.
canadian-finance-planner-skill
10A Claude skill that turns Claude into your personal financial planner — built specifically for Canadians. Interviews, budgets, action plans, interactive dashboards, and ongoing coaching.
