-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlast_trade.proto
More file actions
51 lines (39 loc) · 2.71 KB
/
last_trade.proto
File metadata and controls
51 lines (39 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package rti;
message LastTrade
{
// PB_OFFSET = 100000, is the offset added for each MNM field id
// below enum is just for reference only, not used in this message
enum PresenceBits {
LAST_TRADE = 1;
NET_CHANGE = 2;
PRECENT_CHANGE = 4;
VOLUME = 8;
VWAP = 16;
}
enum TransactionType {
BUY = 1;
SELL = 2;
}
required int32 template_id = 154467; // PB_OFFSET + MNM_TEMPLATE_ID
optional string symbol = 110100; // PB_OFFSET + MNM_SYMBOL
optional string exchange = 110101; // PB_OFFSET + MNM_EXCHANGE
optional uint32 presence_bits = 149138; // PB_OFFSET + MNM_PRICING_INDICATOR
optional uint32 clear_bits = 154571; // PB_OFFSET + MNM_DISPLAY_INDICATOR
optional bool is_snapshot = 110121; // PB_OFFSET + MNM_UPDATE_TYPE
optional double trade_price = 100006; // PB_OFFSET + MNM_TRADE_PRICE
optional int32 trade_size = 100178; // PB_OFFSET + MNM_TRADE_SIZE
optional TransactionType aggressor = 112003; // PB_OFFSET + MNM_TRANSACTION_TYPE
optional string exchange_order_id = 149238; // PB_OFFSET + MNM_EXCH_ORD_ID
optional string aggressor_exchange_order_id = 154641; // PB_OFFSET + MNM_AGGRESSOR_EXCH_ORD_ID
optional double net_change = 100011; // PB_OFFSET + MNM_NET_CHANGE
optional double percent_change = 100056; // PB_OFFSET + MNM_PERCENT_CHANGE
optional uint64 volume = 100032; // PB_OFFSET + MNM_TRADE_VOLUME
optional double vwap = 101379; // PB_OFFSET + MNM_VWAP
optional int32 ssboe = 150100; // PB_OFFSET + MNM_SECONDS_SINCE_BOE
optional int32 usecs = 150101; // PB_OFFSET + MNM_USECS
optional int32 source_ssboe = 150400; // PB_OFFSET + MNM_SOURCE_SSBOE
optional int32 source_usecs = 150401; // PB_OFFSET + MNM_SOURCE_USECS
optional int32 source_nsecs = 150404; // PB_OFFSET + MNM_SOURCE_NSECS
optional int32 jop_ssboe = 150600; // PB_OFFSET + MNM_JOP_SSBOE
optional int32 jop_nsecs = 150604; // PB_OFFSET + MNM_JOP_NSECS
}