Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Active

Ankit Shubham ankitshubham97

💭
Active
View GitHub Profile
@ankitshubham97
ankitshubham97 / websocket-binance.py
Created June 15, 2022 08:19
Binance websocket server <-> Python websocket client
View websocket-binance.py
import json
import websocket
import datetime
def ws_trades():
socket = f'wss://stream.binance.com:9443/ws/ethusdt@trade'
def on_message(wsapp,message):
json_message = json.loads(message)
handle_trades(json_message)
View keybase.md

Keybase proof

I hereby claim:

  • I am ankitshubham97 on github.
  • I am ankitshubham97 (https://keybase.io/ankitshubham97) on keybase.
  • I have a public key ASDBKfbyIrMzuu5JtLFMwLynyE3O_LBkgB22Ve6rNOtUbQo

To claim this, I am signing this object: