Giter Club home page Giter Club logo

tradeengine's Introduction

TradeEngine

This repository contains the sources that mimic the functionality of a stock market trading engine.

Sample Data

Entity, Buy/Sell, AgreedFx, Currency, InstructionDate, SettlementDate, Units, Price per unit

foo,B,0.50,SGP,01 Jan 2016,02 Jan 2016,200,100.25

#Requirements Create a report that shows:

  • Amount in USD settled incoming everyday
  • Amount in USD settled outgoing everyday
  • Ranking of entities based on incoming and outgoing amount. Eg: If entity foo instructs the highest amount for a buy instruction, then foo is rank 1 for outgoing

Running the appication

  • The application is implemented in JDK 1.8 as a maven project.
  • The application expects the instructions to be in a CSV file (kept under the resources/sample folder).
  • There is a client class TradeEngineClient with a main method that can be used to run the program.
  • Junits are present which cover the critical tests with respect to the rules.
  • The output should be visible in the console.
  • The application does not depend on any external libraries except for JUNIT which is also bundled with JDK nowdays.

Notes on Design

  • Wherever applicable design patterns like Factory/Strategy have been used for creation and usage of various business Rules
  • SOLID principles of OOAD is adhered to.
  • DRY is also another principle which is adhered, with code being reused as much as possible.

Class diagram

Alt text

tradeengine's People

Contributors

hakish avatar

Watchers

James Cloos 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.