snaptrade 1.17.5 → 1.17.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +14 -22
  3. data/README.md +5 -1
  4. data/docs/Account.md +3 -1
  5. data/docs/AccountBalance.md +18 -0
  6. data/docs/AccountBalanceTotal.md +20 -0
  7. data/docs/AccountHoldings.md +2 -2
  8. data/docs/AccountHoldingsAccount.md +2 -2
  9. data/docs/AccountOrderRecord.md +2 -2
  10. data/docs/Amount.md +20 -0
  11. data/docs/AuthenticationApi.md +4 -0
  12. data/docs/Balance.md +1 -1
  13. data/docs/Brokerage.md +1 -1
  14. data/docs/BrokerageAuthorization.md +1 -1
  15. data/docs/BrokerageAuthorizationTypeReadOnly.md +1 -1
  16. data/docs/BrokerageSymbol.md +1 -1
  17. data/docs/BrokerageSymbolOptionSymbol.md +1 -1
  18. data/docs/BrokerageSymbolSymbol.md +3 -3
  19. data/docs/ConnectionPortalVersion.md +15 -0
  20. data/docs/EncryptedResponse.md +1 -1
  21. data/docs/ExchangeRatePairs.md +2 -2
  22. data/docs/ExcludedAsset.md +1 -1
  23. data/docs/ManualTrade.md +1 -1
  24. data/docs/ManualTradeAndImpact.md +2 -2
  25. data/docs/ManualTradeBalance.md +2 -2
  26. data/docs/ManualTradeSymbol.md +1 -1
  27. data/docs/ModelAssetClassDetails.md +1 -1
  28. data/docs/ModelAssetClassTarget.md +1 -1
  29. data/docs/ModelPortfolioAssetClass.md +1 -1
  30. data/docs/ModelPortfolioDetails.md +1 -1
  31. data/docs/ModelPortfolioSecurity.md +1 -1
  32. data/docs/MonthlyDividends.md +1 -1
  33. data/docs/NetContributions.md +1 -1
  34. data/docs/NetDividend.md +1 -1
  35. data/docs/OptionStrategy.md +1 -1
  36. data/docs/OptionsHoldings.md +2 -2
  37. data/docs/OptionsPosition.md +1 -1
  38. data/docs/OptionsSymbol.md +1 -1
  39. data/docs/PastValue.md +1 -1
  40. data/docs/PerformanceCustom.md +1 -1
  41. data/docs/PortfolioGroupInfo.md +1 -1
  42. data/docs/PortfolioGroupPosition.md +1 -1
  43. data/docs/PortfolioGroupSettings.md +1 -1
  44. data/docs/Position.md +1 -1
  45. data/docs/PositionSymbol.md +1 -1
  46. data/docs/SnapTradeHoldingsAccount.md +1 -1
  47. data/docs/SnapTradeLoginUserRequestBody.md +4 -2
  48. data/docs/StrategyOrderRecord.md +1 -1
  49. data/docs/StrategyQuotes.md +2 -2
  50. data/docs/SubPeriodReturnRate.md +2 -2
  51. data/docs/Symbol.md +3 -3
  52. data/docs/SymbolsQuotesInner.md +1 -1
  53. data/docs/TargetAsset.md +1 -1
  54. data/docs/Trade.md +3 -3
  55. data/docs/TradeExecutionStatus.md +3 -3
  56. data/docs/TradeImpact.md +2 -2
  57. data/docs/TransactionsAndReportingApi.md +2 -2
  58. data/docs/TransactionsStatus.md +1 -1
  59. data/docs/UnderlyingSymbol.md +3 -3
  60. data/docs/UniversalActivity.md +4 -4
  61. data/docs/UniversalSymbol.md +3 -3
  62. data/docs/UniversalSymbolTicker.md +3 -3
  63. data/docs/UserSettings.md +1 -1
  64. data/lib/snaptrade/api/authentication_api.rb +8 -4
  65. data/lib/snaptrade/api/transactions_and_reporting_api.rb +8 -8
  66. data/lib/snaptrade/models/account.rb +13 -4
  67. data/lib/snaptrade/models/account_balance.rb +219 -0
  68. data/lib/snaptrade/models/account_balance_total.rb +234 -0
  69. data/lib/snaptrade/models/amount.rb +227 -0
  70. data/lib/snaptrade/models/connection_portal_version.rb +38 -0
  71. data/lib/snaptrade/models/snap_trade_login_user_request_body.rb +14 -5
  72. data/lib/snaptrade/version.rb +1 -1
  73. data/lib/snaptrade.rb +4 -0
  74. data/spec/api/transactions_and_reporting_api_spec.rb +2 -2
  75. data/spec/models/account_balance_spec.rb +30 -0
  76. data/spec/models/account_balance_total_spec.rb +36 -0
  77. data/spec/models/account_spec.rb +6 -0
  78. data/spec/models/amount_spec.rb +36 -0
  79. data/spec/models/connection_portal_version_spec.rb +24 -0
  80. data/spec/models/snap_trade_login_user_request_body_spec.rb +6 -0
  81. metadata +19 -3
data/docs/Position.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | **PositionSymbol** | | [optional] |
7
+ | **symbol** | [**PositionSymbol**](PositionSymbol.md) | | [optional] |
8
8
  | **units** | **Float** | | [optional] |
9
9
  | **price** | **Float** | Last known market price for the symbol | [optional] |
10
10
  | **open_pnl** | **Float** | | [optional] |
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
8
  | **description** | **String** | | [optional] |
9
- | **symbol** | **UniversalSymbol** | | [optional] |
9
+ | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
10
10
  | **local_id** | **String** | | [optional] |
11
11
  | **is_quotable** | **Boolean** | | [optional] |
12
12
  | **is_tradable** | **Boolean** | | [optional] |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **brokerage_authorization** | **BrokerageAuthorization** | | [optional] |
8
+ | **brokerage_authorization** | [**BrokerageAuthorization**](BrokerageAuthorization.md) | | [optional] |
9
9
  | **portfolio_group** | **String** | | [optional] |
10
10
  | **name** | **String** | | [optional] |
11
11
  | **number** | **String** | | [optional] |
@@ -7,8 +7,9 @@
7
7
  | **broker** | **String** | Slug of the brokerage to connect the user to | [optional] |
8
8
  | **immediate_redirect** | **Boolean** | When set to True, user will be redirected back to the partner's site instead of the connection portal | [optional] |
9
9
  | **custom_redirect** | **String** | URL to redirect the user to after the user connects their brokerage account | [optional] |
10
- | **reconnect** | **String** | The UUID of the brokerage connection to be reconnected | [optional] |
10
+ | **reconnect** | **String** | The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See ‘Reconnecting Accounts’ for more information. | [optional] |
11
11
  | **connection_type** | [**ConnectionType**](ConnectionType.md) | | [optional] |
12
+ | **connection_portal_version** | [**ConnectionPortalVersion**](ConnectionPortalVersion.md) | | [optional] |
12
13
 
13
14
  ## Example
14
15
 
@@ -20,7 +21,8 @@ instance = SnapTrade::SnapTradeLoginUserRequestBody.new(
20
21
  immediate_redirect: true,
21
22
  custom_redirect: https://snaptrade.com,
22
23
  reconnect: 8b5f262d-4bb9-365d-888a-202bd3b15fa1,
23
- connection_type: null
24
+ connection_type: null,
25
+ connection_portal_version: null
24
26
  )
25
27
  ```
26
28
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **strategy** | **OptionStrategy** | | [optional] |
7
+ | **strategy** | [**OptionStrategy**](OptionStrategy.md) | | [optional] |
8
8
  | **status** | [**StrategyOrderRecordStatus**](StrategyOrderRecordStatus.md) | | [optional] |
9
9
  | **filled_quantity** | **Float** | | [optional] |
10
10
  | **open_quantity** | **Float** | | [optional] |
@@ -4,12 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **strategy** | **OptionStrategy** | | [optional] |
7
+ | **strategy** | [**OptionStrategy**](OptionStrategy.md) | | [optional] |
8
8
  | **open_price** | **Float** | Trade Price if limit or stop limit order | [optional] |
9
9
  | **bid_price** | **Float** | Trade Price if limit or stop limit order | [optional] |
10
10
  | **ask_price** | **Float** | Trade Price if limit or stop limit order | [optional] |
11
11
  | **volatility** | **Float** | | [optional] |
12
- | **greek** | **StrategyQuotesGreek** | | [optional] |
12
+ | **greek** | [**StrategyQuotesGreek**](StrategyQuotesGreek.md) | | [optional] |
13
13
 
14
14
  ## Example
15
15
 
@@ -14,8 +14,8 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::SubPeriodReturnRate.new(
17
- period_start: Mon Jan 24 00:00:00 UTC 2022,
18
- period_end: Mon Jan 24 00:00:00 UTC 2022,
17
+ period_start: Sun Jan 23 16:00:00 PST 2022,
18
+ period_end: Sun Jan 23 16:00:00 PST 2022,
19
19
  rate_of_return: 0.012312367452
20
20
  )
21
21
  ```
data/docs/Symbol.md CHANGED
@@ -8,9 +8,9 @@
8
8
  | **symbol** | **String** | | [optional] |
9
9
  | **raw_symbol** | **String** | | [optional] |
10
10
  | **name** | **String** | | [optional] |
11
- | **currency** | **Currency** | | [optional] |
12
- | **exchange** | **Exchange** | | [optional] |
13
- | **type** | **SecurityType** | | [optional] |
11
+ | **currency** | [**Currency**](Currency.md) | | [optional] |
12
+ | **exchange** | [**Exchange**](Exchange.md) | | [optional] |
13
+ | **type** | [**SecurityType**](SecurityType.md) | | [optional] |
14
14
 
15
15
  ## Example
16
16
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | **UniversalSymbol** | | [optional] |
7
+ | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
8
8
  | **bid_price** | **Float** | | [optional] |
9
9
  | **ask_price** | **Float** | | [optional] |
10
10
  | **last_trade_price** | **Float** | | [optional] |
data/docs/TargetAsset.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **symbol** | **UniversalSymbol** | | [optional] |
8
+ | **symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
9
9
  | **percent** | **Float** | | [optional] |
10
10
  | **is_supported** | **Boolean** | | [optional] |
11
11
  | **is_excluded** | **Boolean** | | [optional] |
data/docs/Trade.md CHANGED
@@ -5,9 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **account** | **Account** | | [optional] |
9
- | **symbol** | **BrokerageSymbol** | | [optional] |
10
- | **universal_symbol** | **UniversalSymbol** | | [optional] |
8
+ | **account** | [**Account**](Account.md) | | [optional] |
9
+ | **symbol** | [**BrokerageSymbol**](BrokerageSymbol.md) | | [optional] |
10
+ | **universal_symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
11
11
  | **action** | [**TradeAction**](TradeAction.md) | | [optional] |
12
12
  | **units** | **Integer** | | [optional] |
13
13
  | **price** | **Float** | | [optional] |
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **symbol** | **BrokerageSymbol** | | [optional] |
8
- | **universal_symbol** | **UniversalSymbol** | | [optional] |
9
- | **trade** | **Trade** | | [optional] |
7
+ | **symbol** | [**BrokerageSymbol**](BrokerageSymbol.md) | | [optional] |
8
+ | **universal_symbol** | [**UniversalSymbol**](UniversalSymbol.md) | | [optional] |
9
+ | **trade** | [**Trade**](Trade.md) | | [optional] |
10
10
  | **state** | [**State**](State.md) | | [optional] |
11
11
  | **filled_units** | **Integer** | Number of filled units | [optional] |
12
12
  | **action** | [**TradeExecutionStatusAction**](TradeExecutionStatusAction.md) | | [optional] |
data/docs/TradeImpact.md CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **account** | **Account** | | [optional] |
8
- | **currency** | **Currency** | | [optional] |
7
+ | **account** | [**Account**](Account.md) | | [optional] |
8
+ | **currency** | [**Currency**](Currency.md) | | [optional] |
9
9
  | **remaining_cash** | **Float** | Remaining balance after executing all trades | [optional] |
10
10
  | **estimated_commissions** | **Float** | Total estimated commissions across all trades to make | [optional] |
11
11
  | **forex_fees** | **Float** | Estimated forex fees to pay to excute trades | [optional] |
@@ -11,7 +11,7 @@ All URIs are relative to *https://api.snaptrade.com/api/v1*
11
11
 
12
12
  Get transaction history for a user
13
13
 
14
- Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
14
+ Returns activities (transactions) for a user. Specifying start and end date is highly recommended for better performance
15
15
 
16
16
  ### Example
17
17
 
@@ -98,7 +98,7 @@ end
98
98
 
99
99
  Get performance information for a specific timeframe
100
100
 
101
- Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Total Equity Timeframe and Rate of Returns are experimental and should not be trusted to be 100% accurate
101
+ Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Please note that Total Equity Timeframe and Rate of Returns are experimental features. Please contact support@snaptrade.com if you notice any inconsistencies.
102
102
 
103
103
  ### Example
104
104
 
@@ -14,7 +14,7 @@ require 'snaptrade'
14
14
 
15
15
  instance = SnapTrade::TransactionsStatus.new(
16
16
  initial_sync_completed: null,
17
- last_successful_sync: Mon Jan 24 00:00:00 UTC 2022
17
+ last_successful_sync: Sun Jan 23 16:00:00 PST 2022
18
18
  )
