mrdahdah / finos

JPMorgan Finos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Task Overview | Installation Instructions | Link to Module 1 | JP Morgan Chase & Co Software Engineering Virtual Experience

Introduction

Experience Technology at JP Morgan Chase & Co

Try out what real work is like in the technology team at JP Morgan Chase & Co. Fast track to the tech team with your work.

Module 1 Task Overview

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.

  1. Please clone this repository to start the task
  2. Adjust the getRatio and getDataPoint functions
  3. Pass all unit tests and add more to cover edge cases
  4. Upload a git patch file as the submission to this task

Installation

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.

Run

To start the server, run
python 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

API Examples

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}}

About

JPMorgan Finos

License:Apache License 2.0


Languages

Language:Jupyter Notebook 92.7%Language:Python 7.3%