snaptrade 2.0.40 → 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: c520ce3f1b49a19b06ea9a9691ee99f4d1abdcc9f7f497750daa603354ecd093
4
- data.tar.gz: 37a836bd19e78f169b2acf5966dc62d8c817db8fd885f03fd8a6bf7d0fb39f23
3
+ metadata.gz: 8c1c06e82bf3edcd3faa6c7dbaffb2e3b0b15e51e6ce5e51f741f00668e1fa10
4
+ data.tar.gz: 32225d2bdd784463c059239a4cd172229c80467624918d1674e4c62666e41c7d
5
5
  SHA512:
6
- metadata.gz: c292778ce417b1d203301fe76b4e8cb7fe2d2b31e7c2e31401c02e042e1b9f478b16c1bf031eb28122d5489cd6ea48c0f6b10061fbc9b6b663a49919a3cacceb
7
- data.tar.gz: 1a1eb1acd011d807fb6dea972ada10d2972910ca8c0fd525169d15cf85c588d786525d88aa9df8050f37d9baa9fc7cf5d4d0933131d429e305274c3ce41a090f
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.40)
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.40-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.40)
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.40'
73
+ gem 'snaptrade', '~> 2.0.41'
74
74
  ```
75
75
 
76
76
  ## Getting Started<a id="getting-started"></a>
@@ -1521,7 +1521,7 @@ Should be set to `True` if `symbols` are comprised of tickers. Defaults to
1521
1521
 
1522
1522
  ### `snaptrade.trading.place_force_order`<a id="snaptradetradingplace_force_order"></a>
1523
1523
 
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.
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.
1525
1525
 
1526
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).
1527
1527
 
@@ -410,7 +410,7 @@ 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
416
  #
@@ -447,7 +447,7 @@ module SnapTrade
447
447
 
448
448
  # Place order
449
449
  #
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.
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.
451
451
  #
452
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
453
  #
@@ -482,7 +482,7 @@ module SnapTrade
482
482
  end
483
483
 
484
484
  # Place order
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.
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.
486
486
  # @param user_id [String]
487
487
  # @param user_secret [String]
488
488
  # @param manual_trade_form [ManualTradeForm]
@@ -494,7 +494,7 @@ module SnapTrade
494
494
  end
495
495
 
496
496
  # Place order
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.
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.
498
498
  # @param user_id [String]
499
499
  # @param user_secret [String]
500
500
  # @param manual_trade_form [ManualTradeForm]
@@ -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.
@@ -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.40'
11
+ VERSION = '2.0.41'
12
12
  end
@@ -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). 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.
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
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.40
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-23 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