snaptrade 2.0.132 → 2.0.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4063a04e16cf4c2859c165968113cb98b6c50d61f5d57a71cb2518151779f279
4
- data.tar.gz: 5e11660bf6efe9f80458f44d06377552e431d2ea74d95ae3747d4402f339c643
3
+ metadata.gz: 1d24eb0658e7e1dba7e7a0add10823bdd03880e0479de8d58b0e8b95a296835a
4
+ data.tar.gz: 457d6dafe117a2db5af4f86d7e0fae6d5167c5b05368d03f24a979f0ead7899c
5
5
  SHA512:
6
- metadata.gz: e6b33a7192a8d3a22e2828efc47863e5a67fa086ccff78a6dd05eab53247339460ba19984ff08c6453f08ae0e278c32437982c8b9a9836a4585379fa7b89ebd8
7
- data.tar.gz: f59518344e2781984588934c5856539946cba17fd81acd1244bef28c4c08381ec1ecfd0aa6fcf7134e2d824d7ab82b73a49a16573adbdf00c356674ad98f1512
6
+ metadata.gz: 0c5b82abd3ea4839a93e8d9520a7e8883ea36af676b22455b904646392630a55f2ab93e285f354109bc730027ff0a48d2d57e74a66114baa3535a6847927be74
7
+ data.tar.gz: 699d0f66f670f7e297368fa303e655e9e74d8f713087f86766df212ca4ebe542c6c6a6e29483472ecd7a2d5b442a5475e95f77db3b1fffbd0eb1c7b04b5f2b2c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.132)
4
+ snaptrade (2.0.134)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -32,7 +32,7 @@ GEM
32
32
  parser (3.3.9.0)
33
33
  ast (~> 2.4.1)
34
34
  racc
35
- prism (1.4.0)
35
+ prism (1.5.1)
36
36
  pry (0.14.2)
37
37
  coderay (~> 1.1)
38
38
  method_source (~> 1.0)
@@ -42,7 +42,7 @@ GEM
42
42
  racc (1.8.1)
43
43
  rainbow (3.1.1)
44
44
  rake (13.0.6)
45
- regexp_parser (2.11.2)
45
+ regexp_parser (2.11.3)
46
46
  reline (0.6.2)
47
47
  io-console (~> 0.5)
48
48
  rexml (3.4.4)
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.132-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.132)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.134-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.134)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -81,7 +81,7 @@ Connect brokerage accounts to your app for live positions and trading
81
81
  Add to Gemfile:
82
82
 
83
83
  ```ruby
84
- gem 'snaptrade', '~> 2.0.132'
84
+ gem 'snaptrade', '~> 2.0.134'
85
85
  ```
86
86
 
87
87
  ## Getting Started<a id="getting-started"></a>
@@ -322,6 +322,8 @@ p result
322
322
 
323
323
  Returns the detail of a single order using the external order ID provided in the request body.
324
324
 
325
+ This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future.
326
+
325
327
  This endpoint is always realtime and does not rely on cached data.
326
328
 
327
329
  This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
