snaptrade 2.0.130 → 2.0.131
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa9509ec89bcf39b195b067ed454bcc1a2944e65f8676e8e2770ec1777a5578a
|
4
|
+
data.tar.gz: 90b79e3638a7a0e2db1b41dd5a71570a4ea360e4be5cf70dc90a6e6db9aa9d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 461ea85ac75a96dbff5bd0bcdb0758cb73821d16135c522b2e80b214de08ab1ac16bbdc8c0b5fec5dc751afe7b55cde8ee7237cc59f2b7e0f14e2be2b6400f8c
|
7
|
+
data.tar.gz: 9eaeeaf04bdbc868f1b04fd4f84c1d07dece87e30a51e12f0aa35a3a2961542ecc757a406ba0fe3548b39d524907b6f7c1bbea3729ba880fffe4685637d141c9
|
data/Gemfile.lock
CHANGED
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
|
-
[](https://rubygems.org/gems/snaptrade/versions/2.0.131)
|
10
10
|
[](https://snaptrade.com/)
|
11
11
|
|
12
12
|
</div>
|
@@ -81,7 +81,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
81
81
|
Add to Gemfile:
|
82
82
|
|
83
83
|
```ruby
|
84
|
-
gem 'snaptrade', '~> 2.0.
|
84
|
+
gem 'snaptrade', '~> 2.0.131'
|
85
85
|
```
|
86
86
|
|
87
87
|
## Getting Started<a id="getting-started"></a>
|
@@ -747,8 +747,10 @@ left empty unless you are reconnecting a disabled connection. See the [guide on
|
|
747
747
|
fixing broken connections](/docs/fix-broken-connections) for more information.
|
748
748
|
|
749
749
|
##### connectionType: [`ConnectionType`](./lib/snaptrade/models/connection_type.rb)<a id="connectiontype-connectiontypelibsnaptrademodelsconnection_typerb"></a>
|
750
|
-
|
751
|
-
|
750
|
+
Determines connection permissions (default: read) - `read`: Data access only. -
|
751
|
+
`trade`: Data and trading access. - `trade-if-available`: Attempts to establish
|
752
|
+
a trading connection if the brokerage supports it, otherwise falls back to
|
753
|
+
read-only access automatically.
|
752
754
|
|
753
755
|
##### connectionPortalVersion: [`ConnectionPortalVersion`](./lib/snaptrade/models/connection_portal_version.rb)<a id="connectionportalversion-connectionportalversionlibsnaptrademodelsconnection_portal_versionrb"></a>
|
754
756
|
Sets the connection portal version to render. Currently only v4 is supported and
|
@@ -192,7 +192,7 @@ module SnapTrade
|
|
192
192
|
# @param immediate_redirect [Boolean] When set to `true`, user will be redirected back to the partner's site instead of the connection portal. 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.
|
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
|
-
# @param connection_type [ConnectionType]
|
195
|
+
# @param connection_type [ConnectionType] Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
196
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
|
@@ -221,7 +221,7 @@ module SnapTrade
|
|
221
221
|
# @param immediate_redirect [Boolean] When set to `true`, user will be redirected back to the partner's site instead of the connection portal. 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.
|
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
|
-
# @param connection_type [ConnectionType]
|
224
|
+
# @param connection_type [ConnectionType] Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
225
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
|
@@ -14,9 +14,10 @@ module SnapTrade
|
|
14
14
|
class ConnectionType
|
15
15
|
READ = "read".freeze
|
16
16
|
TRADE = "trade".freeze
|
17
|
+
TRADE_IF_AVAILABLE = "trade-if-available".freeze
|
17
18
|
|
18
19
|
def self.all_vars
|
19
|
-
@all_vars ||= [READ, TRADE].freeze
|
20
|
+
@all_vars ||= [READ, TRADE, TRADE_IF_AVAILABLE].freeze
|
20
21
|
end
|
21
22
|
|
22
23
|
# Builds the enum from string
|
@@ -25,7 +25,7 @@ module SnapTrade
|
|
25
25
|
# 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.
|
26
26
|
attr_accessor :reconnect
|
27
27
|
|
28
|
-
#
|
28
|
+
# Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
29
29
|
attr_accessor :connection_type
|
30
30
|
|
31
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.
|
data/lib/snaptrade/version.rb
CHANGED