Module: Bitstamp::Socket::Trades

Included in:
Websocket
Defined in:
lib/bitstamp/socket/trades.rb

Instance Method Summary collapse

Instance Method Details

#live_trades(currency_pair:, &block) ⇒ Object



3
4
5
6
7
8
# File 'lib/bitstamp/socket/trades.rb', line 3

def live_trades(currency_pair:, &block)
  channel = "live_trades_#{currency_pair}"
  event   = 'trade'

  listen(channel, event, block)
end