radar-api 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/gen/radar/api/analyzer_controller.rb +1 -1
- data/gen/radar/api/calendar_service.rb +115 -1
- data/gen/radar/api/common_constants.rb +1 -1
- data/gen/radar/api/common_types.rb +20 -6
- data/gen/radar/api/data_server_constants.rb +1 -1
- data/gen/radar/api/data_server_types.rb +46 -1
- data/gen/radar/api/fund_service.rb +1 -1
- data/gen/radar/api/index_service.rb +1 -1
- data/gen/radar/api/integration_status_service.rb +74 -0
- data/gen/radar/api/portfolio_analyzer_constants.rb +1 -1
- data/gen/radar/api/portfolio_analyzer_types.rb +115 -22
- data/gen/radar/api/portfolio_service.rb +140 -0
- data/gen/radar/api/security_service.rb +1 -1
- data/gen/radar/api/transaction_constants.rb +13 -0
- data/gen/radar/api/transaction_file_importer.rb +89 -0
- data/gen/radar/api/transaction_file_importer_constants.rb +13 -0
- data/gen/radar/api/transaction_file_importer_types.rb +37 -0
- data/gen/radar/api/transaction_importer.rb +18 -130
- data/gen/radar/api/transaction_importer_constants.rb +1 -1
- data/gen/radar/api/transaction_importer_types.rb +10 -92
- data/gen/radar/api/transaction_types.rb +331 -0
- data/gen/radar_constants.rb +1 -1
- data/gen/radar_types.rb +2 -1
- data/lib/radar-api.rb +3 -0
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a87719912ea4c976a62ca0b465a82513c0d1b91
|
4
|
+
data.tar.gz: aa26f448c8817d3508bd216e429bc6cda7926598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c318cc4b6f300d9bd234de2cefeb3bb49c14d3255993bc5d51a82cb9c081aa408e482631cf194388613b3578b98fea80d0998e6d1a660a793bf1ea55c9ac451f
|
7
|
+
data.tar.gz: 388a0e2af47d542ffa1946652635936b7b42f86ea59d268872eaf82e9b2f2b181c55c6170825716279d1a9f11ec9c6cb905efe58b8ead12e72491c98aaf62ea9
|
data/Gemfile.lock
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.12.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -28,6 +28,36 @@ module Radar
|
|
28
28
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'advance failed: unknown result')
|
29
29
|
end
|
30
30
|
|
31
|
+
def back(calendar, date, n)
|
32
|
+
send_back(calendar, date, n)
|
33
|
+
return recv_back()
|
34
|
+
end
|
35
|
+
|
36
|
+
def send_back(calendar, date, n)
|
37
|
+
send_message('back', Back_args, :calendar => calendar, :date => date, :n => n)
|
38
|
+
end
|
39
|
+
|
40
|
+
def recv_back()
|
41
|
+
result = receive_message(Back_result)
|
42
|
+
return result.success unless result.success.nil?
|
43
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'back failed: unknown result')
|
44
|
+
end
|
45
|
+
|
46
|
+
def first_business_day(calendar, date)
|
47
|
+
send_first_business_day(calendar, date)
|
48
|
+
return recv_first_business_day()
|
49
|
+
end
|
50
|
+
|
51
|
+
def send_first_business_day(calendar, date)
|
52
|
+
send_message('first_business_day', First_business_day_args, :calendar => calendar, :date => date)
|
53
|
+
end
|
54
|
+
|
55
|
+
def recv_first_business_day()
|
56
|
+
result = receive_message(First_business_day_result)
|
57
|
+
return result.success unless result.success.nil?
|
58
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'first_business_day failed: unknown result')
|
59
|
+
end
|
60
|
+
|
31
61
|
end
|
32
62
|
|
33
63
|
class Processor
|
@@ -40,6 +70,20 @@ module Radar
|
|
40
70
|
write_result(result, oprot, 'advance', seqid)
|
41
71
|
end
|
42
72
|
|
73
|
+
def process_back(seqid, iprot, oprot)
|
74
|
+
args = read_args(iprot, Back_args)
|
75
|
+
result = Back_result.new()
|
76
|
+
result.success = @handler.back(args.calendar, args.date, args.n)
|
77
|
+
write_result(result, oprot, 'back', seqid)
|
78
|
+
end
|
79
|
+
|
80
|
+
def process_first_business_day(seqid, iprot, oprot)
|
81
|
+
args = read_args(iprot, First_business_day_args)
|
82
|
+
result = First_business_day_result.new()
|
83
|
+
result.success = @handler.first_business_day(args.calendar, args.date)
|
84
|
+
write_result(result, oprot, 'first_business_day', seqid)
|
85
|
+
end
|
86
|
+
|
43
87
|
end
|
44
88
|
|
45
89
|
# HELPER FUNCTIONS AND STRUCTURES
|
@@ -80,6 +124,76 @@ module Radar
|
|
80
124
|
::Thrift::Struct.generate_accessors self
|
81
125
|
end
|
82
126
|
|
127
|
+
class Back_args
|
128
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
129
|
+
CALENDAR = 1
|
130
|
+
DATE = 2
|
131
|
+
N = 3
|
132
|
+
|
133
|
+
FIELDS = {
|
134
|
+
CALENDAR => {:type => ::Thrift::Types::STRING, :name => 'calendar'},
|
135
|
+
DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
|
136
|
+
N => {:type => ::Thrift::Types::I16, :name => 'n'}
|
137
|
+
}
|
138
|
+
|
139
|
+
def struct_fields; FIELDS; end
|
140
|
+
|
141
|
+
def validate
|
142
|
+
end
|
143
|
+
|
144
|
+
::Thrift::Struct.generate_accessors self
|
145
|
+
end
|
146
|
+
|
147
|
+
class Back_result
|
148
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
149
|
+
SUCCESS = 0
|
150
|
+
|
151
|
+
FIELDS = {
|
152
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
|
153
|
+
}
|
154
|
+
|
155
|
+
def struct_fields; FIELDS; end
|
156
|
+
|
157
|
+
def validate
|
158
|
+
end
|
159
|
+
|
160
|
+
::Thrift::Struct.generate_accessors self
|
161
|
+
end
|
162
|
+
|
163
|
+
class First_business_day_args
|
164
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
165
|
+
CALENDAR = 1
|
166
|
+
DATE = 2
|
167
|
+
|
168
|
+
FIELDS = {
|
169
|
+
CALENDAR => {:type => ::Thrift::Types::STRING, :name => 'calendar'},
|
170
|
+
DATE => {:type => ::Thrift::Types::I64, :name => '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 First_business_day_result
|
182
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
183
|
+
SUCCESS = 0
|
184
|
+
|
185
|
+
FIELDS = {
|
186
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :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
|
+
|
83
197
|
end
|
84
198
|
|
85
199
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.12.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -8,6 +8,20 @@ require 'thrift'
|
|
8
8
|
|
9
9
|
module Radar
|
10
10
|
module Api
|
11
|
+
class StockId; end
|
12
|
+
|
13
|
+
class IndexId; end
|
14
|
+
|
15
|
+
class FundId; end
|
16
|
+
|
17
|
+
class CorporateBondId; end
|
18
|
+
|
19
|
+
class GovernmentBondId; end
|
20
|
+
|
21
|
+
class CustomSecurityId; end
|
22
|
+
|
23
|
+
class SecurityId < ::Thrift::Union; end
|
24
|
+
|
11
25
|
class StockId
|
12
26
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
13
27
|
SYMBOL = 1
|
@@ -147,11 +161,11 @@ module Radar
|
|
147
161
|
CUSTOM_SECURITY = 5
|
148
162
|
|
149
163
|
FIELDS = {
|
150
|
-
STOCK => {:type => ::Thrift::Types::STRUCT, :name => 'stock', :class => ::Radar::Api::StockId},
|
151
|
-
FUND => {:type => ::Thrift::Types::STRUCT, :name => 'fund', :class => ::Radar::Api::FundId},
|
152
|
-
CORPORATE_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'corporate_bond', :class => ::Radar::Api::CorporateBondId},
|
153
|
-
GOVERNMENT_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'government_bond', :class => ::Radar::Api::GovernmentBondId},
|
154
|
-
CUSTOM_SECURITY => {:type => ::Thrift::Types::STRUCT, :name => 'custom_security', :class => ::Radar::Api::CustomSecurityId}
|
164
|
+
STOCK => {:type => ::Thrift::Types::STRUCT, :name => 'stock', :class => ::Radar::Api::StockId, :optional => true},
|
165
|
+
FUND => {:type => ::Thrift::Types::STRUCT, :name => 'fund', :class => ::Radar::Api::FundId, :optional => true},
|
166
|
+
CORPORATE_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'corporate_bond', :class => ::Radar::Api::CorporateBondId, :optional => true},
|
167
|
+
GOVERNMENT_BOND => {:type => ::Thrift::Types::STRUCT, :name => 'government_bond', :class => ::Radar::Api::GovernmentBondId, :optional => true},
|
168
|
+
CUSTOM_SECURITY => {:type => ::Thrift::Types::STRUCT, :name => 'custom_security', :class => ::Radar::Api::CustomSecurityId, :optional => true}
|
155
169
|
}
|
156
170
|
|
157
171
|
def struct_fields; FIELDS; end
|
@@ -1,15 +1,24 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.12.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
6
6
|
|
7
7
|
require 'thrift'
|
8
8
|
require 'radar/api/common_types'
|
9
|
+
require 'radar/api/transaction_types'
|
9
10
|
|
10
11
|
|
11
12
|
module Radar
|
12
13
|
module Api
|
14
|
+
class Price; end
|
15
|
+
|
16
|
+
class DailyFundData; end
|
17
|
+
|
18
|
+
class SecurityPosition; end
|
19
|
+
|
20
|
+
class MonthlyPosition; end
|
21
|
+
|
13
22
|
class Price
|
14
23
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
15
24
|
DATE = 1
|
@@ -48,5 +57,41 @@ module Radar
|
|
48
57
|
::Thrift::Struct.generate_accessors self
|
49
58
|
end
|
50
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
|
+
|
51
96
|
end
|
52
97
|
end
|
@@ -0,0 +1,74 @@
|
|
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 IntegrationStatusService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def report_status(message, user)
|
17
|
+
send_report_status(message, user)
|
18
|
+
end
|
19
|
+
|
20
|
+
def send_report_status(message, user)
|
21
|
+
send_oneway_message('report_status', Report_status_args, :message => message, :user => user)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
class Processor
|
26
|
+
include ::Thrift::Processor
|
27
|
+
|
28
|
+
def process_report_status(seqid, iprot, oprot)
|
29
|
+
args = read_args(iprot, Report_status_args)
|
30
|
+
@handler.report_status(args.message, args.user)
|
31
|
+
return
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
37
|
+
|
38
|
+
class Report_status_args
|
39
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
40
|
+
MESSAGE = 1
|
41
|
+
USER = 2
|
42
|
+
|
43
|
+
FIELDS = {
|
44
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'},
|
45
|
+
USER => {:type => ::Thrift::Types::STRING, :name => 'user'}
|
46
|
+
}
|
47
|
+
|
48
|
+
def struct_fields; FIELDS; end
|
49
|
+
|
50
|
+
def validate
|
51
|
+
end
|
52
|
+
|
53
|
+
::Thrift::Struct.generate_accessors self
|
54
|
+
end
|
55
|
+
|
56
|
+
class Report_status_result
|
57
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
58
|
+
|
59
|
+
FIELDS = {
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
def struct_fields; FIELDS; end
|
64
|
+
|
65
|
+
def validate
|
66
|
+
end
|
67
|
+
|
68
|
+
::Thrift::Struct.generate_accessors self
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.12.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -10,6 +10,13 @@ require 'radar/api/common_types'
|
|
10
10
|
|
11
11
|
module Radar
|
12
12
|
module Api
|
13
|
+
module PieChartType
|
14
|
+
PERCENT = 0
|
15
|
+
VALUE = 1
|
16
|
+
VALUE_MAP = {0 => "PERCENT", 1 => "VALUE"}
|
17
|
+
VALID_VALUES = Set.new([PERCENT, VALUE]).freeze
|
18
|
+
end
|
19
|
+
|
13
20
|
module LineSeriesType
|
14
21
|
LINE = 0
|
15
22
|
AREA = 1
|
@@ -44,6 +51,52 @@ module Radar
|
|
44
51
|
VALID_VALUES = Set.new([DIVIDEND, INTEREST_ON_OWN_CAPITAL, DEPOSIT, WITHDRAWAL]).freeze
|
45
52
|
end
|
46
53
|
|
54
|
+
class Point; end
|
55
|
+
|
56
|
+
class PieSeries; end
|
57
|
+
|
58
|
+
class PieChart; end
|
59
|
+
|
60
|
+
class LineSeries; end
|
61
|
+
|
62
|
+
class LineChartOptions; end
|
63
|
+
|
64
|
+
class LineChart; end
|
65
|
+
|
66
|
+
class BarSeries; end
|
67
|
+
|
68
|
+
class BarChartOptions; end
|
69
|
+
|
70
|
+
class BarChart; end
|
71
|
+
|
72
|
+
class Text; end
|
73
|
+
|
74
|
+
class TableCellTypes < ::Thrift::Union; end
|
75
|
+
|
76
|
+
class TableCellContent; end
|
77
|
+
|
78
|
+
class TableCellFormat; end
|
79
|
+
|
80
|
+
class TableCell; end
|
81
|
+
|
82
|
+
class TableRow; end
|
83
|
+
|
84
|
+
class Table; end
|
85
|
+
|
86
|
+
class Result < ::Thrift::Union; end
|
87
|
+
|
88
|
+
class Position; end
|
89
|
+
|
90
|
+
class Settlement < ::Thrift::Union; end
|
91
|
+
|
92
|
+
class Provision; end
|
93
|
+
|
94
|
+
class Portfolio; end
|
95
|
+
|
96
|
+
class AnalyzerConfig; end
|
97
|
+
|
98
|
+
class CashFlow; end
|
99
|
+
|
47
100
|
class Point
|
48
101
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
49
102
|
X = 1
|
@@ -83,16 +136,21 @@ module Radar
|
|
83
136
|
class PieChart
|
84
137
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
85
138
|
TITLE = 1
|
86
|
-
|
139
|
+
TYPE = 2
|
140
|
+
SERIES = 3
|
87
141
|
|
88
142
|
FIELDS = {
|
89
143
|
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
144
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :default => 1, :enum_class => ::Radar::Api::PieChartType},
|
90
145
|
SERIES => {:type => ::Thrift::Types::LIST, :name => 'series', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::PieSeries}}
|
91
146
|
}
|
92
147
|
|
93
148
|
def struct_fields; FIELDS; end
|
94
149
|
|
95
150
|
def validate
|
151
|
+
unless @type.nil? || ::Radar::Api::PieChartType::VALID_VALUES.include?(@type)
|
152
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
153
|
+
end
|
96
154
|
end
|
97
155
|
|
98
156
|
::Thrift::Struct.generate_accessors self
|
@@ -244,36 +302,49 @@ module Radar
|
|
244
302
|
::Thrift::Struct.generate_accessors self
|
245
303
|
end
|
246
304
|
|
247
|
-
class
|
305
|
+
class TableCellTypes < ::Thrift::Union
|
248
306
|
include ::Thrift::Struct_Union
|
249
307
|
class << self
|
250
308
|
def text(val)
|
251
|
-
|
309
|
+
TableCellTypes.new(:text, val)
|
310
|
+
end
|
311
|
+
|
312
|
+
def markdown(val)
|
313
|
+
TableCellTypes.new(:markdown, val)
|
252
314
|
end
|
253
315
|
|
254
316
|
def percent(val)
|
255
|
-
|
317
|
+
TableCellTypes.new(:percent, val)
|
256
318
|
end
|
257
319
|
|
258
320
|
def currency(val)
|
259
|
-
|
321
|
+
TableCellTypes.new(:currency, val)
|
260
322
|
end
|
261
323
|
|
262
324
|
def number(val)
|
263
|
-
|
325
|
+
TableCellTypes.new(:number, val)
|
326
|
+
end
|
327
|
+
|
328
|
+
def percentage_point(val)
|
329
|
+
TableCellTypes.new(:percentage_point, val)
|
264
330
|
end
|
265
331
|
end
|
266
332
|
|
267
333
|
TEXT = 1
|
334
|
+
MARKDOWN = 6
|
268
335
|
PERCENT = 2
|
269
336
|
CURRENCY = 3
|
270
337
|
NUMBER = 4
|
338
|
+
PERCENTAGE_POINT = 5
|
271
339
|
|
272
340
|
FIELDS = {
|
273
|
-
TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'},
|
274
|
-
|
275
|
-
|
276
|
-
|
341
|
+
TEXT => {:type => ::Thrift::Types::STRING, :name => 'text', :optional => true},
|
342
|
+
# Criado na versão 0.8.1.
|
343
|
+
MARKDOWN => {:type => ::Thrift::Types::STRING, :name => 'markdown', :optional => true},
|
344
|
+
PERCENT => {:type => ::Thrift::Types::DOUBLE, :name => 'percent', :optional => true},
|
345
|
+
CURRENCY => {:type => ::Thrift::Types::DOUBLE, :name => 'currency', :optional => true},
|
346
|
+
NUMBER => {:type => ::Thrift::Types::DOUBLE, :name => 'number', :optional => true},
|
347
|
+
PERCENTAGE_POINT => {:type => ::Thrift::Types::DOUBLE, :name => 'percentage_point', :optional => true}
|
277
348
|
}
|
278
349
|
|
279
350
|
def struct_fields; FIELDS; end
|
@@ -285,6 +356,24 @@ module Radar
|
|
285
356
|
::Thrift::Union.generate_accessors self
|
286
357
|
end
|
287
358
|
|
359
|
+
class TableCellContent
|
360
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
361
|
+
TYPE = 1
|
362
|
+
STRIP_INSIGNIFICANT_ZEROS = 2
|
363
|
+
|
364
|
+
FIELDS = {
|
365
|
+
TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => ::Radar::Api::TableCellTypes},
|
366
|
+
STRIP_INSIGNIFICANT_ZEROS => {:type => ::Thrift::Types::BOOL, :name => 'strip_insignificant_zeros', :default => false}
|
367
|
+
}
|
368
|
+
|
369
|
+
def struct_fields; FIELDS; end
|
370
|
+
|
371
|
+
def validate
|
372
|
+
end
|
373
|
+
|
374
|
+
::Thrift::Struct.generate_accessors self
|
375
|
+
end
|
376
|
+
|
288
377
|
class TableCellFormat
|
289
378
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
290
379
|
BOLD = 1
|
@@ -391,10 +480,10 @@ module Radar
|
|
391
480
|
BAR_CHART = 4
|
392
481
|
|
393
482
|
FIELDS = {
|
394
|
-
TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'table', :class => ::Radar::Api::Table},
|
395
|
-
PIE_CHART => {:type => ::Thrift::Types::STRUCT, :name => 'pie_chart', :class => ::Radar::Api::PieChart},
|
396
|
-
LINE_CHART => {:type => ::Thrift::Types::STRUCT, :name => 'line_chart', :class => ::Radar::Api::LineChart},
|
397
|
-
BAR_CHART => {:type => ::Thrift::Types::STRUCT, :name => 'bar_chart', :class => ::Radar::Api::BarChart}
|
483
|
+
TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'table', :class => ::Radar::Api::Table, :optional => true},
|
484
|
+
PIE_CHART => {:type => ::Thrift::Types::STRUCT, :name => 'pie_chart', :class => ::Radar::Api::PieChart, :optional => true},
|
485
|
+
LINE_CHART => {:type => ::Thrift::Types::STRUCT, :name => 'line_chart', :class => ::Radar::Api::LineChart, :optional => true},
|
486
|
+
BAR_CHART => {:type => ::Thrift::Types::STRUCT, :name => 'bar_chart', :class => ::Radar::Api::BarChart, :optional => true}
|
398
487
|
}
|
399
488
|
|
400
489
|
def struct_fields; FIELDS; end
|
@@ -409,17 +498,21 @@ module Radar
|
|
409
498
|
class Position
|
410
499
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
411
500
|
ID = 1
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
501
|
+
SHORT_NAME = 2
|
502
|
+
VALUE = 3
|
503
|
+
RENTABILITY = 4
|
504
|
+
AVG_PRICE = 5
|
505
|
+
SHARES = 6
|
506
|
+
PAID_VALUE = 7
|
416
507
|
|
417
508
|
FIELDS = {
|
418
509
|
ID => {:type => ::Thrift::Types::STRUCT, :name => 'id', :class => ::Radar::Api::SecurityId},
|
510
|
+
SHORT_NAME => {:type => ::Thrift::Types::STRING, :name => 'short_name'},
|
419
511
|
VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'value'},
|
420
512
|
RENTABILITY => {:type => ::Thrift::Types::DOUBLE, :name => 'rentability'},
|
421
513
|
AVG_PRICE => {:type => ::Thrift::Types::DOUBLE, :name => 'avg_price'},
|
422
|
-
SHARES => {:type => ::Thrift::Types::DOUBLE, :name => 'shares'}
|
514
|
+
SHARES => {:type => ::Thrift::Types::DOUBLE, :name => 'shares'},
|
515
|
+
PAID_VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'paid_value'}
|
423
516
|
}
|
424
517
|
|
425
518
|
def struct_fields; FIELDS; end
|
@@ -447,8 +540,8 @@ module Radar
|
|
447
540
|
PERIOD = 2
|
448
541
|
|
449
542
|
FIELDS = {
|
450
|
-
DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
|
451
|
-
PERIOD => {:type => ::Thrift::Types::I16, :name => 'period'}
|
543
|
+
DATE => {:type => ::Thrift::Types::I64, :name => 'date', :optional => true},
|
544
|
+
PERIOD => {:type => ::Thrift::Types::I16, :name => 'period', :optional => true}
|
452
545
|
}
|
453
546
|
|
454
547
|
def struct_fields; FIELDS; end
|