snaptrade 2.0.74 → 2.0.75

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: 10510d1b0e28e82d9e28b3736e5c54a65a388dd809320e1f2d42b9dd729ee0ac
4
- data.tar.gz: a758897cb02823c1edbd25eac795d1affda2e56f56a245e745c3fa9fe5bff7d7
3
+ metadata.gz: 14a1d283a870bc3aeccde52d6e70d0f1498b12809b05226ebc8e257ff72b867b
4
+ data.tar.gz: '0919d89a114b443a4498580256627beba1da2199b9f5d11d71162db299d4effb'
5
5
  SHA512:
6
- metadata.gz: 4ffdcd5168be3bbe67c5482bf430ba73466d1f253aa7384dd1abbd65e94362f9c8c4615ce1053a7d5528602c3f2874be38c895bab232b1fab60c3b6ef6c43c31
7
- data.tar.gz: 5c4944425a9384ac96fea0afbbc1c3e35b6d6c32d97b60e3d887416f56227979f4217901c4a3d9bcfa779509d8ac10cd2856c6c322716cfa32c29381123c2481
6
+ metadata.gz: 4f33da4b7c812f6c1c57d76e1325f7afdad2e5d9e5c88fd47af9c6fdb1c30a0aa1c48c32a47b82e6e65461d39f53099b6a0df211072333c2c02aba104b7de5d4
7
+ data.tar.gz: 1a0b3791f90cc3bdcdd64a3772ce196d08b8d97be73e6747b3cd0a5e0abed5b6a56646320140242431d951e52fbad2d6cd2824065e0bbebc115d1f9711eb7d4c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.74)
4
+ snaptrade (2.0.75)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -29,7 +29,7 @@ GEM
29
29
  method_source (1.1.0)
30
30
  multipart-post (2.4.1)
31
31
  parallel (1.26.3)
32
- parser (3.3.7.0)
32
+ parser (3.3.7.1)
33
33
  ast (~> 2.4.1)
34
34
  racc
35
35
  pry (0.14.2)
@@ -49,7 +49,7 @@ GEM
49
49
  rspec-core (~> 3.13.0)
50
50
  rspec-expectations (~> 3.13.0)
51
51
  rspec-mocks (~> 3.13.0)
52
- rspec-core (3.13.2)
52
+ rspec-core (3.13.3)
53
53
  rspec-support (~> 3.13.0)
54
54
  rspec-expectations (3.13.3)
55
55
  diff-lcs (>= 1.2.0, < 2.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.74-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.74)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.75-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.75)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -74,7 +74,7 @@ Connect brokerage accounts to your app for live positions and trading
74
74
  Add to Gemfile:
75
75
 
76
76
  ```ruby
77
- gem 'snaptrade', '~> 2.0.74'
77
+ gem 'snaptrade', '~> 2.0.75'
78
78
  ```
79
79
 
80
80
  ## Getting Started<a id="getting-started"></a>
@@ -114,7 +114,7 @@ result = snaptrade.account_information.get_account_activities_with_http_info(
114
114
  limit: 1,
115
115
  type: "BUY,SELL,DIVIDEND",
116
116
  )
117
- p result[0] # [Array<PaginatedUniversalActivity>] Deserialized data
117
+ p result[0] # [PaginatedUniversalActivity] Deserialized data
118
118
  p.result[1] # [Integer] HTTP status code
119
119
  p.result[2] # [Hash] HTTP headers
120
120
  p.result[3] # [Faraday::Response] Raw HTTP response
@@ -85,7 +85,7 @@ module SnapTrade
85
85
  # @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0.
86
86
  # @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000.
87
87
  # @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. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
88
- # @return [Array<PaginatedUniversalActivity>]
88
+ # @return [PaginatedUniversalActivity]
89
89
  private def get_account_activities_impl(account_id, user_id, user_secret, opts = {})
90
90
  data, _status_code, _headers = get_account_activities_with_http_info(account_id, user_id, user_secret, opts)
91
91
  data
@@ -102,7 +102,7 @@ module SnapTrade
102
102
  # @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0.
103
103
  # @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000.
104
104
  # @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. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
105
- # @return [Array<(Array<PaginatedUniversalActivity>, Integer, Hash)>] Array<PaginatedUniversalActivity> data, response status code and response headers
105
+ # @return [Array<(PaginatedUniversalActivity, Integer, Hash)>] PaginatedUniversalActivity data, response status code and response headers
106
106
  private def get_account_activities_with_http_info_impl(account_id, user_id, user_secret, opts = {})
107
107
  if @api_client.config.debugging
108
108
  @api_client.config.logger.debug 'Calling API: AccountInformationApi.get_account_activities ...'
@@ -152,7 +152,7 @@ module SnapTrade
152
152
  post_body = opts[:debug_body]
153
153
 
154
154
  # return_type
155
- return_type = opts[:debug_return_type] || 'Array<PaginatedUniversalActivity>'
155
+ return_type = opts[:debug_return_type] || 'PaginatedUniversalActivity'
156
156
 
157
157
  # auth_names
158
158
  auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.74'
11
+ VERSION = '2.0.75'
12
12
  end
@@ -39,7 +39,7 @@ describe 'AccountInformationApi' do
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
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;INTEREST&#x60; - Interest deposited into the account. - &#x60;FEE&#x60; - Fee withdrawn from the account. - &#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
42
- # @return [Array<PaginatedUniversalActivity>]
42
+ # @return [PaginatedUniversalActivity]
43
43
  describe 'get_account_activities test' do
44
44
  it 'should work' do
45
45
  # 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.74
4
+ version: 2.0.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-03 00:00:00.000000000 Z
11
+ date: 2025-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday