Task Overview | Installation Instructions | Link to Module 1 | Bank&MergeCo. Program
Experience Technology at Bank&MergeCo.Try out what real work is like in the technology team at Bank & Merge Co. Fast track to the tech team with your work.
Interface with a stock price data feed and set up your system for analysis of the data
Aim: We want to process the data feed of stock A and stock B’s price to enable us to analyse when trading for the stock should occur.
- Please clone this repository to start the task
- Adjust the getRatio and getDataPoint functions
- Pass all unit tests and add more to cover edge cases
- Upload a git patch file as the submission to this task
Please ensure you are using python2.7.
Start the data feed server by running:
python datafeed/server.py
Run npm install
to start the application.
To run the app in development mode, run npm start
in the project directory.
Open http://localhost:3000 to view the app in the browser. The page will reload if you make edits.
To start the server, runpython server.py
this will create random market called 'test.csv' in your working directory if one does not already exist.
To start the example client, run:
python client.py
To unit test the example client, run: python client_test.py
See also client.py
Query:
$ curl 'http://localhost:8080/query?id=1'
{"id": "1", "top_ask": {"price": 129.18, "size": 70}, "timestamp": "2016-08-06 12:32:11.821574", "top_bid": {"price": 128.79, "size": 61}}