snaptrade 2.0.29 โ†’ 2.0.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eda55725a9b97295f947e385aaa5003b02a7d20e8e4603cefa5a17dbdf27215d
4
- data.tar.gz: f03cb7a20b125bb83a122fa42ab9948891583bb8f4888d365ec225e51f1220a1
3
+ metadata.gz: 90d2830fdcb3a1406af0db439f7cdec6d02b895b715c4a90093dca06c4a5e787
4
+ data.tar.gz: 67b0d298c28363d224e26a59cd559de0a0330498da7877e81cc3d95f03660460
5
5
  SHA512:
6
- metadata.gz: dec55a480470054f6c039189d796edf016ff838ab276afa435c2b8f6fd7df6c94687ca474af52311a16c2a039a819043e938fbb228be751d67ccae77ec145590
7
- data.tar.gz: 7213d617ae5118e8f7b313bbafa49446e17134c7b5fefc961626cdab60f28e61844bc8345fb40b8b77a2794aabf88b8102df9c2cb3afa1d4ffbc7d854fb35800
6
+ metadata.gz: 6a5af9e47b615b7eee91ec656eda1acb7a8006066df7519c2e7947371fbc09e085f1ed31e8644318033664a64d09e91eab57d468987730b9f9e28a7f6393c05d
7
+ data.tar.gz: 3a282337bbcad359000d485fb143dbcf9598e8a3a10fcc5b6d4844893f8aeb8d2ac57e69df4504e5d2f982252554aa2ee5ddf54f402bb1511a19c6f3b0e63f94
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.28)
4
+ snaptrade (2.0.29)
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.29-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.29)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.30-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.30)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -70,7 +70,7 @@ Connect brokerage accounts to your app for live positions and trading
70
70
  Add to Gemfile:
71
71
 
72
72
  ```ruby
73
- gem 'snaptrade', '~> 2.0.29'
73
+ gem 'snaptrade', '~> 2.0.30'
74
74
  ```
75
75
 
76
76
  ## Getting Started<a id="getting-started"></a>
@@ -112,8 +112,10 @@ p.result[3] # [Faraday::Response] Raw HTTP response
112
112
  ### `snaptrade.account_information.get_all_user_holdings`<a id="snaptradeaccount_informationget_all_user_holdings"></a>
