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 +4 -4
- data/Gemfile.lock +1 -1
- data/gen/radar/api/transaction_types.rb +31 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b8172348260d67bb1a771267d9f83bdd20abd42
|
4
|
+
data.tar.gz: e232e3fa103cd97a4b6b571ef4fc592b5cd28552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ef3c41c3bb2b75895cda37cfc2ee745b05c414c6de9301c12ea1e9ea89555c4869100cd128aaecaa07d42abf0ecebcee7a10c2f4149b81c8bed920403228884
|
7
|
+
data.tar.gz: 4d710ba4cc3384293b0ed982400571b33ccd52d8c66d8ccf958c5ed60bec221befa068fe53bb4bc1cfcc5dc03ce3d788d9276ff83205f082d84a3c50448be1f9
|
data/Gemfile.lock
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2019-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|