-
Notifications
You must be signed in to change notification settings - Fork 48
/
main.py
52 lines (41 loc) · 1.52 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import time
import ccxt
from termcolor import cprint
import random
def binance_withdraw(address, amount_to_withdrawal, symbolWithdraw, network, API_KEY, API_SECRET):
account_binance = ccxt.binance({
'apiKey': API_KEY,
'secret': API_SECRET,
'enableRateLimit': True,
'options': {
'defaultType': 'spot'
}
})
try:
account_binance.withdraw(
code = symbolWithdraw,
amount = amount_to_withdrawal,
address = address,
tag = None,
params = {
"network": network
}
)
cprint(f">>> Успешно | {address} | {amount_to_withdrawal}", "green")
except Exception as error:
cprint(f">>> Неудачно | {address} | ошибка : {error}", "red")
if __name__ == "__main__":
with open("wallets.txt", "r") as f:
wallets_list = [row.strip() for row in f]
symbolWithdraw = 'ETH'
network = 'ARBITRUM' # ETH | BSC | AVAXC | MATIC | ARBITRUM | OPTIMISM | APT
# api_keys of binance
API_KEY = "your_api_key"
API_SECRET = "your_api_secret"
AMOUNT_FROM = 0.001
AMOUNT_TO = 0.002
cprint('\a\n/// start withdrawing...', 'white')
for wallet in wallets_list:
amount_to_withdrawal = round(random.uniform(AMOUNT_FROM, AMOUNT_TO), 6) # amount from ... to ...
binance_withdraw(wallet, amount_to_withdrawal, symbolWithdraw, network, API_KEY, API_SECRET)
time.sleep(random.randint(10, 30))