forked from Chavithra/degiro-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quotecast.proto
91 lines (81 loc) · 1.68 KB
/
quotecast.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
syntax = "proto3";
package degiro_connector.quotecast;
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
message Metadata {
google.protobuf.Timestamp response_datetime = 1;
google.protobuf.Duration request_duration = 2;
}
message Quotecast {
// MESSAGES
message Request {
// <vwd_id, metrics>
map<string, google.protobuf.ListValue> subscriptions = 1;
// <vwd_id, metrics>
map<string, google.protobuf.ListValue> unsubscriptions = 2;
}
// PROPERTIES
string json_data = 1;
Metadata metadata = 2;
}
message Ticker {
// MESSAGES
message Metrics {
// <metric_name, metric_value>
map<string, double> metrics = 1;
}
// PROPERTIES
Metadata metadata = 1;
// <vwd_id, metrics>
map<string, Metrics> products = 2;
repeated string product_list = 3;
}
message Chart {
// ENUMS
enum Interval {
PT1S = 0;
PT15S = 1;
PT30S = 2;
PT1M = 3;
PT5M = 4;
PT15M = 5;
PT30M = 6;
PT60M = 7;
PT1H = 8;
P1D = 9;
P1W = 10;
P1M = 11;
P3M = 12;
P6M = 13;
P1Y = 14;
P3Y = 15;
P5Y = 16;
P10Y = 17;
P50Y = 18;
YTD = 19;
}
// MESSAGES
message Request {
string requestid = 1;
Interval resolution = 2;
string culture = 3;
Interval period = 4;
repeated string series = 5;
string tz = 6;
map<string, string> override = 7;
}
message Serie {
string times = 1;
string expires = 2;
google.protobuf.ListValue data = 3;
string id = 4;
string type = 5;
}
// PROPERTIES
string requestid = 1;
string start = 2;
string end = 3;
string resolution = 4;
repeated Serie series = 5;
}