More updates

This commit is contained in:
Logan G 2021-02-03 14:01:00 -07:00
parent 33c262b18a
commit abf3931f04
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -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: