Giter Site home page Giter Site logo

havocesp / backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from koinstreet/backend

0.0 0.0 0.0 42 KB

Python Crypto WebSocket Server/Client In order to run the socket, you need to navigate to the /ks_bend/run/ directory and run the appropriate shell script • Python 2.7 (Unix) | chmod u+x py_install.sh && ./py_install.sh (Pip) • Python 3+ (Unix) | chmod u+x py3_install.sh && ./py3 install.sh (Pip3) • Windows | pip install -r requirements.txt or pip3 install -r requirements.txt Navigate to your /ks_bend/server/ directory once you have those libraries in the scripts above installed. You will need to open and run ‘main.py’; this is the script which opens your localhost server and activates each socket connection. In turn, the file ‘webapp.html’ contains javascript code contains a listener socket which recieves all messages from the localhost and displays them on a simple tabbed pane template in HTML. This file is located in /ks_bend/web_app/. In total this websocket server is subscribing to 13 different connections asynchronusly and outputting all collected data as a localhost event. Each websocket connection on Binance and Coinbase is able to mess up and reconnect up to three times. If limit is exceeded the script automatically breaks out of that task and does not reopen it. This design was placed to make sure exchange client code is up to date and working efficiently.

Shell 1.27% Python 87.60% HTML 11.13%

backend's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.