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

Method costToPrecision

java/lib/src/main/java/io/github/ccxt/Exchange.java:11688–11696  ·  view source on GitHub ↗
(Object symbol, Object cost)

Source from the content-addressed store, hash-verified

11686 }
11687
11688 public Object costToPrecision(Object symbol, Object cost)
11689 {
11690 if (Helpers.isTrue(Helpers.isEqual(cost, null)))
11691 {
11692 return null;
11693 }
11694 Object market = this.market(symbol);
11695 return this.decimalToPrecision(cost, TRUNCATE, this.safeString2(Helpers.GetValue(market, "precision"), "cost", "price"), this.precisionMode, this.paddingMode);
11696 }
11697
11698 public Object priceToPrecision(Object symbol, Object price)
11699 {

Callers

nothing calls this directly

Calls 6

isTrueMethod · 0.95
isEqualMethod · 0.95
marketMethod · 0.95
decimalToPrecisionMethod · 0.95
safeString2Method · 0.95
GetValueMethod · 0.95

Tested by

no test coverage detected