snaptrade 2.0.15 → 2.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 637abf7203f1d51cb78a3589aabb665849863b360711a1c3b3fc8d8a010506f2
4
- data.tar.gz: fed0e30bbdf6c59ff9468490e238efd3897669c13b857774cf7941af562062b3
3
+ metadata.gz: d202c0c9f1f0e2d382cfb023056110f08727158e34c12f5d61ccf70061d2a991
4
+ data.tar.gz: d6535b39985caa7570ff9a002f0284c9b2a7553ce5a8821f29db6c0e0e810836
5
5
  SHA512:
6
- metadata.gz: bbc70ee35f670dbe9a00990ebdfb656ef15ecb28615147bb4f07ddfa502fdc92716d95e71d17c9907ee41f40bfd1924bd63626c3346ff6445087e84469e52156
7
- data.tar.gz: 83fa560986aad17fed2f975e38116371a550f24d886fda46390dacab5c72c007122b23e8a296a13e6c3197bc6840a3495511b3cab277a88012b7851920c773d0
6
+ metadata.gz: 6a01fca1b933ba9aecf52ad6b779cb57bd5d04360138ae87c740b3e1bf3fdd2b301e036f7159fd979f831aedbad98cdb2b8342beb24bfd87913684bbc8894809
7
+ data.tar.gz: fa8f2dff41a36d48337f2223245a70dc40c478da18dfede9a5fe1e0b96971cabef62664b446af834a7fdf1245fb1a803ea0815397af6ef47389795e259e5432f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.14)
4
+ snaptrade (2.0.15)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
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
- [![npm](https://img.shields.io/badge/gem-v2.0.15-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.15)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.16-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.16)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](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.15'
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
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.15'
11
+ VERSION = '2.0.16'
12
12
  end
@@ -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
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.15
4
+ version: 2.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade