MCPcopy Index your code
hub / github.com/ccxt/ccxt / initExchange

Method initExchange

java/lib/src/main/java/io/github/ccxt/Exchange.java:243–257  ·  view source on GitHub ↗
(Object userConfig)

Source from the content-addressed store, hash-verified

241 // --- Construtor -- //
242
243 private void initExchange(Object userConfig) {
244 Map<String, Object> defaultConfig;
245
246 if (userConfig != null) {
247 defaultConfig = (Map<String, Object>) userConfig;
248 } else {
249 defaultConfig = new HashMap<String, Object>();
250 }
251 System.setProperty("java.net.preferIPv4Stack", "true");
252 this.initializeProperties(defaultConfig);
253 this.initHttpClient();
254 this.httpClientProxyFingerprint = currentProxyFingerprint();
255 this.afterConstruct();
256 this.transformApiNew(this.api, new ArrayList<>());
257 }
258
259 // add to derived files constructor that calls base constructor with userConfig
260 public Exchange (Object userConfig) {

Callers 1

ExchangeMethod · 0.95

Calls 6

initializePropertiesMethod · 0.95
initHttpClientMethod · 0.95
afterConstructMethod · 0.95
transformApiNewMethod · 0.95
setPropertyMethod · 0.45

Tested by

no test coverage detected