Skip to content

Instantly share code, notes, and snippets.

View ankitshubham97's full-sized avatar
💭
Active

Ankit Shubham ankitshubham97

💭
Active
View GitHub Profile

README: test-express

Introduction

This README provides steps on how to ensure that the server on which the backend will be deployed is ready. The idea is that we will try to run a dummy backend (an http service) on your server. If it runs, we can safely assume that the actual backend would run as well!

Prerequisites

Docker

@ankitshubham97
ankitshubham97 / websocket-binance.py
Created June 15, 2022 08:19
Binance websocket server <-> Python websocket client
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)

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: