informativos-api 1.1.2 → 1.4.1

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: f839926d96545196fc0d14e4b71e28963f9d247f6474b72d14a6d91ad7612419
4
- data.tar.gz: a8f8c00364a8e5880b4934dca38939a17f835cdcacacc9fdbcc2c9d3c751c976
3
+ metadata.gz: 723235948bfe45e5983e1be04eb09fa64162a0e6186fd10a6b382d6c0f4430a8
4
+ data.tar.gz: eb3e1eb44e3c6fab14215d8cae4cba6728447089dcba6b80d74ccb7f6f644d68
5
5
  SHA512:
6
- metadata.gz: 321200bdc5ffbb52321d3b22443e716a5525e24a8ddaee304916d384c7f0d8aa0a6a8efbd460c3383cc8bf509ffcca680b5178ac1434cbe0b655caca16b936ec
7
- data.tar.gz: a51719108551afa2b67ca4d14ddf9b31b5e67d544a8dc575112ee21463e742baec13c87a26c86afc8cb0f5f4b52f59646e0f6836b90be86703e1b7c941ea0aeb
6
+ metadata.gz: 7300d91833dc21183b0f83ca22b73af0af3d54e15a1f3b52644b3820acf147a873082bd124a34c6b05883e0f4e54e341f94e6c77dca41dcf1683a696c8148db9
7
+ data.tar.gz: 374fa6d2d9b17fc162c3ce067df5281be93a199a5013621b66f044b1f137cee38ca01a85e9784180416b520145bb56d6efa65fc234222d2800507b68f98863f7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- informativos-api (1.0.0)
4
+ informativos-api (1.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,96 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: CorporateActions.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("CorporateActions.proto", :syntax => :proto3) do
8
+ add_message "informativos.GetCorporateActionsReq" do
9
+ optional :updated_since, :uint64, 1
10
+ optional :type, :enum, 2, "informativos.GetCorporateActionsReq.Type"
11
+ end
12
+ add_enum "informativos.GetCorporateActionsReq.Type" do
13
+ value :DIVIDEND, 0
14
+ value :INTEREST_ON_OWN_CAPITAL_ISSUE, 1
15
+ value :SPLIT, 2
16
+ value :REVERSE_SPLIT, 3
17
+ value :BONUS_ISSUE, 4
18
+ value :SUBSCRIPTION_RIGHT, 5
19
+ value :AMORTIZATION, 6
20
+ end
21
+ add_message "informativos.Dividend" do
22
+ optional :base_date, :uint64, 1
23
+ optional :ex_date, :uint64, 2
24
+ optional :liquidation_date, :uint64, 3
25
+ optional :value, :double, 4
26
+ optional :security, :string, 5
27
+ end
28
+ add_message "informativos.InterestOnOwnCapitalIssue" do
29
+ optional :base_date, :uint64, 1
30
+ optional :ex_date, :uint64, 2
31
+ optional :liquidation_date, :uint64, 3
32
+ optional :value, :double, 4
33
+ optional :security, :string, 5
34
+ end
35
+ add_message "informativos.Split" do
36
+ optional :date, :uint64, 1
37
+ optional :ex_date, :uint64, 2
38
+ optional :factor, :double, 3
39
+ optional :security, :string, 4
40
+ end
41
+ add_message "informativos.ReverseSplit" do
42
+ optional :date, :uint64, 1
43
+ optional :ex_date, :uint64, 2
44
+ optional :factor, :double, 3
45
+ optional :security, :string, 4
46
+ end
47
+ add_message "informativos.BonusIssue" do
48
+ optional :date, :uint64, 1
49
+ optional :ex_date, :uint64, 2
50
+ optional :factor, :double, 3
51
+ optional :security, :string, 4
52
+ end
53
+ add_message "informativos.SubscriptionRight" do
54
+ optional :date, :uint64, 1
55
+ optional :ex_date, :uint64, 2
56
+ optional :maturity_date, :uint64, 3
57
+ optional :factor, :double, 4
58
+ optional :strike, :double, 5
59
+ optional :security, :string, 6
60
+ optional :target_security, :string, 7
61
+ end
62
+ add_message "informativos.Amortization" do
63
+ optional :base_date, :uint64, 1
64
+ optional :ex_date, :uint64, 2
65
+ optional :liquidation_date, :uint64, 3
66
+ optional :value, :double, 4
67
+ optional :security, :string, 5
68
+ end
69
+ add_message "informativos.CorporateAction" do
70
+ optional :updated_at, :uint64, 1
71
+ optional :id, :string, 2
72
+ oneof :type do
73
+ optional :dividend, :message, 3, "informativos.Dividend"
74
+ optional :interest_on_own_capital_issue, :message, 4, "informativos.InterestOnOwnCapitalIssue"
75
+ optional :split, :message, 5, "informativos.Split"
76
+ optional :reverse_split, :message, 6, "informativos.ReverseSplit"
77
+ optional :bonus_issue, :message, 7, "informativos.BonusIssue"
78
+ optional :subscription_right, :message, 8, "informativos.SubscriptionRight"
79
+ optional :amortization, :message, 9, "informativos.Amortization"
80
+ end
81
+ end
82
+ end
83
+ end
84
+
85
+ module Informativos
86
+ GetCorporateActionsReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetCorporateActionsReq").msgclass
87
+ GetCorporateActionsReq::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetCorporateActionsReq.Type").enummodule
88
+ Dividend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Dividend").msgclass
89
+ InterestOnOwnCapitalIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.InterestOnOwnCapitalIssue").msgclass
90
+ Split = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Split").msgclass
91
+ ReverseSplit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.ReverseSplit").msgclass
92
+ BonusIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.BonusIssue").msgclass
93
+ SubscriptionRight = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.SubscriptionRight").msgclass
94
+ Amortization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Amortization").msgclass
95
+ CorporateAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.CorporateAction").msgclass
96
+ end
@@ -0,0 +1,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: CorporateActions.proto for package 'informativos'
3
+
4
+ require 'grpc'
5
+ require 'CorporateActions_pb'
6
+
7
+ module Informativos
8
+ module CorporateActions
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 = 'informativos.CorporateActions'
16
+
17
+ rpc :GetCorporateActions, ::Informativos::GetCorporateActionsReq, stream(::Informativos::CorporateAction)
18
+ end
19
+
20
+ Stub = Service.rpc_stub_class
21
+ end
22
+ end
data/gen/Prices_pb.rb CHANGED
@@ -9,29 +9,29 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  optional :updated_since, :uint64, 1
10
10
  end
11
11
  add_message "informativos.Price" do
12
- optional :id, :string, 1
13
- optional :security, :string, 2
14
- optional :settlement_date, :uint64, 3
15
- optional :date, :uint64, 4
16
- optional :close, :double, 5
17
- optional :open, :double, 6
18
- optional :high, :double, 7
19
- optional :low, :double, 8
20
- optional :average, :double, 9
21
- optional :bid, :double, 10
22
- optional :ask, :double, 11
23
- optional :volume, :double, 12
24
- optional :quantity, :double, 13
25
- optional :trades, :double, 14
26
- optional :change, :double, 15
27
- optional :a_change, :float, 16
28
- optional :origin, :string, 17
29
- optional :updated_at, :uint64, 18
12
+ optional :updated_at, :uint64, 1
13
+ optional :id, :string, 2
14
+ optional :security, :string, 3
15
+ optional :settlement_date, :uint64, 4
16
+ optional :date, :uint64, 5
17
+ optional :close, :double, 6
18
+ optional :open, :double, 7
19
+ optional :high, :double, 8
20
+ optional :low, :double, 9
21
+ optional :average, :double, 10
22
+ optional :bid, :double, 11
23
+ optional :ask, :double, 12
24
+ optional :volume, :double, 13
25
+ optional :quantity, :double, 14
26
+ optional :trades, :double, 15
27
+ optional :change, :double, 16
28
+ optional :a_change, :float, 17
29
+ optional :origin, :string, 18
30
30
  end
31
31
  end
32
32
  end
33
33
 
34
34
  module Informativos
35
- GetPricesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetPricesReq").msgclass
36
- Price = Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Price").msgclass
35
+ GetPricesReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetPricesReq").msgclass
36
+ Price = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Price").msgclass
37
37
  end
@@ -8,13 +8,13 @@ module Informativos
8
8
  module Prices
9
9
  class Service
10
10
 
11
- include GRPC::GenericService
11
+ include ::GRPC::GenericService
12
12
 
13
13
  self.marshal_class_method = :encode
14
14
  self.unmarshal_class_method = :decode
15
15
  self.service_name = 'informativos.Prices'
16
16
 
17
- rpc :GetPrices, GetPricesReq, stream(Price)
17
+ rpc :GetPrices, ::Informativos::GetPricesReq, stream(::Informativos::Price)
18
18
  end
19
19
 
20
20
  Stub = Service.rpc_stub_class
data/gen/Securities_pb.rb CHANGED
@@ -9,20 +9,45 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  optional :updated_since, :uint64, 1
10
10
  end
11
11
  add_message "informativos.Security" do
12
- optional :id, :string, 1
13
- optional :name, :string, 2
14
- optional :isin, :string, 3
15
- optional :symbol, :string, 4
16
- optional :is_ibov, :bool, 5
17
- optional :security_type, :string, 6
18
- optional :spec, :string, 7
19
- optional :settlement_date, :uint64, 8
20
- optional :updated_at, :uint64, 9
12
+ optional :updated_at, :uint64, 1
13
+ optional :id, :string, 2
14
+ optional :name, :string, 3
15
+ optional :isin, :string, 4
16
+ optional :symbol, :string, 5
17
+ optional :is_ibov, :bool, 6
18
+ optional :type, :enum, 7, "informativos.Security.Type"
19
+ optional :spec, :string, 8
20
+ optional :settlement_date, :uint64, 9
21
+ optional :underlying_security, :string, 10
22
+ end
23
+ add_enum "informativos.Security.Type" do
24
+ value :UNDEFINED, 0
25
+ value :NOT_MAPPED, 1
26
+ value :LFT, 2
27
+ value :LTN, 3
28
+ value :NTNB, 4
29
+ value :NTNC, 5
30
+ value :NTNF, 6
31
+ value :OPTION, 7
32
+ value :STOCK, 8
33
+ value :TERM, 9
34
+ value :SUBSCRIPTION_RIGHT, 10
35
+ value :SUBSCRIPTION_RECEIPT, 11
36
+ value :FUND, 12
37
+ value :FUTURE, 13
38
+ value :BDR, 14
39
+ value :FII, 15
40
+ value :ETF, 16
41
+ value :BONUS, 17
42
+ value :INDEX, 18
43
+ value :EXCHANGE_RATE, 19
44
+ value :GOVERNMENT_BOND, 20
21
45
  end
22
46
  end
23
47
  end
24
48
 
25
49
  module Informativos
26
- GetSecuritiesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetSecuritiesReq").msgclass
27
- Security = Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Security").msgclass
50
+ GetSecuritiesReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetSecuritiesReq").msgclass
51
+ Security = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Security").msgclass
52
+ Security::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Security.Type").enummodule
28
53
  end
@@ -8,13 +8,13 @@ module Informativos
8
8
  module Securities
9
9
  class Service
10
10
 
11
- include GRPC::GenericService
11
+ include ::GRPC::GenericService
12
12
 
13
13
  self.marshal_class_method = :encode
14
14
  self.unmarshal_class_method = :decode
15
15
  self.service_name = 'informativos.Securities'
16
16
 
17
- rpc :GetSecurities, GetSecuritiesReq, stream(Security)
17
+ rpc :GetSecurities, ::Informativos::GetSecuritiesReq, stream(::Informativos::Security)
18
18
  end
19
19
 
20
20
  Stub = Service.rpc_stub_class
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["breno@investtools.com.br"]
10
10
  spec.summary = %q{Informativos API}
11
11
  spec.description = %q{Informativos API}
12
- spec.homepage = "https://api.informtivos.io/"
12
+ spec.homepage = "https://api.informativos.io/"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files`.split($/)
@@ -1,2 +1,3 @@
1
1
  require 'Prices_services_pb'
2
2
  require 'Securities_services_pb'
3
+ require 'CorporateActions_services_pb'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: informativos-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Breno Perricone Fischer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-14 00:00:00.000000000 Z
11
+ date: 2021-10-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Informativos API
14
14
  email:
@@ -21,13 +21,15 @@ files:
21
21
  - Gemfile.lock
22
22
  - LICENSE.txt
23
23
  - Rakefile
24
+ - gen/CorporateActions_pb.rb
25
+ - gen/CorporateActions_services_pb.rb
24
26
  - gen/Prices_pb.rb
25
27
  - gen/Prices_services_pb.rb
26
28
  - gen/Securities_pb.rb
27
29
  - gen/Securities_services_pb.rb
28
30
  - informativos-api.gemspec
29
31
  - lib/informativos-api.rb
30
- homepage: https://api.informtivos.io/
32
+ homepage: https://api.informativos.io/
31
33
  licenses:
32
34
  - MIT
33
35
  metadata: {}
@@ -47,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
49
  - !ruby/object:Gem::Version
48
50
  version: '0'
49
51
  requirements: []
50
- rubygems_version: 3.0.3
52
+ rubygems_version: 3.0.3.1
51
53
  signing_key:
52
54
  specification_version: 4
53
55
  summary: Informativos API