radar-api 0.11.2 → 0.12.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: b0dcdbbab56b1dc0d52ab97fd15fb1833e91842c
4
- data.tar.gz: 45fd2b733a4d65fa3d489a4e42f649060546f6eb
3
+ metadata.gz: 8b8172348260d67bb1a771267d9f83bdd20abd42
4
+ data.tar.gz: e232e3fa103cd97a4b6b571ef4fc592b5cd28552
5
5
  SHA512:
6
- metadata.gz: f87c4bd3b9170f151900765c8e2aa512d2716714b1ea0f0a2da620869354b7f204a9b394c6f922a7b87699ae78cb769303fab4bb094362cdf60de474f1fb9bb6
7
- data.tar.gz: '08c4c4bec459330945fd031e54e4dcae97b9143b70dd495cb20634680077743ef25530da12c30e84c4b9669eca11a6b0c667980201047e5d6b943f3da1c229dd'
6
+ metadata.gz: 9ef3c41c3bb2b75895cda37cfc2ee745b05c414c6de9301c12ea1e9ea89555c4869100cd128aaecaa07d42abf0ecebcee7a10c2f4149b81c8bed920403228884
7
+ data.tar.gz: 4d710ba4cc3384293b0ed982400571b33ccd52d8c66d8ccf958c5ed60bec221befa068fe53bb4bc1cfcc5dc03ce3d788d9276ff83205f082d84a3c50448be1f9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radar-api (0.10.0)
4
+ radar-api (0.12.0)
5
5
  thrift (~> 0.9.0)
6
6
 
7
7
  GEM
@@ -67,6 +67,8 @@ module Radar
67
67
 
68
68
  class OptionExercisePositionSnapshot; end
69
69
 
70
+ class OptionExercise; end
71
+
70
72
  class Transaction < ::Thrift::Union; end
71
73
 
72
74
  class StockSell
@@ -350,6 +352,28 @@ module Radar
350
352
  ::Thrift::Struct.generate_accessors self
351
353
  end
352
354
 
355
+ class OptionExercise
356
+ include ::Thrift::Struct, ::Thrift::Struct_Union
357
+ DATE = 1
358
+ OPTION = 2
359
+ SHARES = 3
360
+ STRIKE = 4
361
+
362
+ FIELDS = {
363
+ DATE => {:type => ::Thrift::Types::I64, :name => 'date'},
364
+ OPTION => {:type => ::Thrift::Types::STRUCT, :name => 'option', :class => ::Radar::Api::StockId},
365
+ SHARES => {:type => ::Thrift::Types::I32, :name => 'shares'},
366
+ STRIKE => {:type => ::Thrift::Types::DOUBLE, :name => 'strike'}
367
+ }
368
+
369
+ def struct_fields; FIELDS; end
370
+
371
+ def validate
372
+ end
373
+
374
+ ::Thrift::Struct.generate_accessors self
375
+ end
376
+
353
377
  class Transaction < ::Thrift::Union
354
378
  include ::Thrift::Struct_Union
355
379
  class << self
@@ -396,6 +420,10 @@ module Radar
396
420
  def option_exercise_position_snapshot(val)
397
421
  Transaction.new(:option_exercise_position_snapshot, val)
398
422
  end
423
+
424
+ def option_exercise(val)
425
+ Transaction.new(:option_exercise, val)
426
+ end
399
427
  end
400
428
 
401
429
  STOCK_BUY = 1
@@ -409,6 +437,7 @@ module Radar
409
437
  STOCK_POSITION_SNAPSHOT = 9
410
438
  OPTION_POSITION_SNAPSHOT = 10
411
439
  OPTION_EXERCISE_POSITION_SNAPSHOT = 11
440
+ OPTION_EXERCISE = 12
412
441
 
413
442
  FIELDS = {
414
443
  STOCK_BUY => {:type => ::Thrift::Types::STRUCT, :name => 'stock_buy', :class => ::Radar::Api::StockBuy, :optional => true},
@@ -421,7 +450,8 @@ module Radar
421
450
  TRANSFER => {:type => ::Thrift::Types::STRUCT, :name => 'transfer', :class => ::Radar::Api::Transfer, :optional => true},
422
451
  STOCK_POSITION_SNAPSHOT => {:type => ::Thrift::Types::STRUCT, :name => 'stock_position_snapshot', :class => ::Radar::Api::StockPositionSnapshot, :optional => true},
423
452
  OPTION_POSITION_SNAPSHOT => {:type => ::Thrift::Types::STRUCT, :name => 'option_position_snapshot', :class => ::Radar::Api::OptionPositionSnapshot, :optional => true},
424
- OPTION_EXERCISE_POSITION_SNAPSHOT => {:type => ::Thrift::Types::STRUCT, :name => 'option_exercise_position_snapshot', :class => ::Radar::Api::OptionExercisePositionSnapshot, :optional => true}
453
+ OPTION_EXERCISE_POSITION_SNAPSHOT => {:type => ::Thrift::Types::STRUCT, :name => 'option_exercise_position_snapshot', :class => ::Radar::Api::OptionExercisePositionSnapshot, :optional => true},
454
+ OPTION_EXERCISE => {:type => ::Thrift::Types::STRUCT, :name => 'option_exercise', :class => ::Radar::Api::OptionExercise, :optional => true}
425
455
  }
426
456
 
427
457
  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.11.2
4
+ version: 0.12.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-10-28 00:00:00.000000000 Z
11
+ date: 2019-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler