-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterop.proto
39 lines (33 loc) · 857 Bytes
/
interop.proto
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
syntax = "proto3";
message Query {
Schema schema = 1; // table and schema
map<string, Identifiers> instruments_by_server = 2; // instruments per server
TimeReference start = 3;
TimeReference end = 4;
message TimeReference {
oneof is {
bool live = 1;
uint64 epoch_ns = 2;
}
}
// Specify the identifiers by instrument type / KDB shard
message Identifiers {
repeated string codes = 1;
}
// schema definition
message Schema {
string name = 1;
string timestamp_col = 2;
string identifier_col = 3;
repeated Field data_columns = 4;
enum Kind {
TIMESTAMP = 0;
SYMBOL = 1;
FLOAT = 2;
}
message Field {
string name = 1;
Kind kind = 2;
}
}
}