class Binance::Spot::WebSocket

def book_ticker(callbacks:, symbol: nil)

Other tags:
    See: https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams#individual-symbol-book-ticker-streams -

Options Hash: (**symbol)
  • (String) --
def book_ticker(callbacks:, symbol: nil)
  url = if symbol.nil?
          "#{@base_url}/ws/!bookTicker"
        else
          "#{@base_url}/ws/#{symbol.downcase}@bookTicker"
        end
  create_connection(url, callbacks)
end