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

Method currencyId

java/lib/src/main/java/io/github/ccxt/Exchange.java:8408–8420  ·  view source on GitHub ↗
(Object code)

Source from the content-addressed store, hash-verified

8406 }
8407
8408 public Object currencyId(Object code)
8409 {
8410 Object currency = this.safeDict(this.currencies, code);
8411 if (Helpers.isTrue(Helpers.isEqual(currency, null)))
8412 {
8413 currency = this.safeCurrency(code);
8414 }
8415 if (Helpers.isTrue(!Helpers.isEqual(currency, null)))
8416 {
8417 return Helpers.GetValue(currency, "id");
8418 }
8419 return code;
8420 }
8421
8422 public Object marketId(Object symbol)
8423 {

Callers 3

currencyIdsMethod · 0.95
fetchBalanceMethod · 0.45
setLeverageMethod · 0.45

Calls 5

safeDictMethod · 0.95
isTrueMethod · 0.95
isEqualMethod · 0.95
safeCurrencyMethod · 0.95
GetValueMethod · 0.95

Tested by

no test coverage detected