Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
alexx-ftw authored Feb 19, 2021
2 parents fd9b27b + 9c2e385 commit 38a4029
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ keys.json
log.txt
.vscode/
__pycache__
version.json
version.json
8 changes: 3 additions & 5 deletions PumpBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import urllib
import os
import ssl

import time

# UTILS
def float_to_string(number, precision=10):
Expand All @@ -22,11 +22,9 @@ def log(information):
currentTime = time.strftime("%H:%M:%S", time.localtime())
logfile.writelines(str(currentTime) + " --- " + information)


# make log file
logfile = open("log.txt", "w+")


# read json file
try:
f = open('keys.json', )
Expand Down Expand Up @@ -103,7 +101,7 @@ def log(information):

# find amount of bitcoin to use
try:
BTCBalance = float(client.get_asset_balance(asset='BTC')['free'])
BTCBalance = float(client.get_asset_balance(asset=coinPair)['free'])
except (BinanceRequestException, BinanceAPIException):
log("Invalid API keys.")
sys.exit("Invalid API keys.")
Expand All @@ -125,7 +123,7 @@ def log(information):
| |
(_) ''')
# wait until coin input
print("\nInvesting amount for BTC: {}".format(BTCtoSell))
print("\nInvesting amount for BTC: {}".format(float_to_string(BTCtoSell)))
print("Investing amount in USD: {}".format(float_to_string((in_USD * BTCtoSell), 2)))
tradingPair = input("\nCoin pair: ").upper() + coinPair

Expand Down
11 changes: 2 additions & 9 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
"buyLimit": 1.15,
"percentOfWallet": 25,
"manualBTC": 0.00000000,
"profitMargin": 150,
"stopLoss": 0.90,





"comment": "DO NOT EDIT ANYTHING BELOW THIS LINE",
"currentVersion": 1
"profitMargin": 100,
"stopLoss": 0.90
}
Binary file added resources/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 38a4029

Please sign in to comment.