Class: Crypto::Exchange

Inherits:
Base
  • Object
show all
Defined in:
lib/crypto/resources/exchange.rb

Constant Summary collapse

PERCENTAGE =
70

Class Method Summary collapse

Methods inherited from Base

binance?, coinex?, correct, error, load_fixture, test

Class Method Details

.info(symbol:, name:) ⇒ Object



10
11
12
13
14
15
# File 'lib/crypto/resources/exchange.rb', line 10

def info(symbol:, name:)
  exchanges = gecko(symbol: symbol, name: name)
  return exchanges unless exchanges.nil?

  coinpaprika(symbol: symbol, name: name)
end