snaptrade 2.0.71 → 2.0.72

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: 331918e282cbf30fde05e5a9c0712d94a220e0a0a4b6a2d1a2822c9123cd520b
4
- data.tar.gz: 499926478a36d2e78583de8f30f01a51c587571aa7c38d4403c5876b55e94448
3
+ metadata.gz: dfac5c0b832ed3b82a4a588a6ebf80fb8dd87bae877c007bd2d9f71f5b8db0cf
4
+ data.tar.gz: e49ed67099dc4d91be78b45547246d5062e8a01d4903d04b886211bdc9c6ab65
5
5
  SHA512:
6
- metadata.gz: 776323da13f42eb87522aeeceaac7ba3071f0a4c018f889c1cc004d02f3db9276c02dd3708c368fa856c05b4759055beb9af8429f86987c248ffe1e0d5081bf3
7
- data.tar.gz: b380fd51c3000756d98d1fff33a5dd65df480fe1f0935b240ce79c60eff04cc25673abb41f0670977a072d4090927a71034c22d6dcabbf13541bc3ae5ef2b046
6
+ metadata.gz: fa76df59baf8c9f7386587aea312185dc8195ee41281e8067cba6c9fde440872b9fd55e1ab797b1924d652ddcd56be82f370a492d5104e4e3242c32f8ba60f59
7
+ data.tar.gz: 5ab41c271ea235b05f51ac8071247b75ca8ee3aaa671f1c1790064435d5d1b57e5b91ab8f89671bb6e24eda5395a0a7be1e9a87e0ae088736fdfc3fd6e59e9b0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.71)
4
+ snaptrade (2.0.72)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -67,7 +67,7 @@ GEM
67
67
  rubocop-ast (>= 1.2.0, < 2.0)
68
68
  ruby-progressbar (~> 1.7)
69
69
  unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.37.0)
70
+ rubocop-ast (1.38.0)
71
71
  parser (>= 3.3.1.0)
72
72
  ruby-progressbar (1.13.0)
73
73
  ruby2_keywords (0.0.5)
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.71-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.71)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.72-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.72)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -74,7 +74,7 @@ Connect brokerage accounts to your app for live positions and trading
74
74
  Add to Gemfile:
75
75
 
76
76
  ```ruby
77
- gem 'snaptrade', '~> 2.0.71'
77
+ gem 'snaptrade', '~> 2.0.72'
78
78
  ```
79
79
 
80
80
  ## Getting Started<a id="getting-started"></a>
@@ -887,6 +887,7 @@ p result
887
887
  ### `snaptrade.connections.refresh_brokerage_authorization`<a id="snaptradeconnectionsrefresh_brokerage_authorization"></a>
888
888
 
889
889
  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.
890
+ This endpoint will also trigger a transaction sync for the past day if one has not yet occured.
890
891
 
891
892
  *Please contact support for access as this endpoint is not enabled by default.*
892
893
 
@@ -335,6 +335,7 @@ module SnapTrade
335
335
  # Refresh holdings for a connection
336
336
  #
337
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
+ # This endpoint will also trigger a transaction sync for the past day if one has not yet occured.
338
339
  #
339
340
  # *Please contact support for access as this endpoint is not enabled by default.*
340
341
  #
@@ -350,6 +351,7 @@ module SnapTrade
350
351
  # Refresh holdings for a connection
351
352
  #
352
353
  # 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.
354
+ # This endpoint will also trigger a transaction sync for the past day if one has not yet occured.
353
355
  #
354
356
  # *Please contact support for access as this endpoint is not enabled by default.*
355
357
  #
@@ -362,7 +364,7 @@ module SnapTrade
362
364
  end
363
365
 
364
366
  # 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](/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.*
367
+ # 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. This endpoint will also trigger a transaction sync for the past day if one has not yet occured. *Please contact support for access as this endpoint is not enabled by default.*
366
368
  # @param authorization_id [String]
367
369
  # @param user_id [String]
368
370
  # @param user_secret [String]
@@ -374,7 +376,7 @@ module SnapTrade
374
376
  end
375
377
 
376
378
  # 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](/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.*
379
+ # 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. This endpoint will also trigger a transaction sync for the past day if one has not yet occured. *Please contact support for access as this endpoint is not enabled by default.*
378
380
  # @param authorization_id [String]
379
381
  # @param user_id [String]
380
382
  # @param user_secret [String]
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.71'
11
+ VERSION = '2.0.72'
12
12
  end
