class Binance::Spot::WebSocket
def symbol_ticker(callbacks:, symbol: nil)
- See: https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams -
Options Hash:
(**symbol)-
(String) --
def symbol_ticker(callbacks:, symbol: nil) url = if symbol.nil? "#{@base_url}/ws/!ticker@arr" else "#{@base_url}/ws/#{symbol.downcase}@ticker" end create_connection(url, callbacks) end