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 +4 -4
- data/Gemfile.lock +21 -13
- data/README.md +1 -1
- data/docs/ManualTradeForm.md +1 -1
- data/docs/MonthlyDividends.md +1 -1
- data/docs/NetContributions.md +1 -1
- data/docs/PastValue.md +1 -1
- data/docs/SubPeriodReturnRate.md +2 -2
- data/docs/TransactionsStatus.md +1 -1
- data/lib/snaptrade/api/trading_api.rb +4 -4
- data/lib/snaptrade/models/manual_trade_form.rb +1 -1
- data/lib/snaptrade/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89a20280d9b851518ff6cb3d0de7d9da7e10ca979110d76bde7d65ded8b3cea0
|
4
|
+
data.tar.gz: 8777f7b671a47885513f3e26dbe3952590e37f95dbfb2700582bf747a29926a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
28
|
-
|
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.
|
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
|
-
|
43
|
-
|
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.
|
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.
|
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.
|
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.
|
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-
|
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.
|
94
|
+
2.4.19
|
data/README.md
CHANGED
data/docs/ManualTradeForm.md
CHANGED
@@ -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
|
|
data/docs/MonthlyDividends.md
CHANGED
data/docs/NetContributions.md
CHANGED
data/docs/PastValue.md
CHANGED
data/docs/SubPeriodReturnRate.md
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
require 'snaptrade'
|
15
15
|
|
16
16
|
instance = SnapTrade::SubPeriodReturnRate.new(
|
17
|
-
period_start:
|
18
|
-
period_end:
|
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
|
```
|
data/docs/TransactionsStatus.md
CHANGED
@@ -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.
|
data/lib/snaptrade/version.rb
CHANGED
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.
|
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-
|
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.
|
534
|
+
rubygems_version: 3.4.10
|
535
535
|
signing_key:
|
536
536
|
specification_version: 4
|
537
537
|
summary: SnapTrade Ruby Gem
|