radar-api 2.8.1 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c38ed50cbcf72064fffa76a614e2e6b0e3d2e2edc8b1e32390de2836c0254007
4
- data.tar.gz: 4fac3838fb4ed75c73c9bbbc21ff8e830d3fcd9fc2b8dc7b338b7eaa98b00c4b
3
+ metadata.gz: 8d5eaea2c217c1539a4a2379de11598890b45bba72c7f30d61c49af63f0f5814
4
+ data.tar.gz: 44889add5fe13a6aee5a17255b6e8610b6ae63f47e03c59b57a901a7b6bebbf5
5
5
  SHA512:
6
- metadata.gz: b51dbc3bb426a6ccba5b83c3ca30c9b6b661e62a140020f9bf7a4849e418e4bcb43c6c60a963600b24643a825955c3ec85189b17842a045c633eccd122fc3a62
7
- data.tar.gz: 5cd908a07b96f8ec5bb4756db668ada67c9482c05ae1cae4a42e4f4250786e2a0b88a8c528346e53c61c5a7ff278ffc27c3f27f6a3a320131ec8d39f86ab0e4b
6
+ metadata.gz: beac40b3a6749ed458110fc9108b950f472de289f30f0f8002dff44c6cca0a82a2ad55975570dac450fe9963f3216cc653f505bc2cf5946946211440e746474d
7
+ data.tar.gz: fad4fde3b34619395cf903ea80f65d24743dcc14a2756adcf30eefbefbe732f3bd297728f1a076ee40b059a8b5a7e8bad1a4808f81118a2cf3df54e5ea8ce6b3
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/protobuf/timestamp_pb'
6
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
8
  add_file("cei.proto", :syntax => :proto3) do
8
9
  add_message "SolveReq" do
@@ -11,8 +12,46 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  optional :text, :string, 1
12
13
  map :cookies, :string, :string, 2
13
14
  end
15
+ add_message "AuthenticateReq" do
16
+ optional :username, :string, 1
17
+ optional :password, :string, 2
18
+ optional :partial_email, :string, 3
19
+ end
20
+ add_message "AuthenticateResp" do
21
+ optional :user_full_name, :string, 1
22
+ optional :user_full_email, :string, 2
23
+ end
24
+ add_message "VerifyAccountReq" do
25
+ optional :username, :string, 1
26
+ optional :birthdate, :message, 2, "google.protobuf.Timestamp"
27
+ end
28
+ add_message "VerifyAccountResp" do
29
+ optional :exist, :bool, 1
30
+ optional :partial_email, :string, 2
31
+ end
32
+ add_message "RecoverPasswordReq" do
33
+ optional :username, :string, 1
34
+ optional :birthdate, :message, 2, "google.protobuf.Timestamp"
35
+ end
36
+ add_message "RecoverPasswordResp" do
37
+ end
38
+ add_message "DefinePermanentPasswordReq" do
39
+ optional :username, :string, 1
40
+ optional :temporary_password, :string, 2
41
+ end
42
+ add_message "DefinePermanentPasswordResp" do
43
+ optional :permanent_password, :string, 1
44
+ end
14
45
  end
15
46
  end
16
47
 
17
48
  SolveReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("SolveReq").msgclass
18
49
  SolveResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("SolveResp").msgclass
50
+ AuthenticateReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("AuthenticateReq").msgclass
51
+ AuthenticateResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("AuthenticateResp").msgclass
52
+ VerifyAccountReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("VerifyAccountReq").msgclass
53
+ VerifyAccountResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("VerifyAccountResp").msgclass
54
+ RecoverPasswordReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("RecoverPasswordReq").msgclass
55
+ RecoverPasswordResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("RecoverPasswordResp").msgclass
56
+ DefinePermanentPasswordReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("DefinePermanentPasswordReq").msgclass
57
+ DefinePermanentPasswordResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("DefinePermanentPasswordResp").msgclass
@@ -18,3 +18,20 @@ module CaptchaCracker
18
18
 
19
19
  Stub = Service.rpc_stub_class
20
20
  end
