示例#1
0
            void SendStockFilter(FTAPI_Qot qot)
            {
                QotStockFilter.BaseFilter baseFilter = QotStockFilter.BaseFilter.CreateBuilder()
                                                       .SetFieldName((int)QotStockFilter.StockField.StockField_MarketVal)
                                                       .SetFilterMin(10000)
                                                       .SetFilterMax(10000000000)
                                                       .SetIsNoFilter(false)
                                                       .SetSortDir((int)QotStockFilter.SortDir.SortDir_Descend)
                                                       .Build();
                QotStockFilter.C2S c2s = QotStockFilter.C2S.CreateBuilder()
                                         .SetBegin(0)
                                         .SetNum(100)
                                         .SetMarket((int)QotCommon.QotMarket.QotMarket_HK_Security)
                                         .AddBaseFilterList(baseFilter)
                                         .Build();
                uint serialNo = qot.StockFilter(QotStockFilter.Request.CreateBuilder().SetC2S(c2s).Build());

                Console.WriteLine("SendQotStockFilter: {0}", serialNo);
            }