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 +4 -4
- 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: c06f3a8d2546ff0dc098f29b71fe409d2d47bde3
|
4
|
+
data.tar.gz: b8276b6ea6489107e1e009cb21160d45eee61e2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
11
|
+
date: 2019-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|