113
113
  ![Deprecated](https://img.shields.io/badge/deprecated-yellow)
114
114
 
115
- Lists balances, positions and orders for the specified account. The data returned is similar to
116
- the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
115
+ **Deprecated, please use the account-specific holdings endpoint instead.**
116
+
117
+ List all accounts for the user, plus balances, positions, and orders for each
118
+ account.
117
119
 
118
120
 
119
121
  #### ๐Ÿ› ๏ธ Usage<a id="๐Ÿ› ๏ธ-usage"></a>
@@ -501,7 +503,9 @@ p result
501
503
  ##### user_id: `String`<a id="user_id-string"></a>
502
504
  ##### user_secret: `String`<a id="user_secret-string"></a>
503
505
  ##### broker: `String`<a id="broker-string"></a>
504
- Slug of the brokerage to connect the user to
506
+ Slug of the brokerage to connect the user to. See [this
507
+ document](https://snaptrade.notion.site/SnapTrade-Brokerage-Integrations-f83946a714a84c3caf599f6a945f0ead)
508
+ for a list of supported brokerages and their slugs.
505
509
 
506
510
  ##### immediateRedirect: `Boolean`<a id="immediateredirect-boolean"></a>
507
511
  When set to True, user will be redirected back to the partner's site instead of
@@ -519,7 +523,7 @@ Accountsโ€™ for more information.
519
523
  Sets whether the connection should be read or trade
520
524
 
521
525
  ##### connectionPortalVersion: [`ConnectionPortalVersion`](./lib/snaptrade/models/connection_portal_version.rb)<a id="connectionportalversion-connectionportalversionlibsnaptrademodelsconnection_portal_versionrb"></a>
522
- Sets the version of the connection portal to render, with a default to 'v2'
526
+ Sets the version of the connection portal to render, with a default to 'v3'
523
527
 
524
528
  #### ๐Ÿ”„ Return<a id="๐Ÿ”„-return"></a>
525
529
 
@@ -536,8 +540,8 @@ Sets the version of the connection portal to render, with a default to 'v2'
536
540
 
537
541
  ### `snaptrade.authentication.register_snap_trade_user`<a id="snaptradeauthenticationregister_snap_trade_user"></a>
538
542
 
539
- Registers a new SnapTrade user under your ClientID.
540
- Most SnapTrade operations require a user to be passed as a parameter.
543
+ Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database.
544
+ Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
541
545
 
542
546
 
543
547
  #### ๐Ÿ› ๏ธ Usage<a id="๐Ÿ› ๏ธ-usage"></a>
@@ -714,7 +718,7 @@ p result
714
718
 
715
719
  ### `snaptrade.connections.refresh_brokerage_authorization`<a id="snaptradeconnectionsrefresh_brokerage_authorization"></a>
716
720
 
717
- Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes
721
+ Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes. Please contact support for access as this endpoint is not enabled by default
718
722
 
719
723
  #### ๐Ÿ› ๏ธ Usage<a id="๐Ÿ› ๏ธ-usage"></a>
720
724
 
@@ -1441,7 +1445,7 @@ Canceled
1441
1445
 
1442
1446
  ### `snaptrade.trading.get_user_account_quotes`<a id="snaptradetradingget_user_account_quotes"></a>
1443
1447
 
1444
- Returns live quote(s) from the brokerage for the specified symbol(s).
1448
+ Returns quote(s) from the brokerage for the specified symbol(s).
1445
1449
 
1446
1450
  #### ๐Ÿ› ๏ธ Usage<a id="๐Ÿ› ๏ธ-usage"></a>
1447
1451
 
@@ -19,8 +19,10 @@ module SnapTrade
19
19
 
20
20
  # List all accounts for the user, plus balances, positions, and orders for each account.
21
21
  #
22
- # Lists balances, positions and orders for the specified account. The data returned is similar to
23
- # the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
22
+ # **Deprecated, please use the account-specific holdings endpoint instead.**
23
+ #
24
+ # List all accounts for the user, plus balances, positions, and orders for each
25
+ # account.
24
26
  #
25
27
  # @param user_id [String]
26
28
  # @param user_secret [String]
@@ -34,8 +36,10 @@ module SnapTrade
34
36
 
35
37
  # List all accounts for the user, plus balances, positions, and orders for each account.
36
38
  #
37
- # Lists balances, positions and orders for the specified account. The data returned is similar to
38
- # the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
39
+ # **Deprecated, please use the account-specific holdings endpoint instead.**
40
+ #
41
+ # List all accounts for the user, plus balances, positions, and orders for each
42
+ # account.
39
43
  #
40
44
  # @param user_id [String]
41
45
  # @param user_secret [String]
@@ -47,7 +51,7 @@ module SnapTrade
47
51
  end
48
52
 
49
53
  # List all accounts for the user, plus balances, positions, and orders for each account.
50
- # Lists balances, positions and orders for the specified account. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
54
+ # **Deprecated, please use the account-specific holdings endpoint instead.** List all accounts for the user, plus balances, positions, and orders for each account.
51
55
  # @param user_id [String]
52
56
  # @param user_secret [String]
53
57
  # @param [Hash] opts the optional parameters
@@ -59,7 +63,7 @@ module SnapTrade
59
63
  end
60
64
 
61
65
  # List all accounts for the user, plus balances, positions, and orders for each account.
62
- # Lists balances, positions and orders for the specified account. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
66
+ # **Deprecated, please use the account-specific holdings endpoint instead.** List all accounts for the user, plus balances, positions, and orders for each account.
63
67
  # @param user_id [String]
64
68
  # @param user_secret [String]
65
69
  # @param [Hash] opts the optional parameters
@@ -186,12 +186,12 @@ module SnapTrade
186
186
  #
187
187
  # @param user_id [String]
188
188
  # @param user_secret [String]
189
- # @param broker [String] Slug of the brokerage to connect the user to
189
+ # @param broker [String] Slug of the brokerage to connect the user to. See [this document](https://snaptrade.notion.site/SnapTrade-Brokerage-Integrations-f83946a714a84c3caf599f6a945f0ead) for a list of supported brokerages and their slugs.
190
190
  # @param immediate_redirect [Boolean] When set to True, user will be redirected back to the partner's site instead of the connection portal
191
191
  # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account
192
192
  # @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.
193
193
  # @param connection_type [ConnectionType] Sets whether the connection should be read or trade
194
- # @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render, with a default to 'v2'
194
+ # @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render, with a default to 'v3'
195
195
  # @param body [SnapTradeLoginUserRequestBody]
196
196
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
197
197
  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: {})
@@ -213,12 +213,12 @@ module SnapTrade
213
213
  #
214
214
  # @param user_id [String]
215
215
  # @param user_secret [String]
216
- # @param broker [String] Slug of the brokerage to connect the user to
216
+ # @param broker [String] Slug of the brokerage to connect the user to. See [this document](https://snaptrade.notion.site/SnapTrade-Brokerage-Integrations-f83946a714a84c3caf599f6a945f0ead) for a list of supported brokerages and their slugs.
217
217
  # @param immediate_redirect [Boolean] When set to True, user will be redirected back to the partner's site instead of the connection portal
218
218
  # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account
219
219
  # @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.
220
220
  # @param connection_type [ConnectionType] Sets whether the connection should be read or trade
221
- # @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render, with a default to 'v2'
221
+ # @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render, with a default to 'v3'
222
222
  # @param body [SnapTradeLoginUserRequestBody]
223
223
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
224
224
  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: {})
@@ -314,8 +314,8 @@ module SnapTrade
314
314
 
315
315
  # Create SnapTrade user
316
316
  #
317
- # Registers a new SnapTrade user under your ClientID.
318
- # Most SnapTrade operations require a user to be passed as a parameter.
317
+ # Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database.
318
+ # Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
319
319
  #
320
320
  # @param user_id [String] SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
321
321
  # @param body [SnapTradeRegisterUserRequestBody]
@@ -330,8 +330,8 @@ module SnapTrade
330
330
 
331
331
  # Create SnapTrade user
332
332
  #
333
- # Registers a new SnapTrade user under your ClientID.
334
- # Most SnapTrade operations require a user to be passed as a parameter.
333
+ # Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database.
334
+ # Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
335
335
  #
336
336
  # @param user_id [String] SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
337
337
  # @param body [SnapTradeRegisterUserRequestBody]
@@ -344,7 +344,7 @@ module SnapTrade
344
344
  end
345
345
 
346
346
  # Create SnapTrade user
347
- # Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
347
+ # Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
348
348
  # @param snap_trade_register_user_request_body [SnapTradeRegisterUserRequestBody]
349
349
  # @param [Hash] opts the optional parameters
350
350
  # @return [UserIDandSecret]
@@ -354,7 +354,7 @@ module SnapTrade
354
354
  end
355
355
 
356
356
  # Create SnapTrade user
357
- # Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
357
+ # Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
358
358
  # @param snap_trade_register_user_request_body [SnapTradeRegisterUserRequestBody]
359
359
  # @param [Hash] opts the optional parameters
360
360
  # @return [Array<(UserIDandSecret, Integer, Hash)>] UserIDandSecret data, response status code and response headers
@@ -320,7 +320,7 @@ module SnapTrade
320
320
 
321
321
  # Refresh holdings for a connection
322
322
  #
323
- # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes
323
+ # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes. Please contact support for access as this endpoint is not enabled by default
324
324
  #
325
325
  # @param authorization_id [String] The ID of a brokerage authorization object.
326
326
  # @param user_id [String]
@@ -333,7 +333,7 @@ module SnapTrade
333
333
 
334
334
  # Refresh holdings for a connection
335
335
  #
336
- # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes
336
+ # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes. Please contact support for access as this endpoint is not enabled by default
337
337
  #
338
338
  # @param authorization_id [String] The ID of a brokerage authorization object.
339
339
  # @param user_id [String]
@@ -344,7 +344,7 @@ module SnapTrade
344
344
  end
345
345
 
346
346
  # Refresh holdings for a connection
347
- # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes
347
+ # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes. Please contact support for access as this endpoint is not enabled by default
348
348
  # @param authorization_id [String] The ID of a brokerage authorization object.
349
349
  # @param user_id [String]
350
350
  # @param user_secret [String]
@@ -356,7 +356,7 @@ module SnapTrade
356
356
  end
357
357
 
358
358
  # Refresh holdings for a connection
359
- # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes
359
+ # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes. Please contact support for access as this endpoint is not enabled by default
360
360
  # @param authorization_id [String] The ID of a brokerage authorization object.
361
361
  # @param user_id [String]
362
362
  # @param user_secret [String]
@@ -293,7 +293,7 @@ module SnapTrade
293
293
 
294
294
  # Get symbol quotes
295
295
  #
296
- # Returns live quote(s) from the brokerage for the specified symbol(s).
296
+ # Returns quote(s) from the brokerage for the specified symbol(s).
297
297
  #
298
298
  # @param user_id [String]
299
299
  # @param user_secret [String]
@@ -309,7 +309,7 @@ module SnapTrade
309
309
 
310
310
  # Get symbol quotes
