I'm using the google finance module to get stock data in Python. I would like to isolate the LastTradePrice from the list and convert it into an integer. Any suggestions? Thanks.
from googlefinance import getQuotes
import json
stockinfo = getQuotes('VSMGX')
stockdata = json.dumps(stockinfo, indent=1)
The stockdata looks like this
[
{
"ID": "904726512134516",
"LastTradeDateTimeLong": "Jan 8, 4:00PM EST",
"Index": "MUTF",
"LastTradeWithCurrency": "$22.26",
"LastTradeTime": "4:00PM EST",
"StockSymbol": "VSMGX",
"LastTradePrice": "22.26",
"LastTradeDateTime": "2016-01-08T16:00:00Z"
}
]