radar-api 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/gen/portfolios_pb.rb +47 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d3260851b72191db1fc9ddb7447669e41a3bfb9009075148517aaaf78799d5f
|
4
|
+
data.tar.gz: 3081971c19d965a0d5ab700daf2fc92ff50786742806a804f3620b7e87dc8136
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d246e883038a136edc7f2b8829271fb11eab883c85e13e9620be149a701a9db577daeb47b1dfdb838883e22700c119a61de684f5850fdcef81da2e4d2eacc206
|
7
|
+
data.tar.gz: db857fcd7495d998a84dce244d9be2a04fb38cf38dfcf3a38fb88c71647c894c391bb051f530aab836cd303a129ee0d63f9c7a86814d526a32d01e01e3fd9715
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
radar-api (2.0
|
4
|
+
radar-api (2.1.0)
|
5
5
|
grpc
|
6
6
|
|
7
7
|
GEM
|
@@ -13,7 +13,7 @@ GEM
|
|
13
13
|
celluloid (>= 0.15.0)
|
14
14
|
nio4r (>= 0.5.0)
|
15
15
|
coderay (1.1.0)
|
16
|
-
ffi (1.
|
16
|
+
ffi (1.11.1)
|
17
17
|
formatador (0.2.4)
|
18
18
|
google-protobuf (3.11.4-universal-darwin)
|
19
19
|
googleapis-common-protos-types (1.0.4)
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
coderay (~> 1.0)
|
44
44
|
method_source (~> 0.8)
|
45
45
|
slop (~> 3.4)
|
46
|
-
rake (
|
46
|
+
rake (13.0.1)
|
47
47
|
rb-fsevent (0.9.4)
|
48
48
|
rb-inotify (0.9.3)
|
49
49
|
ffi (>= 0.5.0)
|
data/gen/portfolios_pb.rb
CHANGED
@@ -6,53 +6,90 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/protobuf/timestamp_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("portfolios.proto", :syntax => :proto3) do
|
9
|
+
add_message "Radar.EquitySource" do
|
10
|
+
optional :equity, :string, 1
|
11
|
+
end
|
12
|
+
add_message "Radar.InterestOnOwnCapital" do
|
13
|
+
optional :equity, :string, 1
|
14
|
+
end
|
9
15
|
add_message "Radar.Event" do
|
10
16
|
optional :date, :message, 1, "google.protobuf.Timestamp"
|
11
17
|
oneof :type do
|
12
18
|
optional :cash_flow, :message, 20, "Radar.Event.CashFlow"
|
13
19
|
optional :portfolio, :message, 21, "Radar.Event.Portfolio"
|
20
|
+
optional :position_month_tax, :message, 22, "Radar.Event.PositionMonthTax"
|
21
|
+
optional :stock_exempt_month_tax, :message, 23, "Radar.Event.StockExemptMonthTax"
|
14
22
|
end
|
15
23
|
end
|
16
24
|
add_message "Radar.Event.CashFlow" do
|
17
25
|
optional :type, :enum, 1, "Radar.Event.CashFlow.Type"
|
18
|
-
optional :value, :
|
26
|
+
optional :value, :double, 2
|
19
27
|
optional :source, :string, 3
|
20
28
|
end
|
21
29
|
add_enum "Radar.Event.CashFlow.Type" do
|
22
|
-
value :
|
23
|
-
value :
|
30
|
+
value :OTHER, 0
|
31
|
+
value :DIVIDEND, 1
|
32
|
+
value :INTEREST_ON_OWN_CAPITAL, 2
|
24
33
|
end
|
25
34
|
add_message "Radar.Event.Portfolio" do
|
26
|
-
repeated :
|
27
|
-
repeated :
|
35
|
+
repeated :position, :message, 1, "Radar.Event.Portfolio.Position"
|
36
|
+
repeated :provision, :message, 2, "Radar.Event.Portfolio.Provision"
|
28
37
|
end
|
29
38
|
add_message "Radar.Event.Portfolio.Position" do
|
30
39
|
optional :id, :string, 1
|
31
|
-
optional :shares, :
|
40
|
+
optional :shares, :int32, 2
|
32
41
|
optional :value, :double, 3
|
33
42
|
optional :avg_price, :double, 4
|
34
43
|
end
|
35
44
|
add_message "Radar.Event.Portfolio.Provision" do
|
36
|
-
optional :value, :
|
45
|
+
optional :value, :double, 1
|
37
46
|
optional :source, :string, 2
|
38
47
|
end
|
48
|
+
add_message "Radar.Event.PositionMonthTax" do
|
49
|
+
optional :position_type, :enum, 1, "Radar.Event.PositionType"
|
50
|
+
optional :transaction_type, :enum, 2, "Radar.Event.TransactionType"
|
51
|
+
optional :value, :double, 3
|
52
|
+
end
|
53
|
+
add_message "Radar.Event.StockExemptMonthTax" do
|
54
|
+
optional :value, :double, 1
|
55
|
+
end
|
56
|
+
add_enum "Radar.Event.PositionType" do
|
57
|
+
value :SWING_TRADE, 0
|
58
|
+
value :DAY_TRADE, 1
|
59
|
+
end
|
60
|
+
add_enum "Radar.Event.TransactionType" do
|
61
|
+
value :OTHER, 0
|
62
|
+
value :STOCK, 1
|
63
|
+
value :OPTION, 2
|
64
|
+
value :REIT, 3
|
65
|
+
value :SUBSCRIPTION_RIGHT, 4
|
66
|
+
value :ETF, 5
|
67
|
+
end
|
39
68
|
add_message "Radar.RunReq" do
|
40
69
|
optional :user_id, :string, 1
|
41
|
-
optional :
|
70
|
+
optional :portfolio_id, :string, 2
|
71
|
+
repeated :events, :enum, 3, "Radar.RunReq.Event"
|
42
72
|
end
|
43
|
-
add_enum "Radar.RunReq.
|
73
|
+
add_enum "Radar.RunReq.Event" do
|
44
74
|
value :CASH_FLOW, 0
|
75
|
+
value :EACH_DAY, 1
|
45
76
|
end
|
46
77
|
end
|
47
78
|
end
|
48
79
|
|
49
80
|
module Radar
|
81
|
+
EquitySource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.EquitySource").msgclass
|
82
|
+
InterestOnOwnCapital = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.InterestOnOwnCapital").msgclass
|
50
83
|
Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event").msgclass
|
51
84
|
Event::CashFlow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.CashFlow").msgclass
|
52
85
|
Event::CashFlow::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.CashFlow.Type").enummodule
|
53
86
|
Event::Portfolio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.Portfolio").msgclass
|
54
87
|
Event::Portfolio::Position = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.Portfolio.Position").msgclass
|
55
88
|
Event::Portfolio::Provision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.Portfolio.Provision").msgclass
|
89
|
+
Event::PositionMonthTax = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.PositionMonthTax").msgclass
|
90
|
+
Event::StockExemptMonthTax = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.StockExemptMonthTax").msgclass
|
91
|
+
Event::PositionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.PositionType").enummodule
|
92
|
+
Event::TransactionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.TransactionType").enummodule
|
56
93
|
RunReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.RunReq").msgclass
|
57
|
-
RunReq::
|
94
|
+
RunReq::Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.RunReq.Event").enummodule
|
58
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radar-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.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-03-
|
11
|
+
date: 2020-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|