Giter Site home page Giter Site logo

tradingsystem's Introduction

TradingSystem

TLC4 Trading System, Group 6 project

tradingsystem's People

Contributors

alhassanmoses avatar

Watchers

James Cloos avatar  avatar

tradingsystem's Issues

Buy and Sell order creation feature for clients

  • Build the endpoints to accept buy or sell orders from a client
  • Place the appropriate order on any of the two exchange platforms for now
  • Validate the response from the exchange rest API
  • Return the newly created order's order Id as a JSON response

Cancel Order and Modify Order Features

Added cancel order feature

  • Create endpoint for cancelling orders per user portfolio
  • Create CancelOrderService and corresponding logic before and after an order is cancelled, eg: cleaning up the cancelled order from the users portfolio and paying refunds on un-executed orders.

Add validation for Order creation Api feature

For Both buy and sell

  • Check if the product exist
  • validate that the request body is not empty
  • get the product name using the product id

For buy

  • Check the quantity by(X) the price should be less than the total account balance
  • Check the two exchanges for the best deal, buy all if quantity is >= then buy all else buy the rest from other exchange
  • Indication for partial purchase

For sell

  • Best deal (but orders more than the specified price should be sold first first)
  • Indication for partial purchase

Create Database Schema System

  • For client and order processing
  • For Market Data Service
  • Report and Logging Service

With their respective cardinality

Smart BUY or SELL order placement feature

  • Add logic to make the best decision in a buy or sell order
  • Refactor order model to suite changes
  • Add JPA for extracting best purchase data for client orders
  • Added new exceptions for new buy sell logic
  • Refactor some old order validation logic

Refined Order Processing Feature

  • Improved placing order logic and added deduction from client account on order placed
  • Fixed logical bugs in checkOrderStatus service
  • Added model for manyTomany field portfolioproduct
  • Fixed logical bug in CachedMarketDataService
  • Redesigned database models for product and portfolio to satisfy query constraints
  • Fixed bugs with cancelling product
  • Fixed logical bugs with sell orders
  • created model for order reporting and sending request lazily

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.