From abf3931f04bb0f6bf1cdeebb47db25f0288a4762 Mon Sep 17 00:00:00 2001 From: Logan Gartner Date: Wed, 3 Feb 2021 14:01:00 -0700 Subject: [PATCH] More updates --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 013d18f..58dfe20 100644 --- a/main.py +++ b/main.py @@ -41,7 +41,7 @@ if __name__ == "__main__": # If short term goes above long term, buy if(float(k.shortEMA.tail(1)[0]) > float(k.longEMA.tail(1)[0])): print("Buying shit") - k.buyOrder(currency_pair, currency_buy, currency_sell, k.balances["vol"][currency_sell] * (1/k.prices.tail(1)[0])) + k.buyOrder(currency_pair, currency_buy, currency_sell, k.balances["vol"][currency_sell] * (1/k.prices.tail(1)[0][0])) print(k.balances) else: