input: Write a python function to fetch stock quotes using an API.
  assert getStockQuotes('AAPL') == {'symbol': 'AAPL', 'price': 150.0}
  assert getStockQuotes('GOOGL') == {'symbol': 'GOOGL', 'price': 2750.0}
  assert getStockQuotes('AMZN') == {'symbol': 'AMZN', 'price': 3400.0}
output: import requests
  
  def getStockQuotes(symbol):
      api_url = f'https://api.example.com/stock/{symbol}/quote'  # Replace with a real API endpoint
      response = requests.get(api_url)
      data = response.json()
      return {'symbol': symbol, 'price': data['price']}