<commit_before># Method for stock depot - simulator

total = 1000 # available money in depot<commit_msg>added stock info<commit_after># Method for stock depot - simulator
import ystockquote

# method for getting stock price via ystockquote:
def getStockPrice(stock):
    allInfo = ystockquote.get_all(stock)
    return allInfo["price"]

# method for getting historical stock price:

def getStockHistory(stock, start, end):
    allInfo = ystockquote.get_historical_prices(stock, start, end)
    return allInfo


total = 1000 # available money in depot

stocks = ['TSLA']


price = getStockHistory(stocks[0], '2010-01-01', '2016-02-01')

print price


{'fraction_non_alphanumeric': 0.09244992295839753, 'fraction_numerical': 0.03852080123266564, 'mean_word_length': 4.803571428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '4052822', 'n_tokens_mistral': 226, 'n_tokens_neox': 197, 'n_words': 64}