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

Method pow

java/lib/src/main/java/io/github/ccxt/exchanges/DydxCore.java:1443–1453  ·  view source on GitHub ↗
(Object n, Object m)

Source from the content-addressed store, hash-verified

1441 }
1442
1443 public Object pow(Object n, Object m)
1444 {
1445 Object r = Precise.stringMul(n, "1");
1446 Object c = this.parseToInt(m);
1447 // TODO: cap
1448 for (var i = 1; Helpers.isLessThan(i, c); i++)
1449 {
1450 r = Precise.stringMul(r, n);
1451 }
1452 return r;
1453 }
1454
1455 public Object createOrderRequest(Object symbol, Object type, Object side, Object amount, Object... optionalArgs)
1456 {

Callers 7

createOrderRequestMethod · 0.95
toFixedMethod · 0.45
mathPowMethod · 0.45
DecimalToPrecisionMethod · 0.45
divMethod · 0.45
addMethod · 0.45
modMethod · 0.45

Calls 3

stringMulMethod · 0.95
isLessThanMethod · 0.95
parseToIntMethod · 0.45

Tested by

no test coverage detected