snaptrade 1.12.0 → 1.14.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -1
- data/docs/BrokerageSymbol.md +4 -2
- data/docs/BrokerageSymbolOptionSymbol.md +32 -0
- data/docs/BrokerageSymbolSymbol.md +32 -0
- data/docs/OptionsPosition.md +10 -8
- data/docs/OptionsPositionCurrency.md +22 -0
- data/docs/OptionsSymbol.md +3 -9
- data/docs/Position.md +3 -1
- data/docs/UniversalActivity.md +1 -1
- data/docs/UserIDandSecret.md +1 -1
- data/lib/snaptrade/models/brokerage_symbol.rb +17 -6
- data/lib/snaptrade/models/brokerage_symbol_option_symbol.rb +287 -0
- data/lib/snaptrade/models/brokerage_symbol_symbol.rb +290 -0
- data/lib/snaptrade/models/options_position.rb +40 -25
- data/lib/snaptrade/models/options_position_currency.rb +242 -0
- data/lib/snaptrade/models/options_symbol.rb +7 -36
- data/lib/snaptrade/models/position.rb +16 -5
- data/lib/snaptrade/models/universal_activity.rb +1 -1
- data/lib/snaptrade/models/user_i_dand_secret.rb +1 -1
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +3 -0
- data/spec/models/brokerage_symbol_option_symbol_spec.rb +72 -0
- data/spec/models/brokerage_symbol_spec.rb +6 -0
- data/spec/models/brokerage_symbol_symbol_spec.rb +72 -0
- data/spec/models/options_position_currency_spec.rb +42 -0
- data/spec/models/options_position_spec.rb +12 -6
- data/spec/models/options_symbol_spec.rb +1 -19
- data/spec/models/position_spec.rb +6 -0
- metadata +14 -2
@@ -28,13 +28,7 @@ module SnapTrade
|
|
28
28
|
|
29
29
|
attr_accessor :local_id
|
30
30
|
|
31
|
-
attr_accessor :
|
32
|
-
|
33
|
-
attr_accessor :listing_exchange
|
34
|
-
|
35
|
-
attr_accessor :is_quotable
|
36
|
-
|
37
|
-
attr_accessor :is_tradable
|
31
|
+
attr_accessor :exchange_id
|
38
32
|
|
39
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
34
|
def self.attribute_map
|
@@ -46,10 +40,7 @@ module SnapTrade
|
|
46
40
|
:'is_mini_option' => :'is_mini_option',
|
47
41
|
:'underlying_symbol' => :'underlying_symbol',
|
48
42
|
:'local_id' => :'local_id',
|
49
|
-
:'
|
50
|
-
:'listing_exchange' => :'listing_exchange',
|
51
|
-
:'is_quotable' => :'is_quotable',
|
52
|
-
:'is_tradable' => :'is_tradable'
|
43
|
+
:'exchange_id' => :'exchange_id'
|
53
44
|
}
|
54
45
|
end
|
55
46
|
|
@@ -68,18 +59,13 @@ module SnapTrade
|
|
68
59
|
:'is_mini_option' => :'Boolean',
|
69
60
|
:'underlying_symbol' => :'UnderlyingSymbol',
|
70
61
|
:'local_id' => :'String',
|
71
|
-
:'
|
72
|
-
:'listing_exchange' => :'Object',
|
73
|
-
:'is_quotable' => :'Boolean',
|
74
|
-
:'is_tradable' => :'Boolean'
|
62
|
+
:'exchange_id' => :'String'
|
75
63
|
}
|
76
64
|
end
|
77
65
|
|
78
66
|
# List of attributes with nullable: true
|
79
67
|
def self.openapi_nullable
|
80
68
|
Set.new([
|
81
|
-
:'security_type',
|
82
|
-
:'listing_exchange',
|
83
69
|
])
|
84
70
|
end
|
85
71
|
|
@@ -126,20 +112,8 @@ module SnapTrade
|
|
126
112
|
self.local_id = attributes[:'local_id']
|
127
113
|
end
|
128
114
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
131
|
-
end
|
132
|
-
|
133
|
-
if attributes.key?(:'listing_exchange')
|
134
|
-
self.listing_exchange = attributes[:'listing_exchange']
|
135
|
-
end
|
136
|
-
|
137
|
-
if attributes.key?(:'is_quotable')
|
138
|
-
self.is_quotable = attributes[:'is_quotable']
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.key?(:'is_tradable')
|
142
|
-
self.is_tradable = attributes[:'is_tradable']
|
115
|
+
if attributes.key?(:'exchange_id')
|
116
|
+
self.exchange_id = attributes[:'exchange_id']
|
143
117
|
end
|
144
118
|
end
|
145
119
|
|
@@ -168,10 +142,7 @@ module SnapTrade
|
|
168
142
|
is_mini_option == o.is_mini_option &&
|
169
143
|
underlying_symbol == o.underlying_symbol &&
|
170
144
|
local_id == o.local_id &&
|
171
|
-
|
172
|
-
listing_exchange == o.listing_exchange &&
|
173
|
-
is_quotable == o.is_quotable &&
|
174
|
-
is_tradable == o.is_tradable
|
145
|
+
exchange_id == o.exchange_id
|
175
146
|
end
|
176
147
|
|
177
148
|
# @see the `==` method
|
@@ -183,7 +154,7 @@ module SnapTrade
|
|
183
154
|
# Calculates hash code according to all attributes.
|
184
155
|
# @return [Integer] Hash code
|
185
156
|
def hash
|
186
|
-
[id, ticker, strike_price, expiration_date, is_mini_option, underlying_symbol, local_id,
|
157
|
+
[id, ticker, strike_price, expiration_date, is_mini_option, underlying_symbol, local_id, exchange_id].hash
|
187
158
|
end
|
188
159
|
|
189
160
|
# Builds the object from hash
|
@@ -29,6 +29,9 @@ module SnapTrade
|
|
29
29
|
# Average purchase price for this position. Either returned by the underlying broker or calculated using historical transactions.
|
30
30
|
attr_accessor :average_purchase_price
|
31
31
|
|
32
|
+
# The book price of the asset
|
33
|
+
attr_accessor :book_price
|
34
|
+
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
36
|
def self.attribute_map
|
34
37
|
{
|
@@ -37,7 +40,8 @@ module SnapTrade
|
|
37
40
|
:'price' => :'price',
|
38
41
|
:'open_pnl' => :'open_pnl',
|
39
42
|
:'fractional_units' => :'fractional_units',
|
40
|
-
:'average_purchase_price' => :'average_purchase_price'
|
43
|
+
:'average_purchase_price' => :'average_purchase_price',
|
44
|
+
:'book_price' => :'book_price'
|
41
45
|
}
|
42
46
|
end
|
43
47
|
|
@@ -54,7 +58,8 @@ module SnapTrade
|
|
54
58
|
:'price' => :'Float',
|
55
59
|
:'open_pnl' => :'Float',
|
56
60
|
:'fractional_units' => :'Float',
|
57
|
-
:'average_purchase_price' => :'Float'
|
61
|
+
:'average_purchase_price' => :'Float',
|
62
|
+
:'book_price' => :'Float'
|
58
63
|
}
|
59
64
|
end
|
60
65
|
|
@@ -65,7 +70,8 @@ module SnapTrade
|
|
65
70
|
:'price',
|
66
71
|
:'open_pnl',
|
67
72
|
:'fractional_units',
|
68
|
-
:'average_purchase_price'
|
73
|
+
:'average_purchase_price',
|
74
|
+
:'book_price'
|
69
75
|
])
|
70
76
|
end
|
71
77
|
|
@@ -107,6 +113,10 @@ module SnapTrade
|
|
107
113
|
if attributes.key?(:'average_purchase_price')
|
108
114
|
self.average_purchase_price = attributes[:'average_purchase_price']
|
109
115
|
end
|
116
|
+
|
117
|
+
if attributes.key?(:'book_price')
|
118
|
+
self.book_price = attributes[:'book_price']
|
119
|
+
end
|
110
120
|
end
|
111
121
|
|
112
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -132,7 +142,8 @@ module SnapTrade
|
|
132
142
|
price == o.price &&
|
133
143
|
open_pnl == o.open_pnl &&
|
134
144
|
fractional_units == o.fractional_units &&
|
135
|
-
average_purchase_price == o.average_purchase_price
|
145
|
+
average_purchase_price == o.average_purchase_price &&
|
146
|
+
book_price == o.book_price
|
136
147
|
end
|
137
148
|
|
138
149
|
# @see the `==` method
|
@@ -144,7 +155,7 @@ module SnapTrade
|
|
144
155
|
# Calculates hash code according to all attributes.
|
145
156
|
# @return [Integer] Hash code
|
146
157
|
def hash
|
147
|
-
[symbol, units, price, open_pnl, fractional_units, average_purchase_price].hash
|
158
|
+
[symbol, units, price, open_pnl, fractional_units, average_purchase_price, book_price].hash
|
148
159
|
end
|
149
160
|
|
150
161
|
# Builds the object from hash
|
@@ -44,7 +44,7 @@ module SnapTrade
|
|
44
44
|
|
45
45
|
attr_accessor :trade_date
|
46
46
|
|
47
|
-
# Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
47
|
+
# Potential values include (but are not limited to) - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
48
48
|
attr_accessor :type
|
49
49
|
|
50
50
|
# Usually but not necessarily an integer
|
@@ -17,7 +17,7 @@ module SnapTrade
|
|
17
17
|
# SnapTrade User ID. Provided by SnapTrade Partner. Can be any string, as long as it's unique to a user
|
18
18
|
attr_accessor :user_id
|
19
19
|
|
20
|
-
# SnapTrade User Secret randomly generated by
|
20
|
+
# SnapTrade User Secret randomly generated by SnapTrade. This should be considered priviledged information and if compromised, you should delete and re-create this SnapTrade user.
|
21
21
|
attr_accessor :user_secret
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
data/lib/snaptrade/version.rb
CHANGED
data/lib/snaptrade.rb
CHANGED
@@ -36,6 +36,8 @@ require 'snaptrade/models/brokerage_authorization_type_read_only_brokerage'
|
|
36
36
|
require 'snaptrade/models/brokerage_authorization_type_read_only_type'
|
37
37
|
require 'snaptrade/models/brokerage_authorization_type_type'
|
38
38
|
require 'snaptrade/models/brokerage_symbol'
|
39
|
+
require 'snaptrade/models/brokerage_symbol_option_symbol'
|
40
|
+
require 'snaptrade/models/brokerage_symbol_symbol'
|
39
41
|
require 'snaptrade/models/brokerage_type'
|
40
42
|
require 'snaptrade/models/calculated_trade'
|
41
43
|
require 'snaptrade/models/cash_restriction'
|
@@ -82,6 +84,7 @@ require 'snaptrade/models/options_get_option_strategy_request'
|
|
82
84
|
require 'snaptrade/models/options_holdings'
|
83
85
|
require 'snaptrade/models/options_place_option_strategy_request'
|
84
86
|
require 'snaptrade/models/options_position'
|
87
|
+
require 'snaptrade/models/options_position_currency'
|
85
88
|
require 'snaptrade/models/options_symbol'
|
86
89
|
require 'snaptrade/models/order_strategy_execute_body_order_type'
|
87
90
|
require 'snaptrade/models/order_strategy_execute_body_time_in_force'
|
@@ -0,0 +1,72 @@
|
|
1
|
+
=begin
|
2
|
+
#SnapTrade
|
3
|
+
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: api@snaptrade.com
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'spec_helper'
|
12
|
+
require 'json'
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
# Unit tests for SnapTrade::BrokerageSymbolOptionSymbol
|
16
|
+
describe SnapTrade::BrokerageSymbolOptionSymbol do
|
17
|
+
let(:instance) { SnapTrade::BrokerageSymbolOptionSymbol.new }
|
18
|
+
|
19
|
+
describe 'test an instance of BrokerageSymbolOptionSymbol' do
|
20
|
+
it 'should create an instance of BrokerageSymbolOptionSymbol' do
|
21
|
+
expect(instance).to be_instance_of(SnapTrade::BrokerageSymbolOptionSymbol)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
describe 'test attribute "id"' do
|
25
|
+
it 'should work' do
|
26
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "ticker"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "strike_price"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "expiration_date"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "is_mini_option"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "underlying_symbol"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "local_id"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "exchange_id"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
=begin
|
2
|
+
#SnapTrade
|
3
|
+
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: api@snaptrade.com
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'spec_helper'
|
12
|
+
require 'json'
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
# Unit tests for SnapTrade::BrokerageSymbolSymbol
|
16
|
+
describe SnapTrade::BrokerageSymbolSymbol do
|
17
|
+
let(:instance) { SnapTrade::BrokerageSymbolSymbol.new }
|
18
|
+
|
19
|
+
describe 'test an instance of BrokerageSymbolSymbol' do
|
20
|
+
it 'should create an instance of BrokerageSymbolSymbol' do
|
21
|
+
expect(instance).to be_instance_of(SnapTrade::BrokerageSymbolSymbol)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
describe 'test attribute "id"' do
|
25
|
+
it 'should work' do
|
26
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "symbol"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "raw_symbol"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "description"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "currency"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "exchange"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "type"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "currencies"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#SnapTrade
|
3
|
+
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: api@snaptrade.com
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'spec_helper'
|
12
|
+
require 'json'
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
# Unit tests for SnapTrade::OptionsPositionCurrency
|
16
|
+
describe SnapTrade::OptionsPositionCurrency do
|
17
|
+
let(:instance) { SnapTrade::OptionsPositionCurrency.new }
|
18
|
+
|
19
|
+
describe 'test an instance of OptionsPositionCurrency' do
|
20
|
+
it 'should create an instance of OptionsPositionCurrency' do
|
21
|
+
expect(instance).to be_instance_of(SnapTrade::OptionsPositionCurrency)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
describe 'test attribute "id"' do
|
25
|
+
it 'should work' do
|
26
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "code"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "name"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -27,37 +27,43 @@ describe SnapTrade::OptionsPosition do
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test attribute "
|
30
|
+
describe 'test attribute "price"' do
|
31
31
|
it 'should work' do
|
32
32
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
describe 'test attribute "
|
36
|
+
describe 'test attribute "units"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
describe 'test attribute "
|
42
|
+
describe 'test attribute "currency"' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
describe 'test attribute "
|
48
|
+
describe 'test attribute "average_purchase_price"' do
|
49
49
|
it 'should work' do
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe 'test attribute "
|
54
|
+
describe 'test attribute "open_pnl"' do
|
55
55
|
it 'should work' do
|
56
56
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
describe 'test attribute "
|
60
|
+
describe 'test attribute "fractional_units"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "book_price"' do
|
61
67
|
it 'should work' do
|
62
68
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
69
|
end
|
@@ -63,25 +63,7 @@ describe SnapTrade::OptionsSymbol do
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
describe 'test attribute "
|
67
|
-
it 'should work' do
|
68
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
describe 'test attribute "listing_exchange"' do
|
73
|
-
it 'should work' do
|
74
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
describe 'test attribute "is_quotable"' do
|
79
|
-
it 'should work' do
|
80
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
describe 'test attribute "is_tradable"' do
|
66
|
+
describe 'test attribute "exchange_id"' do
|
85
67
|
it 'should work' do
|
86
68
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
69
|
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.
|
4
|
+
version: 1.14.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-08-
|
11
|
+
date: 2023-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -103,6 +103,8 @@ files:
|
|
103
103
|
- docs/BrokerageAuthorizationTypeReadOnlyType.md
|
104
104
|
- docs/BrokerageAuthorizationTypeType.md
|
105
105
|
- docs/BrokerageSymbol.md
|
106
|
+
- docs/BrokerageSymbolOptionSymbol.md
|
107
|
+
- docs/BrokerageSymbolSymbol.md
|
106
108
|
- docs/BrokerageType.md
|
107
109
|
- docs/CalculatedTrade.md
|
108
110
|
- docs/CashRestriction.md
|
@@ -152,6 +154,7 @@ files:
|
|
152
154
|
- docs/OptionsHoldings.md
|
153
155
|
- docs/OptionsPlaceOptionStrategyRequest.md
|
154
156
|
- docs/OptionsPosition.md
|
157
|
+
- docs/OptionsPositionCurrency.md
|
155
158
|
- docs/OptionsSymbol.md
|
156
159
|
- docs/OrderStrategyExecuteBodyOrderType.md
|
157
160
|
- docs/OrderStrategyExecuteBodyTimeInForce.md
|
@@ -248,6 +251,8 @@ files:
|
|
248
251
|
- lib/snaptrade/models/brokerage_authorization_type_read_only_type.rb
|
249
252
|
- lib/snaptrade/models/brokerage_authorization_type_type.rb
|
250
253
|
- lib/snaptrade/models/brokerage_symbol.rb
|
254
|
+
- lib/snaptrade/models/brokerage_symbol_option_symbol.rb
|
255
|
+
- lib/snaptrade/models/brokerage_symbol_symbol.rb
|
251
256
|
- lib/snaptrade/models/brokerage_type.rb
|
252
257
|
- lib/snaptrade/models/calculated_trade.rb
|
253
258
|
- lib/snaptrade/models/cash_restriction.rb
|
@@ -294,6 +299,7 @@ files:
|
|
294
299
|
- lib/snaptrade/models/options_holdings.rb
|
295
300
|
- lib/snaptrade/models/options_place_option_strategy_request.rb
|
296
301
|
- lib/snaptrade/models/options_position.rb
|
302
|
+
- lib/snaptrade/models/options_position_currency.rb
|
297
303
|
- lib/snaptrade/models/options_symbol.rb
|
298
304
|
- lib/snaptrade/models/order_strategy_execute_body_order_type.rb
|
299
305
|
- lib/snaptrade/models/order_strategy_execute_body_time_in_force.rb
|
@@ -386,7 +392,9 @@ files:
|
|
386
392
|
- spec/models/brokerage_authorization_type_spec.rb
|
387
393
|
- spec/models/brokerage_authorization_type_type_spec.rb
|
388
394
|
- spec/models/brokerage_spec.rb
|
395
|
+
- spec/models/brokerage_symbol_option_symbol_spec.rb
|
389
396
|
- spec/models/brokerage_symbol_spec.rb
|
397
|
+
- spec/models/brokerage_symbol_symbol_spec.rb
|
390
398
|
- spec/models/brokerage_type_spec.rb
|
391
399
|
- spec/models/calculated_trade_spec.rb
|
392
400
|
- spec/models/cash_restriction_spec.rb
|
@@ -432,6 +440,7 @@ files:
|
|
432
440
|
- spec/models/options_get_option_strategy_request_spec.rb
|
433
441
|
- spec/models/options_holdings_spec.rb
|
434
442
|
- spec/models/options_place_option_strategy_request_spec.rb
|
443
|
+
- spec/models/options_position_currency_spec.rb
|
435
444
|
- spec/models/options_position_spec.rb
|
436
445
|
- spec/models/options_symbol_spec.rb
|
437
446
|
- spec/models/order_strategy_execute_body_order_type_spec.rb
|
@@ -599,7 +608,9 @@ test_files:
|
|
599
608
|
- spec/models/trade_execution_status_action_spec.rb
|
600
609
|
- spec/models/account_sync_status_spec.rb
|
601
610
|
- spec/models/connections_session_events200_response_inner_spec.rb
|
611
|
+
- spec/models/brokerage_symbol_option_symbol_spec.rb
|
602
612
|
- spec/models/auth_type_spec.rb
|
613
|
+
- spec/models/options_position_currency_spec.rb
|
603
614
|
- spec/models/brokerage_authorization_type_spec.rb
|
604
615
|
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
605
616
|
- spec/models/strategy_impact_spec.rb
|
@@ -634,6 +645,7 @@ test_files:
|
|
634
645
|
- spec/models/option_chain_inner_spec.rb
|
635
646
|
- spec/models/option_leg_spec.rb
|
636
647
|
- spec/models/model401_failed_request_response_spec.rb
|
648
|
+
- spec/models/brokerage_symbol_symbol_spec.rb
|
637
649
|
- spec/models/partner_data_spec.rb
|
638
650
|
- spec/models/snap_trade_holdings_total_value_spec.rb
|
639
651
|
- spec/models/underlying_symbol_spec.rb
|