@@ -1776,7 +1778,6 @@ result = snaptrade.trading.place_bracket_order(
1776
1778
  account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1777
1779
  user_id: "snaptrade-user-123",
1778
1780
  user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1779
- symbol: "AAPL",
1780
1781
  price: 31.33,
1781
1782
  stop: 31.33,
1782
1783
  units: 10.5,
@@ -1814,9 +1815,6 @@ The ID of the account to execute the trade on.
1814
1815
 
1815
1816
  ##### user_id: `String`<a id="user_id-string"></a>
1816
1817
  ##### user_secret: `String`<a id="user_secret-string"></a>
1817
- ##### symbol: `String`<a id="symbol-string"></a>
1818
- The security's trading ticker symbol.
1819
-
1820
1818
  ##### price: `Float`<a id="price-float"></a>
1821
1819
  The limit price for `Limit` and `StopLimit` orders.
1822
1820
 
@@ -501,6 +501,8 @@ module SnapTrade
501
501
  #
502
502
  # Returns the detail of a single order using the external order ID provided in the request body.
503
503
  #
504
+ # This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future.
505
+ #
504
506
  # This endpoint is always realtime and does not rely on cached data.
505
507
  #
506
508
  # This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
@@ -523,6 +525,8 @@ module SnapTrade
523
525
  #
524
526
  # Returns the detail of a single order using the external order ID provided in the request body.
525
527
  #
528
+ # This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future.
529
+ #
526
530
  # This endpoint is always realtime and does not rely on cached data.
527
531
  #
528
532
  # This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
@@ -541,7 +545,7 @@ module SnapTrade
541
545
  end
542
546
 
543
547
  # Get account order detail
544
- # Returns the detail of a single order using the external order ID provided in the request body. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
548
+ # Returns the detail of a single order using the external order ID provided in the request body. This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
545
549
  # @param account_id [String]
546
550
  # @param user_id [String]
547
551
  # @param user_secret [String]
@@ -554,7 +558,7 @@ module SnapTrade
554
558
  end
555
559
 
556
560
  # Get account order detail
557
- # Returns the detail of a single order using the external order ID provided in the request body. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
561
+ # Returns the detail of a single order using the external order ID provided in the request body. This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
558
562
  # @param account_id [String]
559
563
  # @param user_id [String]
560
564
  # @param user_secret [String]
@@ -671,16 +671,14 @@ module SnapTrade
671
671
  # @param account_id [String] The ID of the account to execute the trade on.
672
672
  # @param user_id [String]
673
673
  # @param user_secret [String]
674
- # @param symbol [String] The security's trading ticker symbol.
675
674
  # @param price [Float] The limit price for `Limit` and `StopLimit` orders.
676
675
  # @param stop [Float] The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
677
676
  # @param units [Float] Number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided.
678
677
  # @param body [ManualTradeFormBracket]
679
678
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
680
- def place_bracket_order(action:, instrument:, order_type:, time_in_force:, stop_loss:, take_profit:, account_id:, user_id:, user_secret:, symbol: SENTINEL, price: SENTINEL, stop: SENTINEL, units: SENTINEL, extra: {})
679
+ def place_bracket_order(action:, instrument:, order_type:, time_in_force:, stop_loss:, take_profit:, account_id:, user_id:, user_secret:, price: SENTINEL, stop: SENTINEL, units: SENTINEL, extra: {})
681
680
  _body = {}
682
681
  _body[:action] = action if action != SENTINEL
683
- _body[:symbol] = symbol if symbol != SENTINEL
684
682
  _body[:instrument] = instrument if instrument != SENTINEL
685
683
  _body[:order_type] = order_type if order_type != SENTINEL
686
684
  _body[:time_in_force] = time_in_force if time_in_force != SENTINEL
@@ -708,16 +706,14 @@ module SnapTrade
708
706
  # @param account_id [String] The ID of the account to execute the trade on.
709
707
  # @param user_id [String]
710
708
  # @param user_secret [String]
711
- # @param symbol [String] The security's trading ticker symbol.
712
709
  # @param price [Float] The limit price for `Limit` and `StopLimit` orders.
713
710
  # @param stop [Float] The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
714
711
  # @param units [Float] Number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided.
715
712
  # @param body [ManualTradeFormBracket]
716
713
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
717
- def place_bracket_order_with_http_info(action:, instrument:, order_type:, time_in_force:, stop_loss:, take_profit:, account_id:, user_id:, user_secret:, symbol: SENTINEL, price: SENTINEL, stop: SENTINEL, units: SENTINEL, extra: {})
714
+ def place_bracket_order_with_http_info(action:, instrument:, order_type:, time_in_force:, stop_loss:, take_profit:, account_id:, user_id:, user_secret:, price: SENTINEL, stop: SENTINEL, units: SENTINEL, extra: {})
718
715
  _body = {}
719
716
  _body[:action] = action if action != SENTINEL
720
- _body[:symbol] = symbol if symbol != SENTINEL
721
717
  _body[:instrument] = instrument if instrument != SENTINEL
722
718
  _body[:order_type] = order_type if order_type != SENTINEL
723
719
  _body[:time_in_force] = time_in_force if time_in_force != SENTINEL
@@ -16,9 +16,6 @@ module SnapTrade
16
16
  # The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.
17
17
  attr_accessor :action
18
18
 
19
- # The security's trading ticker symbol.
20
- attr_accessor :symbol
21
-
22
19
  attr_accessor :instrument
23
20
 
24
21
  # The type of order to place. - For `Limit` and `StopLimit` orders, the `price` field is required. - For `Stop` and `StopLimit` orders, the `stop` field is required.
@@ -44,7 +41,6 @@ module SnapTrade
44
41
  def self.attribute_map
45
42
  {
46
43
  :'action' => :'action',
47
- :'symbol' => :'symbol',
48
44
  :'instrument' => :'instrument',
49
45
  :'order_type' => :'order_type',
50
46
  :'time_in_force' => :'time_in_force',
@@ -65,7 +61,6 @@ module SnapTrade
65
61
  def self.openapi_types
66
62
  {
67
63
  :'action' => :'ActionStrictWithOptions',
68
- :'symbol' => :'String',
69
64
  :'instrument' => :'TradingInstrument',
70
65
  :'order_type' => :'OrderTypeStrict',
71
66
  :'time_in_force' => :'TimeInForceStrict',
@@ -104,10 +99,6 @@ module SnapTrade
104
99
  self.action = attributes[:'action']
105
100
  end
106
101
 
107
- if attributes.key?(:'symbol')
108
- self.symbol = attributes[:'symbol']
109
- end
110
-
111
102
  if attributes.key?(:'instrument')
112
103
  self.instrument = attributes[:'instrument']
113
104
  end
@@ -190,7 +181,6 @@ module SnapTrade
190
181
  return true if self.equal?(o)
191
182
  self.class == o.class &&
192
183
  action == o.action &&
193
- symbol == o.symbol &&
194
184
  instrument == o.instrument &&
195
185
  order_type == o.order_type &&
196
186
  time_in_force == o.time_in_force &&
@@ -210,7 +200,7 @@ module SnapTrade
210
200
  # Calculates hash code according to all attributes.
211
201
  # @return [Integer] Hash code
212
202
  def hash
213
- [action, symbol, instrument, order_type, time_in_force, price, stop, units, stop_loss, take_profit].hash
203
+ [action, instrument, order_type, time_in_force, price, stop, units, stop_loss, take_profit].hash
214
204
  end
215
205
 
216
206
  # Builds the object from hash
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.132'
11
+ VERSION = '2.0.134'
12
12
  end
@@ -90,7 +90,7 @@ describe 'AccountInformationApi' do
90
90
 
91
91
  # unit tests for get_user_account_order_detail
92
92
  # Get account order detail
93
- # Returns the detail of a single order using the external order ID provided in the request body. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
93
+ # Returns the detail of a single order using the external order ID provided in the request body. This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
94
94
  # @param account_id
95
95
  # @param user_id
96
96
  # @param user_secret
@@ -26,12 +26,6 @@ describe SnapTrade::ManualTradeFormBracket do
26
26
  end
27
27
  end
28
28
 
29
- describe 'test attribute "symbol"' do
30
- it 'should work' do
31
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
- end
33
- end
34
-
35
29
  describe 'test attribute "instrument"' do
36
30
  it 'should work' do
37
31
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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.132
4
+ version: 2.0.134
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-11 00:00:00.000000000 Z
11
+ date: 2025-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday