summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Stadler <patrick.stadler@gmail.com>2023-05-07 22:13:45 +0200
committerGitHub <noreply@github.com>2023-05-07 22:13:45 +0200
commit127cfb99164ba4007affc1314dbf78723f949986 (patch)
treeeae2002cbc83093cb5a3872cf96644b3ecfbf2e7
parentaf7a595177cf999a4d5f2fca842030abab768156 (diff)
switch to v6 endpoint (#38)
-rwxr-xr-xticker.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ticker.sh b/ticker.sh
index 7606940..6a1736d 100755
--- a/ticker.sh
+++ b/ticker.sh
@@ -18,7 +18,7 @@ fi
FIELDS=(symbol marketState regularMarketPrice regularMarketChange regularMarketChangePercent \
preMarketPrice preMarketChange preMarketChangePercent postMarketPrice postMarketChange postMarketChangePercent)
-API_ENDPOINT="https://query1.finance.yahoo.com/v7/finance/quote?lang=en-US&region=US&corsDomain=finance.yahoo.com"
+API_ENDPOINT="https://query1.finance.yahoo.com/v6/finance/quote?lang=en-US&region=US&corsDomain=finance.yahoo.com"
if [ -z "$NO_COLOR" ]; then
: "${COLOR_BOLD:=\e[1;37m}"