Exemple #1
0
        public ActionResult Get(double fairPrice = 1, double actualPrice = 1, double riskFree = 1,
                                double strike    = 1, double spot        = 1, double time = 1, bool isCall = true)
        {
            var response = new
            {
                Status = "Ok",
                Data   = _optionService.ArbitrageCapture(fairPrice, actualPrice, riskFree, strike, spot, time, isCall)
            };

            return(Content(JsonConvert.SerializeObject(response, Formatting.Indented,
                                                       new JsonConverter[] { new StringEnumConverter() }), "application/json"));
        }