More updates
This commit is contained in:
parent
33c262b18a
commit
abf3931f04
1 changed files with 1 additions and 1 deletions
2
main.py
2
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:
|
||||
|
|
Loading…
Reference in a new issue