snaptrade 2.0.205 → 2.0.207
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/snaptrade/models/account.rb +1 -1
- data/lib/snaptrade/models/brokerage.rb +2 -1
- data/lib/snaptrade/models/brokerage_authorization.rb +2 -2
- data/lib/snaptrade/models/partner_data.rb +4 -2
- 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: a6e9d844023614d6f5e63dd33919bf78294895c818269e41b835057c6d9d22d5
|
|
4
|
+
data.tar.gz: d8bbcb61792ee010430d9c8a51c37c4560766850a42ae029ed80b1e4f18e2833
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b2936cd5ba0f60bd952d1851f808ce26176e4eb8df92b58ac6f5568af9db974dfd1768c905ac337958a1f7332a0aadc3a212b9d13b63f46b6813f3cee590605
|
|
7
|
+
data.tar.gz: d6c4748ef0fff7de44ad9a538adb654f91a90eb0f6cc02e880a89424b23a48acfea7de2bb7b8e2f53cd06b161577ba5d88b6b85575e43e48201039b7a477839c
|
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.207)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -94,7 +94,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
94
94
|
Add to Gemfile:
|
|
95
95
|
|
|
96
96
|
```ruby
|
|
97
|
-
gem 'snaptrade', '~> 2.0.
|
|
97
|
+
gem 'snaptrade', '~> 2.0.207'
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -16,7 +16,7 @@ module SnapTrade
|
|
|
16
16
|
# Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade. This ID should not change for as long as the connection stays active. If the connection is deleted and re-added, a new account ID will be generated.
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
|
|
19
|
+
# Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
|
|
20
20
|
attr_accessor :brokerage_authorization
|
|
21
21
|
|
|
22
22
|
# A display name for the account. Either assigned by the user or by the brokerage itself. For certain brokerages, SnapTrade appends the brokerage name to the account name for clarity.
|
|
@@ -34,7 +34,7 @@ module SnapTrade
|
|
|
34
34
|
# URL to the brokerage's logo in square format.
|
|
35
35
|
attr_accessor :aws_s3_square_logo_url
|
|
36
36
|
|
|
37
|
-
# URL to the brokerage's website.
|
|
37
|
+
# URL to the brokerage's website. Returns null if the brokerage has no website on record.
|
|
38
38
|
attr_accessor :url
|
|
39
39
|
|
|
40
40
|
# Whether the brokerage is enabled in SnapTrade. A disabled brokerage will not be available for new connections.
|
|
@@ -123,6 +123,7 @@ module SnapTrade
|
|
|
123
123
|
def self.openapi_nullable
|
|
124
124
|
Set.new([
|
|
125
125
|
:'aws_s3_square_logo_url',
|
|
126
|
+
:'url',
|
|
126
127
|
:'allows_trading',
|
|
127
128
|
:'allows_fractional_units',
|
|
128
129
|
:'has_reporting',
|
|
@@ -13,7 +13,7 @@ require 'time'
|
|
|
13
13
|
module SnapTrade
|
|
14
14
|
# A single connection with a brokerage. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
15
15
|
class BrokerageAuthorization
|
|
16
|
-
# Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
|
|
16
|
+
# Unique identifier for the connection (brokerage_authorization_id). This is the UUID used to reference the connection in SnapTrade.
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
19
|
# Timestamp of when the connection was established in SnapTrade.
|
|
@@ -42,7 +42,7 @@ module SnapTrade
|
|
|
42
42
|
# Whether the connection is eligible for a payout. This is an experimental field that is NOT generally available for all partners. Do not use in production without speaking to the SnapTrade team.
|
|
43
43
|
attr_accessor :is_eligible_for_payout
|
|
44
44
|
|
|
45
|
-
# Possible values include: - realtime - delayed
|
|
45
|
+
# Possible values include: - realtime - delayed Indicates whether SnapTrade will provide delayed or realtime data for this connection. `delayed` means SnapTrade uses cached data for the connection because of the customer's plan, or because of brokerage limitations. `realtime` means SnapTrade retrieves current data from the brokerage during API calls. See the \"Cache Expiry of Holdings\" column on the Holdings tab at https://support.snaptrade.com/brokerages for which val
|
|
46
46
|
attr_accessor :data_freshness_mode
|
|
47
47
|
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -19,7 +19,7 @@ module SnapTrade
|
|
|
19
19
|
# Your company or product name.
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
22
|
-
# URL to your company or product logo.
|
|
22
|
+
# URL to your company or product logo. Returns null if no logo has been configured (always the case for personal access clients).
|
|
23
23
|
attr_accessor :logo_url
|
|
24
24
|
|
|
25
25
|
# Brokerages that can be accessed by your Client ID.
|
|
@@ -43,7 +43,7 @@ module SnapTrade
|
|
|
43
43
|
# Whether recent order history is enabled for your SnapTrade Client ID.
|
|
44
44
|
attr_accessor :can_access_orders
|
|
45
45
|
|
|
46
|
-
# URI to redirect user back to after user is done adding brokerage connections.
|
|
46
|
+
# URI to redirect user back to after user is done adding brokerage connections. Returns null if no redirect URI has been configured (always the case for personal access clients).
|
|
47
47
|
attr_accessor :redirect_uri
|
|
48
48
|
|
|
49
49
|
# Shows if pin is required by users to access connection page. This field has been deprecated.
|
|
@@ -93,6 +93,8 @@ module SnapTrade
|
|
|
93
93
|
# List of attributes with nullable: true
|
|
94
94
|
def self.openapi_nullable
|
|
95
95
|
Set.new([
|
|
96
|
+
:'logo_url',
|
|
97
|
+
:'redirect_uri',
|
|
96
98
|
])
|
|
97
99
|
end
|
|
98
100
|
|
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.207
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|