Class: Cryptoexchange::Exchanges::Cybex::Market

Inherits:
Models::Market show all
Defined in:
lib/cryptoexchange/exchanges/cybex/market.rb

Constant Summary collapse

NAME =
'cybex'
API_URL =
'https://beijing.51nebula.com'
USED_GATEWAY =
'JADE'
OMITTED_GATEWAY =
'JAMES'

Class Method Summary collapse

Methods inherited from Models::Market

trade_page_url

Class Method Details

.prepend_symbol_prefix(pair) ⇒ Object



10
11
12
13
14
# File 'lib/cryptoexchange/exchanges/cybex/market.rb', line 10

def prepend_symbol_prefix(pair)
  base   = pair.base == 'CYB' ? pair.base : "#{USED_GATEWAY}.#{pair.base}"
  target = pair.target == 'CYB' ? pair.target : "#{USED_GATEWAY}.#{pair.target}"
  [base, target]
end