Class: Cryptoexchange::Services::TradeStream

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptoexchange/services/trade_stream.rb

Instance Method Summary collapse

Instance Method Details

#parse_message(message, market_pair) ⇒ Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/cryptoexchange/services/trade_stream.rb', line 16

def parse_message(message, market_pair)
  raise NotImplementedError, 'parse_message method is not defined!'
end

#subscribe_event(market_pair) ⇒ Object

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/cryptoexchange/services/trade_stream.rb', line 8

def subscribe_event(market_pair)
  raise NotImplementedError, 'subscribe_event method is not defined!'
end

#urlObject

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/cryptoexchange/services/trade_stream.rb', line 4

def url
  raise NotImplementedError, 'url method is not defined!'
end

#valid_message?(message) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/cryptoexchange/services/trade_stream.rb', line 12

def valid_message?(message)
  raise NotImplementedError, 'valid_message? method is not defined!'
end