19
19
  ```
20
20
 
@@ -7,9 +7,9 @@
7
7
  | **id** | **String** | | [optional] |
8
8
  | **symbol** | **String** | | [optional] |
9
9
  | **description** | **String** | | [optional] |
10
- | **currency** | **Currency** | | [optional] |
11
- | **exchange** | **USExchange** | | [optional] |
12
- | **type** | **SecurityType** | | [optional] |
10
+ | **currency** | [**Currency**](Currency.md) | | [optional] |
11
+ | **exchange** | [**USExchange**](USExchange.md) | | [optional] |
12
+ | **type** | [**SecurityType**](SecurityType.md) | | [optional] |
13
13
  | **currencies** | [**Array<Currency>**](Currency.md) | | [optional] |
14
14
 
15
15
  ## Example
@@ -5,9 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **account** | **AccountSimple** | | [optional] |
8
+ | **account** | [**AccountSimple**](AccountSimple.md) | | [optional] |
9
9
  | **amount** | **Float** | | [optional] |
10
- | **currency** | **Currency** | | [optional] |
10
+ | **currency** | [**Currency**](Currency.md) | | [optional] |
11
11
  | **description** | **String** | | [optional] |
12
12
  | **fee** | **Float** | | [optional] |
13
13
  | **fx_rate** | **Float** | The forex conversion rate involved in the transaction if provided by the brokerage. Used in cases where securities of one currency are purchased in a different currency, and the forex conversion is automatic. In those cases, price, amount and fee will be in the top level currency (activity -> currency) | [optional] |
@@ -16,8 +16,8 @@
16
16
  | **price** | **Float** | | [optional] |
17
17
  | **settlement_date** | **String** | | [optional] |
18
18
  | **external_reference_id** | **String** | Reference ID from brokerage used to identify related transactions. For example if an order comprises of several transactions (buy, fee, fx), they can be grouped if they share the same external_reference_id | [optional] |
19
- | **symbol** | **Symbol** | | [optional] |
20
- | **option_symbol** | **OptionsSymbol** | | [optional] |
19
+ | **symbol** | [**Symbol**](Symbol.md) | | [optional] |
20
+ | **option_symbol** | [**OptionsSymbol**](OptionsSymbol.md) | | [optional] |
21
21
  | **trade_date** | **String** | | [optional] |
22
22
  | **type** | **String** | Potential values include (but are not limited to) - 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] |
23
23
  | **units** | **Float** | Usually but not necessarily an integer | [optional] |
@@ -8,9 +8,9 @@
8
8
  | **symbol** | **String** | | |
9
9
  | **raw_symbol** | **String** | | |
10
10
  | **description** | **String** | | [optional] |
11
- | **currency** | **Currency** | | |
12
- | **exchange** | **Exchange** | | [optional] |
13
- | **type** | **SecurityType** | | |
11
+ | **currency** | [**Currency**](Currency.md) | | |
12
+ | **exchange** | [**Exchange**](Exchange.md) | | [optional] |
13
+ | **type** | [**SecurityType**](SecurityType.md) | | |
14
14
  | **currencies** | [**Array<Currency>**](Currency.md) | | |
15
15
 
16
16
  ## Example
@@ -8,9 +8,9 @@
8
8
  | **symbol** | **String** | | [optional] |
9
9
  | **raw_symbol** | **String** | | [optional] |
10
10
  | **description** | **String** | | [optional] |
11
- | **currency** | **Currency** | | [optional] |
12
- | **exchange** | **Exchange** | | [optional] |
13
- | **type** | **SecurityType** | | [optional] |
11
+ | **currency** | [**Currency**](Currency.md) | | [optional] |
12
+ | **exchange** | [**Exchange**](Exchange.md) | | [optional] |
13
+ | **type** | [**SecurityType**](SecurityType.md) | | [optional] |
14
14
  | **currencies** | [**Array<Currency>**](Currency.md) | | [optional] |
15
15
 
16
16
  ## Example
data/docs/UserSettings.md CHANGED
@@ -13,7 +13,7 @@
13
13
  | **demo** | **Boolean** | | [optional] |
14
14
  | **api_enabled** | **Boolean** | | [optional] |
15
15
  | **drift_threshold** | **Float** | | [optional] |
16
- | **preferred_currency** | **Currency** | | [optional] |
16
+ | **preferred_currency** | [**Currency**](Currency.md) | | [optional] |
17
17
 
18
18
  ## Example
19
19
 
@@ -267,17 +267,19 @@ module SnapTrade
267
267
  # @param broker [String] Slug of the brokerage to connect the user to
268
268
  # @param immediate_redirect [Boolean] When set to True, user will be redirected back to the partner's site instead of the connection portal
269
269
  # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account
270
- # @param reconnect [String] The UUID of the brokerage connection to be reconnected
270
+ # @param reconnect [String] The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See ‘Reconnecting Accounts’ for more information.
271
271
  # @param connection_type [ConnectionType]
272
+ # @param connection_portal_version [ConnectionPortalVersion]
272
273
  # @param body [SnapTradeLoginUserRequestBody]
273
274
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
274
- def login_snap_trade_user(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: SENTINEL, extra: {})
275
+ def login_snap_trade_user(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: SENTINEL, connection_portal_version: SENTINEL, extra: {})
275
276
  _body = {}
276
277
  _body[:broker] = broker if broker != SENTINEL
277
278
  _body[:immediateRedirect] = immediate_redirect if immediate_redirect != SENTINEL
278
279
  _body[:customRedirect] = custom_redirect if custom_redirect != SENTINEL
279
280
  _body[:reconnect] = reconnect if reconnect != SENTINEL
280
281
  _body[:connectionType] = connection_type if connection_type != SENTINEL
282
+ _body[:connectionPortalVersion] = connection_portal_version if connection_portal_version != SENTINEL
281
283
  extra[:snap_trade_login_user_request_body] = _body if !_body.empty?
282
284
  data, _status_code, _headers = login_snap_trade_user_with_http_info_impl(user_id, user_secret, extra)
283
285
  data
@@ -290,17 +292,19 @@ module SnapTrade
290
292
  # @param broker [String] Slug of the brokerage to connect the user to
291
293
  # @param immediate_redirect [Boolean] When set to True, user will be redirected back to the partner's site instead of the connection portal
292
294
  # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account
293
- # @param reconnect [String] The UUID of the brokerage connection to be reconnected
295
+ # @param reconnect [String] The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See ‘Reconnecting Accounts’ for more information.
294
296
  # @param connection_type [ConnectionType]
297
+ # @param connection_portal_version [ConnectionPortalVersion]
295
298
  # @param body [SnapTradeLoginUserRequestBody]
296
299
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
297
- def login_snap_trade_user_with_http_info(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: SENTINEL, extra: {})
300
+ def login_snap_trade_user_with_http_info(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: SENTINEL, connection_portal_version: SENTINEL, extra: {})
298
301
  _body = {}
299
302
  _body[:broker] = broker if broker != SENTINEL
300
303
  _body[:immediateRedirect] = immediate_redirect if immediate_redirect != SENTINEL
301
304
  _body[:customRedirect] = custom_redirect if custom_redirect != SENTINEL
302
305
  _body[:reconnect] = reconnect if reconnect != SENTINEL
303
306
  _body[:connectionType] = connection_type if connection_type != SENTINEL
307
+ _body[:connectionPortalVersion] = connection_portal_version if connection_portal_version != SENTINEL
304
308
  extra[:snap_trade_login_user_request_body] = _body if !_body.empty?
305
309
  login_snap_trade_user_with_http_info_impl(user_id, user_secret, extra)
306
310
  end
@@ -19,7 +19,7 @@ module SnapTrade
19
19
  end
20
20
 
21
21
  # Get transaction history for a user
22
- # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
22
+ # Returns activities (transactions) for a user. Specifying start and end date is highly recommended for better performance
23
23
  # @param user_id [String]
24
24
  # @param user_secret [String]
25
25
  # @param start_date [Date]
@@ -39,7 +39,7 @@ module SnapTrade
39
39
  end
40
40
 
41
41
  # Get transaction history for a user
42
- # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
42
+ # Returns activities (transactions) for a user. Specifying start and end date is highly recommended for better performance
43
43
  # @param user_id [String]
44
44
  # @param user_secret [String]
45
45
  # @param start_date [Date]
@@ -58,7 +58,7 @@ module SnapTrade
58
58
  end
59
59
 
60
60
  # Get transaction history for a user
61
- # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
61
+ # Returns activities (transactions) for a user. Specifying start and end date is highly recommended for better performance
62
62
  # @param user_id [String]
63
63
  # @param user_secret [String]
64
64
  # @param [Hash] opts the optional parameters
@@ -74,7 +74,7 @@ module SnapTrade
74
74
  end
75
75
 
76
76
  # Get transaction history for a user
77
- # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
77
+ # Returns activities (transactions) for a user. Specifying start and end date is highly recommended for better performance
78
78
  # @param user_id [String]
79
79
  # @param user_secret [String]
80
80
  # @param [Hash] opts the optional parameters
@@ -145,7 +145,7 @@ module SnapTrade
145
145
 
146
146
 
147
147
  # Get performance information for a specific timeframe
148
- # Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Total Equity Timeframe and Rate of Returns are experimental and should not be trusted to be 100% accurate
148
+ # Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Please note that Total Equity Timeframe and Rate of Returns are experimental features. Please contact support@snaptrade.com if you notice any inconsistencies.
149
149
  # @param start_date [Date]
150
150
  # @param end_date [Date]
151
151
  # @param user_id [String]
@@ -163,7 +163,7 @@ module SnapTrade
163
163
  end
164
164
 
165
165
  # Get performance information for a specific timeframe
166
- # Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Total Equity Timeframe and Rate of Returns are experimental and should not be trusted to be 100% accurate
166
+ # Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Please note that Total Equity Timeframe and Rate of Returns are experimental features. Please contact support@snaptrade.com if you notice any inconsistencies.
167
167
  # @param start_date [Date]
168
168
  # @param end_date [Date]
169
169
  # @param user_id [String]
@@ -180,7 +180,7 @@ module SnapTrade
180
180
  end
181
181
 
182
182
  # Get performance information for a specific timeframe
183
- # Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Total Equity Timeframe and Rate of Returns are experimental and should not be trusted to be 100% accurate
183
+ # Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Please note that Total Equity Timeframe and Rate of Returns are experimental features. Please contact support@snaptrade.com if you notice any inconsistencies.
184
184
  # @param start_date [Date]
185
185
  # @param end_date [Date]
186
186
  # @param user_id [String]
@@ -196,7 +196,7 @@ module SnapTrade
196
196
  end
197
197
 
198
198
  # Get performance information for a specific timeframe
199
- # Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Total Equity Timeframe and Rate of Returns are experimental and should not be trusted to be 100% accurate
199
+ # Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Please note that Total Equity Timeframe and Rate of Returns are experimental features. Please contact support@snaptrade.com if you notice any inconsistencies.
200
200
  # @param start_date [Date]
201
201
  # @param end_date [Date]
202
202
  # @param user_id [String]
@@ -34,6 +34,8 @@ module SnapTrade
34
34
 
35
35
  attr_accessor :sync_status
36
36
 
37
+ attr_accessor :balance
38
+
37
39
  # Attribute mapping from ruby-style variable name to JSON key.
38
40
  def self.attribute_map
39
41
  {
@@ -46,7 +48,8 @@ module SnapTrade
46
48
  :'created_date' => :'created_date',
47
49
  :'meta' => :'meta',
48
50
  :'cash_restrictions' => :'cash_restrictions',
49
- :'sync_status' => :'sync_status'
51
+ :'sync_status' => :'sync_status',
52
+ :'balance' => :'balance'
50
53
  }
51
54
  end
52
55
 
@@ -67,7 +70,8 @@ module SnapTrade
67
70
  :'created_date' => :'String',
68
71
  :'meta' => :'Hash<String, Object>',
69
72
  :'cash_restrictions' => :'Array<CashRestriction>',
70
- :'sync_status' => :'AccountSyncStatus'
73
+ :'sync_status' => :'AccountSyncStatus',
74
+ :'balance' => :'AccountBalance'
71
75
  }
72
76
  end
73
77
 
@@ -135,6 +139,10 @@ module SnapTrade
135
139
  if attributes.key?(:'sync_status')
136
140
  self.sync_status = attributes[:'sync_status']
137
141
  end
142
+
143
+ if attributes.key?(:'balance')
144
+ self.balance = attributes[:'balance']
145
+ end
138
146
  end
139
147
 
140
148
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -164,7 +172,8 @@ module SnapTrade
164
172
  created_date == o.created_date &&
165
173
  meta == o.meta &&
166
174
  cash_restrictions == o.cash_restrictions &&
167
- sync_status == o.sync_status
175
+ sync_status == o.sync_status &&
176
+ balance == o.balance
168
177
  end
169
178
 
170
179
  # @see the `==` method
@@ -176,7 +185,7 @@ module SnapTrade
176
185
  # Calculates hash code according to all attributes.
177
186
  # @return [Integer] Hash code
178
187
  def hash
179
- [id, brokerage_authorization, portfolio_group, name, number, institution_name, created_date, meta, cash_restrictions, sync_status].hash
188
+ [id, brokerage_authorization, portfolio_group, name, number, institution_name, created_date, meta, cash_restrictions, sync_status, balance].hash
180
189
  end
181
190
 
182
191
  # Builds the object from hash