Example #1
0
 def __init__(self):
     print("GMMA initialized")
     self.btc_charts = historical.charts()
Example #2
0
        data = pd.DataFrame(all,
                            columns={
                                "1", "2", "3", "4", "5", "6", "7", "8", "9",
                                "10", "11", "12", "13", "14", "15", "16", "17",
                                "18", "19", "20", "21", "22", "23", "24"
                            })

        print("============================")
        print(buy_times)
        print(sell_times)

        cwd = os.getcwd()
        data.to_csv(cwd + ".csv", index=True)


if __name__ == '__main__':
    # directly

    btc_charts = historical.charts()

    (time_stamp, open_price, high_price, low_price,
     close_price) = btc_charts.get_price_array_till_finaltime()

    # print(close_price)

    gmma = GMMA()
    # gmma.save_chart_tillnow_to_csv(num=1000, periods="1H")
    #
    a = gmma.publish_current_limit_price(periods="1H")
    gmma.simulate(num=24 * 7 * 30 + 61, periods="1H")