snaptrade 2.0.56 → 2.0.58

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: 962d39a6576fd86c258ba583b874280494d03415ff23f14f0f91d211e5579584
4
- data.tar.gz: 55dd7b9413baf952cbaa2276f016b6593d80a0233177c3c685ac601ad95b28da
3
+ metadata.gz: 4b61fdc3a0f90d72042948ef95559801e393608137e2ef57d5fcec56eb5a94f7
4
+ data.tar.gz: d0a3a22e64a8df61f49507228ded570524e7790560b53c98ba0d752c6d34a574
5
5
  SHA512:
6
- metadata.gz: 83ba257bbb94b35e2b3b98345febbeac17a00c162bbfe7fc7e036f5e655237277f61566ba37a54177c0791202b7a7cc58d502d564705589b92be9201bda1e2b0
7
- data.tar.gz: c8bac13ccd529d7ea5a64057d05ded6978e36c9027380d4e0c625a6492b44e6f84f5b78f511414f2d301267bb0f3f4de2fb0bb464aa3d4fda8157758b3d271e8
6
+ metadata.gz: ccab986ca5a44ef5849d921e3fbe13941f3f3165e66ed2ad17227de07fb23ec0faad9970cb6a0c9787c0235f7959a2f0b18afc79c662137f912f9250a18f8c1f
7
+ data.tar.gz: '0092bd17c1f15c14b007412a462031ae2ae00b70d2c6b24cf22d4d7ac6d33ece3cb9ffe511a155e20c6e61c75f85311f4ce948148a65713d6449de4cf75cf66c'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.56)
4
+ snaptrade (2.0.58)
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.56-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.56)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.58-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.58)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -73,7 +73,7 @@ Connect brokerage accounts to your app for live positions and trading
73
73
  Add to Gemfile:
74
74
 
75
75
  ```ruby
76
- gem 'snaptrade', '~> 2.0.56'
76
+ gem 'snaptrade', '~> 2.0.58'
77
77
  ```
78
78
 
79
79
  ## Getting Started<a id="getting-started"></a>
@@ -321,6 +321,7 @@ result = snaptrade.account_information.get_user_account_recent_orders(
321
321
  user_id: "snaptrade-user-123",
322
322
  user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
323
323
  account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
324
+ only_executed: true,
324
325
  )
325
326
  p result
326
327
  ```
@@ -330,6 +331,10 @@ p result
330
331
  ##### user_id: `String`<a id="user_id-string"></a>
331
332
  ##### user_secret: `String`<a id="user_secret-string"></a>
332
333
  ##### account_id: `String`<a id="account_id-string"></a>
334
+ ##### only_executed: `Boolean`<a id="only_executed-boolean"></a>
335
+ Defaults to true. Indicates if request should fetch only executed orders. Set to
336
+ false to retrieve non executed orders as well
337
+
333
338
  #### 🔄 Return<a id="🔄-return"></a>
334
339
 
335
340
  [RecentOrdersResponse](./lib/snaptrade/models/recent_orders_response.rb)
@@ -1611,7 +1616,8 @@ p result
1611
1616
  ##### user_id: `String`<a id="user_id-string"></a>
1612
1617
  ##### user_secret: `String`<a id="user_secret-string"></a>
1613
1618
  ##### symbols: `String`<a id="symbols-string"></a>
1614
- List of Universal Symbol IDs or tickers to get quotes for.
1619
+ List of Universal Symbol IDs or tickers to get quotes for. When providing
1620
+ multiple values, use a comma as separator
1615
1621
 
1616
1622
  ##### account_id: `String`<a id="account_id-string"></a>
1617
1623
  ##### use_ticker: `Boolean`<a id="use_ticker-boolean"></a>
@@ -1829,7 +1835,7 @@ contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment.
1829
1835
  - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from
1830
1836
  the account. - `OPTIONEXPIRATION` - Option expiration event. -
1831
1837
  `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option
1832
- exercise event.
1838
+ exercise event. - `TRANSFER` - Transfer of assets from one account to another
1833
1839
 
1834
1840
  #### 🔄 Return<a id="🔄-return"></a>
1835
1841
 
@@ -585,8 +585,10 @@ module SnapTrade
585
585
  # @param user_id [String]
586
586
  # @param user_secret [String]
587
587
  # @param account_id [String]
588
+ # @param only_executed [Boolean] Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well
588
589
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
589
- def get_user_account_recent_orders(user_id:, user_secret:, account_id:, extra: {})
590
+ def get_user_account_recent_orders(user_id:, user_secret:, account_id:, only_executed: SENTINEL, extra: {})
591
+ extra[:only_executed] = only_executed if only_executed != SENTINEL
590
592
  data, _status_code, _headers = get_user_account_recent_orders_with_http_info_impl(user_id, user_secret, account_id, extra)
