snaptrade 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +18 -20
- data/README.md +6 -4
- data/lib/snaptrade/version.rb +1 -1
- 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: 4816931d01203e4cc4259f213ac3e7ef4e86f975d3ed90a82cd429764fdb50f7
|
4
|
+
data.tar.gz: f52b81bc23ee19a30a5753a13adf8541dbf41cf163e84c4dc325da1821cbd067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2db054d1d880fc5a45ac953df9ac6fd327eacf4c3110e69a98771ebd962165db7ed84537e6d0aca06def3caebc319c79638aee5c553a1edc31cdad567bbe72cf
|
7
|
+
data.tar.gz: be64556109aee867ffba512b90d15401f5f95d02cc3afb34d37152a887895286f03c97d6225d28f2231d229a0eb2384396fae0838224b38545e32d39d6a79e24
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
snaptrade (2.0.
|
4
|
+
snaptrade (2.0.9)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -9,42 +9,40 @@ GEM
|
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
ast (2.4.2)
|
12
|
-
base64 (0.1.1)
|
13
12
|
byebug (11.1.3)
|
14
13
|
coderay (1.1.3)
|
15
14
|
debug (1.8.0)
|
16
15
|
irb (>= 1.5.0)
|
17
16
|
reline (>= 0.3.1)
|
18
17
|
diff-lcs (1.5.0)
|
19
|
-
faraday (2.
|
20
|
-
|
21
|
-
faraday-net_http (>= 2.0, < 3.1)
|
22
|
-
ruby2_keywords (>= 0.0.4)
|
18
|
+
faraday (2.9.0)
|
19
|
+
faraday-net_http (>= 2.0, < 3.2)
|
23
20
|
faraday-multipart (1.0.4)
|
24
21
|
multipart-post (~> 2)
|
25
|
-
faraday-net_http (3.0
|
22
|
+
faraday-net_http (3.1.0)
|
23
|
+
net-http
|
26
24
|
io-console (0.6.0)
|
27
25
|
irb (1.6.4)
|
28
26
|
reline (>= 0.3.0)
|
29
27
|
method_source (1.0.0)
|
30
|
-
multipart-post (2.
|
28
|
+
multipart-post (2.4.0)
|
29
|
+
net-http (0.4.1)
|
30
|
+
uri
|
31
31
|
parallel (1.23.0)
|
32
|
-
parser (3.2.2.
|
32
|
+
parser (3.2.2.1)
|
33
33
|
ast (~> 2.4.1)
|
34
|
-
racc
|
35
34
|
pry (0.14.2)
|
36
35
|
coderay (~> 1.1)
|
37
36
|
method_source (~> 1.0)
|
38
37
|
pry-byebug (3.10.1)
|
39
38
|
byebug (~> 11.0)
|
40
39
|
pry (>= 0.13, < 0.15)
|
41
|
-
racc (1.7.1)
|
42
40
|
rainbow (3.1.1)
|
43
41
|
rake (13.0.6)
|
44
|
-
regexp_parser (2.8.
|
45
|
-
reline (0.3.
|
42
|
+
regexp_parser (2.8.0)
|
43
|
+
reline (0.3.4)
|
46
44
|
io-console (~> 0.5)
|
47
|
-
rexml (3.2.
|
45
|
+
rexml (3.2.5)
|
48
46
|
rspec (3.12.0)
|
49
47
|
rspec-core (~> 3.12.0)
|
50
48
|
rspec-expectations (~> 3.12.0)
|
@@ -54,10 +52,10 @@ GEM
|
|
54
52
|
rspec-expectations (3.12.3)
|
55
53
|
diff-lcs (>= 1.2.0, < 2.0)
|
56
54
|
rspec-support (~> 3.12.0)
|
57
|
-
rspec-mocks (3.12.
|
55
|
+
rspec-mocks (3.12.5)
|
58
56
|
diff-lcs (>= 1.2.0, < 2.0)
|
59
57
|
rspec-support (~> 3.12.0)
|
60
|
-
rspec-support (3.12.
|
58
|
+
rspec-support (3.12.0)
|
61
59
|
rubocop (1.12.1)
|
62
60
|
parallel (~> 1.10)
|
63
61
|
parser (>= 3.0.0.0)
|
@@ -67,14 +65,14 @@ GEM
|
|
67
65
|
rubocop-ast (>= 1.2.0, < 2.0)
|
68
66
|
ruby-progressbar (~> 1.7)
|
69
67
|
unicode-display_width (>= 1.4.0, < 3.0)
|
70
|
-
rubocop-ast (1.
|
68
|
+
rubocop-ast (1.28.1)
|
71
69
|
parser (>= 3.2.1.0)
|
72
70
|
ruby-progressbar (1.13.0)
|
73
|
-
ruby2_keywords (0.0.5)
|
74
71
|
unicode-display_width (2.4.2)
|
72
|
+
uri (0.13.0)
|
75
73
|
|
76
74
|
PLATFORMS
|
77
|
-
arm64-darwin-
|
75
|
+
arm64-darwin-21
|
78
76
|
|
79
77
|
DEPENDENCIES
|
80
78
|
debug (~> 1.8)
|
@@ -86,4 +84,4 @@ DEPENDENCIES
|
|
86
84
|
snaptrade!
|
87
85
|
|
88
86
|
BUNDLED WITH
|
89
|
-
2.
|
87
|
+
2.3.7
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
8
8
|
|
9
|
-
[![npm](https://img.shields.io/badge/gem-v2.0.
|
9
|
+
[![npm](https://img.shields.io/badge/gem-v2.0.9-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.9)
|
10
10
|
[![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
|
11
11
|
|
12
12
|
</div>
|
@@ -71,7 +71,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
71
71
|
Add to Gemfile:
|
72
72
|
|
73
73
|
```ruby
|
74
|
-
gem 'snaptrade', '~> 2.0.
|
74
|
+
gem 'snaptrade', '~> 2.0.9'
|
75
75
|
```
|
76
76
|
|
77
77
|
## Getting Started<a id="getting-started"></a>
|
@@ -79,8 +79,10 @@ gem 'snaptrade', '~> 2.0.8'
|
|
79
79
|
```ruby
|
80
80
|
require 'snaptrade'
|
81
81
|
|
82
|
-
|
83
|
-
|
82
|
+
configuration = SnapTrade::Configuration.new
|
83
|
+
configuration.client_id = ENV["SNAPTRADE_CLIENT_ID"]
|
84
|
+
configuration.consumer_key = ENV["SNAPTRADE_CONSUMER_KEY"]
|
85
|
+
snaptrade = SnapTrade::Client.new(configuration)
|
84
86
|
result = snaptrade.account_information.get_all_user_holdings(
|
85
87
|
user_id: "John.doe@snaptrade.com",
|
86
88
|
user_secret: "USERSECRET123",
|
data/lib/snaptrade/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snaptrade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
@@ -392,7 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
392
392
|
- !ruby/object:Gem::Version
|
393
393
|
version: '0'
|
394
394
|
requirements: []
|
395
|
-
rubygems_version: 3.
|
395
|
+
rubygems_version: 3.3.7
|
396
396
|
signing_key:
|
397
397
|
specification_version: 4
|
398
398
|
summary: SnapTrade Ruby Gem
|