snaptrade 1.17.10 → 1.17.12

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: bc7424d3593efa15d87a6e3b86025ddf9f74889637be92516240f8a374f0a089
4
- data.tar.gz: 909f0a3ec77b672b19ae03517cf9580e2ded1dac37e2e47b5ada1b6818952598
3
+ metadata.gz: 4e9789f55603bbab4757b768cf14bb1c4f49b1b6cde5c0b0f56389ba8db8eab1
4
+ data.tar.gz: 4edfde4d5e8e9732c83cef5417ca8d98dd4c5fafc7f13267e2c823478ca01ddb
5
5
  SHA512:
6
- metadata.gz: 876380a98c4374c61c4e24ac2bf7065e59814b64c2078d7d46d43b9a5bb80d97a3218e8eb47bf57a0c4c39b42b87c406b7ad27dec34f7a8faf724bf81172a43b
7
- data.tar.gz: 45a18abd2a40d531e0bc7844cd58211267538f15955cc7edd3983666e4f3b9133dd2de72249aed5bc8182f9c6c1742ea9881395073a8a2b280bdbbb17e4c780c
6
+ metadata.gz: baaab36fde93555803ea8f3a6d6da3a8d6c357341f4509a9f2956d0cade3ea6996a802454ac60a632a81bb0e20ca26edda74093901081037a02be14c25db8fba
7
+ data.tar.gz: 7f1962fe3364eba460e44292ba0044b1e99587f66f63425bcb886e84a92e41a1d85ce4cea0fa983d7574baca6a392b83cfe1c869b0e3278f4b303d94788b4c2b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (1.17.10)
4
+ snaptrade (1.17.12)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -9,25 +9,25 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.4.2)
12
- base64 (0.2.0)
13
12
  byebug (11.1.3)
14
13
  coderay (1.1.3)
15
14
  debug (1.8.0)
16
15
  irb (>= 1.5.0)
17
16
  reline (>= 0.3.1)
18
17
  diff-lcs (1.5.0)
19
- faraday (2.8.1)
20
- base64
21
- faraday-net_http (>= 2.0, < 3.1)
22
- ruby2_keywords (>= 0.0.4)
18
+ faraday (2.9.0)
19
+ faraday-net_http (>= 2.0, < 3.2)
23
20
  faraday-multipart (1.0.4)
24
21
  multipart-post (~> 2)
25
- faraday-net_http (3.0.2)
22
+ faraday-net_http (3.1.0)
23
+ net-http
26
24
  io-console (0.6.0)
27
25
  irb (1.6.4)
28
26
  reline (>= 0.3.0)
29
27
  method_source (1.0.0)
30
28
  multipart-post (2.3.0)
29
+ net-http (0.4.1)
30
+ uri
31
31
  parallel (1.23.0)
32
32
  parser (3.2.2.1)
33
33
  ast (~> 2.4.1)
@@ -68,8 +68,8 @@ GEM
68
68
  rubocop-ast (1.28.1)
69
69
  parser (>= 3.2.1.0)
70
70
  ruby-progressbar (1.13.0)
71
- ruby2_keywords (0.0.5)
72
71
  unicode-display_width (2.4.2)
72
+ uri (0.13.0)
73
73
 
74
74
  PLATFORMS
75
75
  arm64-darwin-21
data/README.md CHANGED
@@ -9,7 +9,7 @@ For more information, please visit [https://snaptrade.com/](https://snaptrade.co
9
9
  Add to Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'snaptrade', '~> 1.17.10'
12
+ gem 'snaptrade', '~> 1.17.12'
13
13
  ```
14
14
 
15
15
  ## Getting Started
@@ -10,9 +10,9 @@
10
10
  | **price** | **Float** | Trade Price if limit or stop limit order | [optional] |
11
11
  | **stop** | **Float** | Stop Price. If stop loss or stop limit order, the price to trigger the stop | [optional] |
12
12
  | **time_in_force** | [**TimeInForce**](TimeInForce.md) | | [optional] |
13
- | **units** | **Float** | Trade Units. Cannot work with notional value. | [optional] |
13
+ | **units** | **Float** | | [optional] |
14
14
  | **universal_symbol_id** | **String** | | [optional] |
15
- | **notional_value** | **Float** | Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force. | [optional] |
15
+ | **notional_value** | **Float** | | [optional] |
16
16
 
17
17
  ## Example
18
18
 
@@ -28,7 +28,7 @@ instance = SnapTrade::ManualTradeForm.new(
28
28
  time_in_force: null,
29
29
  units: null,
30
30
  universal_symbol_id: 2bcd7cc3-e922-4976-bce1-9858296801c3,
31
- notional_value: 100
31
+ notional_value: null
32
32
  )
33
33
  ```
34
34
 
data/docs/TradingApi.md CHANGED
@@ -103,7 +103,7 @@ stop = 31.33
103
103
  time_in_force = "Day"
104
104
  units = 3.14
105
105
  universal_symbol_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
106
- notional_value = 100
106
+ notional_value = 3.14
107
107
 
108
108
  begin
109
109
  # Check impact of trades on account.
@@ -141,7 +141,7 @@ stop = 31.33
141
141
  time_in_force = "Day"
142
142
  units = 3.14
143
143
  universal_symbol_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
144
- notional_value = 100
144
+ notional_value = 3.14
145
145
 
146
146
  begin
147
147
  # Check impact of trades on account.
@@ -275,7 +275,7 @@ stop = 31.33
275
275
  time_in_force = "Day"
276
276
  units = 3.14
277
277
  universal_symbol_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
278
- notional_value = 100
278
+ notional_value = 3.14
279
279
 
280
280
  begin
281
281
  # Place a trade with NO validation.
@@ -313,7 +313,7 @@ stop = 31.33
313
313
  time_in_force = "Day"
314
314
  units = 3.14
315
315
  universal_symbol_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
316
- notional_value = 100
316
+ notional_value = 3.14
317
317
 
318
318
  begin
319
319
  # Place a trade with NO validation.
@@ -143,9 +143,9 @@ module SnapTrade
143
143
  # @param price [Float] Trade Price if limit or stop limit order
144
144
  # @param stop [Float] Stop Price. If stop loss or stop limit order, the price to trigger the stop
145
145
  # @param time_in_force [TimeInForce]
146
- # @param units [Float] Trade Units. Cannot work with notional value.
146
+ # @param units [Float]
147
147
  # @param universal_symbol_id [String]
148
- # @param notional_value [Float] Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force.
148
+ # @param notional_value [Float]
149
149
  # @param body [ManualTradeForm]
150
150
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
151
151
  def get_order_impact(user_id:, user_secret:, account_id: SENTINEL, action: SENTINEL, order_type: SENTINEL, price: SENTINEL, stop: SENTINEL, time_in_force: SENTINEL, units: SENTINEL, universal_symbol_id: SENTINEL, notional_value: SENTINEL, extra: {})
@@ -173,9 +173,9 @@ module SnapTrade
173
173
  # @param price [Float] Trade Price if limit or stop limit order
174
174
  # @param stop [Float] Stop Price. If stop loss or stop limit order, the price to trigger the stop
175
175
  # @param time_in_force [TimeInForce]
176
- # @param units [Float] Trade Units. Cannot work with notional value.
176
+ # @param units [Float]
177
177
  # @param universal_symbol_id [String]
178
- # @param notional_value [Float] Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force.
178
+ # @param notional_value [Float]
179
179
  # @param body [ManualTradeForm]
180
180
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
181
181
  def get_order_impact_with_http_info(user_id:, user_secret:, account_id: SENTINEL, action: SENTINEL, order_type: SENTINEL, price: SENTINEL, stop: SENTINEL, time_in_force: SENTINEL, units: SENTINEL, universal_symbol_id: SENTINEL, notional_value: SENTINEL, extra: {})
@@ -394,9 +394,9 @@ module SnapTrade
394
394
  # @param price [Float] Trade Price if limit or stop limit order
395
395
  # @param stop [Float] Stop Price. If stop loss or stop limit order, the price to trigger the stop
396
396
  # @param time_in_force [TimeInForce]
397
- # @param units [Float] Trade Units. Cannot work with notional value.
397
+ # @param units [Float]
398
398
  # @param universal_symbol_id [String]
399
- # @param notional_value [Float] Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force.
399
+ # @param notional_value [Float]
400
400
  # @param body [ManualTradeForm]
401
401
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
402
402
  def place_force_order(user_id:, user_secret:, account_id: SENTINEL, action: SENTINEL, order_type: SENTINEL, price: SENTINEL, stop: SENTINEL, time_in_force: SENTINEL, units: SENTINEL, universal_symbol_id: SENTINEL, notional_value: SENTINEL, extra: {})
@@ -424,9 +424,9 @@ module SnapTrade
424
424
  # @param price [Float] Trade Price if limit or stop limit order
425
425
  # @param stop [Float] Stop Price. If stop loss or stop limit order, the price to trigger the stop
426
426
  # @param time_in_force [TimeInForce]
427
- # @param units [Float] Trade Units. Cannot work with notional value.
427
+ # @param units [Float]
428
428
  # @param universal_symbol_id [String]
429
- # @param notional_value [Float] Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force.
429
+ # @param notional_value [Float]
430
430
  # @param body [ManualTradeForm]
431
431
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
432
432
  def place_force_order_with_http_info(user_id:, user_secret:, account_id: SENTINEL, action: SENTINEL, order_type: SENTINEL, price: SENTINEL, stop: SENTINEL, time_in_force: SENTINEL, units: SENTINEL, universal_symbol_id: SENTINEL, notional_value: SENTINEL, extra: {})
@@ -28,12 +28,10 @@ module SnapTrade
28
28
 
29
29
  attr_accessor :time_in_force
30
30
 
31
- # Trade Units. Cannot work with notional value.
32
31
  attr_accessor :units
33
32
 
34
33
  attr_accessor :universal_symbol_id
35
34
 
36
- # Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force.
37
35
  attr_accessor :notional_value
38
36
 
39
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -76,6 +74,7 @@ module SnapTrade
76
74
  Set.new([
77
75
  :'price',
78
76
  :'stop',
77
+ :'units',
79
78
  :'notional_value'
80
79
  ])
81
80
  end
@@ -9,5 +9,5 @@ Contact: api@snaptrade.com
9
9
  =end
10
10
 
11
11
  module SnapTrade
12
- VERSION = '1.17.10'
12
+ VERSION = '1.17.12'
13
13
  end
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: 1.17.10
4
+ version: 1.17.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-03 00:00:00.000000000 Z
11
+ date: 2024-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday