@@ -307,14 +307,19 @@ def parse_command_line_arguments(self):
307
307
help = "Test centralized quote asset balance"
308
308
)
309
309
group .add_argument (
310
- "--arby.binance-api-key " ,
310
+ "--arby.cex " ,
311
311
metavar = "<key>" ,
312
- help = "Binance API key "
312
+ help = "Centralized Exchange "
313
313
)
314
314
group .add_argument (
315
- "--arby.binance-api-secret" ,
315
+ "--arby.cex-api-key" ,
316
+ metavar = "<key>" ,
317
+ help = "CEX API key"
318
+ )
319
+ group .add_argument (
320
+ "--arby.cex-api-secret" ,
316
321
metavar = "<secret>" ,
317
- help = "Binance API secret"
322
+ help = "CEX API secret"
318
323
)
319
324
group .add_argument (
320
325
"--arby.margin" ,
@@ -727,25 +732,35 @@ def update_arby(self, parsed):
727
732
if value :
728
733
node ["live-cex" ] = value
729
734
730
- if "binance-api-key" in parsed :
731
- if parsed ["binance-api-key" ]:
732
- value = parsed ["binance-api-key" ]
733
- node ["binance-api-key" ] = value
734
- opt = "arby.binance_api_key"
735
+ if "cex" in parsed :
736
+ if parsed ["cex" ]:
737
+ value = parsed ["cex" ]
738
+ node ["cex" ] = value
739
+ opt = "arby.cex"
740
+ if hasattr (self .args , opt ):
741
+ value = getattr (self .args , opt )
742
+ if value :
743
+ node ["cex" ] = value
744
+
745
+ if "cex-api-key" in parsed :
746
+ if parsed ["cex-api-key" ]:
747
+ value = parsed ["cex-api-key" ]
748
+ node ["cex-api-key" ] = value
749
+ opt = "arby.cex_api_key"
735
750
if hasattr (self .args , opt ):
736
751
value = getattr (self .args , opt )
737
752
if value :
738
- node ["binance -api-key" ] = value
753
+ node ["cex -api-key" ] = value
739
754
740
- if "binance -api-secret" in parsed :
741
- if parsed ["binance -api-secret" ]:
742
- value = parsed ["binance -api-secret" ]
743
- node ["binance -api-secret" ] = value
744
- opt = "arby.binance_api_secret "
755
+ if "cex -api-secret" in parsed :
756
+ if parsed ["cex -api-secret" ]:
757
+ value = parsed ["cex -api-secret" ]
758
+ node ["cex -api-secret" ] = value
759
+ opt = "arby.cex_api_secret "
745
760
if hasattr (self .args , opt ):
746
761
value = getattr (self .args , opt )
747
762
if value :
748
- node ["binance -api-secret" ] = value
763
+ node ["cex -api-secret" ] = value
749
764
750
765
if "margin" in parsed :
751
766
if parsed ["margin" ]:
0 commit comments