snaptrade 2.0.171 → 2.0.173
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 +8 -7
- data/lib/snaptrade/api/options_api.rb +20 -18
- data/lib/snaptrade/api/trading_api.rb +4 -4
- data/lib/snaptrade/models/option_quote.rb +22 -93
- data/lib/snaptrade/models/option_quote_greeks.rb +248 -0
- data/lib/snaptrade/models/order_updated_response.rb +2 -1
- data/lib/snaptrade/models/order_updated_response_order.rb +441 -0
- data/lib/snaptrade/models/position.rb +1 -1
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +2 -0
- data/spec/api/options_api_spec.rb +3 -3
- data/spec/api/trading_api_spec.rb +1 -1
- data/spec/models/option_quote_greeks_spec.rb +47 -0
- data/spec/models/option_quote_spec.rb +3 -45
- data/spec/models/order_updated_response_order_spec.rb +155 -0
- metadata +7 -1
|
@@ -0,0 +1,155 @@
|
|
|
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
|
+
=end
|
|
9
|
+
|
|
10
|
+
require 'spec_helper'
|
|
11
|
+
require 'json'
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
# Unit tests for SnapTrade::OrderUpdatedResponseOrder
|
|
15
|
+
describe SnapTrade::OrderUpdatedResponseOrder do
|
|
16
|
+
let(:instance) { SnapTrade::OrderUpdatedResponseOrder.new }
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of OrderUpdatedResponseOrder' do
|
|
19
|
+
it 'should create an instance of OrderUpdatedResponseOrder' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::OrderUpdatedResponseOrder)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "brokerage_order_id"' do
|
|
24
|
+
it 'should work' do
|
|
25
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test attribute "status"' do
|
|
30
|
+
it 'should work' do
|
|
31
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
describe 'test attribute "universal_symbol"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "option_symbol"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "quote_universal_symbol"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "quote_currency"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "action"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "total_quantity"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
describe 'test attribute "open_quantity"' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
describe 'test attribute "canceled_quantity"' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
describe 'test attribute "filled_quantity"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
describe 'test attribute "execution_price"' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
describe 'test attribute "limit_price"' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
describe 'test attribute "stop_price"' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
describe 'test attribute "order_type"' do
|
|
108
|
+
it 'should work' do
|
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
describe 'test attribute "time_in_force"' do
|
|
114
|
+
it 'should work' do
|
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
describe 'test attribute "time_placed"' do
|
|
120
|
+
it 'should work' do
|
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
describe 'test attribute "time_updated"' do
|
|
126
|
+
it 'should work' do
|
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
describe 'test attribute "time_executed"' do
|
|
132
|
+
it 'should work' do
|
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
describe 'test attribute "expiry_date"' do
|
|
138
|
+
it 'should work' do
|
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
describe 'test attribute "symbol"' do
|
|
144
|
+
it 'should work' do
|
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
describe 'test attribute "child_brokerage_order_ids"' do
|
|
150
|
+
it 'should work' do
|
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: snaptrade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.173
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
@@ -203,6 +203,7 @@ files:
|
|
|
203
203
|
- lib/snaptrade/models/option_leg.rb
|
|
204
204
|
- lib/snaptrade/models/option_leg_action.rb
|
|
205
205
|
- lib/snaptrade/models/option_quote.rb
|
|
206
|
+
- lib/snaptrade/models/option_quote_greeks.rb
|
|
206
207
|
- lib/snaptrade/models/option_strategy.rb
|
|
207
208
|
- lib/snaptrade/models/option_strategy_legs_inner.rb
|
|
208
209
|
- lib/snaptrade/models/option_type.rb
|
|
@@ -211,6 +212,7 @@ files:
|
|
|
211
212
|
- lib/snaptrade/models/options_symbol.rb
|
|
212
213
|
- lib/snaptrade/models/order_type_strict.rb
|
|
213
214
|
- lib/snaptrade/models/order_updated_response.rb
|
|
215
|
+
- lib/snaptrade/models/order_updated_response_order.rb
|
|
214
216
|
- lib/snaptrade/models/paginated_universal_activity.rb
|
|
215
217
|
- lib/snaptrade/models/pagination_details.rb
|
|
216
218
|
- lib/snaptrade/models/partner_data.rb
|
|
@@ -384,6 +386,7 @@ files:
|
|
|
384
386
|
- spec/models/option_impact_spec.rb
|
|
385
387
|
- spec/models/option_leg_action_spec.rb
|
|
386
388
|
- spec/models/option_leg_spec.rb
|
|
389
|
+
- spec/models/option_quote_greeks_spec.rb
|
|
387
390
|
- spec/models/option_quote_spec.rb
|
|
388
391
|
- spec/models/option_strategy_legs_inner_spec.rb
|
|
389
392
|
- spec/models/option_strategy_spec.rb
|
|
@@ -392,6 +395,7 @@ files:
|
|
|
392
395
|
- spec/models/options_position_spec.rb
|
|
393
396
|
- spec/models/options_symbol_spec.rb
|
|
394
397
|
- spec/models/order_type_strict_spec.rb
|
|
398
|
+
- spec/models/order_updated_response_order_spec.rb
|
|
395
399
|
- spec/models/order_updated_response_spec.rb
|
|
396
400
|
- spec/models/paginated_universal_activity_spec.rb
|
|
397
401
|
- spec/models/pagination_details_spec.rb
|
|
@@ -540,6 +544,7 @@ test_files:
|
|
|
540
544
|
- spec/models/action_strict_with_options_spec.rb
|
|
541
545
|
- spec/models/cancel_order_response_spec.rb
|
|
542
546
|
- spec/models/net_contributions_spec.rb
|
|
547
|
+
- spec/models/order_updated_response_order_spec.rb
|
|
543
548
|
- spec/models/brokerage_instrument_spec.rb
|
|
544
549
|
- spec/models/option_leg_action_spec.rb
|
|
545
550
|
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
|
@@ -602,6 +607,7 @@ test_files:
|
|
|
602
607
|
- spec/models/crypto_order_preview_spec.rb
|
|
603
608
|
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
|
604
609
|
- spec/models/account_order_record_child_brokerage_order_ids_spec.rb
|
|
610
|
+
- spec/models/option_quote_greeks_spec.rb
|
|
605
611
|
- spec/models/account_universal_activity_spec.rb
|
|
606
612
|
- spec/models/monthly_dividends_spec.rb
|
|
607
613
|
- spec/models/crypto_order_preview_estimated_fee_spec.rb
|