591
593
  data
592
594
  end
@@ -601,8 +603,10 @@ module SnapTrade
601
603
  # @param user_id [String]
602
604
  # @param user_secret [String]
603
605
  # @param account_id [String]
606
+ # @param only_executed [Boolean] Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well
604
607
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
605
- def get_user_account_recent_orders_with_http_info(user_id:, user_secret:, account_id:, extra: {})
608
+ def get_user_account_recent_orders_with_http_info(user_id:, user_secret:, account_id:, only_executed: SENTINEL, extra: {})
609
+ extra[:only_executed] = only_executed if only_executed != SENTINEL
606
610
  get_user_account_recent_orders_with_http_info_impl(user_id, user_secret, account_id, extra)
607
611
  end
608
612
 
@@ -612,6 +616,7 @@ module SnapTrade
612
616
  # @param user_secret [String]
613
617
  # @param account_id [String]
614
618
  # @param [Hash] opts the optional parameters
619
+ # @option opts [Boolean] :only_executed Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well
615
620
  # @return [RecentOrdersResponse]
616
621
  private def get_user_account_recent_orders_impl(user_id, user_secret, account_id, opts = {})
617
622
  data, _status_code, _headers = get_user_account_recent_orders_with_http_info(user_id, user_secret, account_id, opts)
@@ -624,6 +629,7 @@ module SnapTrade
624
629
  # @param user_secret [String]
625
630
  # @param account_id [String]
626
631
  # @param [Hash] opts the optional parameters
632
+ # @option opts [Boolean] :only_executed Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well
627
633
  # @return [Array<(RecentOrdersResponse, Integer, Hash)>] RecentOrdersResponse data, response status code and response headers
628
634
  private def get_user_account_recent_orders_with_http_info_impl(user_id, user_secret, account_id, opts = {})
629
635
  if @api_client.config.debugging
@@ -648,6 +654,7 @@ module SnapTrade
648
654
  query_params = opts[:query_params] || {}
649
655
  query_params[:'userId'] = user_id
650
656
  query_params[:'userSecret'] = user_secret
657
+ query_params[:'only_executed'] = opts[:'only_executed'] if !opts[:'only_executed'].nil?
651
658
 
652
659
  # header parameters
653
660
  header_params = opts[:header_params] || {}
@@ -295,7 +295,7 @@ module SnapTrade
295
295
  #
296
296
  # @param user_id [String]
297
297
  # @param user_secret [String]
298
- # @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for.
298
+ # @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
299
299
  # @param account_id [String]
300
300
  # @param use_ticker [Boolean] Should be set to `True` if `symbols` are comprised of tickers. Defaults to `False` if not provided.
301
301
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -311,7 +311,7 @@ module SnapTrade
311
311
  #
312
312
  # @param user_id [String]
313
313
  # @param user_secret [String]
314
- # @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for.
314
+ # @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
315
315
  # @param account_id [String]
316
316
  # @param use_ticker [Boolean] Should be set to `True` if `symbols` are comprised of tickers. Defaults to `False` if not provided.
317
317
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -324,7 +324,7 @@ module SnapTrade
324
324
  # Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
325
325
  # @param user_id [String]
326
326
  # @param user_secret [String]
327
- # @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for.
327
+ # @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
328
328
  # @param account_id [String]
329
329
  # @param [Hash] opts the optional parameters
330
330
  # @option opts [Boolean] :use_ticker Should be set to `True` if `symbols` are comprised of tickers. Defaults to `False` if not provided.
@@ -338,7 +338,7 @@ module SnapTrade
338
338
  # Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
339
339
  # @param user_id [String]
340
340
  # @param user_secret [String]
341
- # @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for.
341
+ # @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
342
342
  # @param account_id [String]
343
343
  # @param [Hash] opts the optional parameters
344
344
  # @option opts [Boolean] :use_ticker Should be set to `True` if `symbols` are comprised of tickers. Defaults to `False` if not provided.
@@ -31,7 +31,7 @@ module SnapTrade
31
31
  # @param end_date [Date] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
32
32
  # @param accounts [String] Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The `brokerageAuthorizations` parameter takes precedence over this parameter.
33
33
  # @param brokerage_authorizations [String] Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the `accounts` parameter.
34
- # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event.
34
+ # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
35
35
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
36
36
  def get_activities(user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, accounts: SENTINEL, brokerage_authorizations: SENTINEL, type: SENTINEL, extra: {})
37
37
  extra[:start_date] = start_date if start_date != SENTINEL
@@ -57,7 +57,7 @@ module SnapTrade
57
57
  # @param end_date [Date] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
58
58
  # @param accounts [String] Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The `brokerageAuthorizations` parameter takes precedence over this parameter.
