radar-api 0.14.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile.lock +10 -3
  3. data/Rakefile +4 -0
  4. data/gen/exporter_pb.rb +17 -0
  5. data/gen/exporter_services_pb.rb +22 -0
  6. data/gen/portfolios_pb.rb +58 -0
  7. data/gen/portfolios_services_pb.rb +22 -0
  8. data/lib/radar-api.rb +1 -13
  9. data/radar-api.gemspec +2 -1
  10. metadata +24 -33
  11. data/gen/radar/api/analyzer_controller.rb +0 -605
  12. data/gen/radar/api/calendar_service.rb +0 -200
  13. data/gen/radar/api/common_constants.rb +0 -13
  14. data/gen/radar/api/common_types.rb +0 -223
  15. data/gen/radar/api/data_server_constants.rb +0 -13
  16. data/gen/radar/api/data_server_types.rb +0 -97
  17. data/gen/radar/api/fund_service.rb +0 -192
  18. data/gen/radar/api/healthz.rb +0 -84
  19. data/gen/radar/api/healthz_constants.rb +0 -13
  20. data/gen/radar/api/healthz_types.rb +0 -19
  21. data/gen/radar/api/index_service.rb +0 -200
  22. data/gen/radar/api/integration_status_service.rb +0 -74
  23. data/gen/radar/api/portfolio_analyzer_constants.rb +0 -13
  24. data/gen/radar/api/portfolio_analyzer_types.rb +0 -661
  25. data/gen/radar/api/portfolio_service.rb +0 -194
  26. data/gen/radar/api/security_service.rb +0 -370
  27. data/gen/radar/api/transaction_constants.rb +0 -13
  28. data/gen/radar/api/transaction_file_importer.rb +0 -94
  29. data/gen/radar/api/transaction_file_importer_constants.rb +0 -13
  30. data/gen/radar/api/transaction_file_importer_types.rb +0 -38
  31. data/gen/radar/api/transaction_importer.rb +0 -252
  32. data/gen/radar/api/transaction_importer_constants.rb +0 -13
  33. data/gen/radar/api/transaction_importer_types.rb +0 -60
  34. data/gen/radar/api/transaction_types.rb +0 -302
  35. data/gen/radar_constants.rb +0 -9
  36. data/gen/radar_types.rb +0 -14
@@ -1,97 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.12.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'radar/api/common_types'
9
- require 'radar/api/transaction_types'
10
-
11
-
12
- module Radar
13
- module Api
14
- class Price; end
15
-
16
- class DailyFundData; end
17
-
18
- class SecurityPosition; end
19
-
20
- class MonthlyPosition; end
21
-
22
- class Price
23
- include ::Thrift::Struct, ::Thrift::Struct_Union
24
- DATE = 1
25
- CLOSE = 2
26
-
27
- FIELDS = {
28
- DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
29
- CLOSE => {:type => ::Thrift::Types::DOUBLE, :name => 'close'}
30
- }
31
-
32
- def struct_fields; FIELDS; end
33
-
34
- def validate
35
- end
36
-
37
- ::Thrift::Struct.generate_accessors self
38
- end
39
-
40
- class DailyFundData
41
- include ::Thrift::Struct, ::Thrift::Struct_Union
42
- PRICE = 1
43
- DATE = 2
44
- NAV = 3
45
-
46
- FIELDS = {
47
- PRICE => {:type => ::Thrift::Types::DOUBLE, :name => 'price'},
48
- DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
49
- NAV => {:type => ::Thrift::Types::DOUBLE, :name => 'nav'}
50
- }
51
-
52
- def struct_fields; FIELDS; end
53
-
54
- def validate
55
- end
56
-
57
- ::Thrift::Struct.generate_accessors self
58
- end
59
-
60
- class SecurityPosition
61
- include ::Thrift::Struct, ::Thrift::Struct_Union
62
- SYMBOL = 1
63
- SHARES = 2
64
-
65
- FIELDS = {
66
- SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'symbol'},
67
- SHARES => {:type => ::Thrift::Types::I32, :name => 'shares'}
68
- }
69
-
70
- def struct_fields; FIELDS; end
71
-
72
- def validate
73
- end
74
-
75
- ::Thrift::Struct.generate_accessors self
76
- end
77
-
78
- class MonthlyPosition
79
- include ::Thrift::Struct, ::Thrift::Struct_Union
80
- DATE = 1
81
- POSITION = 2
82
-
83
- FIELDS = {
84
- DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
85
- POSITION => {:type => ::Thrift::Types::LIST, :name => 'position', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::SecurityPosition}}
86
- }
87
-
88
- def struct_fields; FIELDS; end
89
-
90
- def validate
91
- end
92
-
93
- ::Thrift::Struct.generate_accessors self
94
- end
95
-
96
- end
97
- end
@@ -1,192 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.12.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'radar/api/data_server_types'
9
-
10
- module Radar
11
- module Api
12
- module FundService
13
- class Client
14
- include ::Thrift::Client
15
-
16
- def name(id)
17
- send_name(id)
18
- return recv_name()
19
- end
20
-
21
- def send_name(id)
22
- send_message('name', Name_args, :id => id)
23
- end
24
-
25
- def recv_name()
26
- result = receive_message(Name_result)
27
- return result.success unless result.success.nil?
28
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'name failed: unknown result')
29
- end
30
-
31
- def short_name(id)
32
- send_short_name(id)
33
- return recv_short_name()
34
- end
35
-
36
- def send_short_name(id)
37
- send_message('short_name', Short_name_args, :id => id)
38
- end
39
-
40
- def recv_short_name()
41
- result = receive_message(Short_name_result)
42
- return result.success unless result.success.nil?
43
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'short_name failed: unknown result')
44
- end
45
-
46
- def daily_data(id, date)
47
- send_daily_data(id, date)
48
- return recv_daily_data()
49
- end
50
-
51
- def send_daily_data(id, date)
52
- send_message('daily_data', Daily_data_args, :id => id, :date => date)
53
- end
54
-
55
- def recv_daily_data()
56
- result = receive_message(Daily_data_result)
57
- return result.success unless result.success.nil?
58
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'daily_data failed: unknown result')
59
- end
60
-
61
- end
62
-
63
- class Processor
64
- include ::Thrift::Processor
65
-
66
- def process_name(seqid, iprot, oprot)
67
- args = read_args(iprot, Name_args)
68
- result = Name_result.new()
69
- result.success = @handler.name(args.id)
70
- write_result(result, oprot, 'name', seqid)
71
- end
72
-
73
- def process_short_name(seqid, iprot, oprot)
74
- args = read_args(iprot, Short_name_args)
75
- result = Short_name_result.new()
76
- result.success = @handler.short_name(args.id)
77
- write_result(result, oprot, 'short_name', seqid)
78
- end
79
-
80
- def process_daily_data(seqid, iprot, oprot)
81
- args = read_args(iprot, Daily_data_args)
82
- result = Daily_data_result.new()
83
- result.success = @handler.daily_data(args.id, args.date)
84
- write_result(result, oprot, 'daily_data', seqid)
85
- end
86
-
87
- end
88
-
89
- # HELPER FUNCTIONS AND STRUCTURES
90
-
91
- class Name_args
92
- include ::Thrift::Struct, ::Thrift::Struct_Union
93
- ID = 1
94
-
95
- FIELDS = {
96
- ID => {:type => ::Thrift::Types::STRUCT, :name => 'id', :class => ::Radar::Api::FundId}
97
- }
98
-
99
- def struct_fields; FIELDS; end
100
-
101
- def validate
102
- end
103
-
104
- ::Thrift::Struct.generate_accessors self
105
- end
106
-
107
- class Name_result
108
- include ::Thrift::Struct, ::Thrift::Struct_Union
109
- SUCCESS = 0
110
-
111
- FIELDS = {
112
- SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
113
- }
114
-
115
- def struct_fields; FIELDS; end
116
-
117
- def validate
118
- end
119
-
120
- ::Thrift::Struct.generate_accessors self
121
- end
122
-
123
- class Short_name_args
124
- include ::Thrift::Struct, ::Thrift::Struct_Union
125
- ID = 1
126
-
127
- FIELDS = {
128
- ID => {:type => ::Thrift::Types::STRUCT, :name => 'id', :class => ::Radar::Api::FundId}
129
- }
130
-
131
- def struct_fields; FIELDS; end
132
-
133
- def validate
134
- end
135
-
136
- ::Thrift::Struct.generate_accessors self
137
- end
138
-
139
- class Short_name_result
140
- include ::Thrift::Struct, ::Thrift::Struct_Union
141
- SUCCESS = 0
142
-
143
- FIELDS = {
144
- SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
145
- }
146
-
147
- def struct_fields; FIELDS; end
148
-
149
- def validate
150
- end
151
-
152
- ::Thrift::Struct.generate_accessors self
153
- end
154
-
155
- class Daily_data_args
156
- include ::Thrift::Struct, ::Thrift::Struct_Union
157
- ID = 1
158
- DATE = 2
159
-
160
- FIELDS = {
161
- ID => {:type => ::Thrift::Types::STRUCT, :name => 'id', :class => ::Radar::Api::FundId},
162
- DATE => {:type => ::Thrift::Types::I64, :name => 'date'}
163
- }
164
-
165
- def struct_fields; FIELDS; end
166
-
167
- def validate
168
- end
169
-
170
- ::Thrift::Struct.generate_accessors self
171
- end
172
-
173
- class Daily_data_result
174
- include ::Thrift::Struct, ::Thrift::Struct_Union
175
- SUCCESS = 0
176
-
177
- FIELDS = {
178
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Radar::Api::DailyFundData}
179
- }
180
-
181
- def struct_fields; FIELDS; end
182
-
183
- def validate
184
- end
185
-
186
- ::Thrift::Struct.generate_accessors self
187
- end
188
-
189
- end
190
-
191
- end
192
- end
@@ -1,84 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.12.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'radar/api/healthz_types'
9
-
10
- module Radar
11
- module Api
12
- module Healthz
13
- class Client
14
- include ::Thrift::Client
15
-
16
- def status()
17
- send_status()
18
- return recv_status()
19
- end
20
-
21
- def send_status()
22
- send_message('status', Status_args)
23
- end
24
-
25
- def recv_status()
26
- result = receive_message(Status_result)
27
- return result.success unless result.success.nil?
28
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'status failed: unknown result')
29
- end
30
-
31
- end
32
-
33
- class Processor
34
- include ::Thrift::Processor
35
-
36
- def process_status(seqid, iprot, oprot)
37
- args = read_args(iprot, Status_args)
38
- result = Status_result.new()
39
- result.success = @handler.status()
40
- write_result(result, oprot, 'status', seqid)
41
- end
42
-
43
- end
44
-
45
- # HELPER FUNCTIONS AND STRUCTURES
46
-
47
- class Status_args
48
- include ::Thrift::Struct, ::Thrift::Struct_Union
49
-
50
- FIELDS = {
51
-
52
- }
53
-
54
- def struct_fields; FIELDS; end
55
-
56
- def validate
57
- end
58
-
59
- ::Thrift::Struct.generate_accessors self
60
- end
61
-
62
- class Status_result
63
- include ::Thrift::Struct, ::Thrift::Struct_Union
64
- SUCCESS = 0
65
-
66
- FIELDS = {
67
- SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => ::Radar::Api::HealthStatus}
68
- }
69
-
70
- def struct_fields; FIELDS; end
71
-
72
- def validate
73
- unless @success.nil? || ::Radar::Api::HealthStatus::VALID_VALUES.include?(@success)
74
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field success!')
75
- end
76
- end
77
-
78
- ::Thrift::Struct.generate_accessors self
79
- end
80
-
81
- end
82
-
83
- end
84
- end
@@ -1,13 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.12.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'radar/api/healthz_types'
9
-
10
- module Radar
11
- module Api
12
- end
13
- end
@@ -1,19 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.12.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
-
9
- module Radar
10
- module Api
11
- module HealthStatus
12
- HEALTHY = 0
13
- UNHEALTHY = 1
14
- VALUE_MAP = {0 => "HEALTHY", 1 => "UNHEALTHY"}
15
- VALID_VALUES = Set.new([HEALTHY, UNHEALTHY]).freeze
16
- end
17
-
18
- end
19
- end
@@ -1,200 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.12.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'radar/api/data_server_types'
9
-
10
- module Radar
11
- module Api
12
- module IndexService
13
- class Client
14
- include ::Thrift::Client
15
-
16
- def prices(symbol, start_date, end_date)
17
- send_prices(symbol, start_date, end_date)
18
- return recv_prices()
19
- end
20
-
21
- def send_prices(symbol, start_date, end_date)
22
- send_message('prices', Prices_args, :symbol => symbol, :start_date => start_date, :end_date => end_date)
23
- end
24
-
25
- def recv_prices()
26
- result = receive_message(Prices_result)
27
- return result.success unless result.success.nil?
28
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'prices failed: unknown result')
29
- end
30
-
31
- def price(symbol, date)
32
- send_price(symbol, date)
33
- return recv_price()
34
- end
35
-
36
- def send_price(symbol, date)
37
- send_message('price', Price_args, :symbol => symbol, :date => date)
38
- end
39
-
40
- def recv_price()
41
- result = receive_message(Price_result)
42
- return result.success unless result.success.nil?
43
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'price failed: unknown result')
44
- end
45
-
46
- def price_change(symbol, start_date, end_date)
47
- send_price_change(symbol, start_date, end_date)
48
- return recv_price_change()
49
- end
50
-
51
- def send_price_change(symbol, start_date, end_date)
52
- send_message('price_change', Price_change_args, :symbol => symbol, :start_date => start_date, :end_date => end_date)
53
- end
54
-
55
- def recv_price_change()
56
- result = receive_message(Price_change_result)
57
- return result.success unless result.success.nil?
58
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'price_change failed: unknown result')
59
- end
60
-
61
- end
62
-
63
- class Processor
64
- include ::Thrift::Processor
65
-
66
- def process_prices(seqid, iprot, oprot)
67
- args = read_args(iprot, Prices_args)
68
- result = Prices_result.new()
69
- result.success = @handler.prices(args.symbol, args.start_date, args.end_date)
70
- write_result(result, oprot, 'prices', seqid)
71
- end
72
-
73
- def process_price(seqid, iprot, oprot)
74
- args = read_args(iprot, Price_args)
75
- result = Price_result.new()
76
- result.success = @handler.price(args.symbol, args.date)
77
- write_result(result, oprot, 'price', seqid)
78
- end
79
-
80
- def process_price_change(seqid, iprot, oprot)
81
- args = read_args(iprot, Price_change_args)
82
- result = Price_change_result.new()
83
- result.success = @handler.price_change(args.symbol, args.start_date, args.end_date)
84
- write_result(result, oprot, 'price_change', seqid)
85
- end
86
-
87
- end
88
-
89
- # HELPER FUNCTIONS AND STRUCTURES
90
-
91
- class Prices_args
92
- include ::Thrift::Struct, ::Thrift::Struct_Union
93
- SYMBOL = 1
94
- START_DATE = 2
95
- END_DATE = 3
96
-
97
- FIELDS = {
98
- SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'symbol'},
99
- START_DATE => {:type => ::Thrift::Types::I64, :name => 'start_date'},
100
- END_DATE => {:type => ::Thrift::Types::I64, :name => 'end_date'}
101
- }
102
-
103
- def struct_fields; FIELDS; end
104
-
105
- def validate
106
- end
107
-
108
- ::Thrift::Struct.generate_accessors self
109
- end
110
-
111
- class Prices_result
112
- include ::Thrift::Struct, ::Thrift::Struct_Union
113
- SUCCESS = 0
114
-
115
- FIELDS = {
116
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::Price}}
117
- }
118
-
119
- def struct_fields; FIELDS; end
120
-
121
- def validate
122
- end
123
-
124
- ::Thrift::Struct.generate_accessors self
125
- end
126
-
127
- class Price_args
128
- include ::Thrift::Struct, ::Thrift::Struct_Union
129
- SYMBOL = 1
130
- DATE = 2
131
-
132
- FIELDS = {
133
- SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'symbol'},
134
- DATE => {:type => ::Thrift::Types::I64, :name => 'date'}
135
- }
136
-
137
- def struct_fields; FIELDS; end
138
-
139
- def validate
140
- end
141
-
142
- ::Thrift::Struct.generate_accessors self
143
- end
144
-
145
- class Price_result
146
- include ::Thrift::Struct, ::Thrift::Struct_Union
147
- SUCCESS = 0
148
-
149
- FIELDS = {
150
- SUCCESS => {:type => ::Thrift::Types::DOUBLE, :name => 'success'}
151
- }
152
-
153
- def struct_fields; FIELDS; end
154
-
155
- def validate
156
- end
157
-
158
- ::Thrift::Struct.generate_accessors self
159
- end
160
-
161
- class Price_change_args
162
- include ::Thrift::Struct, ::Thrift::Struct_Union
163
- SYMBOL = 1
164
- START_DATE = 2
165
- END_DATE = 3
166
-
167
- FIELDS = {
168
- SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'symbol'},
169
- START_DATE => {:type => ::Thrift::Types::I64, :name => 'start_date'},
170
- END_DATE => {:type => ::Thrift::Types::I64, :name => 'end_date'}
171
- }
172
-
173
- def struct_fields; FIELDS; end
174
-
175
- def validate
176
- end
177
-
178
- ::Thrift::Struct.generate_accessors self
179
- end
180
-
181
- class Price_change_result
182
- include ::Thrift::Struct, ::Thrift::Struct_Union
183
- SUCCESS = 0
184
-
185
- FIELDS = {
186
- SUCCESS => {:type => ::Thrift::Types::DOUBLE, :name => 'success'}
187
- }
188
-
189
- def struct_fields; FIELDS; end
190
-
191
- def validate
192
- end
193
-
194
- ::Thrift::Struct.generate_accessors self
195
- end
196
-
197
- end
198
-
199
- end
200
- end