@@ -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](/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. This endpoint will also trigger a transaction sync for the past day if one has not yet occured. *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
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.71
4
+ version: 2.0.72
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-21 00:00:00.000000000 Z
11
+ date: 2025-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -379,137 +379,137 @@ signing_key:
379
379
  specification_version: 4
380
380
  summary: SnapTrade Ruby Gem
381
381
  test_files:
382
- - spec/api/options_api_spec.rb
382
+ - spec/api/transactions_and_reporting_api_spec.rb
383
+ - spec/api/connections_api_spec.rb
383
384
  - spec/api/trading_api_spec.rb
385
+ - spec/api/api_status_api_spec.rb
384
386
  - spec/api/reference_data_api_spec.rb
385
387
  - spec/api/authentication_api_spec.rb
386
388
  - spec/api/account_information_api_spec.rb
387
- - spec/api/api_status_api_spec.rb
388
- - spec/api/connections_api_spec.rb
389
- - spec/api/transactions_and_reporting_api_spec.rb
389
+ - spec/api/options_api_spec.rb
390
390
  - spec/api_client_spec.rb
391
391
  - spec/configuration_spec.rb
392
392
  - spec/getting_started_spec.rb
393
- - spec/models/authentication_login_snap_trade_user200_response_spec.rb
394
- - spec/models/strategy_order_record_status_spec.rb
395
- - spec/models/trading_cancel_user_account_order_request_spec.rb
396
- - spec/models/take_profit_spec.rb
397
- - spec/models/exchange_spec.rb
398
- - spec/models/manual_trade_form_with_options_stop_loss_spec.rb
399
- - spec/models/manual_trade_spec.rb
400
- - spec/models/login_redirect_uri_spec.rb
401
- - spec/models/encrypted_response_encrypted_message_data_spec.rb
402
- - spec/models/strategy_quotes_spec.rb
403
- - spec/models/rate_of_return_object_spec.rb
404
- - spec/models/account_sync_status_spec.rb
405
- - spec/models/options_place_option_strategy_request_spec.rb
406
- - spec/models/account_order_record_spec.rb
407
- - spec/models/brokerage_spec.rb
408
- - spec/models/time_in_force_strict_spec.rb
409
- - spec/models/action_strict_with_options_spec.rb
410
- - spec/models/exchange_rate_pairs_spec.rb
411
- - spec/models/account_holdings_account_spec.rb
393
+ - spec/models/option_leg_spec.rb
394
+ - spec/models/symbols_quotes_inner_spec.rb
395
+ - spec/models/session_event_spec.rb
412
396
  - spec/models/model403_failed_request_response_spec.rb
413
- - spec/models/account_simple_spec.rb
414
- - spec/models/monthly_dividends_spec.rb
415
- - spec/models/snap_trade_register_user_request_body_spec.rb
416
- - spec/models/options_position_spec.rb
397
+ - spec/models/account_order_record_option_symbol_spec.rb
398
+ - spec/models/options_place_option_strategy_request_spec.rb
399
+ - spec/models/strategy_quotes_spec.rb
400
+ - spec/models/encrypted_response_spec.rb
401
+ - spec/models/model404_failed_request_response_spec.rb
402
+ - spec/models/option_strategy_legs_inner_spec.rb
403
+ - spec/models/universal_activity_currency_spec.rb
417
404
  - spec/models/position_symbol_spec.rb
418
- - spec/models/model425_failed_request_response_spec.rb
419
- - spec/models/account_balance_spec.rb
420
- - spec/models/underlying_symbol_exchange_spec.rb
421
- - spec/models/manual_trade_symbol_spec.rb
405
+ - spec/models/option_chain_inner_spec.rb
406
+ - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
407
+ - spec/models/notional_value_spec.rb
408
+ - spec/models/manual_trade_form_with_options_take_profit_spec.rb
409
+ - spec/models/position_spec.rb
410
+ - spec/models/timeframe_spec.rb
411
+ - spec/models/option_type_spec.rb
412
+ - spec/models/snap_trade_holdings_account_spec.rb
413
+ - spec/models/sub_period_return_rate_spec.rb
422
414
  - spec/models/universal_activity_spec.rb
415
+ - spec/models/past_value_spec.rb
416
+ - spec/models/holdings_status_spec.rb
417
+ - spec/models/net_contributions_spec.rb
418
+ - spec/models/brokerage_spec.rb
423
419
  - spec/models/dividend_at_date_spec.rb
424
- - spec/models/option_brokerage_symbol_spec.rb
425
- - spec/models/account_holdings_spec.rb
426
- - spec/models/underlying_symbol_type_spec.rb
427
- - spec/models/model400_failed_request_response_spec.rb
428
- - spec/models/session_event_spec.rb
420
+ - spec/models/account_balance_spec.rb
429
421
  - spec/models/model403_feature_not_enabled_response_spec.rb
430
- - spec/models/manual_trade_balance_spec.rb
431
- - spec/models/symbol_currency_spec.rb
432
- - spec/models/model402_brokerage_auth_disabled_response_spec.rb
433
- - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
434
- - spec/models/security_type_spec.rb
435
- - spec/models/option_strategy_spec.rb
436
- - spec/models/order_type_strict_spec.rb
437
- - spec/models/rate_of_return_response_spec.rb
438
- - spec/models/net_dividend_spec.rb
439
- - spec/models/symbol_figi_instrument_spec.rb
422
+ - spec/models/exchange_spec.rb
423
+ - spec/models/snap_trade_holdings_total_value_spec.rb
424
+ - spec/models/time_in_force_strict_spec.rb
440
425
  - spec/models/options_position_currency_spec.rb
441
- - spec/models/option_type_spec.rb
442
- - spec/models/brokerage_authorization_spec.rb
443
- - spec/models/brokerage_authorization_type_read_only_spec.rb
444
- - spec/models/manual_trade_form_with_options_take_profit_spec.rb
445
- - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
446
- - spec/models/option_strategy_legs_inner_spec.rb
447
- - spec/models/snap_trade_holdings_account_spec.rb
448
- - spec/models/holdings_status_spec.rb
449
- - spec/models/type_spec.rb
450
- - spec/models/encrypted_response_spec.rb
451
- - spec/models/option_chain_inner_spec.rb
452
- - spec/models/balance_spec.rb
453
- - spec/models/us_exchange_spec.rb
454
- - spec/models/delete_user_response_spec.rb
455
- - spec/models/symbol_exchange_spec.rb
456
- - spec/models/account_order_record_option_symbol_spec.rb
457
- - spec/models/universal_activity_currency_spec.rb
458
- - spec/models/timeframe_spec.rb
459
- - spec/models/sub_period_return_rate_spec.rb
460
- - spec/models/universal_activity_symbol_spec.rb
461
- - spec/models/position_spec.rb
462
- - spec/models/recent_orders_response_spec.rb
463
426
  - spec/models/symbol_spec.rb
464
- - spec/models/option_leg_spec.rb
465
- - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
466
427
  - spec/models/options_symbol_spec.rb
467
- - spec/models/transactions_status_spec.rb
468
- - spec/models/account_order_record_status_spec.rb
469
- - spec/models/manual_trade_form_spec.rb
428
+ - spec/models/order_class_spec.rb
429
+ - spec/models/trading_cancel_user_account_order_request_spec.rb
430
+ - spec/models/partner_data_spec.rb
431
+ - spec/models/manual_trade_impact_spec.rb
432
+ - spec/models/session_event_type_spec.rb
433
+ - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
434
+ - spec/models/recent_orders_response_spec.rb
435
+ - spec/models/universal_symbol_spec.rb
436
+ - spec/models/manual_trade_form_with_options_spec.rb
437
+ - spec/models/delete_user_response_spec.rb
470
438
  - spec/models/currency_spec.rb
439
+ - spec/models/brokerage_type_spec.rb
440
+ - spec/models/type_spec.rb
441
+ - spec/models/rate_of_return_object_spec.rb
442
+ - spec/models/manual_trade_balance_spec.rb
443
+ - spec/models/validated_trade_body_spec.rb
444
+ - spec/models/balance_spec.rb
445
+ - spec/models/manual_trade_form_spec.rb
446
+ - spec/models/security_type_spec.rb
471
447
  - spec/models/figi_instrument_spec.rb
472
- - spec/models/universal_activity_option_symbol_spec.rb
448
+ - spec/models/encrypted_response_encrypted_message_data_spec.rb
449
+ - spec/models/underlying_symbol_type_spec.rb
473
450
  - spec/models/performance_custom_spec.rb
451
+ - spec/models/auth_type_spec.rb
452
+ - spec/models/model402_brokerage_auth_disabled_response_spec.rb
453
+ - spec/models/symbol_currency_spec.rb
454
+ - spec/models/account_sync_status_spec.rb
455
+ - spec/models/account_order_record_universal_symbol_spec.rb
456
+ - spec/models/symbol_query_spec.rb
457
+ - spec/models/universal_activity_option_symbol_spec.rb
474
458
  - spec/models/account_spec.rb
475
- - spec/models/connection_type_spec.rb
476
- - spec/models/manual_trade_impact_spec.rb
477
- - spec/models/action_strict_spec.rb
459
+ - spec/models/model425_failed_request_response_spec.rb
460
+ - spec/models/strategy_type_spec.rb
461
+ - spec/models/action_strict_with_options_spec.rb
462
+ - spec/models/strategy_order_record_status_spec.rb
463
+ - spec/models/manual_trade_symbol_spec.rb
464
+ - spec/models/options_position_spec.rb
478
465
  - spec/models/model401_failed_request_response_spec.rb
479
- - spec/models/manual_trade_form_with_options_spec.rb
480
- - spec/models/validated_trade_body_spec.rb
466
+ - spec/models/account_holdings_account_spec.rb
467
+ - spec/models/symbol_exchange_spec.rb
468
+ - spec/models/underlying_symbol_spec.rb
469
+ - spec/models/symbol_figi_instrument_spec.rb
470
+ - spec/models/balance_currency_spec.rb
471
+ - spec/models/option_strategy_spec.rb
472
+ - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
473
+ - spec/models/stop_loss_spec.rb
474
+ - spec/models/status_spec.rb
475
+ - spec/models/connection_portal_version_spec.rb
476
+ - spec/models/model500_unexpected_exception_response_spec.rb
477
+ - spec/models/snap_trade_register_user_request_body_spec.rb
478
+ - spec/models/option_brokerage_symbol_spec.rb
479
+ - spec/models/manual_trade_form_notional_value_spec.rb
480
+ - spec/models/universal_activity_symbol_spec.rb
481
+ - spec/models/manual_trade_spec.rb
482
+ - spec/models/take_profit_spec.rb
483
+ - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
484
+ - spec/models/net_dividend_spec.rb
485
+ - spec/models/account_order_record_spec.rb
486
+ - spec/models/user_i_dand_secret_spec.rb
487
+ - spec/models/authentication_login_snap_trade_user200_response_spec.rb
481
488
  - spec/models/account_balance_total_spec.rb
482
- - spec/models/brokerage_type_spec.rb
489
+ - spec/models/exchange_rate_pairs_spec.rb
490
+ - spec/models/brokerage_authorization_type_read_only_spec.rb
483
491
  - spec/models/options_get_option_strategy_request_spec.rb
484
- - spec/models/model500_unexpected_exception_response_spec.rb
485
- - spec/models/strategy_type_spec.rb
486
492
  - spec/models/strategy_quotes_greek_spec.rb
487
- - spec/models/connection_portal_version_spec.rb
493
+ - spec/models/monthly_dividends_spec.rb
494
+ - spec/models/model400_failed_request_response_spec.rb
495
+ - spec/models/account_holdings_spec.rb
496
+ - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
488
497
  - spec/models/connections_session_events200_response_inner_spec.rb
489
- - spec/models/snap_trade_holdings_total_value_spec.rb
490
- - spec/models/auth_type_spec.rb
491
- - spec/models/stop_loss_spec.rb
492
- - spec/models/snap_trade_login_user_request_body_spec.rb
493
- - spec/models/user_i_dand_secret_spec.rb
494
- - spec/models/status_spec.rb
495
- - spec/models/session_event_type_spec.rb
496
- - spec/models/manual_trade_form_notional_value_spec.rb
498
+ - spec/models/order_type_strict_spec.rb
499
+ - spec/models/connection_type_spec.rb
500
+ - spec/models/account_order_record_status_spec.rb
501
+ - spec/models/us_exchange_spec.rb
502
+ - spec/models/option_leg_action_spec.rb
503
+ - spec/models/transactions_status_spec.rb
504
+ - spec/models/account_simple_spec.rb
505
+ - spec/models/rate_of_return_response_spec.rb
506
+ - spec/models/manual_trade_and_impact_spec.rb
497
507
  - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
498
- - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
499
- - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
500
- - spec/models/net_contributions_spec.rb
501
- - spec/models/underlying_symbol_spec.rb
502
- - spec/models/symbols_quotes_inner_spec.rb
503
- - spec/models/account_order_record_universal_symbol_spec.rb
504
508
  - spec/models/strategy_order_record_spec.rb
505
- - spec/models/order_class_spec.rb
506
- - spec/models/manual_trade_and_impact_spec.rb
507
- - spec/models/notional_value_spec.rb
508
- - spec/models/past_value_spec.rb
509
- - spec/models/partner_data_spec.rb
510
- - spec/models/symbol_query_spec.rb
511
- - spec/models/universal_symbol_spec.rb
512
- - spec/models/balance_currency_spec.rb
513
- - spec/models/model404_failed_request_response_spec.rb
514
- - spec/models/option_leg_action_spec.rb
509
+ - spec/models/manual_trade_form_with_options_stop_loss_spec.rb
510
+ - spec/models/login_redirect_uri_spec.rb
511
+ - spec/models/brokerage_authorization_spec.rb
512
+ - spec/models/underlying_symbol_exchange_spec.rb
513
+ - spec/models/action_strict_spec.rb
514
+ - spec/models/snap_trade_login_user_request_body_spec.rb
515
515
  - spec/spec_helper.rb