EasyTrader

Overview

EasyTrader is a simplified trading console that allows users to place orders and view Level I and Level II information on a given symbol.  Each user has their own portfolio that is updated with each order placed.  A responsive order entry provides the user with immediate feeback about their order.  Level I and symbols in the user's portfolio can be dragged and dropped to view Level II information.

Open the application twice to see that data is the same in both windows.

Requires Nexaweb Platform 4.5 or higher

Concepts Demonstrated

  • Highly responsive data entry
  • Real-time data updates
  • Drag and drop functionality
  • Network publish / subscribe
  • Integration of the data framework with RSS feeds

Architecture

EasyTrader is a client/server application.  User interface logic, entry validation and user interface drawing is all handled on the client side.  Market data is generated on the the server and is the same for all client instances.

On the client:

  • MCOs
    • Order entry validation
    • Drag / Drop handlers
    • Event handlers
  • Listeners
    • NetService listeners for asynchronous tasks
  • Data Framework
    • Used for the RSS feed
  • Networking
    • Publish/Subscribe
    • Request for adding/removing Subscriptions

On the server:

  • Servlets to handle requests
    • Placing an order
    • Level 2 / charting history
    • Symbol informaiton
  • Timer Tasks
    • Placing orders (to simulate the market)
  • Topic Publishing
    • Market data for each symbol
  • Views
    • NXML + XUpdate

https://svn.nexaweb.com/svn/NXSAMPLES/trunk/demos/java/EasyTrader11/