syntax = "proto2";
package Trd_GetComboMaxTrdQtys;
option java_package = "com.futu.openapi.pb";
option go_package = "github.com/futuopen/ftapi4go/pb/trdgetmaxtrdqtys";

import "Common.proto";
import "Trd_Common.proto";
import "Qot_Common.proto";

message C2S
{
	required Trd_Common.TrdHeader header = 1; //交易公共参数头
	
	repeated Qot_Common.ComboLeg comboLegs = 2; //组合的腿信息
	required double qty = 4; //数量，实际数量为 qty * 腿的 qty_ratio
	optional double price = 5; //价格
	required int32 orderType = 6; //订单类型, 参见Trd_Common.OrderType的枚举定义
	optional string orderIDEx = 7; //订单号，改单时使用
}

message S2C
{
	required Trd_Common.TrdHeader header = 1; //交易公共参数头
	optional Trd_Common.ComboMaxTrdQtys maxTrdQtys = 2; //组合最大可交易数量结构
}

message Request
{
	required C2S c2s = 1;
}

message Response
{
	//以下3个字段每条协议都有，注释说明在InitConnect.proto中
	required int32 retType = 1 [default = -400];
	optional string retMsg = 2;
	optional int32 errCode = 3;
	
	optional S2C s2c = 4;
}
