def forward(data=None, periods=180, to_df=False):

    send = {'periods': json.dumps(periods), 'data': json.dumps(data)}
    r = requests.post('http://127.0.0.1:5000/forward', data=send)
    response = r.json

    if to_df:
        import pandas as pd
        key = response.keys()[0]
        index = pd.to_datetime(response[key]['time'])
        df = pd.DataFrame({key: response[key]['data']}, index=index)
        return df

    return response
Given a list of timestamps, generate the next `periods` of hourly data,
dataset/ETHPy150Open wrobstory/mcflyin/examples/marty.py/forward