snaptrade 2.0.15 → 2.0.16
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 +2 -2
- data/lib/snaptrade/models/account_order_record.rb +11 -1
- data/lib/snaptrade/version.rb +1 -1
- data/spec/models/account_order_record_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d202c0c9f1f0e2d382cfb023056110f08727158e34c12f5d61ccf70061d2a991
|
4
|
+
data.tar.gz: d6535b39985caa7570ff9a002f0284c9b2a7553ce5a8821f29db6c0e0e810836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a01fca1b933ba9aecf52ad6b779cb57bd5d04360138ae87c740b3e1bf3fdd2b301e036f7159fd979f831aedbad98cdb2b8342beb24bfd87913684bbc8894809
|
7
|
+
data.tar.gz: fa8f2dff41a36d48337f2223245a70dc40c478da18dfede9a5fe1e0b96971cabef62664b446af834a7fdf1245fb1a803ea0815397af6ef47389795e259e5432f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
8
8
|
|
9
|
-
[](https://rubygems.org/gems/snaptrade/versions/2.0.16)
|
10
10
|
[](https://snaptrade.com/)
|
11
11
|
|
12
12
|
</div>
|
@@ -69,7 +69,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
69
69
|
Add to Gemfile:
|
70
70
|
|
71
71
|
```ruby
|
72
|
-
gem 'snaptrade', '~> 2.0.
|
72
|
+
gem 'snaptrade', '~> 2.0.16'
|
73
73
|
```
|
74
74
|
|
75
75
|
## Getting Started<a id="getting-started"></a>
|
@@ -58,6 +58,8 @@ module SnapTrade
|
|
58
58
|
|
59
59
|
attr_accessor :time_updated
|
60
60
|
|
61
|
+
attr_accessor :time_executed
|
62
|
+
|
61
63
|
# Time
|
62
64
|
attr_accessor :expiry_date
|
63
65
|
|
@@ -81,6 +83,7 @@ module SnapTrade
|
|
81
83
|
:'time_in_force' => :'time_in_force',
|
82
84
|
:'time_placed' => :'time_placed',
|
83
85
|
:'time_updated' => :'time_updated',
|
86
|
+
:'time_executed' => :'time_executed',
|
84
87
|
:'expiry_date' => :'expiry_date'
|
85
88
|
}
|
86
89
|
end
|
@@ -110,6 +113,7 @@ module SnapTrade
|
|
110
113
|
:'time_in_force' => :'String',
|
111
114
|
:'time_placed' => :'String',
|
112
115
|
:'time_updated' => :'String',
|
116
|
+
:'time_executed' => :'String',
|
113
117
|
:'expiry_date' => :'String'
|
114
118
|
}
|
115
119
|
end
|
@@ -125,6 +129,7 @@ module SnapTrade
|
|
125
129
|
:'limit_price',
|
126
130
|
:'stop_price',
|
127
131
|
:'time_updated',
|
132
|
+
:'time_executed',
|
128
133
|
])
|
129
134
|
end
|
130
135
|
|
@@ -211,6 +216,10 @@ module SnapTrade
|
|
211
216
|
self.time_updated = attributes[:'time_updated']
|
212
217
|
end
|
213
218
|
|
219
|
+
if attributes.key?(:'time_executed')
|
220
|
+
self.time_executed = attributes[:'time_executed']
|
221
|
+
end
|
222
|
+
|
214
223
|
if attributes.key?(:'expiry_date')
|
215
224
|
self.expiry_date = attributes[:'expiry_date']
|
216
225
|
end
|
@@ -251,6 +260,7 @@ module SnapTrade
|
|
251
260
|
time_in_force == o.time_in_force &&
|
252
261
|
time_placed == o.time_placed &&
|
253
262
|
time_updated == o.time_updated &&
|
263
|
+
time_executed == o.time_executed &&
|
254
264
|
expiry_date == o.expiry_date
|
255
265
|
end
|
256
266
|
|
@@ -263,7 +273,7 @@ module SnapTrade
|
|
263
273
|
# Calculates hash code according to all attributes.
|
264
274
|
# @return [Integer] Hash code
|
265
275
|
def hash
|
266
|
-
[brokerage_order_id, status, symbol, universal_symbol, option_symbol, action, total_quantity, open_quantity, canceled_quantity, filled_quantity, execution_price, limit_price, stop_price, order_type, time_in_force, time_placed, time_updated, expiry_date].hash
|
276
|
+
[brokerage_order_id, status, symbol, universal_symbol, option_symbol, action, total_quantity, open_quantity, canceled_quantity, filled_quantity, execution_price, limit_price, stop_price, order_type, time_in_force, time_placed, time_updated, time_executed, expiry_date].hash
|
267
277
|
end
|
268
278
|
|
269
279
|
# Builds the object from hash
|
data/lib/snaptrade/version.rb
CHANGED
@@ -122,6 +122,12 @@ describe SnapTrade::AccountOrderRecord do
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
+
describe 'test attribute "time_executed"' 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
|
+
|
125
131
|
describe 'test attribute "expiry_date"' do
|
126
132
|
it 'should work' do
|
127
133
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|