Skip to content

Instantly share code, notes, and snippets.

@oliver-zehentleitner
Last active November 14, 2024 12:23
Show Gist options
  • Select an option

  • Save oliver-zehentleitner/863f346969bbbe315ab808ca6e658013 to your computer and use it in GitHub Desktop.

Select an option

Save oliver-zehentleitner/863f346969bbbe315ab808ca6e658013 to your computer and use it in GitHub Desktop.
Test connectivity with the Binance WebSocket API and let a specific callback function handle the response.
def handle_ping_response(data):
print(f"Received ping response:\r\n{data}")
ubwa.api.spot.ping(process_response=handle_ping_response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment