snaptrade 1.17.10 → 1.17.11

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: 89a20280d9b851518ff6cb3d0de7d9da7e10ca979110d76bde7d65ded8b3cea0
4
+ data.tar.gz: 8777f7b671a47885513f3e26dbe3952590e37f95dbfb2700582bf747a29926a5
5
5
  SHA512:
6
- metadata.gz: 876380a98c4374c61c4e24ac2bf7065e59814b64c2078d7d46d43b9a5bb80d97a3218e8eb47bf57a0c4c39b42b87c406b7ad27dec34f7a8faf724bf81172a43b
7
- data.tar.gz: 45a18abd2a40d531e0bc7844cd58211267538f15955cc7edd3983666e4f3b9133dd2de72249aed5bc8182f9c6c1742ea9881395073a8a2b280bdbbb17e4c780c
6
+ metadata.gz: 4386f8003ff97d7572b654cab71a0fed781bd470d021e9f0fa1d5f89bcdad6fa907d22c2c03b4a21e9c05679cdc43c5f21963727073e43025fce0a0057dca059
7
+ data.tar.gz: d02afd9d1eccb3f8ccf03a8e6271874e7e73e50d6ce08ce7e433a8151e2abcbe23570a49b27bf6efcb5c5d09cdd25a2ffc00eb894413a4af224c351b84fedaaf
data/Gemfile.lock CHANGED
@@ -9,14 +9,14 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.4.2)
12
- base64 (0.2.0)
12
+ base64 (0.1.1)
13
13
  byebug (11.1.3)
14
14
  coderay (1.1.3)
15
15
  debug (1.8.0)
16
16
  irb (>= 1.5.0)
17
17
  reline (>= 0.3.1)
18
18
  diff-lcs (1.5.0)
19
- faraday (2.8.1)
19
+ faraday (2.7.11)
20
20
  base64
21
21
  faraday-net_http (>= 2.0, < 3.1)
22
22
  ruby2_keywords (>= 0.0.4)
@@ -24,25 +24,32 @@ GEM
24
24
  multipart-post (~> 2)
25
25
  faraday-net_http (3.0.2)
26
26
  io-console (0.6.0)
27
- irb (1.6.4)
28
- reline (>= 0.3.0)
27
+ irb (1.8.1)
28
+ rdoc
29
+ reline (>= 0.3.8)
29
30
  method_source (1.0.0)
30
31
  multipart-post (2.3.0)
31
32
  parallel (1.23.0)
32
- parser (3.2.2.1)
33
+ parser (3.2.2.3)
33
34
  ast (~> 2.4.1)
35
+ racc
34
36
  pry (0.14.2)
35
37
  coderay (~> 1.1)
36
38
  method_source (~> 1.0)
37
39
  pry-byebug (3.10.1)
38
40
  byebug (~> 11.0)
39
41
  pry (>= 0.13, < 0.15)
42
+ psych (5.1.0)
43
+ stringio
44
+ racc (1.7.1)
40
45
  rainbow (3.1.1)
41
46
  rake (13.0.6)
42
- regexp_parser (2.8.0)
43
- reline (0.3.4)
47
+ rdoc (6.5.0)
48
+ psych (>= 4.0.0)
49
+ regexp_parser (2.8.1)
50
+ reline (0.3.8)
44
51
  io-console (~> 0.5)
45
- rexml (3.2.5)
52
+ rexml (3.2.6)
46
53
  rspec (3.12.0)
47
54
  rspec-core (~> 3.12.0)
48
55
  rspec-expectations (~> 3.12.0)
@@ -52,10 +59,10 @@ GEM
52
59
  rspec-expectations (3.12.3)
53
60
  diff-lcs (>= 1.2.0, < 2.0)
54
61
  rspec-support (~> 3.12.0)
55
- rspec-mocks (3.12.5)
62
+ rspec-mocks (3.12.6)
56
63
  diff-lcs (>= 1.2.0, < 2.0)
57
64
  rspec-support (~> 3.12.0)
58
- rspec-support (3.12.0)
65
+ rspec-support (3.12.1)
59
66
  rubocop (1.12.1)
60
67
  parallel (~> 1.10)
61
68
  parser (>= 3.0.0.0)
@@ -65,14 +72,15 @@ GEM
65
72
  rubocop-ast (>= 1.2.0, < 2.0)
66
73
  ruby-progressbar (~> 1.7)
67
74
  unicode-display_width (>= 1.4.0, < 3.0)
68
- rubocop-ast (1.28.1)
75
+ rubocop-ast (1.29.0)
69
76
  parser (>= 3.2.1.0)
70
77
  ruby-progressbar (1.13.0)
71
78
  ruby2_keywords (0.0.5)
79
+ stringio (3.0.8)
72
80
  unicode-display_width (2.4.2)