311
311
  #
312
- # Returns live quote(s) from the brokerage for the specified symbol(s).
312
+ # Returns quote(s) from the brokerage for the specified symbol(s).
313
313
  #
314
314
  # @param user_id [String]
315
315
  # @param user_secret [String]
@@ -323,7 +323,7 @@ module SnapTrade
323
323
  end
324
324
 
325
325
  # Get symbol quotes
326
- # Returns live quote(s) from the brokerage for the specified symbol(s).
326
+ # Returns quote(s) from the brokerage for the specified symbol(s).
327
327
  # @param user_id [String]
328
328
  # @param user_secret [String]
329
329
  # @param symbols [String] List of universal_symbol_id or tickers to get quotes for.
@@ -337,7 +337,7 @@ module SnapTrade
337
337
  end
338
338
 
339
339
  # Get symbol quotes
340
- # Returns live quote(s) from the brokerage for the specified symbol(s).
340
+ # Returns quote(s) from the brokerage for the specified symbol(s).
341
341
  # @param user_id [String]
342
342
  # @param user_secret [String]
343
343
  # @param symbols [String] List of universal_symbol_id or tickers to get quotes for.
@@ -13,7 +13,7 @@ require 'time'
13
13
  module SnapTrade
14
14
  # Data to login a user via SnapTrade Partner
15
15
  class SnapTradeLoginUserRequestBody
16
- # Slug of the brokerage to connect the user to
16
+ # Slug of the brokerage to connect the user to. See [this document](https://snaptrade.notion.site/SnapTrade-Brokerage-Integrations-f83946a714a84c3caf599f6a945f0ead) for a list of supported brokerages and their slugs.
17
17
  attr_accessor :broker
18
18
 
19
19
  # When set to True, user will be redirected back to the partner's site instead of the connection portal
@@ -28,7 +28,7 @@ module SnapTrade
28
28
  # Sets whether the connection should be read or trade
29
29
  attr_accessor :connection_type
30
30
 
31
- # Sets the version of the connection portal to render, with a default to 'v2'
31
+ # Sets the version of the connection portal to render, with a default to 'v3'
32
32
  attr_accessor :connection_portal_version
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.29'
11
+ VERSION = '2.0.30'
12
12
  end
@@ -29,7 +29,7 @@ describe 'AccountInformationApi' do
29
29
 
30
30
  # unit tests for get_all_user_holdings
31
31
  # List all accounts for the user, plus balances, positions, and orders for each account.
32
- # Lists balances, positions and orders for the specified account. The data returned is similar to the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
32
+ # **Deprecated, please use the account-specific holdings endpoint instead.** List all accounts for the user, plus balances, positions, and orders for each account.
33
33
  # @param user_id
34
34
  # @param user_secret
35
35
  # @param [Hash] opts the optional parameters
@@ -66,7 +66,7 @@ describe 'AuthenticationApi' do
66
66
 
67
67
  # unit tests for register_snap_trade_user
68
68
  # Create SnapTrade user
69
- # Registers a new SnapTrade user under your ClientID. Most SnapTrade operations require a user to be passed as a parameter.
69
+ # Registers a new SnapTrade user under your ClientID. A user secret will be automatically generated for you and must be properly stored in your database. Most SnapTrade operations require a user ID and user secret to be passed as a parameter.
70
70
  # @param snap_trade_register_user_request_body
71
71
  # @param [Hash] opts the optional parameters
72
72
  # @return [UserIDandSecret]
@@ -70,7 +70,7 @@ describe 'ConnectionsApi' do
70
70
 
71
71
  # unit tests for refresh_brokerage_authorization
72
72
  # Refresh holdings for a connection
73
- # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes
73
+ # Trigger a holdings update for all accounts under this authorization. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes. Please contact support for access as this endpoint is not enabled by default
74
74
  # @param authorization_id The ID of a brokerage authorization object.
75
75
  # @param user_id
76
76
  # @param user_secret
@@ -58,7 +58,7 @@ describe 'TradingApi' do
58
58
 
59
59
  # unit tests for get_user_account_quotes
60
60
  # Get symbol quotes
61
- # Returns live quote(s) from the brokerage for the specified symbol(s).
61
+ # Returns quote(s) from the brokerage for the specified symbol(s).
62
62
  # @param user_id
63
63
  # @param user_secret
64
64
  # @param symbols List of universal_symbol_id or tickers to get quotes for.
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.29
4
+ version: 2.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-16 00:00:00.000000000 Z
11
+ date: 2024-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday