snaptrade 2.0.48 → 2.0.50
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ff6c1a7698aa9d2a38ecf15145b5a353d4487bb1a93f2fbf417cce7156736c9
|
4
|
+
data.tar.gz: b1fa817078cf578d2f0c8b32115417a1c87fab22da9d1cc63d6207743a8ef445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 045c5ebf77f76b5db69fed2ea16965f4d041df50c532e7254897d6273f31bcc1bf4d209adee9151b24f79e9bac3346eea50d88df2e7a93bf97ad9efed020472c
|
7
|
+
data.tar.gz: 366092be6800bec45b8f58da67f330ad872c6be44fa1c8f05e2e12add9d526bbe9ec41fa9cc5a9b43063998033fa1c78bf8e1bc18524113f88c1e2c3e08f84bc
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
snaptrade (2.0.
|
4
|
+
snaptrade (2.0.50)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -44,12 +44,12 @@ GEM
|
|
44
44
|
regexp_parser (2.9.2)
|
45
45
|
reline (0.5.10)
|
46
46
|
io-console (~> 0.5)
|
47
|
-
rexml (3.3.
|
47
|
+
rexml (3.3.9)
|
48
48
|
rspec (3.13.0)
|
49
49
|
rspec-core (~> 3.13.0)
|
50
50
|
rspec-expectations (~> 3.13.0)
|
51
51
|
rspec-mocks (~> 3.13.0)
|
52
|
-
rspec-core (3.13.
|
52
|
+
rspec-core (3.13.2)
|
53
53
|
rspec-support (~> 3.13.0)
|
54
54
|
rspec-expectations (3.13.3)
|
55
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
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.
|
9
|
+
[![npm](https://img.shields.io/badge/gem-v2.0.50-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.50)
|
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.
|
73
|
+
gem 'snaptrade', '~> 2.0.50'
|
74
74
|
```
|
75
75
|
|
76
76
|
## Getting Started<a id="getting-started"></a>
|
@@ -531,7 +531,8 @@ left empty unless you are reconnecting a disabled connection. See the [guide on
|
|
531
531
|
fixing broken connections](/docs/fix-broken-connections) for more information.
|
532
532
|
|
533
533
|
##### connectionType: [`ConnectionType`](./lib/snaptrade/models/connection_type.rb)<a id="connectiontype-connectiontypelibsnaptrademodelsconnection_typerb"></a>
|
534
|
-
Sets whether the connection should be read-only or trade-enabled.
|
534
|
+
Sets whether the connection should be read-only or trade-enabled. Defaults to
|
535
|
+
read-only if not specified.
|
535
536
|
|
536
537
|
##### connectionPortalVersion: [`ConnectionPortalVersion`](./lib/snaptrade/models/connection_portal_version.rb)<a id="connectionportalversion-connectionportalversionlibsnaptrademodelsconnection_portal_versionrb"></a>
|
537
538
|
Sets the version of the connection portal to render.
|
@@ -192,7 +192,7 @@ module SnapTrade
|
|
192
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
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
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.
|
195
|
-
# @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled.
|
195
|
+
# @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled. Defaults to read-only if not specified.
|
196
196
|
# @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render.
|
197
197
|
# @param body [SnapTradeLoginUserRequestBody]
|
198
198
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
@@ -221,7 +221,7 @@ module SnapTrade
|
|
221
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
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
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.
|
224
|
-
# @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled.
|
224
|
+
# @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled. Defaults to read-only if not specified.
|
225
225
|
# @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render.
|
226
226
|
# @param body [SnapTradeLoginUserRequestBody]
|
227
227
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
@@ -25,7 +25,7 @@ module SnapTrade
|
|
25
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
|
-
# Sets whether the connection should be read-only or trade-enabled.
|
28
|
+
# Sets whether the connection should be read-only or trade-enabled. Defaults to read-only if not specified.
|
29
29
|
attr_accessor :connection_type
|
30
30
|
|
31
31
|
# Sets the version of the connection portal to render.
|
data/lib/snaptrade/version.rb
CHANGED
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.
|
4
|
+
version: 2.0.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -359,127 +359,127 @@ signing_key:
|
|
359
359
|
specification_version: 4
|
360
360
|
summary: SnapTrade Ruby Gem
|
361
361
|
test_files:
|
362
|
-
- spec/api/account_information_api_spec.rb
|
363
362
|
- spec/api/api_status_api_spec.rb
|
363
|
+
- spec/api/account_information_api_spec.rb
|
364
|
+
- spec/api/connections_api_spec.rb
|
365
|
+
- spec/api/options_api_spec.rb
|
364
366
|
- spec/api/trading_api_spec.rb
|
365
367
|
- spec/api/reference_data_api_spec.rb
|
366
|
-
- spec/api/authentication_api_spec.rb
|
367
368
|
- spec/api/transactions_and_reporting_api_spec.rb
|
368
|
-
- spec/api/
|
369
|
-
- spec/api/connections_api_spec.rb
|
369
|
+
- spec/api/authentication_api_spec.rb
|
370
370
|
- spec/api_client_spec.rb
|
371
371
|
- spec/configuration_spec.rb
|
372
372
|
- spec/getting_started_spec.rb
|
373
|
-
- spec/models/
|
373
|
+
- spec/models/snap_trade_login_user_request_body_spec.rb
|
374
|
+
- spec/models/snap_trade_register_user_request_body_spec.rb
|
375
|
+
- spec/models/universal_activity_currency_spec.rb
|
376
|
+
- spec/models/performance_custom_spec.rb
|
377
|
+
- spec/models/option_strategy_legs_inner_spec.rb
|
378
|
+
- spec/models/option_leg_spec.rb
|
379
|
+
- spec/models/account_spec.rb
|
374
380
|
- spec/models/exchange_rate_pairs_spec.rb
|
375
|
-
- spec/models/snap_trade_holdings_account_spec.rb
|
376
|
-
- spec/models/account_holdings_account_spec.rb
|
377
|
-
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
378
|
-
- spec/models/user_i_dand_secret_spec.rb
|
379
|
-
- spec/models/transactions_status_spec.rb
|
380
381
|
- spec/models/model403_feature_not_enabled_response_spec.rb
|
381
|
-
- spec/models/
|
382
|
-
- spec/models/
|
383
|
-
- spec/models/
|
384
|
-
- spec/models/model500_unexpected_exception_response_spec.rb
|
385
|
-
- spec/models/currency_spec.rb
|
386
|
-
- spec/models/net_contributions_spec.rb
|
387
|
-
- spec/models/auth_type_spec.rb
|
388
|
-
- spec/models/model400_failed_request_response_spec.rb
|
389
|
-
- spec/models/snap_trade_register_user_request_body_spec.rb
|
390
|
-
- spec/models/account_order_record_option_symbol_spec.rb
|
391
|
-
- spec/models/manual_trade_form_spec.rb
|
392
|
-
- spec/models/validated_trade_body_spec.rb
|
382
|
+
- spec/models/time_in_force_strict_spec.rb
|
383
|
+
- spec/models/options_get_option_strategy_request_spec.rb
|
384
|
+
- spec/models/account_sync_status_spec.rb
|
393
385
|
- spec/models/brokerage_spec.rb
|
394
|
-
- spec/models/
|
395
|
-
- spec/models/
|
396
|
-
- spec/models/snap_trade_holdings_total_value_spec.rb
|
397
|
-
- spec/models/options_symbol_spec.rb
|
398
|
-
- spec/models/options_position_spec.rb
|
399
|
-
- spec/models/strategy_type_spec.rb
|
400
|
-
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
401
|
-
- spec/models/encrypted_response_spec.rb
|
402
|
-
- spec/models/option_type_spec.rb
|
403
|
-
- spec/models/type_spec.rb
|
386
|
+
- spec/models/exchange_spec.rb
|
387
|
+
- spec/models/option_brokerage_symbol_spec.rb
|
404
388
|
- spec/models/underlying_symbol_type_spec.rb
|
405
|
-
- spec/models/account_order_record_universal_symbol_spec.rb
|
406
|
-
- spec/models/underlying_symbol_spec.rb
|
407
|
-
- spec/models/model401_failed_request_response_spec.rb
|
408
|
-
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
409
|
-
- spec/models/model404_failed_request_response_spec.rb
|
410
|
-
- spec/models/balance_currency_spec.rb
|
411
|
-
- spec/models/position_symbol_spec.rb
|
412
|
-
- spec/models/universal_activity_currency_spec.rb
|
413
|
-
- spec/models/status_spec.rb
|
414
389
|
- spec/models/brokerage_authorization_spec.rb
|
390
|
+
- spec/models/account_order_record_spec.rb
|
391
|
+
- spec/models/net_contributions_spec.rb
|
392
|
+
- spec/models/symbol_exchange_spec.rb
|
393
|
+
- spec/models/universal_activity_spec.rb
|
394
|
+
- spec/models/holdings_status_spec.rb
|
395
|
+
- spec/models/manual_trade_form_with_options_spec.rb
|
415
396
|
- spec/models/account_balance_total_spec.rb
|
416
|
-
- spec/models/
|
417
|
-
- spec/models/
|
397
|
+
- spec/models/manual_trade_form_spec.rb
|
398
|
+
- spec/models/brokerage_type_spec.rb
|
399
|
+
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
400
|
+
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
401
|
+
- spec/models/figi_instrument_spec.rb
|
402
|
+
- spec/models/model403_failed_request_response_spec.rb
|
403
|
+
- spec/models/type_spec.rb
|
404
|
+
- spec/models/account_order_record_status_spec.rb
|
405
|
+
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
406
|
+
- spec/models/model404_failed_request_response_spec.rb
|
418
407
|
- spec/models/option_leg_action_spec.rb
|
419
|
-
- spec/models/
|
420
|
-
- spec/models/
|
421
|
-
- spec/models/
|
422
|
-
- spec/models/
|
423
|
-
- spec/models/
|
408
|
+
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
409
|
+
- spec/models/user_i_dand_secret_spec.rb
|
410
|
+
- spec/models/dividend_at_date_spec.rb
|
411
|
+
- spec/models/order_type_strict_spec.rb
|
412
|
+
- spec/models/manual_trade_impact_spec.rb
|
413
|
+
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
414
|
+
- spec/models/model500_unexpected_exception_response_spec.rb
|
415
|
+
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
416
|
+
- spec/models/manual_trade_symbol_spec.rb
|
417
|
+
- spec/models/options_symbol_spec.rb
|
418
|
+
- spec/models/symbol_spec.rb
|
419
|
+
- spec/models/universal_activity_symbol_spec.rb
|
420
|
+
- spec/models/action_strict_with_options_spec.rb
|
424
421
|
- spec/models/monthly_dividends_spec.rb
|
425
|
-
- spec/models/
|
426
|
-
- spec/models/
|
427
|
-
- spec/models/
|
422
|
+
- spec/models/model400_failed_request_response_spec.rb
|
423
|
+
- spec/models/connections_session_events200_response_inner_spec.rb
|
424
|
+
- spec/models/symbol_query_spec.rb
|
425
|
+
- spec/models/options_place_option_strategy_request_spec.rb
|
426
|
+
- spec/models/notional_value_spec.rb
|
427
|
+
- spec/models/account_order_record_universal_symbol_spec.rb
|
428
|
+
- spec/models/session_event_type_spec.rb
|
429
|
+
- spec/models/underlying_symbol_spec.rb
|
430
|
+
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
431
|
+
- spec/models/us_exchange_spec.rb
|
432
|
+
- spec/models/strategy_order_record_status_spec.rb
|
433
|
+
- spec/models/balance_spec.rb
|
428
434
|
- spec/models/universal_symbol_spec.rb
|
429
|
-
- spec/models/
|
430
|
-
- spec/models/
|
435
|
+
- spec/models/strategy_quotes_greek_spec.rb
|
436
|
+
- spec/models/options_position_spec.rb
|
437
|
+
- spec/models/manual_trade_balance_spec.rb
|
438
|
+
- spec/models/option_type_spec.rb
|
439
|
+
- spec/models/validated_trade_body_spec.rb
|
431
440
|
- spec/models/sub_period_return_rate_spec.rb
|
432
|
-
- spec/models/
|
441
|
+
- spec/models/account_simple_spec.rb
|
442
|
+
- spec/models/account_balance_spec.rb
|
443
|
+
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
444
|
+
- spec/models/auth_type_spec.rb
|
445
|
+
- spec/models/encrypted_response_spec.rb
|
446
|
+
- spec/models/underlying_symbol_exchange_spec.rb
|
447
|
+
- spec/models/strategy_order_record_spec.rb
|
433
448
|
- spec/models/manual_trade_spec.rb
|
434
|
-
- spec/models/
|
435
|
-
- spec/models/
|
436
|
-
- spec/models/
|
437
|
-
- spec/models/
|
438
|
-
- spec/models/
|
439
|
-
- spec/models/
|
440
|
-
- spec/models/
|
449
|
+
- spec/models/delete_user_response_spec.rb
|
450
|
+
- spec/models/connection_portal_version_spec.rb
|
451
|
+
- spec/models/snap_trade_holdings_total_value_spec.rb
|
452
|
+
- spec/models/transactions_status_spec.rb
|
453
|
+
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
454
|
+
- spec/models/balance_currency_spec.rb
|
455
|
+
- spec/models/partner_data_spec.rb
|
456
|
+
- spec/models/position_spec.rb
|
457
|
+
- spec/models/option_chain_inner_spec.rb
|
458
|
+
- spec/models/snap_trade_holdings_account_spec.rb
|
459
|
+
- spec/models/net_dividend_spec.rb
|
441
460
|
- spec/models/universal_activity_option_symbol_spec.rb
|
442
|
-
- spec/models/exchange_spec.rb
|
443
|
-
- spec/models/figi_instrument_spec.rb
|
444
|
-
- spec/models/symbol_spec.rb
|
445
|
-
- spec/models/strategy_quotes_greek_spec.rb
|
446
|
-
- spec/models/symbol_exchange_spec.rb
|
447
461
|
- spec/models/option_strategy_spec.rb
|
448
|
-
- spec/models/
|
449
|
-
- spec/models/
|
462
|
+
- spec/models/model401_failed_request_response_spec.rb
|
463
|
+
- spec/models/position_symbol_spec.rb
|
464
|
+
- spec/models/options_position_currency_spec.rb
|
465
|
+
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
466
|
+
- spec/models/account_holdings_spec.rb
|
467
|
+
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
468
|
+
- spec/models/strategy_type_spec.rb
|
469
|
+
- spec/models/manual_trade_and_impact_spec.rb
|
470
|
+
- spec/models/currency_spec.rb
|
471
|
+
- spec/models/status_spec.rb
|
450
472
|
- spec/models/symbols_quotes_inner_spec.rb
|
451
|
-
- spec/models/option_chain_inner_spec.rb
|
452
|
-
- spec/models/order_type_strict_spec.rb
|
453
|
-
- spec/models/past_value_spec.rb
|
454
|
-
- spec/models/manual_trade_impact_spec.rb
|
455
|
-
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
456
|
-
- spec/models/account_order_record_spec.rb
|
457
|
-
- spec/models/connection_type_spec.rb
|
458
|
-
- spec/models/manual_trade_form_notional_value_spec.rb
|
459
|
-
- spec/models/dividend_at_date_spec.rb
|
460
473
|
- spec/models/login_redirect_uri_spec.rb
|
461
|
-
- spec/models/
|
462
|
-
- spec/models/
|
463
|
-
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
464
|
-
- spec/models/position_spec.rb
|
465
|
-
- spec/models/notional_value_spec.rb
|
466
|
-
- spec/models/action_strict_with_options_spec.rb
|
467
|
-
- spec/models/options_get_option_strategy_request_spec.rb
|
468
|
-
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
469
|
-
- spec/models/trading_cancel_user_account_order_request_spec.rb
|
474
|
+
- spec/models/connection_type_spec.rb
|
475
|
+
- spec/models/account_order_record_option_symbol_spec.rb
|
470
476
|
- spec/models/symbol_currency_spec.rb
|
471
|
-
- spec/models/
|
472
|
-
- spec/models/session_event_type_spec.rb
|
473
|
-
- spec/models/model403_failed_request_response_spec.rb
|
474
|
-
- spec/models/symbol_query_spec.rb
|
475
|
-
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
476
|
-
- spec/models/options_place_option_strategy_request_spec.rb
|
477
|
-
- spec/models/account_spec.rb
|
478
|
-
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
477
|
+
- spec/models/security_type_spec.rb
|
479
478
|
- spec/models/session_event_spec.rb
|
480
|
-
- spec/models/
|
481
|
-
- spec/models/
|
482
|
-
- spec/models/
|
483
|
-
- spec/models/
|
479
|
+
- spec/models/account_holdings_account_spec.rb
|
480
|
+
- spec/models/strategy_quotes_spec.rb
|
481
|
+
- spec/models/past_value_spec.rb
|
482
|
+
- spec/models/manual_trade_form_notional_value_spec.rb
|
484
483
|
- spec/models/symbol_figi_instrument_spec.rb
|
484
|
+
- spec/models/action_strict_spec.rb
|
485
485
|
- spec/spec_helper.rb
|