snaptrade 2.0.189 → 2.0.190

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: bc1822b15054d558264492488c4ad3fe18564ac200cbf40963c6b7770e907835
4
- data.tar.gz: 7ca5ed2fa30342fa05db76eb269be0ac6cc64f8ba05ac48338187742908be1f8
3
+ metadata.gz: 8e352acd0740f2e8fb6c04619c0e804cbbabc7e4c2207d445e97d656a2e6ac76
4
+ data.tar.gz: 76bfbb478457e60bb028696b34e411f11cbe53334bbb4d091c2165caaccb9c5d
5
5
  SHA512:
6
- metadata.gz: 9e4aa643fabacb21f007ecef2c4b9051d8d19a36f8f9e970f25d61b4dd1c34538dbe448357f1f95f95cba74258d40acf44f1262ff3b91aed3fd9c63714d6dc31
7
- data.tar.gz: dc0fd724bb3bb6e424b69de4804dd2b96af686d824043b48d576e559a212a8f9f6c8624b2bd045a240970dd0110bb9826b9523dfe42a0c5a45588b5cfc2d9dca
6
+ metadata.gz: c374e44dde407b58c6cdbd8941111c8758b69315cb6cb88dd9581879b7f8a6813702d7a428c539042c38c463d63dde33745c559f5403dc6ac6df3dd3ba6a6e24
7
+ data.tar.gz: f7aa6f52e779272cf83b8ae84e37657c7e73c209d097aeab688e5251b0527d30c16374bde100b625ed654cf091e476082e63525c243b3ba6926e1bcedbe3f169
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.189)
4
+ snaptrade (2.0.190)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
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.189-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.189)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.190-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.190)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -91,7 +91,7 @@ Connect brokerage accounts to your app for live positions and trading
91
91
  Add to Gemfile:
92
92
 
93
93
  ```ruby
94
- gem 'snaptrade', '~> 2.0.189'
94
+ gem 'snaptrade', '~> 2.0.190'
95
95
  ```
96
96
 
97
97
  ## Getting Started<a id="getting-started"></a>
@@ -454,7 +454,7 @@ defaults value is set to \"all\"
454
454
 
455
455
  ##### days: `Integer`<a id="days-integer"></a>
456
456
  Number of days in the past to fetch the most recent orders. Defaults to the last
457
- 30 days if no value is passed in.
457
+ 30 days if no value is passed in. Values greater than 90 will be capped at 90.
458
458
 
459
459
  #### 🔄 Return<a id="🔄-return"></a>
460
460
 
@@ -1374,7 +1374,7 @@ defaults value is set to \"all\"
1374
1374
 
1375
1375
  ##### days: `Integer`<a id="days-integer"></a>
1376
1376
  Number of days in the past to fetch the most recent orders. Defaults to the last
1377
- 30 days if no value is passed in.
1377
+ 30 days if no value is passed in. Values greater than 90 will be capped at 90.
1378
1378
 
1379
1379
  #### 🔄 Return<a id="🔄-return"></a>
1380
1380
 
@@ -774,7 +774,7 @@ module SnapTrade
774
774
  # @param user_secret [String]
775
775
  # @param account_id [String]
776
776
  # @param state [String] defaults value is set to \"all\"
777
- # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
777
+ # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
778
778
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
779
779
  def get_user_account_orders(user_id:, user_secret:, account_id:, state: SENTINEL, days: SENTINEL, extra: {})
780
780
  extra[:state] = state if state != SENTINEL
@@ -797,7 +797,7 @@ module SnapTrade
797
797
  # @param user_secret [String]
798
798
  # @param account_id [String]
799
799
  # @param state [String] defaults value is set to \"all\"
800
- # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
800
+ # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
801
801
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
802
802
  def get_user_account_orders_with_http_info(user_id:, user_secret:, account_id:, state: SENTINEL, days: SENTINEL, extra: {})
803
803
  extra[:state] = state if state != SENTINEL
@@ -812,7 +812,7 @@ module SnapTrade
812
812
  # @param account_id [String]
813
813
  # @param [Hash] opts the optional parameters
814
814
  # @option opts [String] :state defaults value is set to \"all\"
815
- # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
815
+ # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
816
816
  # @return [Array<AccountOrderRecord>]
817
817
  private def get_user_account_orders_impl(user_id, user_secret, account_id, opts = {})
818
818
  data, _status_code, _headers = get_user_account_orders_with_http_info(user_id, user_secret, account_id, opts)
@@ -826,7 +826,7 @@ module SnapTrade
826
826
  # @param account_id [String]
827
827
  # @param [Hash] opts the optional parameters
828
828
  # @option opts [String] :state defaults value is set to \"all\"
829
- # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
829
+ # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
830
830
  # @return [Array<(Array<AccountOrderRecord>, Integer, Hash)>] Array<AccountOrderRecord> data, response status code and response headers
831
831
  private def get_user_account_orders_with_http_info_impl(user_id, user_secret, account_id, opts = {})
832
832
  if @api_client.config.debugging
@@ -848,6 +848,10 @@ module SnapTrade
848
848
  if @api_client.config.client_side_validation && opts[:'state'] && !allowable_values.include?(opts[:'state'])
849
849
  fail ArgumentError, "invalid value for \"state\", must be one of #{allowable_values}"
850
850
  end
851
+ if @api_client.config.client_side_validation && !opts[:'days'].nil? && opts[:'days'] > 90
852
+ fail ArgumentError, 'invalid value for "opts[:"days"]" when calling AccountInformationApi.get_user_account_orders, must be smaller than or equal to 90.'
853
+ end
854
+
851
855
  if @api_client.config.client_side_validation && !opts[:'days'].nil? && opts[:'days'] < 1
852
856
  fail ArgumentError, 'invalid value for "opts[:"days"]" when calling AccountInformationApi.get_user_account_orders, must be greater than or equal to 1.'
853
857
  end
@@ -269,7 +269,7 @@ module SnapTrade
269
269
  # @param user_secret [String]
270
270
  # @param account_id [String]
271
271
  # @param state [String] defaults value is set to \"all\"
272
- # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
272
+ # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
273
273
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
274
274
  def get_user_account_orders_v2(user_id:, user_secret:, account_id:, state: SENTINEL, days: SENTINEL, extra: {})
275
275
  extra[:state] = state if state != SENTINEL
@@ -290,7 +290,7 @@ module SnapTrade
290
290
  # @param user_secret [String]
291
291
  # @param account_id [String]
292
292
  # @param state [String] defaults value is set to \"all\"
293
- # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
293
+ # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
294
294
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
295
295
  def get_user_account_orders_v2_with_http_info(user_id:, user_secret:, account_id:, state: SENTINEL, days: SENTINEL, extra: {})
296
296
  extra[:state] = state if state != SENTINEL
@@ -305,7 +305,7 @@ module SnapTrade
305
305
  # @param account_id [String]
306
306
  # @param [Hash] opts the optional parameters
307
307
  # @option opts [String] :state defaults value is set to \"all\"
308
- # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
308
+ # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
309
309
  # @return [AccountOrdersV2Response]
310
310
  private def get_user_account_orders_v2_impl(user_id, user_secret, account_id, opts = {})
311
311
  data, _status_code, _headers = get_user_account_orders_v2_with_http_info(user_id, user_secret, account_id, opts)
@@ -319,7 +319,7 @@ module SnapTrade
319
319
  # @param account_id [String]
320
320
  # @param [Hash] opts the optional parameters
321
321
  # @option opts [String] :state defaults value is set to \"all\"
322
- # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
322
+ # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
323
323
  # @return [Array<(AccountOrdersV2Response, Integer, Hash)>] AccountOrdersV2Response data, response status code and response headers
324
324
  private def get_user_account_orders_v2_with_http_info_impl(user_id, user_secret, account_id, opts = {})
325
325
  if @api_client.config.debugging
@@ -341,6 +341,10 @@ module SnapTrade
341
341
  if @api_client.config.client_side_validation && opts[:'state'] && !allowable_values.include?(opts[:'state'])
342
342
  fail ArgumentError, "invalid value for \"state\", must be one of #{allowable_values}"
343
343
  end
344
+ if @api_client.config.client_side_validation && !opts[:'days'].nil? && opts[:'days'] > 90
345
+ fail ArgumentError, 'invalid value for "opts[:"days"]" when calling ExperimentalEndpointsApi.get_user_account_orders_v2, must be smaller than or equal to 90.'
346
+ end
347
+
344
348
  if @api_client.config.client_side_validation && !opts[:'days'].nil? && opts[:'days'] < 1
345
349
  fail ArgumentError, 'invalid value for "opts[:"days"]" when calling ExperimentalEndpointsApi.get_user_account_orders_v2, must be greater than or equal to 1.'
346
350
  end
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.189'
11
+ VERSION = '2.0.190'
12
12
  end
@@ -125,7 +125,7 @@ describe 'AccountInformationApi' do
125
125
  # @param account_id
126
126
  # @param [Hash] opts the optional parameters
127
127
  # @option opts [String] :state defaults value is set to \&quot;all\&quot;
128
- # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
128
+ # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
129
129
  # @return [Array<AccountOrderRecord>]
130
130
  describe 'get_user_account_orders test' do
131
131
  it 'should work' do
@@ -64,7 +64,7 @@ describe 'ExperimentalEndpointsApi' do
64
64
  # @param account_id
65
65
  # @param [Hash] opts the optional parameters
66
66
  # @option opts [String] :state defaults value is set to \&quot;all\&quot;
67
- # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
67
+ # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
68
68
  # @return [AccountOrdersV2Response]
69
69
  describe 'get_user_account_orders_v2 test' do
70
70
  it 'should work' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.189
4
+ version: 2.0.190
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade