Skip to content

Australian stock exchanges Apps Script functions for Google Sheets

License

Notifications You must be signed in to change notification settings

billsegall/oz-sheets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

oz-sheets

Fetch stock market data for Australian stock markets into Google Sheeets.

It exists as the googlefinance() functions support only two decimal places for Australian equities and I needed more granularity/accuracy.

This provides ASX and NSX functions in Apps Script for Google Sheets, the original idea of which came from a reddit post

ASX

ASX(instrument, attribute) will return the value of any attribute for a given instrument from the ASX website.

For convenience we supply a per-attribute lookup function for each supported attribute (see below) of the form:

ASX_last_price(instrument) will fetch the current (but 30m delayed) price from the ASX website

ASX_all(instrument) will insert an array of all keys/attributes. You can transpose() that to make it horizontal or extract what you need directly, e.g., index(ASX_all("BHP"), 12, 2) will get you the eps.

Currently supported attributes are:

annual_dividend_yield
average_daily_volume
bid_price
change_in_percent
change_price
code
day_high_price
day_low_price
deprecated_market_cap
deprecated_number_of_shares
desc_full
eps
isin_code
last_price
last_trade_date
market_cap
number_of_shares
offer_price
open_price
pe
previous_close_price
previous_day_percentage_change
suspended
volume
year_change_in_percentage
year_change_price
year_high_date
year_high_price
year_low_date
year_low_price
year_open_date
year_open_price

NSX

NSX_last_price(instrument) will fetch the current (but 30m delayed) price from the NSX website

About

Australian stock exchanges Apps Script functions for Google Sheets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published