private Stock fromJson(JSONObject stockJson) {
		try {
			Stock ret = new Stock();
			ret.setSymbol(stockJson.getString("Symbol"));
			if (!stockJson.isNull("LastTradePriceOnly"))
				ret.setAsk((float) stockJson.getDouble("LastTradePriceOnly"));
			if (!stockJson.isNull("Bid"))
				ret.setBid((float) stockJson.getDouble("Bid"));

			if (ret.getAsk() != 0 && ret.getBid() == 0) {
				// create my own spread.
				ret.setBid(ret.getAsk() * (1 - SPREAD));
			}

			ret.setDate(new Date());

			return ret;
		} catch (JSONException e) {
			log.log(Level.SEVERE, e.getMessage());
			return null;
		}
	}