if((stopLossPrice && side === "BUY" && stopLossPrice > refPrice) ||
                (stopLossPrice && side === "SELL" && stopLossPrice < refPrice)) {
                throw "Stop loss order is on the wrong side";
            }