| 12345678910111213141516171819202122232425262728293031 |
- syntax = "proto3";
- package type.googleapis.com.FillsPbMsg; // 替换为你的包名
- // 响应消息
- message Response {
- string biz = 1; // 业务类型
- string type = 2; // 消息类型
- string base = 3; // 基础货币
- string quote = 4; // 报价货币
- string contractcode = 5; // 合约代码
- string granularity = 6; // 粒度
- Data data = 7; // 数据
- int32 env = 8; // 环境标识
- }
- // 数据消息
- // 定义 FillsPbMsg 消息
- message Data {
- // repeated 字段表示可以有多个 Body
- repeated Body fills = 1;
- }
- // 定义 Body 子消息
- message Body {
- string price = 1; // 字段1: 价格,字符串类型
- string amount = 2; // 字段2: 数量,字符串类型
- string side = 3; // 字段3: 买卖方向,字符串类型
- int64 createddate = 4; // 字段4: 创建日期,64位整型
- int64 id = 5; // 字段5: 唯一标识符,64位整型
- }
|