From db4e7e705ffd23fe7062211e887593a17e4d7b36 Mon Sep 17 00:00:00 2001 From: Schurck Date: Tue, 13 Jul 2021 21:26:47 +0200 Subject: [PATCH] fix buy --- tradoge.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tradoge.py b/tradoge.py index 9b0f208..815efd2 100644 --- a/tradoge.py +++ b/tradoge.py @@ -515,12 +515,12 @@ def main(): try: # Buy order - ''' + buy = client.order_market_buy( symbol='DOGE' + config['tradoge']['trading_pair'], quantity=total, ) - ''' + price = float(client.get_symbol_ticker(symbol='DOGEUSDT')['price']) # Use limit order instead with a different price to test ''' @@ -530,7 +530,7 @@ def main(): price='0.03' ) ''' - # print(buy) + print(buy) print(Fore.GREEN + 'PURCHASE COMPLETED' + Fore.RESET) buy_value = price * total print(datetime.now().strftime("%H:%M:%S") + ' TraDOGE bought ' + str(