73
81
 
74
82
  PLATFORMS
75
- arm64-darwin-21
83
+ arm64-darwin-22
76
84
 
77
85
  DEPENDENCIES
78
86
  debug (~> 1.8)
@@ -83,4 +91,4 @@ DEPENDENCIES
83
91
  snaptrade!
84
92
 
85
93
  BUNDLED WITH
86
- 2.3.7
94
+ 2.4.19
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.11'
13
13
  ```
14
14
 
15
15
  ## Getting Started
@@ -12,7 +12,7 @@
12
12
  | **time_in_force** | [**TimeInForce**](TimeInForce.md) | | [optional] |
13
13
  | **units** | **Float** | Trade Units. Cannot work with notional value. | [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** | Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force. **Only available for Alpaca and Alpaca Paper. Please contact support to get access to place notional trades** | [optional] |
16
16
 
17
17
  ## Example
18
18
 
@@ -13,7 +13,7 @@
13
13
  require 'snaptrade'
14
14
 
15
15
  instance = SnapTrade::MonthlyDividends.new(
16
- date: Sun Jan 23 16:00:00 PST 2022,
16
+ date: Mon Jan 24 00:00:00 UTC 2022,
17
17
  dividends: null
18
18
  )
19
19
  ```
@@ -14,7 +14,7 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::NetContributions.new(
17
- date: Sun Jan 23 16:00:00 PST 2022,
17
+ date: Mon Jan 24 00:00:00 UTC 2022,
18
18
  contributions: 524.74,
19
19
  currency: CAD
20
20
  )
data/docs/PastValue.md CHANGED
@@ -14,7 +14,7 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::PastValue.new(
17
- date: Sun Jan 23 16:00:00 PST 2022,
17
+ date: Mon Jan 24 00:00:00 UTC 2022,
18
18
  value: 52.74,
19
19
  currency: CAD
20
20
  )
@@ -14,8 +14,8 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::SubPeriodReturnRate.new(
17
- period_start: Sun Jan 23 16:00:00 PST 2022,
18
- period_end: Sun Jan 23 16:00:00 PST 2022,
17
+ period_start: Mon Jan 24 00:00:00 UTC 2022,
18
+ period_end: Mon Jan 24 00:00:00 UTC 2022,
19
19
  rate_of_return: 0.012312367452
20
20
  )
21
21
  ```
@@ -14,7 +14,7 @@ require 'snaptrade'
14
14
 
15
15
  instance = SnapTrade::TransactionsStatus.new(
16
16
  initial_sync_completed: null,
17
- last_successful_sync: Sun Jan 23 16:00:00 PST 2022
17
+ last_successful_sync: Mon Jan 24 00:00:00 UTC 2022
18
18
  )
19
19
  ```
20
20
 
@@ -145,7 +145,7 @@ module SnapTrade
145
145
  # @param time_in_force [TimeInForce]
146
146
  # @param units [Float] Trade Units. Cannot work with notional value.
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] Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force. **Only available for Alpaca and Alpaca Paper. Please contact support to get access to place notional trades**
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: {})
@@ -175,7 +175,7 @@ module SnapTrade
175
175
  # @param time_in_force [TimeInForce]
176
176
  # @param units [Float] Trade Units. Cannot work with notional value.
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] Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force. **Only available for Alpaca and Alpaca Paper. Please contact support to get access to place notional trades**
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: {})
@@ -396,7 +396,7 @@ module SnapTrade
396
396
  # @param time_in_force [TimeInForce]
397
397
  # @param units [Float] Trade Units. Cannot work with notional value.
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] Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force. **Only available for Alpaca and Alpaca Paper. Please contact support to get access to place notional trades**
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: {})
@@ -426,7 +426,7 @@ module SnapTrade
426
426
  # @param time_in_force [TimeInForce]
427
427
  # @param units [Float] Trade Units. Cannot work with notional value.
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] Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force. **Only available for Alpaca and Alpaca Paper. Please contact support to get access to place notional trades**
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: {})
@@ -33,7 +33,7 @@ module SnapTrade
33
33
 
34
34
  attr_accessor :universal_symbol_id
35
35
 
36
- # Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force.
36
+ # Dollar amount to trade. Cannot work with units. Can only work for market order types and day for time in force. **Only available for Alpaca and Alpaca Paper. Please contact support to get access to place notional trades**
37
37
  attr_accessor :notional_value
38
38
 
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -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.11'
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.11
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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -531,7 +531,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
531
531
  - !ruby/object:Gem::Version
532
532
  version: '0'
533
533
  requirements: []
534
- rubygems_version: 3.3.7
534
+ rubygems_version: 3.4.10
535
535
  signing_key:
536
536
  specification_version: 4
537
537
  summary: SnapTrade Ruby Gem