import requests


def import_web_intraday(ticker):
	"""
	Queries the website of the stock market data provider AlphaVantage (AV). AV provides stock, 
	forex, and cryptocurrency data. AV limits access for free users as such: 
		1. maximum of : 5 unique queries per minute, and 500 unique queries per 24h period
		2. Intraday history is capped at the past five days (current + 4)
		3. After-hour data is not available
	The provided data is JSON formatted. The data is a series of 'ticks' for each minute during 
	trading hours: open (09:30am) to closing (04:00pm). 
	Each tick lists the following stock data: open, close, low, high, average, volume
	--------
	:param <ticker>: String ; ticker of a company traded on the financial markets
	"""
	website = 'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol='+ticker+'&interval=1min&apikey=’+YOUR_API_KEY+’&outputsize=full&datatype=json'
	raw_json_intraday_data = requests.get(website)
	return raw_json_intraday_data.json()