syntax = "proto2";
package Qot_GetSearchQuote;
option java_package = "com.futu.openapi.pb";
option go_package = "github.com/futuopen/ftapi4go/pb/qotgetsearchquote";

import "Qot_Common.proto";

message SearchQuote
{
	optional int32 market = 1;        //Qot_Common.QotMarket，市场类型
	optional string code = 2;         //交易代码，如 LITE / 01936
	optional string name = 3;         //标的名称，如 Lumentum / 利特米
	optional int32 sec_type = 4;      //Qot_Common.SecurityType，股票类型
	optional bool is_watched = 5;     //是否已在自选（需登录态）
}

message C2S
{
	required string keyword = 1;      //搜索词，如 lite
	optional int32 max_count = 2;     //行情条数上限，默认 10
	optional Qot_Common.QotHeader header = 100; //行情公共参数头
}

message S2C
{
	repeated SearchQuote search_quote_list = 1; //搜索行情列表
}

message Request
{
	required C2S c2s = 1;
}

message Response
{
	required int32 retType = 1 [default = -400]; //RetType，返回结果
	optional string retMsg = 2;
	optional int32 errCode = 3;
	optional S2C s2c = 4;
}
