I would like to have all the code contained within the Angular, hence the need for translation.

I have an Angular app which displays bids/asks/trades (streamed from websocket endpoint) for a trading order book, the pasted code is from another app which uses a python server to do the same thing I wish to do. However, I would like to have all the code contained within the Angular, hence the need for translation.
I'm almost through translating it (just googling) the JS equivalent - I'm sure I've made some mistakes but will find out for sure once complete and testing..
You already invited:

Menya Tom

Upvotes from:

Well there's a lot of things to consider when migrating logic from a backend implementation to a front-end implementation. Namely, if you have no backend server how are you going to request the data? Usually your going to run into CORS issues. Ontop of this, it's an Angular app, which brings in a number of complexities (modules, dependency injection, rxjs and observables) that don't exist in python.
You will also need to get some websocket implementation for Angular (either integrated or socketio, depends on the how your getting data) but this still goes back to can you even get the data on the client-side from an external server (one outside of your domain)

If you wanna answer this question please Login or Register