<jupyter_start><jupyter_text>Import library<jupyter_code>from Data import FinanceData<jupyter_output><empty_output><jupyter_text>Initialize object and parameters<jupyter_code>dataSource = FinanceData()
startDate = '2017-01-01'
endDate = '2018-01-01'
ticker = 'AMZN'
tickerList = ['AMZN','GS']<jupyter_output><empty_output><jupyter_text>Get pirce series for single tiker<jupyter_code>dataSource.getPrice(ticker,startDate,endDate,dateAscending = True)<jupyter_output><empty_output><jupyter_text>Get price for several ticker<jupyter_code>dataSource.getPriceTable(tickerList, startDate, endDate, dateAscending=True).head(10)<jupyter_output><empty_output><jupyter_text>Get aggregated infromation for single ticker Available aggregate frequency: D, W, M Available column names: open, high, low, close, adj_close, volume<jupyter_code>dataSource.getDetailPriceInfo(ticker, startDate, endDate,columns = ['open','close','high','volume'], frequency= 'W', dateAscending=True).head(10)<jupyter_output><empty_output><jupyter_text>Get stock volatility<jupyter_code>dataSource.getVol(ticker,window = 252)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11985688729874776, 'fraction_numerical': 0.020572450805008944, 'mean_word_length': 13.532467532467532, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '582053', 'license': 'MIT', 'n_tokens_mistral': 408, 'n_tokens_neox': 383, 'n_words': 59, 'path': 'Demo Notebook.ipynb', 'repo_name': 'yizhil/FinanceData', 'size': '1118'}