示例#1
0
        public string GetRatioTradeData([FromQuery] int symbolId1, [FromQuery] int symbolId2)
        {
            List <PointData> tradeData = _symbolService.GetRatio(symbolId1, symbolId2);

            return(JsonConvert.SerializeObject(tradeData));
            //return "s1:" + symbolId1 + " , s2=" + symbolId2;
        }
示例#2
0
        public void DrawRatio(int symbolId1, int symbolId2, bool adjustedPrice)
        {
            List <PointData> listRatio = _symbolService.GetRatio(symbolId1, symbolId2, adjustedPrice);

            Clear();
            addChartSeries("Ratio");
            configureChartSeries();
            addData("Ratio", listRatio);
        }