21
+ module Account
22
+ class Service
23
+
24
+ include GRPC::GenericService
25
+
26
+ self.marshal_class_method = :encode
27
+ self.unmarshal_class_method = :decode
28
+ self.service_name = 'Account'
29
+
30
+ rpc :Authenticate, AuthenticateReq, AuthenticateResp
31
+ rpc :VerifyAccount, VerifyAccountReq, VerifyAccountResp
32
+ rpc :RecoverPassword, RecoverPasswordReq, RecoverPasswordResp
33
+ rpc :DefinePermanentPassword, DefinePermanentPasswordReq, DefinePermanentPasswordResp
34
+ end
35
+
36
+ Stub = Service.rpc_stub_class
37
+ end
@@ -0,0 +1,78 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: integration.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ require 'transaction_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("integration.proto", :syntax => :proto3) do
10
+ add_message "Radar.IntegrationStatusReq" do
11
+ optional :status, :enum, 1, "Radar.IntegrationStatus"
12
+ optional :user_id, :string, 2
13
+ end
14
+ add_message "Radar.IntegrationStatusResp" do
15
+ end
16
+ add_message "Radar.IntegrationReq" do
17
+ optional :username, :string, 1
18
+ optional :password, :string, 2
19
+ optional :user_id, :string, 3
20
+ optional :last_fetch_date, :string, 4
21
+ end
22
+ add_message "Radar.IntegrationResp" do
23
+ repeated :transactions, :message, 1, "Radar.Transaction"
24
+ optional :user_id, :string, 2
25
+ end
26
+ add_message "Radar.PersistTransactionsReq" do
27
+ optional :username, :string, 1
28
+ optional :password, :string, 2
29
+ optional :user_id, :string, 3
30
+ repeated :transactions, :message, 4, "Radar.Transaction"
31
+ end
32
+ add_message "Radar.PersistTransactionsResp" do
33
+ optional :status, :enum, 1, "Radar.IntegrationStatus"
34
+ end
35
+ add_message "Radar.IntegrationStepReq" do
36
+ optional :step, :enum, 1, "Radar.IntegrationStep"
37
+ optional :user_id, :string, 2
38
+ end
39
+ add_message "Radar.IntegrationStepResp" do
40
+ end
41
+ add_message "Radar.BackReq" do
42
+ optional :calendar_id, :string, 1
43
+ optional :date, :message, 2, "google.protobuf.Timestamp"
44
+ optional :amount, :int32, 3
45
+ end
46
+ add_message "Radar.BackResp" do
47
+ optional :date, :message, 1, "google.protobuf.Timestamp"
48
+ end
49
+ add_enum "Radar.IntegrationStatus" do
50
+ value :IDLE, 0
51
+ value :NOT_STARTED, 1
52
+ value :INTEGRATING, 2
53
+ value :COMPLETED, 3
54
+ value :FAILED, 4
55
+ value :WRONG_PASSWORD, 5
56
+ end
57
+ add_enum "Radar.IntegrationStep" do
58
+ value :AUTHENTICATING, 0
59
+ value :EXTRACTING_POSITIONS_SNAPSHOT, 1
60
+ value :EXTRACTING_TRANSACTIONS, 2
61
+ end
62
+ end
63
+ end
64
+
65
+ module Radar
66
+ IntegrationStatusReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.IntegrationStatusReq").msgclass
67
+ IntegrationStatusResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.IntegrationStatusResp").msgclass
68
+ IntegrationReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.IntegrationReq").msgclass
69
+ IntegrationResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.IntegrationResp").msgclass
70
+ PersistTransactionsReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.PersistTransactionsReq").msgclass
71
+ PersistTransactionsResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.PersistTransactionsResp").msgclass
72
+ IntegrationStepReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.IntegrationStepReq").msgclass
73
+ IntegrationStepResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.IntegrationStepResp").msgclass
74
+ BackReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.BackReq").msgclass
75
+ BackResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.BackResp").msgclass
76
+ IntegrationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.IntegrationStatus").enummodule
77
+ IntegrationStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.IntegrationStep").enummodule
78
+ end
@@ -0,0 +1,26 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: integration.proto for package 'Radar'
3
+
4
+ require 'grpc'
5
+ require 'integration_pb'
6
+
7
+ module Radar
8
+ module Integration
9
+ class Service
10
+
11
+ include GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'Radar.Integration'
16
+
17
+ rpc :PersistTransactions, PersistTransactionsReq, PersistTransactionsResp
18
+ rpc :Start, IntegrationReq, IntegrationResp
19
+ rpc :Status, IntegrationStatusReq, IntegrationStatusResp
20
+ rpc :Step, IntegrationStepReq, IntegrationStepResp
21
+ rpc :Back, BackReq, BackResp
22
+ end
23
+
24
+ Stub = Service.rpc_stub_class
25
+ end
26
+ end
@@ -4,6 +4,8 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/protobuf/timestamp_pb'
7
+ require 'google/protobuf/wrappers_pb'
8
+ require 'transaction_pb'
7
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
10
  add_file("portfolios.proto", :syntax => :proto3) do
9
11
  add_message "Radar.EquitySource" do
@@ -103,6 +105,42 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
103
105
  value :EACH_DAY, 1
104
106
  value :EACH_MONTH, 2
105
107
  end
108
+ add_message "Radar.GetInitialTaxCreditReq" do
109
+ optional :user_id, :string, 1
110
+ optional :portfolio_id, :string, 2
111
+ end
112
+ add_message "Radar.GetInitialTaxCreditResp" do
113
+ optional :swing_trade, :message, 1, "google.protobuf.DoubleValue"
114
+ optional :day_trade, :message, 2, "google.protobuf.DoubleValue"
115
+ optional :reit, :message, 3, "google.protobuf.DoubleValue"
116
+ end
117
+ add_message "Radar.SetInitialTaxCreditReq" do
118
+ optional :user_id, :string, 1
119
+ optional :portfolio_id, :string, 2
120
+ optional :swing_trade, :message, 3, "google.protobuf.DoubleValue"
121
+ optional :day_trade, :message, 4, "google.protobuf.DoubleValue"
122
+ optional :reit, :message, 5, "google.protobuf.DoubleValue"
123
+ end
124
+ add_message "Radar.SetInitialTaxCreditResp" do
125
+ optional :swing_trade, :message, 1, "google.protobuf.DoubleValue"
126
+ optional :day_trade, :message, 2, "google.protobuf.DoubleValue"
127
+ optional :reit, :message, 3, "google.protobuf.DoubleValue"
128
+ end
129
+ add_message "Radar.GetPositionSnapshotsReq" do
130
+ optional :user_id, :string, 1
131
+ optional :portfolio_id, :string, 2
132
+ end
133
+ add_message "Radar.GetPositionSnapshotsResp" do
134
+ repeated :position_snapshots, :message, 1, "Radar.EquityPositionSnapshot"
135
+ end
136
+ add_message "Radar.SetPositionSnapshotsReq" do
137
+ optional :user_id, :string, 1
138
+ optional :portfolio_id, :string, 2
139
+ repeated :position_snapshots, :message, 3, "Radar.EquityPositionSnapshot"
140
+ end
141
+ add_message "Radar.SetPositionSnapshotsResp" do
142
+ repeated :position_snapshots, :message, 1, "Radar.EquityPositionSnapshot"
143
+ end
106
144
  end
107
145
  end
108
146
 
@@ -126,4 +164,12 @@ module Radar
126
164
  Event::EquityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.EquityType").enummodule
127
165
  RunReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.RunReq").msgclass
128
166
  RunReq::Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.RunReq.Event").enummodule
167
+ GetInitialTaxCreditReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.GetInitialTaxCreditReq").msgclass
168
+ GetInitialTaxCreditResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.GetInitialTaxCreditResp").msgclass
169
+ SetInitialTaxCreditReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.SetInitialTaxCreditReq").msgclass
170
+ SetInitialTaxCreditResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.SetInitialTaxCreditResp").msgclass
171
+ GetPositionSnapshotsReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.GetPositionSnapshotsReq").msgclass
172
+ GetPositionSnapshotsResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.GetPositionSnapshotsResp").msgclass
173
+ SetPositionSnapshotsReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.SetPositionSnapshotsReq").msgclass
174
+ SetPositionSnapshotsResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.SetPositionSnapshotsResp").msgclass
129
175
  end
@@ -15,6 +15,10 @@ module Radar
15
15
  self.service_name = 'Radar.Portfolios'
16
16
 
17
17
  rpc :Run, RunReq, stream(Event)
18
+ rpc :GetInitialTaxCredit, GetInitialTaxCreditReq, GetInitialTaxCreditResp
19
+ rpc :SetInitialTaxCredit, SetInitialTaxCreditReq, SetInitialTaxCreditResp
20
+ rpc :GetPositionSnapshots, GetPositionSnapshotsReq, GetPositionSnapshotsResp
21
+ rpc :SetPositionSnapshots, SetPositionSnapshotsReq, SetPositionSnapshotsResp
18
22
  end
19
23
 
20
24
  Stub = Service.rpc_stub_class
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: transaction.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ require 'google/protobuf/wrappers_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("transaction.proto", :syntax => :proto3) do
10
+ add_message "Radar.EquityBuy" do
11
+ optional :date, :message, 1, "google.protobuf.Timestamp"
12
+ optional :equity_id, :string, 2
13
+ optional :shares, :int32, 3
14
+ optional :price, :double, 4
15
+ end
16
+ add_message "Radar.EquitySell" do
17
+ optional :date, :message, 1, "google.protobuf.Timestamp"
18
+ optional :equity_id, :string, 2
19
+ optional :shares, :int32, 3
20
+ optional :price, :double, 4
21
+ end
22
+ add_message "Radar.EquityPositionSnapshot" do
23
+ optional :date, :message, 1, "google.protobuf.Timestamp"
24
+ optional :equity_id, :string, 2
25
+ optional :shares, :int32, 3
26
+ optional :price, :message, 4, "google.protobuf.DoubleValue"
27
+ end
28
+ add_message "Radar.OptionExercise" do
29
+ optional :date, :message, 1, "google.protobuf.Timestamp"
30
+ optional :option_id, :string, 2
31
+ optional :shares, :int32, 3
32
+ optional :strike, :double, 4
33
+ end
34
+ add_message "Radar.Transaction" do
35
+ oneof :transaction_oneof do
36
+ optional :equity_buy, :message, 1, "Radar.EquityBuy"
37
+ optional :equity_sell, :message, 2, "Radar.EquitySell"
38
+ optional :equity_position_snapshot, :message, 3, "Radar.EquityPositionSnapshot"
39
+ optional :option_exercise, :message, 4, "Radar.OptionExercise"
40
+ end
41
+ end
42
+ end
43
+ end
44
+
45
+ module Radar
46
+ EquityBuy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.EquityBuy").msgclass
47
+ EquitySell = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.EquitySell").msgclass
48
+ EquityPositionSnapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.EquityPositionSnapshot").msgclass
49
+ OptionExercise = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.OptionExercise").msgclass
50
+ Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Transaction").msgclass
51
+ end
@@ -17,7 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib", "gen"]
19
19
 
20
- spec.add_development_dependency "bundler", "~> 1.5"
20
+ # spec.add_development_dependency "bundler", "~> 1.5"
21
+ spec.add_development_dependency "bundler"
21
22
  spec.add_development_dependency "guard-rake", "0.0.9"
22
23
  spec.add_development_dependency "grpc-tools", "~> 1.27.0"
23
24
  spec.add_dependency "grpc"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aizim Kelmanson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-06 00:00:00.000000000 Z
11
+ date: 2020-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.5'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.5'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: guard-rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -75,7 +75,6 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".rake_tasks~"
77
77
  - Gemfile
78
- - Gemfile.lock
79
78
  - Guardfile
80
79
  - LICENSE.txt
81
80
  - README.md
@@ -84,8 +83,11 @@ files:
84
83
  - gen/cei_services_pb.rb
85
84
  - gen/exporter_pb.rb
86
85
  - gen/exporter_services_pb.rb
86
+ - gen/integration_pb.rb
87
+ - gen/integration_services_pb.rb
87
88
  - gen/portfolios_pb.rb
88
89
  - gen/portfolios_services_pb.rb
90
+ - gen/transaction_pb.rb
89
91
  - lib/radar-api.rb
90
92
  - radar-api.gemspec
91
93
  homepage: http://www.investtools.com.br/
@@ -108,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
110
  - !ruby/object:Gem::Version
109
111
  version: '0'
110
112
  requirements: []
111
- rubygems_version: 3.0.6
113
+ rubygems_version: 3.0.8
112
114
  signing_key:
113
115
  specification_version: 4
114
116
  summary: Radar API
@@ -1,64 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- radar-api (2.8.1)
5
- grpc
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- celluloid (0.15.2)
11
- timers (~> 1.1.0)
12
- celluloid-io (0.15.0)
13
- celluloid (>= 0.15.0)
14
- nio4r (>= 0.5.0)
15
- coderay (1.1.0)
16
- ffi (1.11.1)
17
- formatador (0.2.4)
18
- google-protobuf (3.12.2)
19
- googleapis-common-protos-types (1.0.5)
20
- google-protobuf (~> 3.11)
21
- grpc (1.30.0)
22
- google-protobuf (~> 3.12)
23
- googleapis-common-protos-types (~> 1.0)
24
- grpc-tools (1.27.0)
25
- guard (2.6.0)
26
- formatador (>= 0.2.4)
27
- listen (~> 2.7)
28
- lumberjack (~> 1.0)
29
- pry (>= 0.9.12)
30
- thor (>= 0.18.1)
31
- guard-rake (0.0.9)
32
- guard
33
- rake
34
- listen (2.7.1)
35
- celluloid (>= 0.15.2)
36
- celluloid-io (>= 0.15.0)
37
- rb-fsevent (>= 0.9.3)
38
- rb-inotify (>= 0.9)
39
- lumberjack (1.0.5)
40
- method_source (0.8.2)
41
- nio4r (1.2.1)
42
- pry (0.9.12.6)
43
- coderay (~> 1.0)
44
- method_source (~> 0.8)
45
- slop (~> 3.4)
46
- rake (13.0.1)
47
- rb-fsevent (0.9.4)
48
- rb-inotify (0.9.3)
49
- ffi (>= 0.5.0)
50
- slop (3.5.0)
51
- thor (0.19.1)
52
- timers (1.1.0)
53
-
54
- PLATFORMS
55
- ruby
56
-
57
- DEPENDENCIES
58
- bundler (~> 1.5)
59
- grpc-tools (~> 1.27.0)
60
- guard-rake (= 0.0.9)
61
- radar-api!
62
-
63
- BUNDLED WITH
64
- 1.17.3