snaptrade 1.3.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/docs/ManualTrade.md +2 -2
- data/lib/snaptrade/models/account_order_record.rb +3 -0
- data/lib/snaptrade/models/manual_trade.rb +2 -1
- data/lib/snaptrade/models/manual_trade_form.rb +1 -0
- data/lib/snaptrade/models/options_holdings.rb +1 -0
- data/lib/snaptrade/models/options_place_option_strategy_request.rb +1 -5
- data/lib/snaptrade/models/options_position.rb +1 -0
- data/lib/snaptrade/models/strategy_order_record.rb +2 -0
- data/lib/snaptrade/models/strategy_quotes.rb +3 -0
- data/lib/snaptrade/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfbb41c300acc1d64e3c9fea3cc1310822074a131d642ae216325f4eee44d074
|
4
|
+
data.tar.gz: 5308f919f05089da3f5312ad996ebecf4e15e0702a3c08e38d4f9b5914c34ecc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75a9403db777dbb546c91da68706a7b78abaa07fcadea441ff434c3480097cb4f42710a07843c771ad1b7058a2f57f4f49edcec1d8d59fb8cfbed55d97c989d2
|
7
|
+
data.tar.gz: f69564daf8529b3b8f6e7884aede1d42d8dd58ea963fa8a03aae991779ce8721e564222940edaf1462a0b6af8e564b1ac11ab99ad280b890bf242f8325df63c3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
snaptrade (1.
|
4
|
+
snaptrade (1.5.0)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -15,7 +15,7 @@ GEM
|
|
15
15
|
irb (>= 1.5.0)
|
16
16
|
reline (>= 0.3.1)
|
17
17
|
diff-lcs (1.5.0)
|
18
|
-
faraday (2.7.
|
18
|
+
faraday (2.7.6)
|
19
19
|
faraday-net_http (>= 2.0, < 3.1)
|
20
20
|
ruby2_keywords (>= 0.0.4)
|
21
21
|
faraday-multipart (1.0.4)
|
data/README.md
CHANGED
data/docs/ManualTrade.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **id** | **String** | | [optional] |
|
8
|
-
| **account** |
|
8
|
+
| **account** | **String** | | [optional] |
|
9
9
|
| **order_type** | [**OrderType**](OrderType.md) | | [optional] |
|
10
10
|
| **time_in_force** | [**TimeInForce**](TimeInForce.md) | | [optional] |
|
11
11
|
| **symbol** | [**ManualTradeSymbol**](ManualTradeSymbol.md) | | [optional] |
|
@@ -20,7 +20,7 @@ require 'snaptrade'
|
|
20
20
|
|
21
21
|
instance = SnapTrade::ManualTrade.new(
|
22
22
|
id: 2bcd7cc3-e922-4976-bce1-9858296801c3,
|
23
|
-
account:
|
23
|
+
account: 2bcd7cc3-e922-4976-bce1-9855556801c3,
|
24
24
|
order_type: null,
|
25
25
|
time_in_force: null,
|
26
26
|
symbol: null,
|
@@ -55,7 +55,7 @@ module SnapTrade
|
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
57
|
:'id' => :'String',
|
58
|
-
:'account' => :'
|
58
|
+
:'account' => :'String',
|
59
59
|
:'order_type' => :'OrderType',
|
60
60
|
:'time_in_force' => :'TimeInForce',
|
61
61
|
:'symbol' => :'ManualTradeSymbol',
|
@@ -68,6 +68,7 @@ module SnapTrade
|
|
68
68
|
# List of attributes with nullable: true
|
69
69
|
def self.openapi_nullable
|
70
70
|
Set.new([
|
71
|
+
:'price'
|
71
72
|
])
|
72
73
|
end
|
73
74
|
|
@@ -46,6 +46,7 @@ module SnapTrade
|
|
46
46
|
# List of attributes with nullable: true
|
47
47
|
def self.openapi_nullable
|
48
48
|
Set.new([
|
49
|
+
:'price'
|
49
50
|
])
|
50
51
|
end
|
51
52
|
|
@@ -89,10 +90,6 @@ module SnapTrade
|
|
89
90
|
invalid_properties.push('invalid value for "time_in_force", time_in_force cannot be nil.')
|
90
91
|
end
|
91
92
|
|
92
|
-
if @price.nil?
|
93
|
-
invalid_properties.push('invalid value for "price", price cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
93
|
invalid_properties
|
97
94
|
end
|
98
95
|
|
@@ -101,7 +98,6 @@ module SnapTrade
|
|
101
98
|
def valid?
|
102
99
|
return false if @order_type.nil?
|
103
100
|
return false if @time_in_force.nil?
|
104
|
-
return false if @price.nil?
|
105
101
|
true
|
106
102
|
end
|
107
103
|
|
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.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|