-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpf_chart_maker.py
More file actions
423 lines (347 loc) Β· 18.6 KB
/
pf_chart_maker.py
File metadata and controls
423 lines (347 loc) Β· 18.6 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
#!/usr/bin/env python3
"""
==============================================================================
π CRYPTOBOTS.DEV - PUMPFUN CHART MAKER v1.2 - DEMO VERSION π
==============================================================================
β οΈ DEMONSTRATION VERSION - This shows the exact structure and functionality
of the real CryptoBots PumpFun Chart Maker, but uses simulated data instead
of making actual API calls or blockchain transactions.
π₯ GET FULL VERSION: https://cryptobots.dev (Starting at $0)
π¬ TELEGRAM SUPPORT: https://t.me/cryptobots_dev
FULL VERSION FEATURES:
π Real volume generation with multiple bot wallets
π― Chart pattern creation (pump, dump, volatile, balanced)
π° Multi-wallet coordination and management
π Actual PumpFun bonding curve trading
π Live chart manipulation and volume tracking
π Automated buy/sell cycles with smart timing
π Emergency shutdown and fund recovery systems
π‘οΈ Token2022 support and safety checks
This demo replicates the EXACT interface and workflow but with fake data.
==============================================================================
"""
import json
import time
import random
import os
import sys
# COLOR SETUP - EXACTLY LIKE ORIGINAL
os.system("color")
green = '\033[32m'
red = '\033[31m'
yellow = '\033[33m'
cyan = '\033[96m'
pink = '\033[95m'
gray = '\033[90m'
white = '\033[97m'
reset = '\033[0m'
# DEMO CONSTANTS
app_name = "pf_chart_maker_demo"
current_version = "v1.2-DEMO"
FREE_VERSION = True
MANUAL_MODE = False
VOLUME_MODE = False
# SIMULATED SETTINGS
RPC = "https://demo-rpc-node.com"
FUNDING_WALLET_PKEY = "DEMO_MODE_NO_REAL_PRIVATE_KEY"
funding_wallet_address = "DemoWallet1234567890abcdefghijklmnopqr"
max_cycles = 100
slippage = 5
sol_price = 248.75
# SAMPLE DATA FOR DEMO
SAMPLE_TOKENS = [
{"address": "JAGn8mstj4HakdiD8HkYsMuVsXY7fc842FyFyXwUpump", "symbol": "JAGUAR", "creator": "9x7K...demo"},
{"address": "SHIBrocketMoonTokenForDemoOnly123456789pump", "symbol": "SHIBRKT", "creator": "8v6J...demo"},
{"address": "PEPEaiGeneratedTokenForChartDemo987654pump", "symbol": "PEPEAI", "creator": "7u5H...demo"},
{"address": "DOGEvolumeBotTargetTokenDemo1234567890pump", "symbol": "DOGEVOL", "creator": "6t4G...demo"},
{"address": "MEMElordChartMakerTokenDemo0987654321pump", "symbol": "MEMELRD", "creator": "5s3F...demo"}
]
CHART_PATTERNS = [
{"name": "Balanced", "description": "50/50 buy/sell ratio for natural volume"},
{"name": "Pump", "description": "70% buy, 30% sell - creates upward momentum"},
{"name": "Volatile", "description": "Alternating pump/dump phases every 10 cycles"},
{"name": "Accumulation", "description": "80% buy, 20% sell - steady accumulation"},
{"name": "Distribution", "description": "30% buy, 70% sell - controlled distribution"}
]
class PumpFunChartMakerDemo:
"""
Demo version of PumpFun Chart Maker with simulated operations
"""
def __init__(self):
self.session_start = time.time()
self.active_session = None
self.config = self.load_demo_config()
def load_demo_config(self):
"""Load demo configuration"""
return {
"max_wallets": 25,
"min_wallets": 10,
"funding_amount": 0.01,
"base_trade_size": 0.002,
"max_trade_size": 0.008,
"cycle_delay": 2.0,
"emergency_stop": False
}
def print_banner(self):
"""Print the exact banner from original"""
print(f"""
{red}
( ( ) ( * )
)\ ))\ ) ( /( )\ ) ( ` ( ( /( * )
(()/(()/( ( ( )\())(()/( ( )\))( ( ( )\ )\())` ) /(
/(_))(_)) )\ )((_)\ /(_)) )\((_)()\ )\ )((_|(_)\ ( )(_))
(_))(_))_| ((_)((_)((_)(_)) _ ((_|_()((_|(_) ((_)_ ((_)(_(_()) {reset}{green}
| _ \ |_ \ \ / // _ \| | | | | | \/ | __| | _ )/ _ \|_ _|
| _/ __| \ V /| (_) | |_| |_| | |\/| | _| | _ \ (_) | | |
|_| |_| \_/ \___/|____\___/|_| |_|___| |___/\___/ |_| {reset}
{red}YOUR ULTIMATE CHART MAKER, VOLUME AND BUNDLING BOT FOR PUMPFUN{reset}
{gray}________________________________________________________________
t.me/cryptobots_dev | www.cryptobots.dev | @cryptobots_dev
________________________________________________________________{reset}
{yellow}π FREE DEMO VERSION:{reset}
{gray}β’ Shows exact interface and functionality of full version{reset}
{gray}β’ All operations are simulated (no real trading){reset}
{gray}β’ Perfect for testing strategies and learning the system{reset}
{green}π FULL VERSION FEATURES:{reset}
{gray}β’ Real volume generation with 25+ bot wallets{reset}
{gray}β’ Professional chart patterns (pump, dump, volatile, balanced){reset}
{gray}β’ Multi-wallet coordination and smart funding{reset}
{gray}β’ Live PumpFun bonding curve integration{reset}
{gray}β’ Emergency shutdown and recovery systems{reset}
{gray}β’ Comprehensive analytics and P&L tracking{reset}
{cyan}π Get Full Version: {white}https://cryptobots.dev{reset} {yellow}(Starting at $0){reset}
{cyan}π¬ Support & Updates: {white}https://t.me/cryptobots_dev{reset}
""")
def show_main_menu(self):
"""Show main menu exactly like original"""
self.print_banner()
print(f"\n{white}Select Operation Mode:{reset}")
print(f" {gray}β’ {green}[1]{reset} Manual Buy/Sell Only")
print(f" {gray}β’ {green}[2]{reset} Volume/Chart Maker")
print(f" {gray}β’ {red}[0]{reset} Exit")
return input(f"\n{yellow}Enter choice (0-2): {reset}").strip()
def simulate_token_input(self):
"""Simulate token input selection"""
print(f"\n{white}Choose token input method:{reset}")
print(f" {gray}β’ {green}[1]{reset} Enter token mint address manually")
print(f" {gray}β’ {green}[2]{reset} Select from sample tokens")
print(f" {gray}β’ {red}[0]{reset} Back to main menu")
choice = input(f"\n{yellow}Enter choice (0-2): {reset}").strip()
if choice == "1":
token_mint = input(f"{yellow}Enter token mint address: {reset}").strip()
if not token_mint:
print(f"{red}β Invalid token address!{reset}")
return None, None
symbol = input(f"{yellow}Enter token symbol (optional): {reset}").strip() or "UNKNOWN"
return token_mint, symbol
elif choice == "2":
print(f"\n{white}Sample Tokens Available for Demo:{reset}")
for i, token in enumerate(SAMPLE_TOKENS, 1):
print(f" {gray}β’ {green}[{i}]{reset} {token['symbol']} - {token['address'][:8]}...{token['address'][-8:]}")
try:
token_choice = int(input(f"\n{yellow}Select token (1-{len(SAMPLE_TOKENS)}): {reset}").strip())
if 1 <= token_choice <= len(SAMPLE_TOKENS):
selected = SAMPLE_TOKENS[token_choice - 1]
return selected["address"], selected["symbol"]
else:
print(f"{red}β Invalid selection!{reset}")
return None, None
except ValueError:
print(f"{red}β Please enter a valid number!{reset}")
return None, None
elif choice == "0":
return None, None
else:
print(f"{red}β Invalid choice!{reset}")
return None, None
def simulate_wallet_setup(self, pattern):
"""Simulate wallet generation and funding"""
wallet_count = random.randint(self.config["min_wallets"], self.config["max_wallets"])
print(f"\n{yellow}π Generating {wallet_count} volume wallets...{reset}")
wallets = []
for i in range(wallet_count):
wallet_id = f"VolWallet{i+1:03d}"
pkey = f"DEMO_PRIVATE_KEY_{i+1:03d}_{''.join(random.choices('0123456789abcdef', k=32))}"
print(f" {gray}β’ {green}β{reset} Wallet {i+1:2d}: {wallet_id} - Balance: 0.00 SOL")
wallets.append({
"id": wallet_id,
"address": f"{wallet_id}_{''.join(random.choices('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz', k=32))}",
"pkey": pkey,
"balance": 0.0,
"funded": False
})
time.sleep(0.1) # Simulate wallet generation time
print(f"\n{yellow}π° Funding wallets from main funding wallet...{reset}")
funding_amount = self.config["funding_amount"]
for i, wallet in enumerate(wallets):
wallet["balance"] = funding_amount
wallet["funded"] = True
print(f" {gray}β’ {green}β{reset} Funded {wallet['id']}: {funding_amount} SOL")
time.sleep(0.05) # Simulate funding time
total_funded = wallet_count * funding_amount
print(f"\n{green}β
Successfully generated and funded {wallet_count} wallets!{reset}")
print(f"{white}π Total SOL distributed: {total_funded:.3f} SOL{reset}")
return wallets
def simulate_volume_generation(self, token_mint, symbol, pattern, wallets):
"""Simulate volume generation with chart patterns"""
print(f"\n{white}π― Target Token: {green}{symbol}{reset} ({token_mint[:8]}...{token_mint[-8:]})")
print(f"{white}π Chart Pattern: {green}{pattern['name']}{reset} - {pattern['description']}")
print(f"{white}π€ Active Wallets: {green}{len(wallets)}{reset}")
print(f"{white}β±οΈ Cycle Delay: {green}{self.config['cycle_delay']}s{reset}")
# Simulate volume session
session = {
"token_mint": token_mint,
"symbol": symbol,
"pattern": pattern,
"start_time": time.time(),
"total_volume": 0.0,
"buy_count": 0,
"sell_count": 0,
"cycles_completed": 0,
"active": True
}
print(f"\n{green}π Starting volume generation...{reset}")
print(f"{yellow}Press Ctrl+C to stop gracefully{reset}\n")
try:
for cycle in range(50): # Demo limited to 50 cycles
if not session["active"]:
break
cycle_start = time.time()
print(f"{cyan}βββ CYCLE {cycle + 1} βββ{reset}")
# Determine action based on pattern
if pattern["name"] == "Balanced":
action = "BUY" if random.random() < 0.5 else "SELL"
elif pattern["name"] == "Pump":
action = "BUY" if random.random() < 0.7 else "SELL"
elif pattern["name"] == "Volatile":
if cycle % 10 < 5:
action = "BUY" if random.random() < 0.8 else "SELL"
else:
action = "BUY" if random.random() < 0.2 else "SELL"
elif pattern["name"] == "Accumulation":
action = "BUY" if random.random() < 0.8 else "SELL"
else: # Distribution
action = "BUY" if random.random() < 0.3 else "SELL"
# Select random wallet
wallet = random.choice(wallets)
trade_size = random.uniform(self.config["base_trade_size"], self.config["max_trade_size"])
if action == "BUY":
session["buy_count"] += 1
session["total_volume"] += trade_size
print(f" {green}π BUY{reset} | Wallet: {wallet['id']} | Size: {trade_size:.4f} SOL | Price: ${random.uniform(0.0001, 0.001):.6f}")
else:
session["sell_count"] += 1
session["total_volume"] += trade_size
print(f" {red}π SELL{reset} | Wallet: {wallet['id']} | Size: {trade_size:.4f} SOL | Price: ${random.uniform(0.0001, 0.001):.6f}")
session["cycles_completed"] += 1
# Show session stats every 10 cycles
if (cycle + 1) % 10 == 0:
runtime = time.time() - session["start_time"]
print(f"\n{white}π SESSION STATS:{reset}")
print(f" {gray}β’ Runtime: {runtime:.1f}s{reset}")
print(f" {gray}β’ Total Volume: {session['total_volume']:.4f} SOL{reset}")
print(f" {gray}β’ Buy Orders: {session['buy_count']}{reset}")
print(f" {gray}β’ Sell Orders: {session['sell_count']}{reset}")
print(f" {gray}β’ Cycles: {session['cycles_completed']}{reset}\n")
# Cycle delay
elapsed = time.time() - cycle_start
remaining = max(0, self.config["cycle_delay"] - elapsed)
if remaining > 0:
time.sleep(remaining)
except KeyboardInterrupt:
print(f"\n{yellow}βΉοΈ Volume generation stopped by user{reset}")
session["active"] = False
return session
def simulate_cleanup(self, wallets):
"""Simulate fund recovery and cleanup"""
print(f"\n{yellow}π° Recovering funds from volume wallets...{reset}")
total_recovered = 0.0
for wallet in wallets:
# Simulate remaining balance
remaining = random.uniform(0.005, wallet["balance"])
total_recovered += remaining
print(f" {gray}β’ {green}β{reset} Recovered {remaining:.4f} SOL from {wallet['id']}")
time.sleep(0.05)
print(f"\n{green}β
Fund recovery completed!{reset}")
print(f"{white}π° Total recovered: {total_recovered:.4f} SOL{reset}")
print(f"{white}π Recovery rate: {(total_recovered / (len(wallets) * self.config['funding_amount']) * 100):.1f}%{reset}")
def show_session_summary(self, session, wallets):
"""Show detailed session summary"""
runtime = time.time() - session["start_time"]
print(f"\n{white}π― Token Details:{reset}")
print(f" {gray}β’ Symbol: {session['symbol']}{reset}")
print(f" {gray}β’ Address: {session['token_mint'][:8]}...{session['token_mint'][-8:]}{reset}")
print(f" {gray}β’ Pattern: {session['pattern']['name']}{reset}")
print(f"\n{white}π Volume Statistics:{reset}")
print(f" {gray}β’ Total Volume: {session['total_volume']:.4f} SOL{reset}")
print(f" {gray}β’ Buy Orders: {session['buy_count']}{reset}")
print(f" {gray}β’ Sell Orders: {session['sell_count']}{reset}")
print(f" {gray}β’ Cycles Completed: {session['cycles_completed']}{reset}")
print(f" {gray}β’ Runtime: {runtime:.1f} seconds{reset}")
print(f"\n{white}π€ Wallet Performance:{reset}")
print(f" {gray}β’ Active Wallets: {len(wallets)}{reset}")
print(f" {gray}β’ Total Funded: {len(wallets) * self.config['funding_amount']:.4f} SOL{reset}")
print(f" {gray}β’ Avg Volume per Wallet: {session['total_volume'] / len(wallets):.6f} SOL{reset}")
def run_manual_mode(self):
"""Run manual buy/sell mode"""
token_mint, symbol = self.simulate_token_input()
if not token_mint:
return
print(f"\n{green}β
Manual mode activated for {symbol}!{reset}")
print(f"{white}In the full version, you would now have access to:{reset}")
print(f" {gray}β’ Real-time buy/sell controls{reset}")
print(f" {gray}β’ Custom trade sizing{reset}")
print(f" {gray}β’ Slippage controls{reset}")
print(f" {gray}β’ Live price monitoring{reset}")
print(f" {gray}β’ P&L tracking{reset}")
input(f"\n{yellow}Press Enter to return to main menu...{reset}")
def run_volume_mode(self):
"""Run volume/chart maker mode"""
token_mint, symbol = self.simulate_token_input()
if not token_mint:
return
# Pattern selection
print(f"\n{white}Available Chart Patterns:{reset}")
for i, pattern in enumerate(CHART_PATTERNS, 1):
print(f" {gray}β’ {green}[{i}]{reset} {pattern['name']} - {pattern['description']}")
try:
pattern_choice = int(input(f"\n{yellow}Select pattern (1-{len(CHART_PATTERNS)}): {reset}").strip())
if 1 <= pattern_choice <= len(CHART_PATTERNS):
selected_pattern = CHART_PATTERNS[pattern_choice - 1]
else:
print(f"{red}β Invalid selection!{reset}")
return
except ValueError:
print(f"{red}β Please enter a valid number!{reset}")
return
# Setup and run
wallets = self.simulate_wallet_setup(selected_pattern)
session = self.simulate_volume_generation(token_mint, symbol, selected_pattern, wallets)
self.simulate_cleanup(wallets)
self.show_session_summary(session, wallets)
input(f"\n{yellow}Press Enter to return to main menu...{reset}")
def run(self):
"""Main application loop"""
while True:
choice = self.show_main_menu()
if choice == "1":
self.run_manual_mode()
elif choice == "2":
self.run_volume_mode()
elif choice == "0":
print(f"\n{green}π Thanks for trying CryptoBots PumpFun Chart Maker Demo!{reset}")
print(f"{cyan}π Get the full version at: {white}https://cryptobots.dev{reset}")
print(f"{cyan}π¬ Join our community: {white}https://t.me/cryptobots_dev{reset}")
break
else:
print(f"{red}β Invalid choice! Please select 0-2.{reset}")
time.sleep(1)
if __name__ == "__main__":
try:
demo = PumpFunChartMakerDemo()
demo.run()
except KeyboardInterrupt:
print(f"\n\n{yellow}Program interrupted by user. Goodbye!{reset}")
except Exception as e:
print(f"\n{red}β An error occurred: {str(e)}{reset}")
print(f"{cyan}π¬ Report issues at: {white}https://t.me/cryptobots_dev{reset}")