Skip to content

Commit

Permalink
fix buy
Browse files Browse the repository at this point in the history
  • Loading branch information
gschurck committed Jul 13, 2021
1 parent 6e3c463 commit db4e7e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tradoge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
Expand All @@ -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(
Expand Down

0 comments on commit db4e7e7

Please sign in to comment.