title: Binance python websocket - no response
body: <p>I'm trying to run an example code for binance websocket api using python-binance and following this tutorial: <a href="https://livedataframe.com/live-cryptocurrency-data-python-tutorial/" rel="nofollow noreferrer">https://livedataframe.com/live-cryptocurrency-data-python-tutorial/</a></p>
  <p>Unfortunately i can't make it work. The websocket just doesn't respond what results in empty terminal without anything printed out.</p>
  <p>I'm using python 3.7.8, PyCharm IDE, Windows 10</p>
  <p>Please help, thanks!</p>
  <pre><code>import time
  from binance.client import Client # Import the Binance Client
  from binance.websockets import BinanceSocketManager # Import the Binance Socket Manager
  
  _API_KEY = &quot;mykey&quot;
  _API_SECRET = &quot;mykey&quot;
  
  client = Client(_API_KEY, _API_SECRET)
  
  # Instantiate a BinanceSocketManager, passing in the client that you instantiated
  bm = BinanceSocketManager(client)
  
  # This is our callback function. For now, it just prints messages as they come.
  def handle_message(msg):
      print(msg)
  
  # Start trade socket with 'ETHBTC' and use handle_message to.. handle the message.
  conn_key = bm.start_trade_socket('ETHBTC', handle_message)
  # then start the socket manager
  bm.start()
  
  # let some data flow..
  time.sleep(10)
  
  # stop the socket manager
  bm.stop_socket(conn_key)
  </code></pre>
  <p>In addition i can run this code, but websocket api doesn't seem to work for me.
  Regards.</p>
  <pre><code>from binance.client import Client
  
  
  _API_KEY = &quot;key&quot;
  _API_SECRET = &quot;key&quot;
  
  client = Client(_API_KEY, _API_SECRET)
  btc_price = client.get_symbol_ticker(symbol=&quot;BTCUSDT&quot;)
  # print full output (dictionary)
  print(btc_price)
  </code></pre>