snaptrade 2.0.49 → 2.0.51
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25060249e8a32cb8f3e96e385a11a8fc57cee85c281e2b02ece2e17a5d929086
|
4
|
+
data.tar.gz: bdcee308e27ccbf995aa2dcc14c129e555394a03b6b01e0896ce2d0483b0cb2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e380e7834b5d087216034ee1b44733b8b096b46a3f14435346aae2129b7ace1a52d2c00d32e4d09174925d82f0b530162918047de8eb4302d022a34d53fd9a6c
|
7
|
+
data.tar.gz: 660cab97610bff7ab1c771dda10a1e27392ce31b998e12c65f145f7c1422068be09ebf8827baf268eba0e00adeb8e995f8f990e055bb739e5e91c1f3b365b6f8
|
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.51)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
rubocop-ast (>= 1.2.0, < 2.0)
|
68
68
|
ruby-progressbar (~> 1.7)
|
69
69
|
unicode-display_width (>= 1.4.0, < 3.0)
|
70
|
-
rubocop-ast (1.
|
70
|
+
rubocop-ast (1.33.0)
|
71
71
|
parser (>= 3.3.1.0)
|
72
72
|
ruby-progressbar (1.13.0)
|
73
73
|
ruby2_keywords (0.0.5)
|
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.51-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.51)
|
10
10
|
[![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
|
11
11
|
|
12
12
|
</div>
|
@@ -70,7 +70,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
70
70
|
Add to Gemfile:
|
71
71
|
|
72
72
|
```ruby
|
73
|
-
gem 'snaptrade', '~> 2.0.
|
73
|
+
gem 'snaptrade', '~> 2.0.51'
|
74
74
|
```
|
75
75
|
|
76
76
|
## Getting Started<a id="getting-started"></a>
|
@@ -499,7 +499,7 @@ result = snaptrade.authentication.login_snap_trade_user(
|
|
499
499
|
custom_redirect: "https://snaptrade.com",
|
500
500
|
reconnect: "8b5f262d-4bb9-365d-888a-202bd3b15fa1",
|
501
501
|
connection_type: "read",
|
502
|
-
connection_portal_version: "
|
502
|
+
connection_portal_version: "v4",
|
503
503
|
)
|
504
504
|
p result
|
505
505
|
```
|
@@ -535,7 +535,9 @@ Sets whether the connection should be read-only or trade-enabled. Defaults to
|
|
535
535
|
read-only if not specified.
|
536
536
|
|
537
537
|
##### connectionPortalVersion: [`ConnectionPortalVersion`](./lib/snaptrade/models/connection_portal_version.rb)<a id="connectionportalversion-connectionportalversionlibsnaptrademodelsconnection_portal_versionrb"></a>
|
538
|
-
Sets the
|
538
|
+
Sets the connection portal version to render. Currently only v4 is supported and
|
539
|
+
is the default. All other versions are deprecated and will automatically be set
|
540
|
+
to v4.
|
539
541
|
|
540
542
|
#### 🔄 Return<a id="🔄-return"></a>
|
541
543
|
|
@@ -193,10 +193,10 @@ module SnapTrade
|
|
193
193
|
# @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
|
194
194
|
# @param reconnect [String] The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
|
195
195
|
# @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled. Defaults to read-only if not specified.
|
196
|
-
# @param connection_portal_version [ConnectionPortalVersion] Sets the version
|
196
|
+
# @param connection_portal_version [ConnectionPortalVersion] Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
197
197
|
# @param body [SnapTradeLoginUserRequestBody]
|
198
198
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
199
|
-
def login_snap_trade_user(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', connection_portal_version: '
|
199
|
+
def login_snap_trade_user(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', connection_portal_version: 'v4', extra: {})
|
200
200
|
_body = {}
|
201
201
|
_body[:broker] = broker if broker != SENTINEL
|
202
202
|
_body[:immediateRedirect] = immediate_redirect if immediate_redirect != SENTINEL
|
@@ -222,10 +222,10 @@ module SnapTrade
|
|
222
222
|
# @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
|
223
223
|
# @param reconnect [String] The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
|
224
224
|
# @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled. Defaults to read-only if not specified.
|
225
|
-
# @param connection_portal_version [ConnectionPortalVersion] Sets the version
|
225
|
+
# @param connection_portal_version [ConnectionPortalVersion] Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
226
226
|
# @param body [SnapTradeLoginUserRequestBody]
|
227
227
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
228
|
-
def login_snap_trade_user_with_http_info(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', connection_portal_version: '
|
228
|
+
def login_snap_trade_user_with_http_info(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', connection_portal_version: 'v4', extra: {})
|
229
229
|
_body = {}
|
230
230
|
_body[:broker] = broker if broker != SENTINEL
|
231
231
|
_body[:immediateRedirect] = immediate_redirect if immediate_redirect != SENTINEL
|
@@ -28,7 +28,7 @@ module SnapTrade
|
|
28
28
|
# Sets whether the connection should be read-only or trade-enabled. Defaults to read-only if not specified.
|
29
29
|
attr_accessor :connection_type
|
30
30
|
|
31
|
-
# Sets the version
|
31
|
+
# Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
32
32
|
attr_accessor :connection_portal_version
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -106,7 +106,7 @@ module SnapTrade
|
|
106
106
|
if attributes.key?(:'connection_portal_version')
|
107
107
|
self.connection_portal_version = attributes[:'connection_portal_version']
|
108
108
|
else
|
109
|
-
self.connection_portal_version = '
|
109
|
+
self.connection_portal_version = 'v4'
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
data/lib/snaptrade/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|