Merge pull request #1 from Death916/test

fees
This commit is contained in:
Death916 2018-10-09 00:25:16 -07:00 committed by GitHub
commit 6df0bb9ce0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ def open_trade():
global buyprice global buyprice
buyprice = marketcheck(ticker) buyprice = marketcheck(ticker)
balance = trex.get_balance('BTC')['result']['Available'] balance = trex.get_balance('BTC')['result']['Available']
buy_amount = balance / buyprice buy_amount = (balance / buyprice) - (balance / buyprice) * .0025
print(trex.buy_limit(ticker, buy_amount, rate=buyprice)) print(trex.buy_limit(ticker, buy_amount, rate=buyprice))
print('buying', buy_amount, 'of', ticker) print('buying', buy_amount, 'of', ticker)
hist.tradehist('bought ' + str(buy_amount) + ' of ' + ticker + ' at ' + str(buyprice)) hist.tradehist('bought ' + str(buy_amount) + ' of ' + ticker + ' at ' + str(buyprice))