| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- // spot@public.increase.depth.v3.api.pb
- syntax = "proto3";
- option java_package = "com.mxc.push.common.protobuf";
- option optimize_for = SPEED;
- option java_multiple_files = true;
- option java_outer_classname = "PublicIncreaseDepthsV3ApiProto";
- // 单个买卖盘条目的结构 (与原始 .proto 保持一致)
- message DepthItemV3 {
- string price = 1;
- string quantity = 2;
- }
- // 实际深度数据内容的嵌套消息
- message DepthDataContentV3 {
- // Ask 列表 (repeated DepthItemV3),在嵌套消息内部使用 Tag 1
- repeated DepthItemV3 asks = 1;
- // Bid 列表 (repeated DepthItemV3),在嵌套消息内部使用 Tag 2
- repeated DepthItemV3 bids = 2;
- // 事件类型
- string eventType = 3;
- // 版本号
- string version = 4;
- // 最后更新 ID (或者其他某种标识)
- string lastUpdateId = 5; // 根据 protoc --decode_raw 输出 Tag 5 的值和上下文命名
- }
- // 顶层接收到的深度数据消息结构
- message PublicIncreaseDepthsV3ApiMessage {
- // Tag 1 可能包含 Topic 信息
- string topic_info = 1;
- // Tag 3 可能包含 Symbol
- string symbol = 3;
- // Tag 6 可能是一个时间戳
- int64 timestamp = 6; // 根据 protoc --decode_raw 输出 Tag 6 的值和上下文命名为 timestamp
- // Tag 313 嵌套了实际的深度数据内容
- // 注意这里的 Tag 编号是 313
- DepthDataContentV3 depth_data = 313;
- }
|