I am using ImportJSON function in Google sheets to import data values from AlphaVantage API.
For example, the query string: https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&apikey=demo
returns:
{
"Meta Data": {
"1. Information": "Intraday (5min) open, high, low, close prices and volume",
"2. Symbol": "MSFT",
"3. Last Refreshed": "2019-02-13 16:00:00",
"4. Interval": "5min",
"5. Output Size": "Compact",
"6. Time Zone": "US/Eastern"
},
"Time Series (5min)": {
"2019-02-13 16:00:00": {
"1. open": "106.8400",
"2. high": "107.0000",
"3. low": "106.7200",
"4. close": "106.7800",
"5. volume": "855430"
},
"2019-02-13 15:55:00": {
"1. open": "106.9100",
"2. high": "106.9350",
"3. low": "106.7800",
"4. close": "106.8300",
"5. volume": "336088"
},
"2019-02-13 15:50:00": {
"1. open": "107.0800",
"2. high": "107.0821",
"3. low": "106.8500",
"4. close": "106.9300",
"5. volume": "279939"
}
}
}
I want to display the last updated "closing price" value in my Google sheets cell. So I am using this query:
IMPORTJSON("https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=acc.ns&interval=1min&apikey=OJATWN8EM09KRWZS", "Time Series (1min)/4. close" )
But it is showing
Node not available" error.
Can anyone help me out on what I am doing wrong?