public ExecutionReport CancelOrder(string id)
        {
            var executionReport = _orderbookService.CancelOrder(id).FirstOrDefault();

            if (executionReport != null)
            {
                if (executionReport.LastLiquidityInd == 0)
                {
                    executionReport.LastLiquidityInd = LastLiquidityInd.AddedLiquidity;
                }
                if (executionReport.TimeInForce == 0)
                {
                    executionReport.TimeInForce = TimeInForce.GoodTillCancel;
                }
            }
            return(executionReport);
        }
Exemplo n.º 2
0
        public IHttpActionResult Delete(string id)
        {
            var executionReport = _orderbookService.CancelOrder(id).FirstOrDefault();

            return(Json(executionReport));
        }