Last active
November 14, 2024 12:23
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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