radar-api-legacy 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile.lock +2 -2
- data/gen/radar/api/transaction_importer.rb +9 -7
- data/lib/{radar-api-legacy.rb → radar-api.rb} +0 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d06389b5359f40a29491bb54113abb494b896795
|
4
|
+
data.tar.gz: edc78ac5ac02af96b837c9f5a6bcd4ba0d393fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f5f583b9c74565c0b1621934e4452e2f4a634a5fd7986a255cb8cd506db762ffc65394d5f7c87e1f8f70d1eda1f07319d48b2595cb312c637350763edc7abc7
|
7
|
+
data.tar.gz: 8159626e885fa9079c0a32f1d71d8a03d81ead04b2db362af91e8f09d4e7df7ea175c4db5fa3dde6234413e8b378f87f0fc5f78afbbf09c54bc16042e85f1e76
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
radar-api
|
4
|
+
radar-api (0.14.0)
|
5
5
|
thrift (~> 0.9.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -51,7 +51,7 @@ PLATFORMS
|
|
51
51
|
DEPENDENCIES
|
52
52
|
bundler (~> 1.5)
|
53
53
|
guard-rake (= 0.0.9)
|
54
|
-
radar-api
|
54
|
+
radar-api!
|
55
55
|
|
56
56
|
BUNDLED WITH
|
57
57
|
1.17.3
|
@@ -48,13 +48,13 @@ module Radar
|
|
48
48
|
return
|
49
49
|
end
|
50
50
|
|
51
|
-
def fetch_portfolio(username, password,
|
52
|
-
send_fetch_portfolio(username, password,
|
51
|
+
def fetch_portfolio(username, password, stock_position_date, option_position_date)
|
52
|
+
send_fetch_portfolio(username, password, stock_position_date, option_position_date)
|
53
53
|
return recv_fetch_portfolio()
|
54
54
|
end
|
55
55
|
|
56
|
-
def send_fetch_portfolio(username, password,
|
57
|
-
send_message('fetch_portfolio', Fetch_portfolio_args, :username => username, :password => password, :
|
56
|
+
def send_fetch_portfolio(username, password, stock_position_date, option_position_date)
|
57
|
+
send_message('fetch_portfolio', Fetch_portfolio_args, :username => username, :password => password, :stock_position_date => stock_position_date, :option_position_date => option_position_date)
|
58
58
|
end
|
59
59
|
|
60
60
|
def recv_fetch_portfolio()
|
@@ -105,7 +105,7 @@ module Radar
|
|
105
105
|
args = read_args(iprot, Fetch_portfolio_args)
|
106
106
|
result = Fetch_portfolio_result.new()
|
107
107
|
begin
|
108
|
-
result.success = @handler.fetch_portfolio(args.username, args.password, args.
|
108
|
+
result.success = @handler.fetch_portfolio(args.username, args.password, args.stock_position_date, args.option_position_date)
|
109
109
|
rescue ::Radar::Api::ApplicationError => app_error
|
110
110
|
result.app_error = app_error
|
111
111
|
rescue ::Radar::Api::AuthenticationError => auth_error
|
@@ -208,12 +208,14 @@ module Radar
|
|
208
208
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
209
209
|
USERNAME = 1
|
210
210
|
PASSWORD = 2
|
211
|
-
|
211
|
+
STOCK_POSITION_DATE = 3
|
212
|
+
OPTION_POSITION_DATE = 4
|
212
213
|
|
213
214
|
FIELDS = {
|
214
215
|
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'},
|
215
216
|
PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'},
|
216
|
-
|
217
|
+
STOCK_POSITION_DATE => {:type => ::Thrift::Types::I64, :name => 'stock_position_date'},
|
218
|
+
OPTION_POSITION_DATE => {:type => ::Thrift::Types::I64, :name => 'option_position_date'}
|
217
219
|
}
|
218
220
|
|
219
221
|
def struct_fields; FIELDS; end
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radar-api-legacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.1
|
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-
|
11
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,7 +91,7 @@ files:
|
|
91
91
|
- gen/radar/api/transaction_types.rb
|
92
92
|
- gen/radar_constants.rb
|
93
93
|
- gen/radar_types.rb
|
94
|
-
- lib/radar-api
|
94
|
+
- lib/radar-api.rb
|
95
95
|
- radar-api.gemspec
|
96
96
|
homepage: http://www.investtools.com.br/
|
97
97
|
licenses:
|
@@ -113,7 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
|
116
|
+
rubyforge_project:
|
117
|
+
rubygems_version: 2.6.14.4
|
117
118
|
signing_key:
|
118
119
|
specification_version: 4
|
119
120
|
summary: Radar API
|