mirror of
https://github.com/speice-io/marketdata-shootout
synced 2024-11-16 21:28:08 -05:00
34 lines
397 B
Plaintext
34 lines
397 B
Plaintext
namespace MdShootout;
|
|
|
|
union MessageBody {
|
|
Trade, LevelUpdate
|
|
}
|
|
|
|
table Trade {
|
|
price:uint64;
|
|
size:uint32;
|
|
}
|
|
|
|
enum Side:uint8 {
|
|
Buy,
|
|
Sell
|
|
}
|
|
|
|
table LevelUpdate {
|
|
price:uint64;
|
|
size:uint32;
|
|
flags:uint8;
|
|
side:Side;
|
|
}
|
|
|
|
table Message {
|
|
ts_nanos:uint64;
|
|
symbol:string;
|
|
body:MessageBody;
|
|
}
|
|
|
|
table MultiMessage {
|
|
seq_no:uint64;
|
|
messages:[Message];
|
|
}
|