mirror of
https://github.com/speice-io/marketdata-shootout
synced 2025-07-31 12:35:06 -04:00
Compile schemas for Cap'n'Proto and Flatbuffers
This commit is contained in:
28
marketdata.fbs
Normal file
28
marketdata.fbs
Normal file
@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user