59
59
  # @param brokerage_authorizations [String] Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the `accounts` parameter.
60
- # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event.
60
+ # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
61
61
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
62
62
  def get_activities_with_http_info(user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, accounts: SENTINEL, brokerage_authorizations: SENTINEL, type: SENTINEL, extra: {})
63
63
  extra[:start_date] = start_date if start_date != SENTINEL
@@ -77,7 +77,7 @@ module SnapTrade
77
77
  # @option opts [Date] :end_date The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
78
78
  # @option opts [String] :accounts Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The `brokerageAuthorizations` parameter takes precedence over this parameter.
79
79
  # @option opts [String] :brokerage_authorizations Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the `accounts` parameter.
80
- # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event.
80
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
81
81
  # @return [Array<UniversalActivity>]
82
82
  private def get_activities_impl(user_id, user_secret, opts = {})
83
83
  data, _status_code, _headers = get_activities_with_http_info(user_id, user_secret, opts)
@@ -93,7 +93,7 @@ module SnapTrade
93
93
  # @option opts [Date] :end_date The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
94
94
  # @option opts [String] :accounts Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The `brokerageAuthorizations` parameter takes precedence over this parameter.
95
95
  # @option opts [String] :brokerage_authorizations Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the `accounts` parameter.
96
- # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event.
96
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another
97
97
  # @return [Array<(Array<UniversalActivity>, Integer, Hash)>] Array<UniversalActivity> data, response status code and response headers
98
98
  private def get_activities_with_http_info_impl(user_id, user_secret, opts = {})
99
99
  if @api_client.config.debugging
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.56'
11
+ VERSION = '2.0.58'
12
12
  end
@@ -106,6 +106,7 @@ describe 'AccountInformationApi' do
106
106
  # @param user_secret
107
107
  # @param account_id
108
108
  # @param [Hash] opts the optional parameters
109
+ # @option opts [Boolean] :only_executed Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well
109
110
  # @return [RecentOrdersResponse]
110
111
  describe 'get_user_account_recent_orders test' do
111
112
  it 'should work' do
@@ -61,7 +61,7 @@ describe 'TradingApi' do
61
61
  # Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
62
62
  # @param user_id
63
63
  # @param user_secret
64
- # @param symbols List of Universal Symbol IDs or tickers to get quotes for.
64
+ # @param symbols List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
65
65
  # @param account_id
66
66
  # @param [Hash] opts the optional parameters
67
67
  # @option opts [Boolean] :use_ticker Should be set to &#x60;True&#x60; if &#x60;symbols&#x60; are comprised of tickers. Defaults to &#x60;False&#x60; if not provided.
@@ -37,7 +37,7 @@ describe 'TransactionsAndReportingApi' do
37
37
  # @option opts [Date] :end_date The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on &#x60;trade_date&#x60;.
38
38
  # @option opts [String] :accounts Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The &#x60;brokerageAuthorizations&#x60; parameter takes precedence over this parameter.
39
39
  # @option opts [String] :brokerage_authorizations Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the &#x60;accounts&#x60; parameter.
40
- # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - &#x60;BUY&#x60; - Asset bought. - &#x60;SELL&#x60; - Asset sold. - &#x60;DIVIDEND&#x60; - Dividend payout. - &#x60;CONTRIBUTION&#x60; - Cash contribution. - &#x60;WITHDRAWAL&#x60; - Cash withdrawal. - &#x60;REI&#x60; - Dividend reinvestment. - &#x60;INTEREST&#x60; - Interest deposited into the account. - &#x60;FEE&#x60; - Fee withdrawn from the account. - &#x60;OPTIONEXPIRATION&#x60; - Option expiration event. - &#x60;OPTIONASSIGNMENT&#x60; - Option assignment event. - &#x60;OPTIONEXERCISE&#x60; - Option exercise event.
40
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - &#x60;BUY&#x60; - Asset bought. - &#x60;SELL&#x60; - Asset sold. - &#x60;DIVIDEND&#x60; - Dividend payout. - &#x60;CONTRIBUTION&#x60; - Cash contribution. - &#x60;WITHDRAWAL&#x60; - Cash withdrawal. - &#x60;REI&#x60; - Dividend reinvestment. - &#x60;INTEREST&#x60; - Interest deposited into the account. - &#x60;FEE&#x60; - Fee withdrawn from the account. - &#x60;OPTIONEXPIRATION&#x60; - Option expiration event. - &#x60;OPTIONASSIGNMENT&#x60; - Option assignment event. - &#x60;OPTIONEXERCISE&#x60; - Option exercise event. - &#x60;TRANSFER&#x60; - Transfer of assets from one account to another
41
41
  # @return [Array<UniversalActivity>]
42
42
  describe 'get_activities test' do
43
43
  it 'should work' do
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.56
4
+ version: 2.0.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-15 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday