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 +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +3 -3
- data/lib/snaptrade/api/account_information_api.rb +3 -3
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/account_information_api_spec.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: 14a1d283a870bc3aeccde52d6e70d0f1498b12809b05226ebc8e257ff72b867b
|
4
|
+
data.tar.gz: '0919d89a114b443a4498580256627beba1da2199b9f5d11d71162db299d4effb'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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
|
-
[](https://rubygems.org/gems/snaptrade/versions/2.0.75)
|
10
10
|
[](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.
|
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] # [
|
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 [
|
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<(
|
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] || '
|
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']
|
data/lib/snaptrade/version.rb
CHANGED
@@ -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: - `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
|
42
|
-
# @return [
|
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.
|
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-
|
11
|
+
date: 2025-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|