snaptrade 2.0.156 → 2.0.158

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: e1e0b2309a5ec4c7492fd0f2225d9d8971d639bae130012e8fd91b1c59151afb
4
- data.tar.gz: 63b7e828dd57e35af1254fa9a61855772479448a0d389316e141647a5b902ae7
3
+ metadata.gz: 208d96ea14724d70f6f3590b860441bd35d0e07701eeaec581d0b1b50f6982a3
4
+ data.tar.gz: 16f0414d1fc302d6cfcca6bdb76a6ae4a5663602e616ee836293bc50c289e717
5
5
  SHA512:
6
- metadata.gz: 98bdf4bc4450ff4bc234d9647a85b308882e28734649ae527262deaaffc3052863f962b22098c99f4c176c61624e635bb6fdb85440e674bfc51e84fda38972ca
7
- data.tar.gz: eff0a518a595fbf4e7f97f4003b1a94d6136f315d445d020e6fe673c29d5e4ec82fed7cb783ca14a3748bba42cb88a0524123469775dbd698b615f1b499836fc
6
+ metadata.gz: 1767861bac2258021f487181e064394307103ed53c910ef16e025e9b1de0a4598befa2865b96fd9ef6decd5cd88b0c2302d0e025e476b27ae16bd7f4040afd53
7
+ data.tar.gz: 52187c8f7505fe08495fe592a1a32a3c7793d0d0efb163cf3d5e91127ab5f44530bfe367e41f956597df8a22188fb3b089051872e8505807e64631d3b9c2597b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.156)
4
+ snaptrade (2.0.158)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -32,7 +32,7 @@ GEM
32
32
  parser (3.3.10.1)
33
33
  ast (~> 2.4.1)
34
34
  racc
35
- prism (1.8.0)
35
+ prism (1.9.0)
36
36
  pry (0.14.2)
37
37
  coderay (~> 1.1)
38
38
  method_source (~> 1.0)
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.156-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.156)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.158-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.158)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -83,7 +83,7 @@ Connect brokerage accounts to your app for live positions and trading
83
83
  Add to Gemfile:
84
84
 
85
85
  ```ruby
86
- gem 'snaptrade', '~> 2.0.156'
86
+ gem 'snaptrade', '~> 2.0.158'
87
87
  ```
88
88
 
89
89
  ## Getting Started<a id="getting-started"></a>
@@ -192,7 +192,7 @@ values. Here are some of the most popular values: - `BUY` - Asset bought. -
192
192
  contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment.
193
193
  - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares
194
194
  instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` -
195
- Fee withdrawn from the account. - `TAX`` - A tax related fee. -
195
+ Fee withdrawn from the account. - `TAX` - A tax related fee. -
196
196
  `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option
197
197
  assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` -
198
198
  Transfer of assets from one account to another. - `SPLIT` - A stock share split.
@@ -36,7 +36,7 @@ module SnapTrade
36
36
  # @param end_date [Date] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
37
37
  # @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
38
38
  # @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
39
- # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX`` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
39
+ # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
40
40
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
41
41
  def get_account_activities(account_id:, user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, offset: SENTINEL, limit: SENTINEL, type: SENTINEL, extra: {})
42
42
  extra[:start_date] = start_date if start_date != SENTINEL
@@ -67,7 +67,7 @@ module SnapTrade
67
67
  # @param end_date [Date] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
68
68
  # @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
69
69
  # @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
70
- # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX`` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
70
+ # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
71
71
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
72
72
  def get_account_activities_with_http_info(account_id:, user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, offset: SENTINEL, limit: SENTINEL, type: SENTINEL, extra: {})
73
73
  extra[:start_date] = start_date if start_date != SENTINEL
@@ -88,7 +88,7 @@ module SnapTrade
88
88
  # @option opts [Date] :end_date The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
89
89
  # @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0.
90
90
  # @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000.
91
- # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX`` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
91
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
92
92
  # @return [PaginatedUniversalActivity]
93
93
  private def get_account_activities_impl(account_id, user_id, user_secret, opts = {})
94
94
  data, _status_code, _headers = get_account_activities_with_http_info(account_id, user_id, user_secret, opts)
@@ -105,7 +105,7 @@ module SnapTrade
105
105
  # @option opts [Date] :end_date The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
106
106
  # @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0.
107
107
  # @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000.
108
- # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX`` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
108
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
109
109
  # @return [Array<(PaginatedUniversalActivity, Integer, Hash)>] PaginatedUniversalActivity data, response status code and response headers
110
110
  private def get_account_activities_with_http_info_impl(account_id, user_id, user_secret, opts = {})
111
111
  if @api_client.config.debugging
@@ -31,6 +31,12 @@ module SnapTrade
31
31
  # Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was created in SnapTrade. This is _not_ the account opening date at the brokerage.
32
32
  attr_accessor :created_date
33
33
 
34
+ # Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was funded.
35
+ attr_accessor :funding_date
36
+
37
+ # Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was opened at the brokerage.
38
+ attr_accessor :opening_date
39
+
34
40
  attr_accessor :sync_status
35
41
 
36
42
  attr_accessor :balance
@@ -62,6 +68,8 @@ module SnapTrade
62
68
  :'number' => :'number',
63
69
  :'institution_name' => :'institution_name',
64
70
  :'created_date' => :'created_date',
71
+ :'funding_date' => :'funding_date',
72
+ :'opening_date' => :'opening_date',
65
73
  :'sync_status' => :'sync_status',
66
74
  :'balance' => :'balance',
67
75
  :'status' => :'status',
@@ -87,6 +95,8 @@ module SnapTrade
87
95
  :'number' => :'String',
88
96
  :'institution_name' => :'String',
89
97
  :'created_date' => :'Time',
98
+ :'funding_date' => :'Time',
99
+ :'opening_date' => :'Time',
90
100
  :'sync_status' => :'AccountSyncStatus',
91
101
  :'balance' => :'AccountBalance',
92
102
  :'status' => :'AccountStatus',
@@ -102,6 +112,8 @@ module SnapTrade
102
112
  def self.openapi_nullable
103
113
  Set.new([
104
114
  :'name',
115
+ :'funding_date',
116
+ :'opening_date',
105
117
  :'status',
106
118
  :'raw_type',
107
119
  ])
@@ -146,6 +158,14 @@ module SnapTrade
146
158
  self.created_date = attributes[:'created_date']
147
159
  end
148
160
 
161
+ if attributes.key?(:'funding_date')
162
+ self.funding_date = attributes[:'funding_date']
163
+ end
164
+
165
+ if attributes.key?(:'opening_date')
166
+ self.opening_date = attributes[:'opening_date']
167
+ end
168
+
149
169
  if attributes.key?(:'sync_status')
150
170
  self.sync_status = attributes[:'sync_status']
151
171
  end
@@ -247,6 +267,8 @@ module SnapTrade
247
267
  number == o.number &&
248
268
  institution_name == o.institution_name &&
249
269
  created_date == o.created_date &&
270
+ funding_date == o.funding_date &&
271
+ opening_date == o.opening_date &&
250
272
  sync_status == o.sync_status &&
251
273
  balance == o.balance &&
252
274
  status == o.status &&
@@ -266,7 +288,7 @@ module SnapTrade
266
288
  # Calculates hash code according to all attributes.
267
289
  # @return [Integer] Hash code
268
290
  def hash
269
- [id, brokerage_authorization, name, number, institution_name, created_date, sync_status, balance, status, raw_type, meta, portfolio_group, cash_restrictions, is_paper].hash
291
+ [id, brokerage_authorization, name, number, institution_name, created_date, funding_date, opening_date, sync_status, balance, status, raw_type, meta, portfolio_group, cash_restrictions, is_paper].hash
270
292
  end
271
293
 
272
294
  # Builds the object from hash
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.156'
11
+ VERSION = '2.0.158'
12
12
  end
@@ -38,7 +38,7 @@ describe 'AccountInformationApi' do
38
38
  # @option opts [Date] :end_date The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on &#x60;trade_date&#x60;.
39
39
  # @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0.
40
40
  # @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000.
41
- # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - &#x60;BUY&#x60; - Asset bought. - &#x60;SELL&#x60; - Asset sold. - &#x60;DIVIDEND&#x60; - Dividend payout. - &#x60;CONTRIBUTION&#x60; - Cash contribution. - &#x60;WITHDRAWAL&#x60; - Cash withdrawal. - &#x60;REI&#x60; - Dividend reinvestment. - &#x60;STOCK_DIVIDEND&#x60; - A type of dividend where a company distributes shares instead of cash - &#x60;INTEREST&#x60; - Interest deposited into the account. - &#x60;FEE&#x60; - Fee withdrawn from the account. - &#x60;TAX&#x60;&#x60; - A tax related fee. - &#x60;OPTIONEXPIRATION&#x60; - Option expiration event. - &#x60;OPTIONASSIGNMENT&#x60; - Option assignment event. - &#x60;OPTIONEXERCISE&#x60; - Option exercise event. - &#x60;TRANSFER&#x60; - Transfer of assets from one account to another. - &#x60;SPLIT&#x60; - A stock share split.
41
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - &#x60;BUY&#x60; - Asset bought. - &#x60;SELL&#x60; - Asset sold. - &#x60;DIVIDEND&#x60; - Dividend payout. - &#x60;CONTRIBUTION&#x60; - Cash contribution. - &#x60;WITHDRAWAL&#x60; - Cash withdrawal. - &#x60;REI&#x60; - Dividend reinvestment. - &#x60;STOCK_DIVIDEND&#x60; - A type of dividend where a company distributes shares instead of cash - &#x60;INTEREST&#x60; - Interest deposited into the account. - &#x60;FEE&#x60; - Fee withdrawn from the account. - &#x60;TAX&#x60; - A tax related fee. - &#x60;OPTIONEXPIRATION&#x60; - Option expiration event. - &#x60;OPTIONASSIGNMENT&#x60; - Option assignment event. - &#x60;OPTIONEXERCISE&#x60; - Option exercise event. - &#x60;TRANSFER&#x60; - Transfer of assets from one account to another. - &#x60;SPLIT&#x60; - A stock share split.
42
42
  # @return [PaginatedUniversalActivity]
43
43
  describe 'get_account_activities test' do
44
44
  it 'should work' do
@@ -56,6 +56,18 @@ describe SnapTrade::Account do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "funding_date"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "opening_date"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
59
71
  describe 'test attribute "sync_status"' do
60
72
  it 'should work' do
61
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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.156
4
+ version: 2.0.158
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-15 00:00:00.000000000 Z
11
+ date: 2026-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday