anchor.diff:      {NewPortfolio, NewTransactions}.
   
   
  -%% Generates a random stock symbol
  +%%-----------------------------------------------------------------------------
  +%% Function : random_symbol/0
  +%% Purpose  : Generates a random stock symbol.
  +%%-----------------------------------------------------------------------------
   random_symbol() ->
       CharPool = "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
       LenPool = [1, 2, 3, 4],
  
positive.code:     end.
  
  
  %%
  %% Listens for current prices and either buys or sells
  %%
  broker() ->
      Portfolio = dict:new(),
      Transactions = [],
  
negative.code: %%%----------------------------------------------------------------------------
  %%% Copyright (c) 2011 Siraaj Khandkar
  %%% Licensed under MIT license. See LICENSE file for details.
  %%%
  %%% File    : market.erl
  %%% Author  : Siraaj Khandkar <siraaj@khandkar.net>
  %%% Purpose : Simple stock market simulation.
  %%%----------------------------------------------------------------------------
  
  -module(market).
  -compile(export_all).
  
  