Hiblet/NewZopa01 — pull request #41 by Hiblet (2014-04-10 17:16:53+00:00)
Title: FatFinger validation implemented for Stops; Fixed bug where exception occurred because .First() was called on an empty List;

FIXED: Market.cs
-- Bug occurred where I was calling linq .First() on an empty List.
-- Now does not query the list in the effected log message.

CHANGED: Market.cs
-- Changed atTradeAccountCheck() and atTradeLimitCheck() to return counts.
-- Removed HardDelete() calls as MarketManager.rejectOrder() does it now.

CHANGED: MarketManager.cs
-- Now the rejectOrder() function hard deletes working orders.

CHANGED: Order.cs
-- Added ValidateFatFinger() limit check for Stops in ValidatePrices():
-- - Limit orders check against LastTraded.
-- - Stop orders check their LimitPx against the Stop trigger price.
-- Changed ValidateWithinMarketMaxMin() to return current Max/Min limits.

CHANGED: WorkingOrderDAL.cs
-- HardDelete() and SoftDelete() check for an ExchID before attempt.

CHANGED: FCUtils.js
-- Added isStringPositiveDecimalKey() to block negative decimal numbers.
-- Removed commented out code.

CHANGED: Prices.js
-- Removed misleading comment about expected data format.

CHANGED: MarketControl.js
-- Changed attached onkeypress function for Pos/NegPxDelta to be
-- fc.utils.isStrictPositiveDecimalKey()

ADDED: AccountAdmin.sql
-- MySQL sql for adding and updating accounts.
-- Removed commented out hidden field.