market.v2.trade.recommend.pair.proto 725 B

12345678910111213141516171819202122232425262728
  1. syntax = "proto3";
  2. package market.v2.trade.recommend.pair; // 替换为你的包名
  3. // 定义最外层的消息类型
  4. message Response {
  5. int32 code = 1;
  6. string msg = 2;
  7. string status = 3;
  8. int64 ts = 4;
  9. string ch = 5;
  10. RecommendPair recommendpair = 6;
  11. }
  12. // 定义recommendpair中的消息类型
  13. message RecommendPair {
  14. repeated PairInfo listList = 1; // 使用repeated关键字表示数组
  15. }
  16. // 定义PairInfo消息类型
  17. message PairInfo {
  18. int32 tradeId = 1;
  19. string cny = 2; // 假设cny是浮点数
  20. string totalamount = 3; // 假设totalamount是浮点数
  21. string last = 4; // 假设last是浮点数
  22. string volume = 5; // 假设volume是浮点数
  23. string change = 6; // 假设change是浮点数
  24. }