def parse_txt(path):
    """
    parse space seperated file into json
    assumes the format
    Date	Close
    02/01/2018 16:00:00	3.66
    03/01/2018 16:00:00	3.66
    ..      ..
    """
    dates = []
    values = []
    with open(path, 'r') as f:
        f.readline() # skip first line
        for line in f:
            split = line.split()
            dates.append(' '.join(split[0:1]))
            values.append(float(split[-1]))
            
    return {
        "dates": dates,
        "values": values,
    }