class Binance::Spot::WebSocket

def symbol_ticker(callbacks:, symbol: nil)

Other tags:
    See: https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#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