Class SmartOrderRouter

java.lang.Object
com.bank.trading.execution.SmartOrderRouter
All Implemented Interfaces:
Runnable

public class SmartOrderRouter extends Object implements Runnable
Defines a SmartOrderRouter that is responsible for routing orders decide which exchange is the best to execute the order on and how fast or slow to execute to reduce market slip and to hide out strategy from our competitors This runs on the ExecutionService server.
  • Constructor Details

    • SmartOrderRouter

      public SmartOrderRouter(InetSocketAddress address, InetSocketAddress LamportAddress)
      Constructor to initialize the SmartOrderRouter with a socket address.
      Parameters:
      address - The socket address of server.
  • Method Details

    • run

      public void run()
      Starts the smart order router. Takes in the order and calculates the best way to route the order.
      Specified by:
      run in interface Runnable