diff --git a/stocks/stocks b/stocks/stocks index e1e1ffd..cbe9996 100755 --- a/stocks/stocks +++ b/stocks/stocks @@ -69,7 +69,7 @@ getStockInformation() export PYTHONIOENCODING=utf8 #necessary for python in some cases echo $stockInfo | python -c "import sys, json; print json.load(sys.stdin)['companyName']" > /dev/null 2>&1 || { echo "Not a valid stock symbol"; exit 1; } #checking if we get any information back from the server if not chances are it isnt a valid stock symbol # The rest of the code is just extrapolating the data with python from the JSON response - exchangeName=$(echo $stockInfo | python -c "import sys, json; print json.load(sys.stdin)['companyName']") + exchangeName=$(echo $stockInfo | python -c "import sys, json; print json.load(sys.stdin)['primaryExchange']") latestPrice=$(echo $stockInfo | python -c "import sys, json; print json.load(sys.stdin)['latestPrice']") open=$(echo $stockInfo | python -c "import sys, json; print json.load(sys.stdin)['open']") high=$(echo $stockInfo | python -c "import sys, json; print json.load(sys.stdin)['week52High']") diff --git a/stocks/stocks.png b/stocks/stocks.png index eaf9141..1b8d3b3 100644 Binary files a/stocks/stocks.png and b/stocks/stocks.png differ