radar-api 0.10.1 → 0.11.0

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
  SHA1:
3
- metadata.gz: e34bfc0f84962d238bbde3c64398c409b336f351
4
- data.tar.gz: d25b723a8d6d354ba574da226387706a5a604fbe
3
+ metadata.gz: c06f3a8d2546ff0dc098f29b71fe409d2d47bde3
4
+ data.tar.gz: b8276b6ea6489107e1e009cb21160d45eee61e2e
5
5
  SHA512:
6
- metadata.gz: be6a900209e757a6eb73de1c59aff2b3ee0fdcca0067687fd6f8bd9d7901d62a551cfa306dfd64994a6bfff8e24d753253eaaffd546a8f96dda9d78f75f83c90
7
- data.tar.gz: 359faca230256d85af90688bb05f9fbd1b75c5225f04cb9116c9a404a8718c121c724329a46a2c5bc3d347434fc15dc8b84475467fd909dce0b724f820f332fb
6
+ metadata.gz: 3411da78ba1d2401b52e1e948e312b56c478eb733e81f5b17855d2fafd8078ae2479cbe3297a8d583be74a9a3eb62958b292199b2a8a75622e4587626f919acc
7
+ data.tar.gz: 8dfa9d4567c626df75404b768847f4511444bdc2baec9e9070bc85d91da85a0e9a1373451fb5493e5d735c855cfb119064a86874b2c53b7ba200c94cf5f869b4
@@ -54,6 +54,8 @@ module Radar
54
54
 
55
55
  class Transfer; end
56
56
 
57
+ class PositionSnapshot; end
58
+
57
59
  class Transaction < ::Thrift::Union; end
58
60
 
59
61
  class StockSell
@@ -262,6 +264,28 @@ module Radar
262
264
  ::Thrift::Struct.generate_accessors self
263
265
  end
264
266
 
267
+ class PositionSnapshot
268
+ include ::Thrift::Struct, ::Thrift::Struct_Union
269
+ DATE = 1
270
+ STOCK = 2
271
+ SHARES = 3
272
+ PRICE = 4
273
+
274
+ FIELDS = {
275
+ DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
276
+ STOCK => {:type => ::Thrift::Types::STRUCT, :name => 'stock', :class => ::Radar::Api::StockId},
277
+ SHARES => {:type => ::Thrift::Types::I32, :name => 'shares'},
278
+ PRICE => {:type => ::Thrift::Types::DOUBLE, :name => 'price'}
279
+ }
280
+
281
+ def struct_fields; FIELDS; end
282
+
283
+ def validate
284
+ end
285
+
286
+ ::Thrift::Struct.generate_accessors self
287
+ end
288
+
265
289
  class Transaction < ::Thrift::Union
266
290
  include ::Thrift::Struct_Union
267
291
  class << self
@@ -296,6 +320,10 @@ module Radar
296
320
  def transfer(val)
297
321
  Transaction.new(:transfer, val)
298
322
  end
323
+
324
+ def position_snapshot(val)
325
+ Transaction.new(:position_snapshot, val)
326
+ end
299
327
  end
300
328
 
301
329
  STOCK_BUY = 1
@@ -306,6 +334,7 @@ module Radar
306
334
  STOCK_OPTION = 6
307
335
  SUBSCRIPTION = 7
308
336
  TRANSFER = 8
337
+ POSITION_SNAPSHOT = 9
309
338
 
310
339
  FIELDS = {
311
340
  STOCK_BUY => {:type => ::Thrift::Types::STRUCT, :name => 'stock_buy', :class => ::Radar::Api::StockBuy, :optional => true},
@@ -315,7 +344,8 @@ module Radar
315
344
  STOCK_COMMISSION_EXPENSE => {:type => ::Thrift::Types::STRUCT, :name => 'stock_commission_expense', :class => ::Radar::Api::CommissionExpense, :optional => true},
316
345
  STOCK_OPTION => {:type => ::Thrift::Types::STRUCT, :name => 'stock_option', :class => ::Radar::Api::StockOption, :optional => true},
317
346
  SUBSCRIPTION => {:type => ::Thrift::Types::STRUCT, :name => 'subscription', :class => ::Radar::Api::Subscription, :optional => true},
318
- TRANSFER => {:type => ::Thrift::Types::STRUCT, :name => 'transfer', :class => ::Radar::Api::Transfer, :optional => true}
347
+ TRANSFER => {:type => ::Thrift::Types::STRUCT, :name => 'transfer', :class => ::Radar::Api::Transfer, :optional => true},
348
+ POSITION_SNAPSHOT => {:type => ::Thrift::Types::STRUCT, :name => 'position_snapshot', :class => ::Radar::Api::PositionSnapshot, :optional => true}
319
349
  }
320
350
 
321
351
  def struct_fields; FIELDS; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aizim Kelmanson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler