informativos-api 1.0.0 → 1.5.1.1.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/gen/CorporateActions_pb.rb +96 -0
- data/gen/CorporateActions_services_pb.rb +22 -0
- data/gen/Countries_pb.rb +23 -0
- data/gen/Countries_services_pb.rb +22 -0
- data/gen/Currencies_pb.rb +24 -0
- data/gen/Currencies_services_pb.rb +22 -0
- data/gen/Holidays_pb.rb +24 -0
- data/gen/Holidays_services_pb.rb +22 -0
- data/gen/Issuers_pb.rb +24 -0
- data/gen/Issuers_services_pb.rb +22 -0
- data/gen/Markets_pb.rb +23 -0
- data/gen/Markets_services_pb.rb +22 -0
- data/gen/Prices_pb.rb +23 -20
- data/gen/Prices_services_pb.rb +2 -2
- data/gen/Securities_pb.rb +71 -0
- data/gen/Securities_services_pb.rb +23 -0
- data/informativos-api.gemspec +2 -2
- data/lib/informativos-api.rb +8 -0
- metadata +22 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c53d50bba015f06ae22482a27e37cae8cee35bed5fb47f0927ddc33249ab16e6
|
4
|
+
data.tar.gz: d508ab9ced2ef741f5ad5b59a6e3e8e6a12649bb33e026c14156517d6a07982b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 627610a321e2aa2f5393a8e1125d984b03ebf33e20587f434cbfcb5cfad457ebfa4f575dd9b608d651e930566067a4f8767b745fed2fc0426c16c2f86b2fc5e6
|
7
|
+
data.tar.gz: f8aed25940041755135ce19c40e83df58b6f07808f92e3d02eb13984c2616605b4767cf90dd841fc2f530d0580f6bbe8341cfd326501ff90f673d371232982a8
|
data/Gemfile.lock
CHANGED
@@ -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/Countries_pb.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: Countries.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("Countries.proto", :syntax => :proto3) do
|
8
|
+
add_message "informativos.GetCountriesReq" do
|
9
|
+
optional :updated_since, :uint64, 1
|
10
|
+
end
|
11
|
+
add_message "informativos.Country" do
|
12
|
+
optional :updated_at, :uint64, 1
|
13
|
+
optional :id, :string, 2
|
14
|
+
optional :name, :string, 3
|
15
|
+
optional :code, :string, 4
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Informativos
|
21
|
+
GetCountriesReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetCountriesReq").msgclass
|
22
|
+
Country = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Country").msgclass
|
23
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: Countries.proto for package 'informativos'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'Countries_pb'
|
6
|
+
|
7
|
+
module Informativos
|
8
|
+
module Countries
|
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.Countries'
|
16
|
+
|
17
|
+
rpc :GetCountries, ::Informativos::GetCountriesReq, stream(::Informativos::Country)
|
18
|
+
end
|
19
|
+
|
20
|
+
Stub = Service.rpc_stub_class
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: Currencies.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("Currencies.proto", :syntax => :proto3) do
|
8
|
+
add_message "informativos.GetCurrenciesReq" do
|
9
|
+
optional :updated_since, :uint64, 1
|
10
|
+
end
|
11
|
+
add_message "informativos.Currency" do
|
12
|
+
optional :updated_at, :uint64, 1
|
13
|
+
optional :id, :string, 2
|
14
|
+
optional :name, :string, 3
|
15
|
+
optional :code, :string, 4
|
16
|
+
optional :symbol, :string, 5
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Informativos
|
22
|
+
GetCurrenciesReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetCurrenciesReq").msgclass
|
23
|
+
Currency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Currency").msgclass
|
24
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: Currencies.proto for package 'informativos'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'Currencies_pb'
|
6
|
+
|
7
|
+
module Informativos
|
8
|
+
module Currencies
|
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.Currencies'
|
16
|
+
|
17
|
+
rpc :GetCurrencies, ::Informativos::GetCurrenciesReq, stream(::Informativos::Currency)
|
18
|
+
end
|
19
|
+
|
20
|
+
Stub = Service.rpc_stub_class
|
21
|
+
end
|
22
|
+
end
|
data/gen/Holidays_pb.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: Holidays.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("Holidays.proto", :syntax => :proto3) do
|
8
|
+
add_message "informativos.GetHolidaysReq" do
|
9
|
+
optional :updated_since, :uint64, 1
|
10
|
+
end
|
11
|
+
add_message "informativos.Holiday" do
|
12
|
+
optional :updated_at, :uint64, 1
|
13
|
+
optional :id, :string, 2
|
14
|
+
optional :name, :string, 3
|
15
|
+
optional :date, :uint64, 4
|
16
|
+
optional :market_code, :string, 5
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Informativos
|
22
|
+
GetHolidaysReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetHolidaysReq").msgclass
|
23
|
+
Holiday = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Holiday").msgclass
|
24
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: Holidays.proto for package 'informativos'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'Holidays_pb'
|
6
|
+
|
7
|
+
module Informativos
|
8
|
+
module Holidays
|
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.Holidays'
|
16
|
+
|
17
|
+
rpc :GetHolidays, ::Informativos::GetHolidaysReq, stream(::Informativos::Holiday)
|
18
|
+
end
|
19
|
+
|
20
|
+
Stub = Service.rpc_stub_class
|
21
|
+
end
|
22
|
+
end
|
data/gen/Issuers_pb.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: Issuers.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("Issuers.proto", :syntax => :proto3) do
|
8
|
+
add_message "informativos.GetIssuersReq" do
|
9
|
+
optional :updated_since, :uint64, 1
|
10
|
+
end
|
11
|
+
add_message "informativos.Issuer" do
|
12
|
+
optional :updated_at, :uint64, 1
|
13
|
+
optional :id, :string, 2
|
14
|
+
optional :name, :string, 3
|
15
|
+
optional :code, :string, 4
|
16
|
+
optional :country_code, :string, 5
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Informativos
|
22
|
+
GetIssuersReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetIssuersReq").msgclass
|
23
|
+
Issuer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Issuer").msgclass
|
24
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: Issuers.proto for package 'informativos'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'Issuers_pb'
|
6
|
+
|
7
|
+
module Informativos
|
8
|
+
module Issuers
|
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.Issuers'
|
16
|
+
|
17
|
+
rpc :GetIssuers, ::Informativos::GetIssuersReq, stream(::Informativos::Issuer)
|
18
|
+
end
|
19
|
+
|
20
|
+
Stub = Service.rpc_stub_class
|
21
|
+
end
|
22
|
+
end
|
data/gen/Markets_pb.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: Markets.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("Markets.proto", :syntax => :proto3) do
|
8
|
+
add_message "informativos.GetMarketsReq" do
|
9
|
+
optional :updated_since, :uint64, 1
|
10
|
+
end
|
11
|
+
add_message "informativos.Market" do
|
12
|
+
optional :updated_at, :uint64, 1
|
13
|
+
optional :id, :string, 2
|
14
|
+
optional :name, :string, 3
|
15
|
+
optional :country_code, :string, 5
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Informativos
|
21
|
+
GetMarketsReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetMarketsReq").msgclass
|
22
|
+
Market = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Market").msgclass
|
23
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: Markets.proto for package 'informativos'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'Markets_pb'
|
6
|
+
|
7
|
+
module Informativos
|
8
|
+
module Markets
|
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.Markets'
|
16
|
+
|
17
|
+
rpc :GetMarkets, ::Informativos::GetMarketsReq, stream(::Informativos::Market)
|
18
|
+
end
|
19
|
+
|
20
|
+
Stub = Service.rpc_stub_class
|
21
|
+
end
|
22
|
+
end
|
data/gen/Prices_pb.rb
CHANGED
@@ -7,31 +7,34 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
7
7
|
add_file("Prices.proto", :syntax => :proto3) do
|
8
8
|
add_message "informativos.GetPricesReq" do
|
9
9
|
optional :updated_since, :uint64, 1
|
10
|
+
optional :origin, :string, 2
|
11
|
+
optional :security_type, :string, 3
|
12
|
+
optional :date, :uint64, 4
|
10
13
|
end
|
11
14
|
add_message "informativos.Price" do
|
12
|
-
optional :
|
13
|
-
optional :
|
14
|
-
optional :
|
15
|
-
optional :
|
16
|
-
optional :
|
17
|
-
optional :
|
18
|
-
optional :
|
19
|
-
optional :
|
20
|
-
optional :
|
21
|
-
optional :
|
22
|
-
optional :
|
23
|
-
optional :
|
24
|
-
optional :
|
25
|
-
optional :
|
26
|
-
optional :
|
27
|
-
optional :
|
28
|
-
optional :
|
29
|
-
optional :
|
15
|
+
optional :updated_at, :uint64, 1
|
16
|
+
optional :id, :string, 2
|
17
|
+
optional :security, :string, 3
|
18
|
+
optional :settlement_date, :uint64, 4
|
19
|
+
optional :date, :uint64, 5
|
20
|
+
optional :close, :double, 6
|
21
|
+
optional :open, :double, 7
|
22
|
+
optional :high, :double, 8
|
23
|
+
optional :low, :double, 9
|
24
|
+
optional :average, :double, 10
|
25
|
+
optional :bid, :double, 11
|
26
|
+
optional :ask, :double, 12
|
27
|
+
optional :volume, :double, 13
|
28
|
+
optional :quantity, :double, 14
|
29
|
+
optional :trades, :double, 15
|
30
|
+
optional :change, :double, 16
|
31
|
+
optional :a_change, :float, 17
|
32
|
+
optional :origin, :string, 18
|
30
33
|
end
|
31
34
|
end
|
32
35
|
end
|
33
36
|
|
34
37
|
module Informativos
|
35
|
-
GetPricesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetPricesReq").msgclass
|
36
|
-
Price = Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Price").msgclass
|
38
|
+
GetPricesReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetPricesReq").msgclass
|
39
|
+
Price = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Price").msgclass
|
37
40
|
end
|
data/gen/Prices_services_pb.rb
CHANGED
@@ -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
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: Securities.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("Securities.proto", :syntax => :proto3) do
|
8
|
+
add_message "informativos.GetSecuritiesReq" do
|
9
|
+
optional :updated_since, :uint64, 1
|
10
|
+
optional :origin, :string, 2
|
11
|
+
optional :security_type, :string, 3
|
12
|
+
end
|
13
|
+
add_message "informativos.GetSecurityMarketInfosReq" do
|
14
|
+
optional :updated_since, :uint64, 1
|
15
|
+
end
|
16
|
+
add_message "informativos.Security" do
|
17
|
+
optional :updated_at, :uint64, 1
|
18
|
+
optional :id, :string, 2
|
19
|
+
optional :name, :string, 3
|
20
|
+
optional :isin, :string, 4
|
21
|
+
optional :symbol, :string, 5
|
22
|
+
optional :is_ibov, :bool, 6
|
23
|
+
optional :type, :enum, 7, "informativos.Security.Type"
|
24
|
+
optional :spec, :string, 8
|
25
|
+
optional :settlement_date, :uint64, 9
|
26
|
+
optional :underlying_security, :string, 10
|
27
|
+
optional :issuer_code, :string, 11
|
28
|
+
end
|
29
|
+
add_enum "informativos.Security.Type" do
|
30
|
+
value :UNDEFINED, 0
|
31
|
+
value :NOT_MAPPED, 1
|
32
|
+
value :LFT, 2
|
33
|
+
value :LTN, 3
|
34
|
+
value :NTNB, 4
|
35
|
+
value :NTNC, 5
|
36
|
+
value :NTNF, 6
|
37
|
+
value :OPTION, 7
|
38
|
+
value :STOCK, 8
|
39
|
+
value :TERM, 9
|
40
|
+
value :SUBSCRIPTION_RIGHT, 10
|
41
|
+
value :SUBSCRIPTION_RECEIPT, 11
|
42
|
+
value :FUND, 12
|
43
|
+
value :FUTURE, 13
|
44
|
+
value :BDR, 14
|
45
|
+
value :FII, 15
|
46
|
+
value :ETF, 16
|
47
|
+
value :BONUS, 17
|
48
|
+
value :INDEX, 18
|
49
|
+
value :EXCHANGE_RATE, 19
|
50
|
+
value :GOVERNMENT_BOND, 20
|
51
|
+
end
|
52
|
+
add_message "informativos.SecurityMarketInfo" do
|
53
|
+
optional :updated_at, :uint64, 1
|
54
|
+
optional :id, :string, 2
|
55
|
+
optional :on_quantity, :uint64, 3
|
56
|
+
optional :pn_quantity, :uint64, 4
|
57
|
+
optional :total_quantity, :uint64, 5
|
58
|
+
optional :date, :uint64, 6
|
59
|
+
optional :issuer_code, :string, 7
|
60
|
+
optional :security_prefix, :string, 8
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
module Informativos
|
66
|
+
GetSecuritiesReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetSecuritiesReq").msgclass
|
67
|
+
GetSecurityMarketInfosReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.GetSecurityMarketInfosReq").msgclass
|
68
|
+
Security = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Security").msgclass
|
69
|
+
Security::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.Security.Type").enummodule
|
70
|
+
SecurityMarketInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("informativos.SecurityMarketInfo").msgclass
|
71
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: Securities.proto for package 'informativos'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'Securities_pb'
|
6
|
+
|
7
|
+
module Informativos
|
8
|
+
module Securities
|
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.Securities'
|
16
|
+
|
17
|
+
rpc :GetSecurities, ::Informativos::GetSecuritiesReq, stream(::Informativos::Security)
|
18
|
+
rpc :GetSecurityMarketInfos, ::Informativos::GetSecurityMarketInfosReq, stream(::Informativos::SecurityMarketInfo)
|
19
|
+
end
|
20
|
+
|
21
|
+
Stub = Service.rpc_stub_class
|
22
|
+
end
|
23
|
+
end
|
data/informativos-api.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Breno Perricone Fischer"]
|
9
9
|
spec.email = ["breno@investtools.com.br"]
|
10
10
|
spec.summary = %q{Informativos API}
|
11
|
-
spec.description = %q{Informativos API}
|
12
|
-
spec.homepage = "https://api.
|
11
|
+
spec.description = %q{Informativos API wusing grpc protocol}
|
12
|
+
spec.homepage = "https://api.informativos.io/"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
spec.files = `git ls-files`.split($/)
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'CorporateActions_services_pb'
|
2
|
+
require 'Countries_services_pb'
|
3
|
+
require 'Currencies_services_pb'
|
4
|
+
require 'Issuers_services_pb'
|
5
|
+
require 'Holidays_services_pb'
|
6
|
+
require 'Markets_services_pb'
|
7
|
+
require 'Prices_services_pb'
|
8
|
+
require 'Securities_services_pb'
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: informativos-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.1.1.beta
|
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:
|
11
|
+
date: 2022-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Informativos API
|
13
|
+
description: Informativos API wusing grpc protocol
|
14
14
|
email:
|
15
15
|
- breno@investtools.com.br
|
16
16
|
executables: []
|
@@ -21,10 +21,25 @@ files:
|
|
21
21
|
- Gemfile.lock
|
22
22
|
- LICENSE.txt
|
23
23
|
- Rakefile
|
24
|
+
- gen/CorporateActions_pb.rb
|
25
|
+
- gen/CorporateActions_services_pb.rb
|
26
|
+
- gen/Countries_pb.rb
|
27
|
+
- gen/Countries_services_pb.rb
|
28
|
+
- gen/Currencies_pb.rb
|
29
|
+
- gen/Currencies_services_pb.rb
|
30
|
+
- gen/Holidays_pb.rb
|
31
|
+
- gen/Holidays_services_pb.rb
|
32
|
+
- gen/Issuers_pb.rb
|
33
|
+
- gen/Issuers_services_pb.rb
|
34
|
+
- gen/Markets_pb.rb
|
35
|
+
- gen/Markets_services_pb.rb
|
24
36
|
- gen/Prices_pb.rb
|
25
37
|
- gen/Prices_services_pb.rb
|
38
|
+
- gen/Securities_pb.rb
|
39
|
+
- gen/Securities_services_pb.rb
|
26
40
|
- informativos-api.gemspec
|
27
|
-
|
41
|
+
- lib/informativos-api.rb
|
42
|
+
homepage: https://api.informativos.io/
|
28
43
|
licenses:
|
29
44
|
- MIT
|
30
45
|
metadata: {}
|
@@ -40,11 +55,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
40
55
|
version: '0'
|
41
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
57
|
requirements:
|
43
|
-
- - "
|
58
|
+
- - ">"
|
44
59
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
60
|
+
version: 1.3.1
|
46
61
|
requirements: []
|
47
|
-
rubygems_version: 3.0.3
|
62
|
+
rubygems_version: 3.0.3.1
|
48
63
|
signing_key:
|
49
64
|
specification_version: 4
|
50
65
|
summary: Informativos API
|