MCPcopy
hub / github.com/ccxt/ccxt / InitOptions

Method InitOptions

java/cli/src/main/java/cli/Main.java:58–77  ·  view source on GitHub ↗
(Exchange instance, String[] args)

Source from the content-addressed store, hash-verified

56
57
58 public static void InitOptions(Exchange instance, String[] args) {
59
60 if (args.length > 0) {
61 for (String arg : args) {
62 if (arg.equals("--verbose")) {
63 verbose = true;
64 // instance.verbose = true;
65 } else if (arg.equals("--sandbox")) {
66 sandbox = true;
67 instance.setSandboxMode(true);
68 } else if (arg.equals("--demo")) {
69 demo = true;
70 // instance.setDemoMode(true);
71 instance.enableDemoTrading(true);
72 } else if (arg.equals("--no-keys")) {
73 noKeys = true;
74 }
75 }
76 }
77 }
78
79 public static Object[] getParamsFromArgs(String[] args) {
80 ArrayList<Object> params = new ArrayList<Object>();

Callers 1

mainMethod · 0.95

Calls 3

equalsMethod · 0.45
setSandboxModeMethod · 0.45
enableDemoTradingMethod · 0.45

Tested by

no test coverage detected