-
Notifications
You must be signed in to change notification settings - Fork 0
/
polo.py
585 lines (580 loc) · 32.1 KB
/
polo.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
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
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
#!/usr/bin/env python3
from telethon import TelegramClient
from telethon.tl.functions.messages import SendMessageRequest
from telethon.tl import types, functions
import time
from subprocess import *
import os, signal
global working
working = False
def dat(update):
global working
data = str(update)
try:
if ("#AMP" in data) and (working == False):
print("A AMP WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.AMP-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.AMP-BTC", shell=True)
working = False
if ("#ARDR" in data) and (working == False):
print("A ARDR WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.ARDR-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.ARDR-BTC", shell=True)
working = False
if ("#BCH" in data) and (working == False):
print("A BCH WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.BCH-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.BCH-BTC", shell=True)
working = False
if ("#BCN" in data) and (working == False):
print("A BCN WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.BCN-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.BCN-BTC", shell=True)
working = False
if ("#BCY" in data) and (working == False):
print("A BCY WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.BCY-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.BCY-BTC", shell=True)
working = False
if ("#BELA" in data) and (working == False):
print("A BELA WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.BELA-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.BELA-BTC", shell=True)
working = False
if ("#BLK" in data) and (working == False):
print("A BLK WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.BLK-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.BLK-BTC", shell=True)
working = False
if ("#BTCD" in data) and (working == False):
print("A BTCD WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.BTCD-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.BTCD-BTC", shell=True)
working = False
if ("#BTM" in data) and (working == False):
print("A BTM WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.BTM-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.BTM-BTC", shell=True)
working = False
if ("#BTS" in data) and (working == False):
print("A BTS WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.BTS-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.BTS-BTC", shell=True)
working = False
if ("#BURST" in data) and (working == False):
print("A BURST WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.BURST-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.BURST-BTC", shell=True)
working = False
if ("#CLAM" in data) and (working == False):
print("A CLAM WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.CLAM-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.CLAM-BTC", shell=True)
working = False
if ("#CVC" in data) and (working == False):
print("A CVC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.CVC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.CVC-BTC", shell=True)
working = False
if ("#DASH" in data) and (working == False):
print("A DASH WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.DASH-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.DASH-BTC", shell=True)
working = False
if ("#DCR" in data) and (working == False):
print("A DCR WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.DCR-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.DCR-BTC", shell=True)
working = False
if ("#DGB" in data) and (working == False):
print("A DGB WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.DGB-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.DGB-BTC", shell=True)
working = False
if ("#DOGE" in data) and (working == False):
print("A DOGE WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.DOGE-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.DOGE-BTC", shell=True)
working = False
if ("#EMC2" in data) and (working == False):
print("A EMC2 WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.EMC2-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.EMC2-BTC", shell=True)
working = False
if ("#ETC" in data) and (working == False):
print("A ETC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.ETC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.ETC-BTC", shell=True)
working = False
if ("#ETH" in data) and (working == False):
print("A ETH WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.ETH-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.ETH-BTC", shell=True)
working = False
if ("#EXP" in data) and (working == False):
print("A EXP WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.EXP-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.EXP-BTC", shell=True)
working = False
if ("#FCT" in data) and (working == False):
print("A FCT WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.FCT-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.FCT-BTC", shell=True)
working = False
if ("#FLDC" in data) and (working == False):
print("A FLDC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.FLDC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.FLDC-BTC", shell=True)
working = False
if ("#FLO" in data) and (working == False):
print("A FLO WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.FLO-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.FLO-BTC", shell=True)
working = False
if ("#GAME" in data) and (working == False):
print("A GAME WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.GAME-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.GAME-BTC", shell=True)
working = False
if ("#GAS" in data) and (working == False):
print("A GAS WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.GAS-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.GAS-BTC", shell=True)
working = False
if ("#GNO" in data) and (working == False):
print("A GNO WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.GNO-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.GNO-BTC", shell=True)
working = False
if ("#GNT" in data) and (working == False):
print("A GNT WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.GNT-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.GNT-BTC", shell=True)
working = False
if ("#GRC" in data) and (working == False):
print("A GRC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.GRC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.GRC-BTC", shell=True)
working = False
if ("#HUC" in data) and (working == False):
print("A HUC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.HUC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.HUC-BTC", shell=True)
working = False
if ("#LBC" in data) and (working == False):
print("A LBC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.LBC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.LBC-BTC", shell=True)
working = False
if ("#LSK" in data) and (working == False):
print("A LSK WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.LSK-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.LSK-BTC", shell=True)
working = False
if ("#LTC" in data) and (working == False):
print("A LTC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.LTC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.LTC-BTC", shell=True)
working = False
if ("#MAID" in data) and (working == False):
print("A MAID WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.MAID-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.MAID-BTC", shell=True)
working = False
if ("#NAV" in data) and (working == False):
print("A NAV WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.NAV-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.NAV-BTC", shell=True)
working = False
if ("#NEOS" in data) and (working == False):
print("A NEOS WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.NEOS-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.NEOS-BTC", shell=True)
working = False
if ("#NMC" in data) and (working == False):
print("A NMC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.NMC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.NMC-BTC", shell=True)
working = False
if ("#NXC" in data) and (working == False):
print("A NXC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.NXC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.NXC-BTC", shell=True)
working = False
if ("#NXT" in data) and (working == False):
print("A NXT WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.NXT-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.NXT-BTC", shell=True)
working = False
if ("#OMG" in data) and (working == False):
print("A OMG WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.OMG-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.OMG-BTC", shell=True)
working = False
if ("#OMNI" in data) and (working == False):
print("A OMNI WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.OMNI-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.OMNI-BTC", shell=True)
working = False
if ("#PASC" in data) and (working == False):
print("A PASC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.PASC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.PASC-BTC", shell=True)
working = False
if ("#PINK" in data) and (working == False):
print("A PINK WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.PINK-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.PINK-BTC", shell=True)
working = False
if ("#POT" in data) and (working == False):
print("A POT WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.POT-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.POT-BTC", shell=True)
working = False
if ("#PPC" in data) and (working == False):
print("A PPC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.PPC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.PPC-BTC", shell=True)
working = False
if ("#RADS" in data) and (working == False):
print("A RADS WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.RADS-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.RADS-BTC", shell=True)
working = False
if ("#REP" in data) and (working == False):
print("A REP WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.REP-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.REP-BTC", shell=True)
working = False
if ("#RIC" in data) and (working == False):
print("A RIC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.RIC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.RIC-BTC", shell=True)
working = False
if ("#SBD" in data) and (working == False):
print("A SBD WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.SBD-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.SBD-BTC", shell=True)
working = False
if ("#SC" in data) and (working == False):
print("A SC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.SC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.SC-BTC", shell=True)
working = False
if ("#STEEM" in data) and (working == False):
print("A STEEM WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.STEEM-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.STEEM-BTC", shell=True)
working = False
if ("#STORJ" in data) and (working == False):
print("A STORJ WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.STORJ-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.STORJ-BTC", shell=True)
working = False
if ("#STR" in data) and (working == False):
print("A STR WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.STR-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.STR-BTC", shell=True)
working = False
if ("#STRAT" in data) and (working == False):
print("A STRAT WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.STRAT-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.STRAT-BTC", shell=True)
working = False
if ("#SYS" in data) and (working == False):
print("A SYS WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.SYS-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.SYS-BTC", shell=True)
working = False
if ("#VIA" in data) and (working == False):
print("A VIA WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.VIA-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.VIA-BTC", shell=True)
working = False
if ("#VRC" in data) and (working == False):
print("A VRC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.VRC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.VRC-BTC", shell=True)
working = False
if ("#VTC" in data) and (working == False):
print("A VTC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.VTC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.VTC-BTC", shell=True)
working = False
if ("#XBC" in data) and (working == False):
print("A XBC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.XBC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.XBC-BTC", shell=True)
working = False
if ("#XCP" in data) and (working == False):
print("A XCP WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.XCP-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.XCP-BTC", shell=True)
working = False
if ("#XEM" in data) and (working == False):
print("A XEM WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.XEM-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.XEM-BTC", shell=True)
working = False
if ("#XMR" in data) and (working == False):
print("A XMR WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.XMR-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.XMR-BTC", shell=True)
working = False
if ("#XPM" in data) and (working == False):
print("A XPM WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.XPM-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.XPM-BTC", shell=True)
working = False
if ("#XRP" in data) and (working == False):
print("A XRP WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.XRP-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.XRP-BTC", shell=True)
working = False
if ("#XVC" in data) and (working == False):
print("A XVC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.XVC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.XVC-BTC", shell=True)
working = False
if ("#ZEC" in data) and (working == False):
print("A ZEC WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.ZEC-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.ZEC-BTC", shell=True)
working = False
if ("#ZRX" in data) and (working == False):
print("A ZRX WAS FOUND!!!")
working = True
wait = Popen("./zenbot.sh trade --strategy=cryptoping --min_periods=5 --period=5m --periodLength=5m poloniex.ZRX-BTC", shell=True)
sStdout, sStdErr = wait.communicate()
time.sleep(60)
wait = Popen("./zenbot.sh sell --markup_sell_pct=0 poloniex.ZRX-BTC", shell=True)
working = False
except exception as e:
print(e)
data = "null"
def load_settings(path='api/settings'):
"""Loads the user settings located under `api/`"""
result = {}
with open(path, 'r', encoding='utf-8') as file:
for line in file:
value_pair = line.split('=')
left = value_pair[0].strip()
right = value_pair[1].strip()
if right.isnumeric():
result[left] = int(right)
else:
result[left] = right
return result
settings = load_settings()
session_name = "botbotbot"
client = TelegramClient(session_name,
int(settings['api_id']),
settings['api_hash'],
proxy=None,
update_workers=4,
spawn_read_thread=False)
if True:
client.start(phone='+ENTERYOURPHONENUMBERFORTELEGRAMHERE')
else:
client.start()
client.add_update_handler(dat)
print('(Press Ctrl+C to stop this)')
client.idle()