getValueFromSymbol

private open fun getValueFromSymbol(symbol: String, isQuote: Boolean): String

Method to fetch the base or the quote symbol from a symbol

Return

value as follows:

  • "isQuote" = "true" quote symbol ->"BTCETH" ->"ETH"
  • "isQuote" = "false" base symbol ->"BTCETH" ->"BTC"

Parameters

symbol

: symbol from fetch the value

isQuote

: whether the researched value is a quote or is a base