Changed from counting received responses to sent requests, as server may send additional messages like OrderChange and OrderCompleted, so there's no 1-1 correspondence between request sent and response received as it is the case in simple.rb.
Added complete managment of stocks,money and orders - previouscode lacked proper handling when order successfully canceled or accepted.