syntax = "proto3"; package market.v2.trade.main.pair; // 替换为你的包名 // 定义最外层的消息类型 message Response { int32 code = 1; string msg = 2; string status = 3; int64 ts = 4; string ch = 5; MainPair mainpair = 6; } // 定义mainpair中的消息类型 message MainPair { repeated PairInfo list_list = 1; // 使用repeated关键字表示数组 } // 定义PairInfo消息类型 message PairInfo { int32 tradeId = 1; string cny = 2; string totalamount = 3; string last = 4; string volume = 5; string change = 6; }