forked from alexkoby/CryptArbitrage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cryptocurrencies.java
3549 lines (3293 loc) · 187 KB
/
Cryptocurrencies.java
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
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package my.awesome.project.cryptarbitrage30;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Toast;
import android.widget.ToggleButton;
import com.anjlab.android.iab.v3.BillingProcessor;
import com.anjlab.android.iab.v3.TransactionDetails;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
/**
* Created by Alexander on 1/8/2018.
*/
//still need to add kraken eos
public class Cryptocurrencies extends Activity implements View.OnClickListener, BillingProcessor.IBillingHandler{
ArrayList<ToggleButton> allCurrenciesButtons;
static boolean hasSubscription = false;
BillingProcessor bp;
Button selectAllCurrenciesButton;
boolean hasAddedBitcoinAndEthereum = false;
static int numberClicked = 0;
static final int MAX_NUMBER_ALLOWED = 10;
final String publicAPI = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArNSgdFawfG05qVr5dmy5VGnrR/D7A636WN7l28Gpy8X9hIM8FlKpRDWfDNjV5x2q/7Nlzpla462DLlYRFIxCHm/LoQMd6vm37k10FqhskFxkvcMshKE7fEfVVrOnnod3JE8UDhwMd0a3UYGqAWNWx8m02K2Y6vzKfIYpu0NLpaPMD1GgVw6ZtoiNCIR+ilL/Kvv8WZutM3yUBhrTr47dOjvu/bwYQ01RT1QbGMjujIE3KWphzmfUCWRhZIGsTypgskVFoH2px5gSB2ynQVvjFAN2Jx18Hj+AhinVl1pSBdOl0eMJG0TXyPtbseRAhPdv1H+YcTPOed5g2j7qxKwxswIDAQAB";
ArrayAdapter<String>listAdapter;
boolean [] startingValuesForButtons;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.currencies_page);
//set up click listeners
selectAllCurrenciesButton = findViewById(R.id.select_all_cryptocurrencies_button);
selectAllCurrenciesButton.setOnClickListener(this);
/*if(!hasSubscription){
bp = new BillingProcessor(this, publicAPI, this);
}*/
//Create and add all other Buttons to ArrayList
setUpButtons();
//Used to ensure all coin data is up to date, cycle from homepage to exchanges page to cryptocurrencies page back to home page
}
@Override
protected void onStart(){
getSavedCoins();
if(!HomePage.isCreatedCryptocurrencies){
startActivity(new Intent(this, HomePage.class));
}
super.onStart();
}
protected void onPause(){
super.onPause();
if(!HomePage.isCreatedCryptocurrencies){
finish();
}
}
public void onClick(View v) {
switch (v.getId()) {
//Makes Select All button work
case R.id.select_all_cryptocurrencies_button:
/*if(!Cryptocurrencies.hasSubscription){
Toast.makeText(this, "Buy A Subscription to Select More Than " + MAX_NUMBER_ALLOWED +
" Cryptocurrencies", Toast.LENGTH_LONG).show();
bp.subscribe(this, "monthly_sub_");
break;
}*/
if (selectAllCurrenciesButton.getText().equals("On")) {
for (ToggleButton button : allCurrenciesButtons) {
button.setChecked(false);
}
selectAllCurrenciesButton.setText("Off");
}
else {
for (ToggleButton button : allCurrenciesButtons) {
button.setChecked(true);
}
selectAllCurrenciesButton.setText("On");
}
break;
default:
selectAllCurrenciesButton.setText("On");
for(ToggleButton toggleButton: allCurrenciesButtons){
if(!toggleButton.isChecked()){
selectAllCurrenciesButton.setText("Off");
break;
}
}
/*if(!hasSubscription) {
int numberOfButtonsOn = 0;
for (ToggleButton toggleButton : allCurrenciesButtons) {
if (toggleButton.isChecked()) {
numberOfButtonsOn++;
}
if (numberOfButtonsOn > MAX_NUMBER_ALLOWED) {
if(toggleButton.isChecked()){
toggleButton.setChecked(false);
toggleButton.setText("OFF");
}
Toast.makeText(this, "Buy A Subscription to Select More Than " + MAX_NUMBER_ALLOWED + " Cryptocurrencies", Toast.LENGTH_LONG).show();
bp.subscribe(this, "monthly_sub_");
break;
}
}
}*/
}
}
public void setUpButtons(){
allCurrenciesButtons = new ArrayList<>();
ToggleButton currencyButton1 = findViewById(R.id.bitcoinButton);
allCurrenciesButtons.add(currencyButton1);
ToggleButton currencyButton2 = findViewById(R.id.ethereumButton);
allCurrenciesButtons.add(currencyButton2);
ToggleButton currencyButton3 = findViewById(R.id.rippleButton);
allCurrenciesButtons.add(currencyButton3);
ToggleButton currencyButton4 = findViewById(R.id.bitcoinCashButton);
allCurrenciesButtons.add(currencyButton4);
ToggleButton currencyButton5 = findViewById(R.id.cardanoButton);
allCurrenciesButtons.add(currencyButton5);
ToggleButton currencyButton6 = findViewById(R.id.nemButton);
allCurrenciesButtons.add(currencyButton6);
ToggleButton currencyButton7 = findViewById(R.id.litecoinButton);
allCurrenciesButtons.add(currencyButton7);
ToggleButton currencyButton8 = findViewById(R.id.stellarButton);
allCurrenciesButtons.add(currencyButton8);
ToggleButton currencyButton9 = findViewById(R.id.iotaButton);
allCurrenciesButtons.add(currencyButton9);
ToggleButton currencyButton10 = findViewById(R.id.dashButton);
allCurrenciesButtons.add(currencyButton10);
ToggleButton currencyButton11 = findViewById(R.id.neoButton);
allCurrenciesButtons.add(currencyButton11);
ToggleButton currencyButton12 = findViewById(R.id.moneroButton);
allCurrenciesButtons.add(currencyButton12);
ToggleButton currencyButton13 = findViewById(R.id.qtumButton);
allCurrenciesButtons.add(currencyButton13);
ToggleButton currencyButton14 = findViewById(R.id.liskButton);
allCurrenciesButtons.add(currencyButton14);
ToggleButton currencyButton15 = findViewById(R.id.ethereumClassicButton);
allCurrenciesButtons.add(currencyButton15);
ToggleButton currencyButton16 = findViewById(R.id.raiblocksButton);
allCurrenciesButtons.add(currencyButton16);
ToggleButton currencyButton17 = findViewById(R.id.vergeButton);
allCurrenciesButtons.add(currencyButton17);
ToggleButton currencyButton18 = findViewById(R.id.siacoinButton);
allCurrenciesButtons.add(currencyButton18);
ToggleButton currencyButton19 = findViewById(R.id.stratisButton);
allCurrenciesButtons.add(currencyButton19);
ToggleButton currencyButton20 = findViewById(R.id.zcashButton);
allCurrenciesButtons.add(currencyButton20);
ToggleButton currencyDogecoin = findViewById(R.id.dogecoinButton);
allCurrenciesButtons.add(currencyDogecoin);
ToggleButton currencyButton21 = findViewById(R.id.steemButton);
allCurrenciesButtons.add(currencyButton21);
ToggleButton currencyButton22 = findViewById(R.id.wavesButton);
allCurrenciesButtons.add(currencyButton22);
ToggleButton currencyButton23 = findViewById(R.id.vechainButton);
allCurrenciesButtons.add(currencyButton23);
ToggleButton currencyButton24 = findViewById(R.id.digibyteButton);
allCurrenciesButtons.add(currencyButton24);
ToggleButton currencyButton25 = findViewById(R.id.komodoButton);
allCurrenciesButtons.add(currencyButton25);
ToggleButton currencyButton26 = findViewById(R.id.hshareButton);
allCurrenciesButtons.add(currencyButton26);
ToggleButton currencyButton27 = findViewById(R.id.arkButton);
allCurrenciesButtons.add(currencyButton27);
ToggleButton currencyButton28 = findViewById(R.id.decredButton);
allCurrenciesButtons.add(currencyButton28);
ToggleButton currencyButton29 = findViewById(R.id.factomButton);
allCurrenciesButtons.add(currencyButton29);
ToggleButton currencyButton30 = findViewById(R.id.neblioButton);
allCurrenciesButtons.add(currencyButton30);
ToggleButton currencyButton31 = findViewById(R.id.digitalNoteButton);
allCurrenciesButtons.add(currencyButton31);
ToggleButton currencyButton32 = findViewById(R.id.nxtButton);
allCurrenciesButtons.add(currencyButton32);
ToggleButton currencyButton33 = findViewById(R.id.syscoinButton);
allCurrenciesButtons.add(currencyButton33);
ToggleButton currencyButton34 = findViewById(R.id.zcoinButton);
allCurrenciesButtons.add(currencyButton34);
ToggleButton currencyButton36 = findViewById(R.id.gameCreditsButton);
allCurrenciesButtons.add(currencyButton36);
ToggleButton currencyButton37 = findViewById(R.id.gxSharesButton);
allCurrenciesButtons.add(currencyButton37);
ToggleButton currencyButton38 = findViewById(R.id.vertcoinButton);
allCurrenciesButtons.add(currencyButton38);
ToggleButton eosButton = findViewById(R.id.eosButton);
allCurrenciesButtons.add(eosButton);
ToggleButton tronButton = findViewById(R.id.tronButton);
allCurrenciesButtons.add(tronButton);
ToggleButton bitcoinGoldButton = findViewById(R.id.bitcoinGoldButton);
allCurrenciesButtons.add(bitcoinGoldButton);
ToggleButton iconButton = findViewById(R.id.iconButton);
allCurrenciesButtons.add(iconButton);
ToggleButton omiseGoButton = findViewById(R.id.omiseGoButton);
allCurrenciesButtons.add(omiseGoButton);
ToggleButton populousButton = findViewById(R.id.populousButton);
allCurrenciesButtons.add(populousButton);
ToggleButton bytecoinButton = findViewById(R.id.bytecoinButton);
allCurrenciesButtons.add(bytecoinButton);
ToggleButton statusButton = findViewById(R.id.statusButton);
allCurrenciesButtons.add(statusButton);
ToggleButton bitsharesButton = findViewById(R.id.bitsharesButton);
allCurrenciesButtons.add(bitsharesButton);
ToggleButton augurButton = findViewById(R.id.augurButton);
allCurrenciesButtons.add(augurButton);
ToggleButton veritaseumButton = findViewById(R.id.veritaseumButton);
allCurrenciesButtons.add(veritaseumButton);
ToggleButton waltonButton = findViewById(R.id.waltonButton);
allCurrenciesButtons.add(waltonButton);
ToggleButton zeroxButton = findViewById(R.id.zeroxButton);
allCurrenciesButtons.add(zeroxButton);
ToggleButton ardorButton = findViewById(R.id.ardorButton);
allCurrenciesButtons.add(ardorButton);
ToggleButton revainButton = findViewById(R.id.revainButton);
allCurrenciesButtons.add(revainButton);
ToggleButton digixdaoButton = findViewById(R.id.digixdaoButton);
allCurrenciesButtons.add(digixdaoButton);
ToggleButton gasButton = findViewById(R.id.gasButton);
allCurrenciesButtons.add(gasButton);
ToggleButton kyberButton = findViewById(R.id.kyberCurrency);
allCurrenciesButtons.add(kyberButton);
ToggleButton batButton = findViewById(R.id.batButton);
allCurrenciesButtons.add(batButton);
ToggleButton loopringButton = findViewById(R.id.loopringButton);
allCurrenciesButtons.add(loopringButton);
ToggleButton pivxButton = findViewById(R.id.pivxButton);
allCurrenciesButtons.add(pivxButton);
ToggleButton ethosButton = findViewById(R.id.ethosButton);
allCurrenciesButtons.add(ethosButton);
ToggleButton golemButton = findViewById(R.id.golemButton);
allCurrenciesButtons.add(golemButton);
ToggleButton aelfButton = findViewById(R.id.aelfButton);
allCurrenciesButtons.add(aelfButton);
ToggleButton nebulasButton = findViewById(R.id.nebulasButton);
allCurrenciesButtons.add(nebulasButton);
ToggleButton pillarButton = findViewById(R.id.pillarButton);
allCurrenciesButtons.add(pillarButton);
ToggleButton powerledgerButton = findViewById(R.id.powerledgerButton);
allCurrenciesButtons.add(powerledgerButton);
ToggleButton cindicatorButton = findViewById(R.id.cindicatorButton);
allCurrenciesButtons.add(cindicatorButton);
ToggleButton iosTokenButton = findViewById(R.id.iosTokenButton);
allCurrenciesButtons.add(iosTokenButton);
ToggleButton funfairButton = findViewById(R.id.funfairButton);
allCurrenciesButtons.add(funfairButton);
ToggleButton enigmaButton = findViewById(R.id.enigmaButton);
allCurrenciesButtons.add(enigmaButton);
ToggleButton saltButton = findViewById(R.id.saltButton);
allCurrenciesButtons.add(saltButton);
ToggleButton civicButton = findViewById(R.id.civicButton);
allCurrenciesButtons.add(civicButton);
ToggleButton waxButton = findViewById(R.id.waxButton);
allCurrenciesButtons.add(waxButton);
ToggleButton storjButton = findViewById(R.id.storjButton);
allCurrenciesButtons.add(storjButton);
ToggleButton decentralandButton = findViewById(R.id.decentralandButton);
allCurrenciesButtons.add(decentralandButton);
ToggleButton navButton = findViewById(R.id.navButton);
allCurrenciesButtons.add(navButton);
ToggleButton timenewbankButton = findViewById(R.id.timenewbankButton);
allCurrenciesButtons.add(timenewbankButton);
ToggleButton achainButton = findViewById(R.id.achainButton);
allCurrenciesButtons.add(achainButton);
ToggleButton gnosisButton = findViewById(R.id.gnosisButton);
allCurrenciesButtons.add(gnosisButton);
ToggleButton iconomiButton = findViewById(R.id.iconomiButton);
allCurrenciesButtons.add(iconomiButton);
ToggleButton bancorButton = findViewById(R.id.bancorButton);
allCurrenciesButtons.add(bancorButton);
ToggleButton madesafecoinButton = findViewById(R.id.madesafecoinButton);
allCurrenciesButtons.add(madesafecoinButton);
ToggleButton chainlinkButton = findViewById(R.id.chainlinkButton);
allCurrenciesButtons.add(chainlinkButton);
ToggleButton emercoinButton = findViewById(R.id.emercoinButton);
allCurrenciesButtons.add(emercoinButton);
ToggleButton ethlendButton = findViewById(R.id.ethlendButton);
allCurrenciesButtons.add(ethlendButton);
ToggleButton iexecrlcButton = findViewById(R.id.iexecrlcButton);
allCurrenciesButtons.add(iexecrlcButton);
ToggleButton monacoButton = findViewById(R.id.monacoButton);
allCurrenciesButtons.add(monacoButton);
ToggleButton blockvButton = findViewById(R.id.blockvButton);
allCurrenciesButtons.add(blockvButton);
ToggleButton bluzelleButton = findViewById(R.id.bluzelleButton);
allCurrenciesButtons.add(bluzelleButton);
ToggleButton ripiocreditnetworkButton = findViewById(R.id.ripiocreditnetworkButton);
allCurrenciesButtons.add(ripiocreditnetworkButton);
ToggleButton iotchainButton = findViewById(R.id.iotchainButton);
allCurrenciesButtons.add(iotchainButton);
ToggleButton airswapButton = findViewById(R.id.airswapButton);
allCurrenciesButtons.add(airswapButton);
ToggleButton counterpartyButton = findViewById(R.id.counterpartyButton);
allCurrenciesButtons.add(counterpartyButton);
ToggleButton einsteiniumButton = findViewById(R.id.einsteiniumButton);
allCurrenciesButtons.add(einsteiniumButton);
ToggleButton peercoinButton = findViewById(R.id.peercoinButton);
allCurrenciesButtons.add(peercoinButton);
ToggleButton vibeButton = findViewById(R.id.vibeButton);
allCurrenciesButtons.add(vibeButton);
ToggleButton cybermilesButton = findViewById(R.id.cybermilesButton);
allCurrenciesButtons.add(cybermilesButton);
ToggleButton adexButton = findViewById(R.id.adexButton);
allCurrenciesButtons.add(adexButton);
ToggleButton singulardtvButton = findViewById(R.id.singulardtvButton);
allCurrenciesButtons.add(singulardtvButton);
ToggleButton metalButton = findViewById(R.id.metalButton);
allCurrenciesButtons.add(metalButton);
ToggleButton simpletokenButton = findViewById(R.id.simpletokenButton);
allCurrenciesButtons.add(simpletokenButton);
ToggleButton eidooButton = findViewById(R.id.eidooButton);
allCurrenciesButtons.add(eidooButton);
ToggleButton thetatokenButton = findViewById(R.id.thetatokenButton);
allCurrenciesButtons.add(thetatokenButton);
ToggleButton metaverseetpButton = findViewById(R.id.metaverseetpButton);
allCurrenciesButtons.add(metaverseetpButton);
ToggleButton aeternityButton = findViewById(R.id.aeternityButton);
allCurrenciesButtons.add(aeternityButton);
ToggleButton zilliqaButton = findViewById(R.id.zilliqaButton);
allCurrenciesButtons.add(zilliqaButton);
ToggleButton bytomButton = findViewById(R.id.bytomButton);
allCurrenciesButtons.add(bytomButton);
ToggleButton dentacoinButton = findViewById(R.id.dentacoinButton);
allCurrenciesButtons.add(dentacoinButton);
ToggleButton qashButton = findViewById(R.id.qashButton);
allCurrenciesButtons.add(qashButton);
ToggleButton bitcoreButton = findViewById(R.id.bitcoreButton);
allCurrenciesButtons.add(bitcoreButton);
ToggleButton aionButton = findViewById(R.id.aionButton);
allCurrenciesButtons.add(aionButton);
ToggleButton requestnetworkButton = findViewById(R.id.requestnetworkButton);
allCurrenciesButtons.add(requestnetworkButton);
ToggleButton tenxButton = findViewById(R.id.tenxButton);
allCurrenciesButtons.add(tenxButton);
ToggleButton quantstampButton = findViewById(R.id.quantstampButton);
allCurrenciesButtons.add(quantstampButton);
ToggleButton appcoinButton = findViewById(R.id.appcoinsButton);
allCurrenciesButtons.add(appcoinButton);
ToggleButton santimentButton = findViewById(R.id.santimentButton);
allCurrenciesButtons.add(santimentButton);
ToggleButton poetButton = findViewById(R.id.po_etButton);
allCurrenciesButtons.add(poetButton);
ToggleButton substratumButton = findViewById(R.id.substratumButton);
allCurrenciesButtons.add(substratumButton);
ToggleButton raidenButton = findViewById(R.id.raidenButton);
allCurrenciesButtons.add(raidenButton);
ToggleButton zencashButton = findViewById(R.id.zencashButton);
allCurrenciesButtons.add(zencashButton);
ToggleButton redpulseButton = findViewById(R.id.redpulseButton);
allCurrenciesButtons.add(redpulseButton);
ToggleButton enjincoinButton = findViewById(R.id.enjincoinButton);
allCurrenciesButtons.add(enjincoinButton);
ToggleButton aragonButton = findViewById(R.id.aragonButton);
allCurrenciesButtons.add(aragonButton);
ToggleButton deepbrainchainButton = findViewById(R.id.deepbrainchainButton);
allCurrenciesButtons.add(deepbrainchainButton);
ToggleButton sirinlabsButton = findViewById(R.id.sirinlabsButton);
allCurrenciesButtons.add(sirinlabsButton);
ToggleButton medisharesButton = findViewById(R.id.medisharesButton);
allCurrenciesButtons.add(medisharesButton);
ToggleButton giftoButton = findViewById(R.id.giftoButton);
allCurrenciesButtons.add(giftoButton);
ToggleButton wabiButton = findViewById(R.id.wabiButton);
allCurrenciesButtons.add(wabiButton);
ToggleButton crypto20Button = findViewById(R.id.crypto20Button);
allCurrenciesButtons.add(crypto20Button);
ToggleButton ambrosusButton = findViewById(R.id.ambrosusButton);
allCurrenciesButtons.add(ambrosusButton);
ToggleButton insecosystemButton = findViewById(R.id.insecosystemButton);
allCurrenciesButtons.add(insecosystemButton);
ToggleButton streamrdatacoinButton = findViewById(R.id.streamrdataButton);
allCurrenciesButtons.add(streamrdatacoinButton);
ToggleButton sonmButton = findViewById(R.id.sonmButton);
allCurrenciesButtons.add(sonmButton);
ToggleButton viacoinButton = findViewById(R.id.viacoinButton);
allCurrenciesButtons.add(viacoinButton);
ToggleButton genesisvisionButton = findViewById(R.id.genesisvisionButton);
allCurrenciesButtons.add(genesisvisionButton);
ToggleButton melonButton = findViewById(R.id.melonButton);
allCurrenciesButtons.add(melonButton);
ToggleButton spankchainButton = findViewById(R.id.spankchainButton);
allCurrenciesButtons.add(spankchainButton);
ToggleButton breadButton = findViewById(R.id.breadButton);
allCurrenciesButtons.add(breadButton);
ToggleButton nulsButton = findViewById(R.id.nulsButton);
allCurrenciesButtons.add(nulsButton);
ToggleButton utrustButton = findViewById(R.id.utrustButton);
allCurrenciesButtons.add(utrustButton);
ToggleButton triggersButton = findViewById(R.id.triggersButton);
allCurrenciesButtons.add(triggersButton);
ToggleButton etherpartyButton = findViewById(R.id.etherpartyButton);
allCurrenciesButtons.add(etherpartyButton);
ToggleButton modumButton = findViewById(R.id.modumButton);
allCurrenciesButtons.add(modumButton);
ToggleButton wingsButton = findViewById(R.id.wingsButton);
allCurrenciesButtons.add(wingsButton);
ToggleButton tierionButton = findViewById(R.id.tierionButton);
allCurrenciesButtons.add(tierionButton);
ToggleButton wepowerButton = findViewById(R.id.wepowerButton);
allCurrenciesButtons.add(wepowerButton);
ToggleButton burstButton = findViewById(R.id.burstButton);
allCurrenciesButtons.add(burstButton);
ToggleButton allsportsButton = findViewById(R.id.allsportsButton);
allCurrenciesButtons.add(allsportsButton);
ToggleButton district0xButton = findViewById(R.id.district0xButton);
allCurrenciesButtons.add(district0xButton);
ToggleButton internetnodetokenButton = findViewById(R.id.internetnodetokenButton);
allCurrenciesButtons.add(internetnodetokenButton);
ToggleButton coindashButton = findViewById(R.id.coindashButton);
allCurrenciesButtons.add(coindashButton);
ToggleButton cossButton = findViewById(R.id.cossButton);
allCurrenciesButtons.add(cossButton);
ToggleButton lbryButton = findViewById(R.id.lbrycreditsButton);
allCurrenciesButtons.add(lbryButton);
ToggleButton unikoingoldButton = findViewById(R.id.unikoingoldButton);
allCurrenciesButtons.add(unikoingoldButton);
ToggleButton steemdollarsButton = findViewById(R.id.steemdollarsButton);
allCurrenciesButtons.add(steemdollarsButton);
ToggleButton nagaButton = findViewById(R.id.nagaButton);
allCurrenciesButtons.add(nagaButton);
ToggleButton delphyButton = findViewById(R.id.delphyButton);
allCurrenciesButtons.add(delphyButton);
ToggleButton aeonButton = findViewById(R.id.aeonButton);
allCurrenciesButtons.add(aeonButton);
ToggleButton indahashButton = findViewById(R.id.indahashButton);
allCurrenciesButtons.add(indahashButton);
ToggleButton lunyrButton = findViewById(R.id.lunyrButton);
allCurrenciesButtons.add(lunyrButton);
ToggleButton firstbloodButton = findViewById(R.id.firstbloodButton);
allCurrenciesButtons.add(firstbloodButton);
ToggleButton viberateButton = findViewById(R.id.viberateButton);
allCurrenciesButtons.add(viberateButton);
ToggleButton datumButton = findViewById(R.id.datumButton);
allCurrenciesButtons.add(datumButton);
ToggleButton odysseyButton = findViewById(R.id.odysseyButton);
allCurrenciesButtons.add(odysseyButton);
ToggleButton inkButton = findViewById(R.id.inkButton);
allCurrenciesButtons.add(inkButton);
ToggleButton potcoinButton = findViewById(R.id.potcoinButton);
allCurrenciesButtons.add(potcoinButton);
ToggleButton swftcoinButton = findViewById(R.id.swftcoinButton);
allCurrenciesButtons.add(swftcoinButton);
ToggleButton humaniqButton = findViewById(R.id.humaniqButton);
allCurrenciesButtons.add(humaniqButton);
ToggleButton monethaButton = findViewById(R.id.monethaButton);
allCurrenciesButtons.add(monethaButton);
ToggleButton agrelloButton = findViewById(R.id.agrelloButton);
allCurrenciesButtons.add(agrelloButton);
ToggleButton yoyowButton = findViewById(R.id.yoyowButton);
allCurrenciesButtons.add(yoyowButton);
ToggleButton worldcoreButton = findViewById(R.id.worldcoreButton);
allCurrenciesButtons.add(worldcoreButton);
ToggleButton selfkeyButton = findViewById(R.id.selfkeyButton);
allCurrenciesButtons.add(selfkeyButton);
ToggleButton blocktixButton = findViewById(R.id.blocktixButton);
allCurrenciesButtons.add(blocktixButton);
ToggleButton everexButton = findViewById(R.id.everexButton);
allCurrenciesButtons.add(everexButton);
ToggleButton suncontractButton = findViewById(R.id.suncontractButton);
allCurrenciesButtons.add(suncontractButton);
ToggleButton tradetokenButton = findViewById(R.id.tradetokenButton);
allCurrenciesButtons.add(tradetokenButton);
ToggleButton latokenButton = findViewById(R.id.latokenButton);
allCurrenciesButtons.add(latokenButton);
ToggleButton blackcoinButton = findViewById(R.id.blackcoinButton);
allCurrenciesButtons.add(blackcoinButton);
ToggleButton ixledgerButton = findViewById(R.id.ixledgerButton);
allCurrenciesButtons.add(ixledgerButton);
ToggleButton olympuslabsButton = findViewById(R.id.olympuslabsButton);
allCurrenciesButtons.add(olympuslabsButton);
ToggleButton hydroprotocolButton = findViewById(R.id.hydroprotocolButton);
allCurrenciesButtons.add(hydroprotocolButton);
ToggleButton moedaloyaltypointsButton = findViewById(R.id.moedaloyaltypointsButton);
allCurrenciesButtons.add(moedaloyaltypointsButton);
ToggleButton oaxButton = findViewById(R.id.oaxButton);
allCurrenciesButtons.add(oaxButton);
ToggleButton stoxButton = findViewById(R.id.stoxButton);
allCurrenciesButtons.add(stoxButton);
ToggleButton qunqunButton = findViewById(R.id.qunqunButton);
allCurrenciesButtons.add(qunqunButton);
ToggleButton blockmasonButton = findViewById(R.id.blockmasoncreditButton);
allCurrenciesButtons.add(blockmasonButton);
ToggleButton stkButton = findViewById(R.id.stkButton);
allCurrenciesButtons.add(stkButton);
ToggleButton aeronButton = findViewById(R.id.aeronButton);
allCurrenciesButtons.add(aeronButton);
ToggleButton synereoButton = findViewById(R.id.syneroButton);
allCurrenciesButtons.add(synereoButton);
ToggleButton radiumButton = findViewById(R.id.radiumButton);
allCurrenciesButtons.add(radiumButton);
ToggleButton vericoinButton = findViewById(R.id.vericoinButton);
allCurrenciesButtons.add(vericoinButton);
ToggleButton propyButton = findViewById(R.id.propyButton);
allCurrenciesButtons.add(propyButton);
ToggleButton matchpoolButton = findViewById(R.id.matchpoolButton);
allCurrenciesButtons.add(matchpoolButton);
for(ToggleButton toggleButton: allCurrenciesButtons){
toggleButton.setOnClickListener(this);
}
}
/**
* Adds bitcoin and ethereum to every exchange by default
*/
public void addBitcoinAndEthereumToExchanges(){
Coin bitcoinBitfinex = new Coin("Bitcoin","BTC",
HomePage.bitfinex,"100");
HomePage.bitfinex.addCoin(bitcoinBitfinex);
Coin bitcoinBittrex = new Coin("Bitcoin","BTC",
HomePage.bittrex,"100", .001);
HomePage.bittrex.addCoin(bitcoinBittrex);
Coin bitcoinBinance = new Coin("Bitcoin", "BTC", HomePage.binance,"100", .0005);
HomePage.binance.addCoin(bitcoinBinance);
Coin bitcoinHitBTC = new Coin("Bitcoin", "BTC",
HomePage.hitBTC,"100", .001);
HomePage.hitBTC.addCoin(bitcoinHitBTC);
Coin bitcoinBitZ = new Coin("Bitcoin", "btc",
HomePage.bitZ,"100");
HomePage.bitZ.addCoin(bitcoinBitZ);
Coin bitcoinPoloniex = new Coin("Bitcoin","BTC",
HomePage.poloniex,"100");
HomePage.poloniex.addCoin(bitcoinPoloniex);
Coin bitcoinBitStamp = new Coin ("Bitcoin","BTC",
HomePage.bitStamp,"100", 0);
HomePage.bitStamp.addCoin(bitcoinBitStamp);
Coin bitcoinOKEX = new Coin("Bitcoin", "BTC",
HomePage.OKEX,"100");
HomePage.OKEX.addCoin(bitcoinOKEX);
Coin bitcoinGDAX = new Coin("Bitcoin","BTC",
HomePage.GDAX,"100", 0);
HomePage.GDAX.addCoin(bitcoinGDAX);
Coin bitcoinKraken = new Coin("Bitcoin","XXBT",
HomePage.kraken, "100");
HomePage.kraken.addCoin(bitcoinKraken);
Coin bitcoinHuobi = new Coin("Bitcoin","btc",
HomePage.huobi,"100", .001);
HomePage.huobi.addCoin(bitcoinHuobi);
Coin bitcoinGateIO = new Coin("Bitcoin", "btc", HomePage.gateIO,
"111");
HomePage.gateIO.addCoin(bitcoinGateIO);
Coin bitcoinCryptopia = new Coin("Bitcoin", "BTC", HomePage.cryptopia,
"111");
HomePage.cryptopia.addCoin(bitcoinCryptopia);
Coin bitcoinCEXIO = new Coin("Bitcoin", "BTC", HomePage.cexIO, "111");
HomePage.cexIO.addCoin(bitcoinCEXIO);
Coin bitcoinKoinex = new Coin("Bitcoin","BTC",
HomePage.koinex,"100");
HomePage.koinex.addCoin(bitcoinKoinex);
Coin bitcoinBitbns = new Coin("Bitcoin","BTC",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(bitcoinBitbns);
Coin bitcoinZebpay = new Coin("Bitcoin","BTC",
HomePage.zebpay,"100");
HomePage.zebpay.addCoin(bitcoinZebpay);
Coin bitcoinExmo = new Coin("Bitcoin", "BTC", HomePage.exmo, "100");
HomePage.exmo.addCoin(bitcoinExmo);
Coin bitcoinYobit = new Coin("Bitcoin", "btc", HomePage.yobit, "100");
HomePage.yobit.addCoin(bitcoinYobit);
HomePage.listOfCurrencies.add("Bitcoin");
Coin ethereumBitfinex = new Coin("Ethereum","ETH",
HomePage.bitfinex,"110");
HomePage.bitfinex.addCoin(ethereumBitfinex);
Coin ethereumBittrex = new Coin("Ethereum","ETH",
HomePage.bittrex,"110", .006);
HomePage.bittrex.addCoin(ethereumBittrex);
Coin ethereumBinance = new Coin("Ethereum", "ETH",
HomePage.binance,"110", .01);
HomePage.binance.addCoin(ethereumBinance);
Coin ethereumHitBTC = new Coin("Ethereum", "ETH",
HomePage.hitBTC,"110", 0.00958);
HomePage.hitBTC.addCoin(ethereumHitBTC);
Coin ethereumBitZ = new Coin("Ethereum", "eth",
HomePage.bitZ,"110");
HomePage.bitZ.addCoin(ethereumBitZ);
Coin ethereumPoloniex = new Coin("Ethereum","ETH",
HomePage.poloniex,"110");
HomePage.poloniex.addCoin(ethereumPoloniex);
Coin ethereumBitStamp = new Coin ("Ethereum","ETH",
HomePage.bitStamp,"110", 0);
HomePage.bitStamp.addCoin(ethereumBitStamp);
Coin ethereumOKEX = new Coin("Ethereum", "ETH",
HomePage.OKEX,"110");
HomePage.OKEX.addCoin(ethereumOKEX);
Coin ethereumGDAX = new Coin("Ethereum","ETH",
HomePage.GDAX, "110", 0);
HomePage.GDAX.addCoin(ethereumGDAX);
Coin ethereumKraken = new Coin("Ethereum","XETH",
HomePage.kraken,"110");
HomePage.kraken.addCoin(ethereumKraken);
Coin ethereumHuobi = new Coin("Ethereum","eth",
HomePage.huobi,"110", .01);
HomePage.huobi.addCoin(ethereumHuobi);
Coin ethereumGateIO = new Coin("Ethereum", "eth", HomePage.gateIO,
"111");
HomePage.gateIO.addCoin(ethereumGateIO);
Coin ethereumCryptopia = new Coin("Ethereum", "ETH", HomePage.cryptopia,
"111");
HomePage.cryptopia.addCoin(ethereumCryptopia);
Coin ethereumCEXIO = new Coin("Ethereum", "ETH", HomePage.cexIO, "111");
HomePage.cexIO.addCoin(ethereumCEXIO);
Coin ethereumKoinex = new Coin("Ethereum","ETH",
HomePage.koinex,"100");
HomePage.koinex.addCoin(ethereumKoinex);
Coin ethereumBitbns = new Coin("Ethereum","ETH",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(ethereumBitbns);
Coin ethereumZebpay = new Coin("Ethereum","ETH",
HomePage.zebpay,"110");
HomePage.zebpay.addCoin(ethereumZebpay);
Coin ethereumExmo = new Coin("Ethereum", "ETH", HomePage.exmo, "100");
HomePage.exmo.addCoin(ethereumExmo);
Coin ethereumYobit = new Coin("Ethereum", "eth", HomePage.yobit, "110");
HomePage.yobit.addCoin(ethereumYobit);
HomePage.listOfCurrencies.add("Ethereum");
} //selenium
/**
* Checks to see if button is selected, if it is, it adds it to all exchanges
* that have that currency
* @param button is the ToggleButton you're checking
*/
public void addCurrencyToExchanges(ToggleButton button){
switch (button.getId()){
case R.id.rippleButton:
Coin rippleBitfinex = new Coin("Ripple","XRP",
HomePage.bitfinex,"110");
HomePage.bitfinex.addCoin(rippleBitfinex);
Coin rippleBittrex = new Coin("Ripple","XRP",
HomePage.bittrex,"111", 1);
HomePage.bittrex.addCoin(rippleBittrex);
Coin rippleBinance = new Coin("Ripple", "XRP",
HomePage.binance,"011", .25);
HomePage.binance.addCoin(rippleBinance);
Coin rippleHitBTC = new Coin("Ripple", "XRP",
HomePage.hitBTC,"011", .509);
HomePage.hitBTC.addCoin(rippleHitBTC);
Coin ripplePoloniex = new Coin("Ripple","XRP",
HomePage.poloniex,"110");
HomePage.poloniex.addCoin(ripplePoloniex);
Coin rippleBitStamp = new Coin ("Ripple","XRP",
HomePage.bitStamp,"110", 0);
HomePage.bitStamp.addCoin(rippleBitStamp);
Coin rippleOKEX = new Coin("Ripple", "XRP",
HomePage.OKEX,"111");
HomePage.OKEX.addCoin(rippleOKEX);
Coin rippleKraken = new Coin("Ripple","XXRP",
HomePage.kraken,"110");
HomePage.kraken.addCoin(rippleKraken);
Coin rippleHuobi = new Coin("Ripple","xrp",
HomePage.huobi,"110", .1);
HomePage.huobi.addCoin(rippleHuobi);
Coin rippleGateIO = new Coin("Ripple", "xrp", HomePage.gateIO,
"111");
HomePage.gateIO.addCoin(rippleGateIO);
Coin rippleCEXIO = new Coin("Ripple", "XRP", HomePage.cexIO, "111");
HomePage.cexIO.addCoin(rippleCEXIO);
Coin rippleKoinex = new Coin("Ripple","XRP",
HomePage.koinex,"100");
HomePage.koinex.addCoin(rippleKoinex);
Coin rippleBitbns = new Coin("Ripple","XRP",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(rippleBitbns);
Coin rippleZebpay = new Coin("Ripple","XRP",
HomePage.zebpay,"110");
HomePage.zebpay.addCoin(rippleZebpay);
Coin rippleExmo = new Coin("Ripple", "XRP", HomePage.exmo, "100");
HomePage.exmo.addCoin(rippleExmo);
HomePage.listOfCurrencies.add("Ripple");
break;
case R.id.bitcoinCashButton:
Coin bitcoinCashBitfinex = new Coin("Bitcoin Cash","BCH",
HomePage.bitfinex,"111");
HomePage.bitfinex.addCoin(bitcoinCashBitfinex);
Coin bitcoinCashBittrex = new Coin("Bitcoin Cash","BCC",
HomePage.bittrex,"111", .001);
HomePage.bittrex.addCoin(bitcoinCashBittrex);
Coin bitcoinCashBinance = new Coin("Bitcoin Cash", "BCC",
HomePage.binance,"111", .001);
HomePage.binance.addCoin(bitcoinCashBinance);
Coin bitcoinCashHitBTC = new Coin("Bitcoin Cash", "BCH",
HomePage.hitBTC,"111", 0.0018);
HomePage.hitBTC.addCoin(bitcoinCashHitBTC);
Coin bitcoinCashPoloniex = new Coin("Bitcoin Cash","BCH",
HomePage.poloniex,"111");
HomePage.poloniex.addCoin(bitcoinCashPoloniex);
Coin bitcoinCashBitStamp = new Coin ("Bitcoin Cash","BCH",
HomePage.bitStamp,"110", 0);
HomePage.bitStamp.addCoin(bitcoinCashBitStamp);
Coin bitcoinCashOKEX = new Coin("Bitcoin Cash", "BCH",
HomePage.OKEX,"111");
HomePage.OKEX.addCoin(bitcoinCashOKEX);
Coin bitcoinCashGDAX = new Coin("Bitcoin Cash","BCH",
HomePage.GDAX,"110", 0);
HomePage.GDAX.addCoin(bitcoinCashGDAX);
Coin bitcoinCashKraken = new Coin("Bitcoin Cash","BCH",
HomePage.kraken,"110");
HomePage.kraken.addCoin(bitcoinCashKraken);
Coin bitcoinCashHuobi = new Coin("Bitcoin Cash","bch",
HomePage.huobi,"110", .0001);
HomePage.huobi.addCoin(bitcoinCashHuobi);
Coin bitcoinCashGateIO = new Coin("Bitcoin Cash", "bch", HomePage.gateIO,
"111");
HomePage.gateIO.addCoin(bitcoinCashGateIO);
Coin bitcoinCashCryptopia = new Coin("Bitcoin Cash", "BCH", HomePage.cryptopia,
"111");
HomePage.cryptopia.addCoin(bitcoinCashCryptopia);
Coin bitcoinCashCEXIO = new Coin("Bitcoin Cash", "BCH", HomePage.cexIO, "111");
HomePage.cexIO.addCoin(bitcoinCashCEXIO);
Coin bitcoinCashKoinex = new Coin("Bitcoin Cash","BCH",
HomePage.koinex,"100");
HomePage.koinex.addCoin(bitcoinCashKoinex);
Coin bitcoinCashBitbns = new Coin("Bitcoin Cash","BCH",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(bitcoinCashBitbns);
Coin bitcoinCashZebpay = new Coin("Bitcoin Cash","BCH",
HomePage.zebpay,"110");
HomePage.zebpay.addCoin(bitcoinCashZebpay);
Coin bitcoinCashExmo = new Coin("Bitcoin Cash", "BCH", HomePage.exmo, "100");
HomePage.exmo.addCoin(bitcoinCashExmo);
Coin bitcoinCashYobit = new Coin("Bitcoin Cash", "bcc", HomePage.yobit, "111");
HomePage.yobit.addCoin(bitcoinCashYobit);
HomePage.listOfCurrencies.add("Bitcoin Cash");
break;
case R.id.cardanoButton:
Coin cardanoBittrex = new Coin("Cardano","ADA",
HomePage.bittrex,"111", .2);
HomePage.bittrex.addCoin(cardanoBittrex);
Coin cardanoBinance = new Coin("Cardano", "ADA",
HomePage.binance,"011", 1);
HomePage.binance.addCoin(cardanoBinance);
Coin cardanoGateIO = new Coin("Cardano", "ada", HomePage.gateIO, "111");
HomePage.gateIO.addCoin(cardanoGateIO);
Coin cardanoBitbns = new Coin("Cardano","ADA",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(cardanoBitbns);
//19
HomePage.listOfCurrencies.add("Cardano");
break;
case R.id.nemButton:
Coin nemBittrex = new Coin("NEM","XEM",
HomePage.bittrex,"011", 4);
HomePage.bittrex.addCoin(nemBittrex);
Coin nemBinance = new Coin("NEM","XEM", HomePage.binance,
"011", 4);
HomePage.binance.addCoin(nemBinance);
Coin nemHitBTC = new Coin("NEM", "XEM",
HomePage.hitBTC,"111", 15);
HomePage.hitBTC.addCoin(nemHitBTC);
Coin nemPoloniex = new Coin("NEM","XEM",
HomePage.poloniex,"010");
HomePage.poloniex.addCoin(nemPoloniex);
Coin nemOKEX = new Coin("NEM", "XEM",
HomePage.OKEX,"111");
HomePage.OKEX.addCoin(nemOKEX);
Coin nemHuobi = new Coin("NEM","xem",
HomePage.huobi,"110");
HomePage.huobi.addCoin(nemHuobi);
Coin nemBitbns = new Coin("NEM","XEM",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(nemBitbns);
Coin nemYobit = new Coin("NEM", "xem", HomePage.yobit, "111");
HomePage.yobit.addCoin(nemYobit);
HomePage.listOfCurrencies.add("NEM");
break;
case R.id.litecoinButton:
Coin litecoinBitfinex = new Coin("Litecoin","LTC",
HomePage.bitfinex,"110");
HomePage.bitfinex.addCoin(litecoinBitfinex);
Coin litecoinBittrex = new Coin("Litecoin","LTC",
HomePage.bittrex,"111", .01);
HomePage.bittrex.addCoin(litecoinBittrex);
Coin litecoinBinance = new Coin("Litecoin", "LTC",
HomePage.binance,"111", .01);
HomePage.binance.addCoin(litecoinBinance);
Coin litecoinHitBTC = new Coin("Litecoin", "LTC",
HomePage.hitBTC,"111", 0.003);
HomePage.hitBTC.addCoin(litecoinHitBTC);
Coin litecoinBitZ = new Coin("Litecoin", "ltc",
HomePage.bitZ,"010");
HomePage.bitZ.addCoin(litecoinBitZ);
Coin litecoinPoloniex = new Coin("Litecoin", "LTC",
HomePage.poloniex,"110");
HomePage.poloniex.addCoin(litecoinPoloniex);
Coin litecoinBitStamp = new Coin ("Litecoin","LTC",
HomePage.bitStamp,"110", 0);
HomePage.bitStamp.addCoin(litecoinBitStamp);
Coin litecoinOKEX = new Coin("Litecoin", "LTC",
HomePage.OKEX,"111");
HomePage.OKEX.addCoin(litecoinOKEX);
Coin litecoinGDAX = new Coin("Litecoin","LTC",
HomePage.GDAX,"100", 0);
HomePage.GDAX.addCoin(litecoinGDAX);
Coin litecoinKraken = new Coin("Litecoin","XLTC",
HomePage.kraken,"110");
HomePage.kraken.addCoin(litecoinKraken);
Coin litecoinHuobi = new Coin("Litecoin","ltc",
HomePage.huobi,"110", .001);
HomePage.huobi.addCoin(litecoinHuobi);
Coin litecoinGateIO = new Coin("Litecoin", "ltc", HomePage.gateIO,
"111");
HomePage.gateIO.addCoin(litecoinGateIO);
Coin litecoinCryptopia = new Coin("Litecoin", "LTC", HomePage.cryptopia,
"111");
HomePage.cryptopia.addCoin(litecoinCryptopia);
Coin litecoinKoinex = new Coin("Litecoin","LTC",
HomePage.koinex,"100");
HomePage.koinex.addCoin(litecoinKoinex);
Coin litecoinBitbns = new Coin("Litecoin","LTC",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(litecoinBitbns);
Coin litecoinZebpay = new Coin("Litecoin","LTC",
HomePage.zebpay,"110");
HomePage.zebpay.addCoin(litecoinZebpay);
Coin litecoinExmo = new Coin("Litecoin", "LTC", HomePage.exmo, "100");
HomePage.exmo.addCoin(litecoinExmo);
Coin litecoinYobit = new Coin("Litecoin", "ltc", HomePage.yobit, "111");
HomePage.yobit.addCoin(litecoinYobit);
HomePage.listOfCurrencies.add("Litecoin");
break;
case R.id.stellarButton:
Coin stellarBittrex = new Coin("Stellar","XLM",
HomePage.bittrex,"011", .01);
HomePage.bittrex.addCoin(stellarBittrex);
Coin stellarBinance = new Coin("Stellar", "XLM",
HomePage.binance,"011", .01);
HomePage.binance.addCoin(stellarBinance);
Coin stellarOKEX = new Coin("Stellar", "XLM",
HomePage.OKEX,"111");
HomePage.OKEX.addCoin(stellarOKEX);
Coin stellarKraken = new Coin("Stellar","XXLM",
HomePage.kraken,"010");
HomePage.kraken.addCoin(stellarKraken);
Coin stellarGateIO = new Coin("Stellar", "xlm", HomePage.gateIO, "111");
HomePage.gateIO.addCoin(stellarGateIO);
Coin stellarCEXIO = new Coin("Stellar", "XLM", HomePage.cexIO, "111");
HomePage.cexIO.addCoin(stellarCEXIO);
Coin stellarKoinex = new Coin("Stellar","XLM",
HomePage.koinex,"100");
HomePage.koinex.addCoin(stellarKoinex);
Coin stellarBitbns = new Coin("Stellar","XLM",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(stellarBitbns);
Coin stellarExmo = new Coin("Stellar", "XLM", HomePage.exmo, "100");
HomePage.exmo.addCoin(stellarExmo);
HomePage.listOfCurrencies.add("Stellar");
break;
case R.id.iotaButton:
Coin iotaBitfinex = new Coin("Iota","IOT",
HomePage.bitfinex,"111");
HomePage.bitfinex.addCoin(iotaBitfinex);
Coin iotaBinance = new Coin("Iota", "IOTA",
HomePage.binance,"011", .5);
HomePage.binance.addCoin(iotaBinance);
Coin iotaOKEX = new Coin("Iota", "IOTA",
HomePage.OKEX,"111");
HomePage.OKEX.addCoin(iotaOKEX);
Coin iotaGateIO = new Coin("Iota", "iota", HomePage.gateIO, "111");
HomePage.gateIO.addCoin(iotaGateIO);
HomePage.listOfCurrencies.add("Iota");
break;
case R.id.dashButton:
Coin dashBitfinex = new Coin("Dash","DSH",
HomePage.bitfinex,"110");
HomePage.bitfinex.addCoin(dashBitfinex);
Coin dashBittrex = new Coin("Dash","DASH",
HomePage.bittrex,"111", .002);
HomePage.bittrex.addCoin(dashBittrex);
Coin dashBinance = new Coin("Dash", "DASH",
HomePage.binance,"011");
HomePage.binance.addCoin(dashBinance);
Coin dashHitBTC = new Coin("Dash", "DASH",
HomePage.hitBTC,"111", .003);
HomePage.hitBTC.addCoin(dashHitBTC);
Coin dashBitZ = new Coin("Dash", "dash",
HomePage.bitZ,"010");
HomePage.bitZ.addCoin(dashBitZ);
Coin dashPoloniex = new Coin("Dash", "DASH",
HomePage.poloniex,"110");
HomePage.poloniex.addCoin(dashPoloniex);
Coin dashOKEX = new Coin("Dash", "DASH",
HomePage.OKEX,"111");
HomePage.OKEX.addCoin(dashOKEX);
Coin dashKraken = new Coin("Dash","DASH",
HomePage.kraken,"110");
HomePage.kraken.addCoin(dashKraken);
Coin dashHuobi = new Coin("Dash","dash",
HomePage.huobi,"110", .002);
HomePage.huobi.addCoin(dashHuobi);
Coin dashCryptopia = new Coin("Dash", "DASH", HomePage.cryptopia, "111");
HomePage.cryptopia.addCoin(dashCryptopia);
Coin dashGateIO = new Coin("Dash", "dash", HomePage.gateIO, "111");
HomePage.gateIO.addCoin(dashGateIO);
Coin dashCEXIO = new Coin("Dash", "DASH", HomePage.cexIO, "111");
HomePage.cexIO.addCoin(dashCEXIO);
Coin dashBitbns = new Coin("Dash","DASH",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(dashBitbns);
Coin dashExmo = new Coin("Dash", "DASH", HomePage.exmo, "100");
HomePage.exmo.addCoin(dashExmo);
Coin dashYobit = new Coin("Dash", "dash", HomePage.yobit, "111");
HomePage.yobit.addCoin(dashYobit);
HomePage.listOfCurrencies.add("Dash");
break;
case R.id.neoButton:
Coin neoBitfinex = new Coin("NEO","NEO",
HomePage.bitfinex,"111");
HomePage.bitfinex.addCoin(neoBitfinex);
Coin neoBittrex = new Coin("NEO","NEO",
HomePage.bittrex,"111", .025);
HomePage.bittrex.addCoin(neoBittrex);
Coin neoBinance = new Coin("NEO", "NEO",
HomePage.binance,"111", 0);
HomePage.binance.addCoin(neoBinance);
Coin neoHitBTC = new Coin("NEO", "NEO",
HomePage.hitBTC,"111");
HomePage.hitBTC.addCoin(neoHitBTC);
Coin neoOKEX = new Coin("NEO", "NEO",
HomePage.OKEX,"111");
HomePage.OKEX.addCoin(neoOKEX);
Coin neoHuobi = new Coin("NEO","neo",
HomePage.huobi,"110");
HomePage.huobi.addCoin(neoHuobi);
Coin neoGateIO = new Coin("NEO", "neo", HomePage.gateIO, "111");
HomePage.gateIO.addCoin(neoGateIO);
Coin neoCryptopia = new Coin("NEO", "NEO", HomePage.cryptopia, "111");
HomePage.cryptopia.addCoin(neoCryptopia);
Coin neoKoinex = new Coin("NEO","NEO",
HomePage.koinex,"100");
HomePage.koinex.addCoin(neoKoinex);
Coin neoBitbns = new Coin("NEO","NEO",
HomePage.bitbns,"100");
HomePage.bitbns.addCoin(neoBitbns);
HomePage.listOfCurrencies.add("NEO");
break;
case R.id.moneroButton:
Coin moneroBitfinex = new Coin("Monero","XMR",
HomePage.bitfinex,"110");
HomePage.bitfinex.addCoin(moneroBitfinex);
Coin moneroBittrex = new Coin("Monero","XMR",
HomePage.bittrex,"111", .04);
HomePage.bittrex.addCoin(moneroBittrex);
Coin moneroBinance = new Coin("Monero", "XMR",
HomePage.binance,"011", .04);
HomePage.binance.addCoin(moneroBinance);
Coin moneroHitBTC = new Coin("Monero", "XMR",
HomePage.hitBTC,"111", 0.09);
HomePage.hitBTC.addCoin(moneroHitBTC);
Coin moneroPoloniex = new Coin("Monero", "XMR",
HomePage.poloniex,"110");
HomePage.poloniex.addCoin(moneroPoloniex);
Coin moneroOKEX = new Coin("Monero", "XMR",