snaptrade 2.0.39 → 2.0.41

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: 5de7a12dd5c2bcd10b37f4960afe06950c1bf6483efde545f9d58cbae981a842
4
- data.tar.gz: 122df0c22545b0853927396d29c2698242873a686c71f4fda8aacff2bafeefd3
3
+ metadata.gz: 8c1c06e82bf3edcd3faa6c7dbaffb2e3b0b15e51e6ce5e51f741f00668e1fa10
4
+ data.tar.gz: 32225d2bdd784463c059239a4cd172229c80467624918d1674e4c62666e41c7d
5
5
  SHA512:
6
- metadata.gz: f4022c9867722010ad4ea8df511108634b2b1501f68e3d3d8879bd1dcafc1091899b9eb775bf0e14db67f7b4d0e296ed32f95bb28e1f27c37265fa2ea6ab7216
7
- data.tar.gz: e498b92a1f1c008739a54477c497cdf4cb42cb8806dafee45ee505024200067f3868060e645b72ff2fea7bc5459f7ba420cec1c007bac16b1b82d9ed3e9d3258
6
+ metadata.gz: f3fb415c6acf865a48d8a37a5d632e0df87c9993857b937b6bb2b766cc6b77bbb26bf12e19bfbbc29260088c2249ab32a40aab0bf0301a87314bd52e15f2adc3
7
+ data.tar.gz: c15bc218403128b291bb6c2c90e1e751c4e96a04e92a66ee0a1fe9106515bb4639ba33b571f8ac84786d824537cc012e698193c9d62b316779f20063bba8165c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.39)
4
+ snaptrade (2.0.41)
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.39-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.39)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.41-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.41)
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.39'
73
+ gem 'snaptrade', '~> 2.0.41'
74
74
  ```
75
75
 
76
76
  ## Getting Started<a id="getting-started"></a>
@@ -483,7 +483,10 @@ p result
483
483
 
484
484
  ### `snaptrade.authentication.login_snap_trade_user`<a id="snaptradeauthenticationlogin_snap_trade_user"></a>
485
485
 
486
- Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
486
+ Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app.
487
+
488
+ Please note that the returned URL expires in 5 minutes.
489
+
487
490
 
488
491
  #### 🛠️ Usage<a id="🛠️-usage"></a>
489
492
 
@@ -514,22 +517,18 @@ for a list of supported brokerages and their slugs.
514
517
  When set to `true`, user will be redirected back to the partner's site instead
515
518
  of the connection portal. This parameter is ignored if the connection portal is
516
519
  loaded inside an iframe. See the [guide on ways to integrate the connection
517
- portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more
518
- information.
520
+ portal](/docs/implement-connection-portal) for more information.
519
521
 
520
522
  ##### customRedirect: `String`<a id="customredirect-string"></a>
521
523
  URL to redirect the user to after the user connects their brokerage account.
522
524
  This parameter is ignored if the connection portal is loaded inside an iframe.
523
525
  See the [guide on ways to integrate the connection
524
- portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more
525
- information.
526
+ portal](/docs/implement-connection-portal) for more information.
526
527
 
527
528
  ##### reconnect: `String`<a id="reconnect-string"></a>
528
529
  The UUID of the brokerage connection to be reconnected. This parameter should be
529
530
  left empty unless you are reconnecting a disabled connection. See the [guide on
530
- fixing broken
531
- connections](https://docs.snaptrade.com/docs/fix-broken-connections) for more
532
- information.
531
+ fixing broken connections](/docs/fix-broken-connections) for more information.
533
532
 
534
533
  ##### connectionType: [`ConnectionType`](./lib/snaptrade/models/connection_type.rb)<a id="connectiontype-connectiontypelibsnaptrademodelsconnection_typerb"></a>
535
534
  Sets whether the connection should be read-only or trade-enabled.
@@ -663,7 +662,7 @@ p result
663
662
  ### `snaptrade.connections.disable_brokerage_authorization`<a id="snaptradeconnectionsdisable_brokerage_authorization"></a>
664
663
 
665
664
  Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections.
666
- Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection.
665
+ Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.
667
666
 
668
667
  *Please contact us in order to use this endpoint as it is disabled by default.*
669
668
 
@@ -735,7 +734,7 @@ p result
735
734
 
736
735
  ### `snaptrade.connections.refresh_brokerage_authorization`<a id="snaptradeconnectionsrefresh_brokerage_authorization"></a>
737
736
 
738
- Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
737
+ Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
739
738
 
740
739
  *Please contact support for access as this endpoint is not enabled by default.*
741
740
 
@@ -1522,10 +1521,12 @@ Should be set to `True` if `symbols` are comprised of tickers. Defaults to
1522
1521
 
1523
1522
  ### `snaptrade.trading.place_force_order`<a id="snaptradetradingplace_force_order"></a>
1524
1523
 
1525
- Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
1524
+ Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
1526
1525
 
1527
1526
  This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact).
1528
1527
 
1528
+ It's recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
1529
+
1529
1530
 
1530
1531
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1531
1532
 
@@ -1600,6 +1601,8 @@ The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
1600
1601
 
1601
1602
  Places the previously checked order with the brokerage. The `tradeId` is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder).
1602
1603
 
1604
+ It's recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
1605
+
1603
1606
 
1604
1607
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1605
1608
 
@@ -180,16 +180,18 @@ module SnapTrade
180
180
  end
181
181
 
182
182
 
183
- # Login user & generate connection link
183
+ # Generate Connection Portal URL
184
184
  #
185
- # Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
185
+ # Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app.
186
+ #
187
+ # Please note that the returned URL expires in 5 minutes.
186
188
  #
187
189
  # @param user_id [String]
188
190
  # @param user_secret [String]
189
191
  # @param broker [String] Slug of the brokerage to connect the user to. See [the integrations page](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=3cfea70ef4254afc89704e47275a7a9a&pvs=4) for a list of supported brokerages and their slugs.
190
- # @param immediate_redirect [Boolean] When set to `true`, user will be redirected back to the partner's site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more information.
191
- # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more information.
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 the [guide on fixing broken connections](https://docs.snaptrade.com/docs/fix-broken-connections) for more information.
192
+ # @param immediate_redirect [Boolean] When set to `true`, user will be redirected back to the partner's site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
193
+ # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
194
+ # @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 the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
193
195
  # @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled.
194
196
  # @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render.
195
197
  # @param body [SnapTradeLoginUserRequestBody]
@@ -207,16 +209,18 @@ module SnapTrade
207
209
  data
208
210
  end
209
211
 
210
- # Login user & generate connection link
212
+ # Generate Connection Portal URL
211
213
  #
212
- # Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
214
+ # Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app.
215
+ #
216
+ # Please note that the returned URL expires in 5 minutes.
213
217
  #
214
218
  # @param user_id [String]
215
219
  # @param user_secret [String]
216
220
  # @param broker [String] Slug of the brokerage to connect the user to. See [the integrations page](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=3cfea70ef4254afc89704e47275a7a9a&pvs=4) for a list of supported brokerages and their slugs.
217
- # @param immediate_redirect [Boolean] When set to `true`, user will be redirected back to the partner's site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more information.
218
- # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more information.
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 the [guide on fixing broken connections](https://docs.snaptrade.com/docs/fix-broken-connections) for more information.
221
+ # @param immediate_redirect [Boolean] When set to `true`, user will be redirected back to the partner's site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
222
+ # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
223
+ # @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 the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
220
224
  # @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled.
221
225
  # @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render.
222
226
  # @param body [SnapTradeLoginUserRequestBody]
@@ -233,8 +237,8 @@ module SnapTrade
233
237
  login_snap_trade_user_with_http_info_impl(user_id, user_secret, extra)
234
238
  end
235
239
 
236
- # Login user & generate connection link
237
- # Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
240
+ # Generate Connection Portal URL
241
+ # Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app. Please note that the returned URL expires in 5 minutes.
238
242
  # @param user_id [String]
239
243
  # @param user_secret [String]
240
244
  # @param [Hash] opts the optional parameters
@@ -245,8 +249,8 @@ module SnapTrade
245
249
  data
246
250
  end
247
251
 
248
- # Login user &amp; generate connection link
249
- # Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
252
+ # Generate Connection Portal URL
253
+ # Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app. Please note that the returned URL expires in 5 minutes.
250
254
  # @param user_id [String]
251
255
  # @param user_secret [String]
252
256
  # @param [Hash] opts the optional parameters
@@ -123,7 +123,7 @@ module SnapTrade
123
123
  # Force disable connection
124
124
  #
125
125
  # Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections.
126
- # Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection.
126
+ # Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.
127
127
  #
128
128
  # *Please contact us in order to use this endpoint as it is disabled by default.*
129
129
  #
@@ -139,7 +139,7 @@ module SnapTrade
139
139
  # Force disable connection
140
140
  #
141
141
  # Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections.
142
- # Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection.
142
+ # Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.
143
143
  #
144
144
  # *Please contact us in order to use this endpoint as it is disabled by default.*
145
145
  #
@@ -152,7 +152,7 @@ module SnapTrade
152
152
  end
153
153
 
154
154
  # Force disable connection
155
- # Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
155
+ # Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
156
156
  # @param authorization_id [String]
157
157
  # @param user_id [String]
158
158
  # @param user_secret [String]
@@ -164,7 +164,7 @@ module SnapTrade
164
164
  end
165
165
 
166
166
  # Force disable connection
167
- # Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [&#x60;CONNECTION_BROKEN&#x60; webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
167
+ # Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [&#x60;CONNECTION_BROKEN&#x60; webhook](/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
168
168
  # @param authorization_id [String]
169
169
  # @param user_id [String]
170
170
  # @param user_secret [String]
@@ -334,7 +334,7 @@ module SnapTrade
334
334
 
335
335
  # Refresh holdings for a connection
336
336
  #
337
- # Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
337
+ # Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
338
338
  #
339
339
  # *Please contact support for access as this endpoint is not enabled by default.*
340
340
  #
@@ -349,7 +349,7 @@ module SnapTrade
349
349
 
350
350
  # Refresh holdings for a connection
351
351
  #
352
- # Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
352
+ # Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
353
353
  #
354
354
  # *Please contact support for access as this endpoint is not enabled by default.*
355
355
  #
@@ -362,7 +362,7 @@ module SnapTrade
362
362
  end
363
363
 
364
364
  # Refresh holdings for a connection
365
- # Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
365
+ # Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
366
366
  # @param authorization_id [String]
367
367
  # @param user_id [String]
368
368
  # @param user_secret [String]
@@ -374,7 +374,7 @@ module SnapTrade
374
374
  end
375
375
 
376
376
  # Refresh holdings for a connection
377
- # Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [&#x60;ACCOUNT_HOLDINGS_UPDATED&#x60; webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
377
+ # Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [&#x60;ACCOUNT_HOLDINGS_UPDATED&#x60; webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
378
378
  # @param authorization_id [String]
379
379
  # @param user_id [String]
380
380
  # @param user_secret [String]
@@ -410,9 +410,11 @@ module SnapTrade
410
410
 
411
411
  # Place order
412
412
  #
413
- # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
413
+ # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
414
414
  #
415
415
  # This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact).
416
+ #
417
+ # It's recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
416
418
  #
417
419
  # @param account_id [String] Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
418
420
  # @param action [ActionStrict] The action describes the intent or side of a trade. This is either `BUY` or `SELL`
@@ -445,9 +447,11 @@ module SnapTrade
445
447
 
446
448
  # Place order
447
449
  #
448
- # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
450
+ # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
449
451
  #
450
452
  # This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact).
453
+ #
454
+ # It's recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
451
455
  #
452
456
  # @param account_id [String] Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
453
457
  # @param action [ActionStrict] The action describes the intent or side of a trade. This is either `BUY` or `SELL`
@@ -478,7 +482,7 @@ module SnapTrade
478
482
  end
479
483
 
480
484
  # Place order
481
- # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact).
485
+ # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It's recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
482
486
  # @param user_id [String]
483
487
  # @param user_secret [String]
484
488
  # @param manual_trade_form [ManualTradeForm]
@@ -490,7 +494,7 @@ module SnapTrade
490
494
  end
491
495
 
492
496
  # Place order
493
- # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact).
497
+ # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It&#39;s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
494
498
  # @param user_id [String]
495
499
  # @param user_secret [String]
496
500
  # @param manual_trade_form [ManualTradeForm]
@@ -563,6 +567,8 @@ module SnapTrade
563
567
  # Place checked order
564
568
  #
565
569
  # Places the previously checked order with the brokerage. The `tradeId` is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder).
570
+ #
571
+ # It's recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
566
572
  #
567
573
  # @param trade_id [String] Obtained from calling the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact)
568
574
  # @param user_id [String]
@@ -581,6 +587,8 @@ module SnapTrade
581
587
  # Place checked order
582
588
  #
583
589
  # Places the previously checked order with the brokerage. The `tradeId` is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder).
590
+ #
591
+ # It's recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
584
592
  #
585
593
  # @param trade_id [String] Obtained from calling the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact)
586
594
  # @param user_id [String]
@@ -596,7 +604,7 @@ module SnapTrade
596
604
  end
597
605
 
598
606
  # Place checked order
599
- # Places the previously checked order with the brokerage. The `tradeId` is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder).
607
+ # Places the previously checked order with the brokerage. The `tradeId` is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder). It's recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
600
608
  # @param trade_id [String] Obtained from calling the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact)
601
609
  # @param user_id [String]
602
610
  # @param user_secret [String]
@@ -609,7 +617,7 @@ module SnapTrade
609
617
  end
610
618
 
611
619
  # Place checked order
612
- # Places the previously checked order with the brokerage. The &#x60;tradeId&#x60; is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder).
620
+ # Places the previously checked order with the brokerage. The &#x60;tradeId&#x60; is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder). It&#39;s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
613
621
  # @param trade_id [String] Obtained from calling the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact)
614
622
  # @param user_id [String]
615
623
  # @param user_secret [String]
@@ -30,7 +30,7 @@ module SnapTrade
30
30
  # Whether the connection is read-only or trade-enabled. A read-only connection can only be used to fetch data, while a trade-enabled connection can be used to place trades. Valid values are `read` and `trade`.
31
31
  attr_accessor :type
32
32
 
33
- # Whether the connection is disabled. A disabled connection can no longer access the latest data from the brokerage, but will continue to return the last cached state. A connection can become disabled for many reasons and differs by brokerage. Here are some common scenarios: - The user has changed their username or password at the brokerage. - The user has explicitly removed the access grant at the brokerage. - The session has expired at the brokerage and now requires explicit user re-authentication. Please see [this guide](https://docs.snaptrade.com/docs/fix-broken-connections) on how to fix a disabled connection.
33
+ # Whether the connection is disabled. A disabled connection can no longer access the latest data from the brokerage, but will continue to return the last cached state. A connection can become disabled for many reasons and differs by brokerage. Here are some common scenarios: - The user has changed their username or password at the brokerage. - The user has explicitly removed the access grant at the brokerage. - The session has expired at the brokerage and now requires explicit user re-authentication. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
34
34
  attr_accessor :disabled
35
35
 
36
36
  # Timestamp of when the connection was disabled in SnapTrade.
@@ -12,11 +12,12 @@ require 'time'
12
12
 
13
13
  module SnapTrade
14
14
  class ConnectionPortalVersion
15
- V2 = "v2".freeze
15
+ V4 = "v4".freeze
16
16
  V3 = "v3".freeze
17
+ V2 = "v2".freeze
17
18
 
18
19
  def self.all_vars
19
- @all_vars ||= [V2, V3].freeze
20
+ @all_vars ||= [V4, V3, V2].freeze
20
21
  end
21
22
 
22
23
  # Builds the enum from string
@@ -15,7 +15,7 @@ module SnapTrade
15
15
  class OptionsPosition
16
16
  attr_accessor :symbol
17
17
 
18
- # Last known market price for the option contract. The freshness of this price depends on the brokerage. Some brokerages provide real-time prices, while others provide delayed prices. It is recommended that you rely on your own third-party market data provider for most up to date prices.
18
+ # Last known market price _per share_ of the option contract. The freshness of this price depends on the brokerage. Some brokerages provide real-time prices, while others provide delayed prices. It is recommended that you rely on your own third-party market data provider for most up to date prices.
19
19
  attr_accessor :price
20
20
 
21
21
  # The number of contracts for this option position. A positive number indicates a long position, while a negative number indicates a short position.
@@ -16,13 +16,13 @@ module SnapTrade
16
16
  # Slug of the brokerage to connect the user to. See [the integrations page](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=3cfea70ef4254afc89704e47275a7a9a&pvs=4) for a list of supported brokerages and their slugs.
17
17
  attr_accessor :broker
18
18
 
19
- # When set to `true`, user will be redirected back to the partner's site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more information.
19
+ # When set to `true`, user will be redirected back to the partner's site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
20
20
  attr_accessor :immediate_redirect
21
21
 
22
- # URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](https://docs.snaptrade.com/docs/implement-connection-portal) for more information.
22
+ # URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
23
23
  attr_accessor :custom_redirect
24
24
 
25
- # The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](https://docs.snaptrade.com/docs/fix-broken-connections) for more information.
25
+ # The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
26
26
  attr_accessor :reconnect
27
27
 
28
28
  # Sets whether the connection should be read-only or trade-enabled.
@@ -13,7 +13,7 @@ require 'time'
13
13
  module SnapTrade
14
14
  # A transaction or activity from an institution
15
15
  class UniversalActivity
16
- # Unique identifier for the transaction. This is the ID used to reference the transaction in SnapTrade. Please note that this ID _can_ change if the transaction is deleted and re-added. Under normal circumstances, SnapTrade does not delete transactions. The only time this would happen is if SnapTrade re-fetches and reprocesses the data from the brokerage, which is rare. If you require a stable ID, please let us know and we can work with you to provide one.
16
+ # Unique identifier for the transaction. This is the ID used to reference the transaction in SnapTrade. Please note that this ID _can_ change if the transaction is deleted and re-added. Under normal circumstances, SnapTrade does not delete transactions. The only time this would happen is if SnapTrade re-fetches and reprocesses the data from the brokerage, which is rare. If you require a stable ID, please let us know and we can work with you to provide one.
17
17
  attr_accessor :id
18
18
 
19
19
  attr_accessor :account
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.39'
11
+ VERSION = '2.0.41'
12
12
  end
@@ -51,8 +51,8 @@ describe 'AuthenticationApi' do
51
51
  end
52
52
 
53
53
  # unit tests for login_snap_trade_user
54
- # Login user &amp; generate connection link
55
- # Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
54
+ # Generate Connection Portal URL
55
+ # Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app. Please note that the returned URL expires in 5 minutes.
56
56
  # @param user_id
57
57
  # @param user_secret
58
58
  # @param [Hash] opts the optional parameters
@@ -43,7 +43,7 @@ describe 'ConnectionsApi' do
43
43
 
44
44
  # unit tests for disable_brokerage_authorization
45
45
  # Force disable connection
46
- # Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [&#x60;CONNECTION_BROKEN&#x60; webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
46
+ # Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [&#x60;CONNECTION_BROKEN&#x60; webhook](/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
47
47
  # @param authorization_id
48
48
  # @param user_id
49
49
  # @param user_secret
@@ -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 connection. Updates will be queued asynchronously. [&#x60;ACCOUNT_HOLDINGS_UPDATED&#x60; webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
73
+ # Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [&#x60;ACCOUNT_HOLDINGS_UPDATED&#x60; webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
74
74
  # @param authorization_id
75
75
  # @param user_id
76
76
  # @param user_secret
@@ -74,7 +74,7 @@ describe 'TradingApi' do
74
74
 
75
75
  # unit tests for place_force_order
76
76
  # Place order
77
- # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact).
77
+ # Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It&#39;s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
78
78
  # @param user_id
79
79
  # @param user_secret
80
80
  # @param manual_trade_form
@@ -88,7 +88,7 @@ describe 'TradingApi' do
88
88
 
89
89
  # unit tests for place_order
90
90
  # Place checked order
91
- # Places the previously checked order with the brokerage. The &#x60;tradeId&#x60; is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder).
91
+ # Places the previously checked order with the brokerage. The &#x60;tradeId&#x60; is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder). It&#39;s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
92
92
  # @param trade_id Obtained from calling the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact)
93
93
  # @param user_id
94
94
  # @param user_secret
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.39
4
+ version: 2.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday