snaptrade 1.10.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/docs/OptionsApi.md +2 -2
- data/docs/TransactionsAndReportingApi.md +1 -1
- data/lib/snaptrade/api/options_api.rb +3 -3
- data/lib/snaptrade/api/transactions_and_reporting_api.rb +4 -4
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/options_api_spec.rb +1 -1
- data/spec/api/transactions_and_reporting_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: 2d35c598e43136c15bacb0ae8e7735a22e8cba4b7e3b116c375494c7738a332b
|
4
|
+
data.tar.gz: fa5c5fdc708d4947d2ac92461ba8623397bcd81d4b8a7156f6b2d740d74c617c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4860f8b325a55ae350ba4e1f9e5d219aad96232d521ac1ee73f5b9f147012be15997e0fea884e326817856ed7d8e1f63b6f74216c87626c9196054f89193499a
|
7
|
+
data.tar.gz: c9860eefbdf60793799dbe23e26ae9e7026a0a3823849d44e04f5b021fd3cdc2e9d602b68fb50078c2ecadf15d9d8cd900f5dc148036075c6ec89c189aba02ff
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/docs/OptionsApi.md
CHANGED
@@ -287,7 +287,7 @@ begin
|
|
287
287
|
)
|
288
288
|
p status_code # => 2xx
|
289
289
|
p headers # => { ... }
|
290
|
-
p data # => Array<
|
290
|
+
p data # => Array<OptionsPosition>
|
291
291
|
rescue SnapTrade::ApiError => e
|
292
292
|
puts "Exception when calling SnapTrade::Options.list_option_holdings: #{e}"
|
293
293
|
end
|
@@ -303,7 +303,7 @@ end
|
|
303
303
|
|
304
304
|
### Return type
|
305
305
|
|
306
|
-
[**Array<
|
306
|
+
[**Array<OptionsPosition>**](OptionsPosition.md)
|
307
307
|
|
308
308
|
## place_option_strategy
|
309
309
|
|
@@ -88,7 +88,7 @@ end
|
|
88
88
|
| **end_date** | **Date** | | [optional] |
|
89
89
|
| **accounts** | **String** | Optional comma seperated list of account IDs used to filter the request on specific accounts | [optional] |
|
90
90
|
| **brokerage_authorizations** | **String** | Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations | [optional] |
|
91
|
-
| **type** | **String** | Optional comma seperated list of types to filter activities by. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT | [optional] |
|
91
|
+
| **type** | **String** | Optional comma seperated list of types to filter activities by. This is not an exhaustive list, if we fail to match to these types, we will return the raw description from the brokerage. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT | [optional] |
|
92
92
|
|
93
93
|
### Return type
|
94
94
|
|
@@ -381,7 +381,7 @@ module SnapTrade
|
|
381
381
|
# @param user_secret [String]
|
382
382
|
# @param account_id [String] The ID of the account get positions.
|
383
383
|
# @param [Hash] opts the optional parameters
|
384
|
-
# @return [Array<
|
384
|
+
# @return [Array<OptionsPosition>]
|
385
385
|
def list_option_holdings_impl(user_id, user_secret, account_id, opts = {})
|
386
386
|
data, _status_code, _headers = list_option_holdings_with_http_info(user_id, user_secret, account_id, opts)
|
387
387
|
data
|
@@ -392,7 +392,7 @@ module SnapTrade
|
|
392
392
|
# @param user_secret [String]
|
393
393
|
# @param account_id [String] The ID of the account get positions.
|
394
394
|
# @param [Hash] opts the optional parameters
|
395
|
-
# @return [Array<(Array<
|
395
|
+
# @return [Array<(Array<OptionsPosition>, Integer, Hash)>] Array<OptionsPosition> data, response status code and response headers
|
396
396
|
def list_option_holdings_with_http_info_impl(user_id, user_secret, account_id, opts = {})
|
397
397
|
if @api_client.config.debugging
|
398
398
|
@api_client.config.logger.debug 'Calling API: OptionsApi.list_option_holdings ...'
|
@@ -429,7 +429,7 @@ module SnapTrade
|
|
429
429
|
post_body = opts[:debug_body]
|
430
430
|
|
431
431
|
# return_type
|
432
|
-
return_type = opts[:debug_return_type] || 'Array<
|
432
|
+
return_type = opts[:debug_return_type] || 'Array<OptionsPosition>'
|
433
433
|
|
434
434
|
# auth_names
|
435
435
|
auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
|
@@ -26,7 +26,7 @@ module SnapTrade
|
|
26
26
|
# @param end_date [Date]
|
27
27
|
# @param accounts [String] Optional comma seperated list of account IDs used to filter the request on specific accounts
|
28
28
|
# @param brokerage_authorizations [String] Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations
|
29
|
-
# @param type [String] Optional comma seperated list of types to filter activities by. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
29
|
+
# @param type [String] Optional comma seperated list of types to filter activities by. This is not an exhaustive list, if we fail to match to these types, we will return the raw description from the brokerage. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
30
30
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
31
31
|
def get_activities(user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, accounts: SENTINEL, brokerage_authorizations: SENTINEL, type: SENTINEL, extra: {})
|
32
32
|
extra[:start_date] = start_date if start_date != SENTINEL
|
@@ -47,7 +47,7 @@ module SnapTrade
|
|
47
47
|
# @param end_date [Date]
|
48
48
|
# @param accounts [String] Optional comma seperated list of account IDs used to filter the request on specific accounts
|
49
49
|
# @param brokerage_authorizations [String] Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations
|
50
|
-
# @param type [String] Optional comma seperated list of types to filter activities by. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
50
|
+
# @param type [String] Optional comma seperated list of types to filter activities by. This is not an exhaustive list, if we fail to match to these types, we will return the raw description from the brokerage. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
51
51
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
52
52
|
def get_activities_with_http_info(user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, accounts: SENTINEL, brokerage_authorizations: SENTINEL, type: SENTINEL, extra: {})
|
53
53
|
extra[:start_date] = start_date if start_date != SENTINEL
|
@@ -68,7 +68,7 @@ module SnapTrade
|
|
68
68
|
# @option opts [Date] :end_date
|
69
69
|
# @option opts [String] :accounts Optional comma seperated list of account IDs used to filter the request on specific accounts
|
70
70
|
# @option opts [String] :brokerage_authorizations Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations
|
71
|
-
# @option opts [String] :type Optional comma seperated list of types to filter activities by. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
71
|
+
# @option opts [String] :type Optional comma seperated list of types to filter activities by. This is not an exhaustive list, if we fail to match to these types, we will return the raw description from the brokerage. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
72
72
|
# @return [Array<UniversalActivity>]
|
73
73
|
def get_activities_impl(user_id, user_secret, opts = {})
|
74
74
|
data, _status_code, _headers = get_activities_with_http_info(user_id, user_secret, opts)
|
@@ -84,7 +84,7 @@ module SnapTrade
|
|
84
84
|
# @option opts [Date] :end_date
|
85
85
|
# @option opts [String] :accounts Optional comma seperated list of account IDs used to filter the request on specific accounts
|
86
86
|
# @option opts [String] :brokerage_authorizations Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations
|
87
|
-
# @option opts [String] :type Optional comma seperated list of types to filter activities by. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
87
|
+
# @option opts [String] :type Optional comma seperated list of types to filter activities by. This is not an exhaustive list, if we fail to match to these types, we will return the raw description from the brokerage. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
88
88
|
# @return [Array<(Array<UniversalActivity>, Integer, Hash)>] Array<UniversalActivity> data, response status code and response headers
|
89
89
|
def get_activities_with_http_info_impl(user_id, user_secret, opts = {})
|
90
90
|
if @api_client.config.debugging
|
data/lib/snaptrade/version.rb
CHANGED
@@ -76,7 +76,7 @@ describe 'OptionsApi' do
|
|
76
76
|
# @param user_secret
|
77
77
|
# @param account_id The ID of the account get positions.
|
78
78
|
# @param [Hash] opts the optional parameters
|
79
|
-
# @return [Array<
|
79
|
+
# @return [Array<OptionsPosition>]
|
80
80
|
describe 'list_option_holdings test' do
|
81
81
|
it 'should work' do
|
82
82
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -38,7 +38,7 @@ describe 'TransactionsAndReportingApi' do
|
|
38
38
|
# @option opts [Date] :end_date
|
39
39
|
# @option opts [String] :accounts Optional comma seperated list of account IDs used to filter the request on specific accounts
|
40
40
|
# @option opts [String] :brokerage_authorizations Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations
|
41
|
-
# @option opts [String] :type Optional comma seperated list of types to filter activities by. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
41
|
+
# @option opts [String] :type Optional comma seperated list of types to filter activities by. This is not an exhaustive list, if we fail to match to these types, we will return the raw description from the brokerage. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
42
42
|
# @return [Array<UniversalActivity>]
|
43
43
|
describe 'get_activities test' do
|
44
44
|
it 'should work' do
|
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: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|