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

Method setExchangeProp

java/tests/src/main/java/tests/BaseTest.java:584–602  ·  view source on GitHub ↗
(Object exchange, Object prop, Object value)

Source from the content-addressed store, hash-verified

582 }
583
584 public static void setExchangeProp(Object exchange, Object prop, Object value) {
585 if (exchange == null || !(prop instanceof String)) {
586 return;
587 }
588
589 String propName = (String) prop;
590
591 try {
592
593 try {
594 Field field = exchange.getClass().getField(propName);
595 field.set(exchange, value);
596 } catch (NoSuchFieldException ignored) {
597 }
598
599 } catch (Exception ignored) {
600 // do nothing
601 }
602 }
603
604 public static String getRootDir() {
605 var prefix = FileSystems.getDefault().getPath("").toAbsolutePath();

Callers 2

expandSettingsMethod · 0.80

Calls 1

setMethod · 0.80

Tested by

no test coverage detected