Class: KabustationClient::BoardSuccess

Inherits:
Object
  • Object
show all
Defined in:
lib/kabustation_client/models/board_success.rb

Overview

下記にあるBIDとASKとは、トレーダー目線から見た場合の値であるため、BidPrice=Sell1のPrice、AskPrice=Buy1のPriceという数値となります。

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ BoardSuccess

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
# File 'lib/kabustation_client/models/board_success.rb', line 339

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `KabustationClient::BoardSuccess` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `KabustationClient::BoardSuccess`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'symbol')
    self.symbol = attributes[:'symbol']
  end

  if attributes.key?(:'symbol_name')
    self.symbol_name = attributes[:'symbol_name']
  end

  if attributes.key?(:'exchange')
    self.exchange = attributes[:'exchange']
  end

  if attributes.key?(:'exchange_name')
    self.exchange_name = attributes[:'exchange_name']
  end

  if attributes.key?(:'current_price')
    self.current_price = attributes[:'current_price']
  end

  if attributes.key?(:'current_price_time')
    self.current_price_time = attributes[:'current_price_time']
  end

  if attributes.key?(:'current_price_change_status')
    self.current_price_change_status = attributes[:'current_price_change_status']
  end

  if attributes.key?(:'current_price_status')
    self.current_price_status = attributes[:'current_price_status']
  end

  if attributes.key?(:'calc_price')
    self.calc_price = attributes[:'calc_price']
  end

  if attributes.key?(:'previous_close')
    self.previous_close = attributes[:'previous_close']
  end

  if attributes.key?(:'previous_close_time')
    self.previous_close_time = attributes[:'previous_close_time']
  end

  if attributes.key?(:'change_previous_close')
    self.change_previous_close = attributes[:'change_previous_close']
  end

  if attributes.key?(:'change_previous_close_per')
    self.change_previous_close_per = attributes[:'change_previous_close_per']
  end

  if attributes.key?(:'opening_price')
    self.opening_price = attributes[:'opening_price']
  end

  if attributes.key?(:'opening_price_time')
    self.opening_price_time = attributes[:'opening_price_time']
  end

  if attributes.key?(:'high_price')
    self.high_price = attributes[:'high_price']
  end

  if attributes.key?(:'high_price_time')
    self.high_price_time = attributes[:'high_price_time']
  end

  if attributes.key?(:'low_price')
    self.low_price = attributes[:'low_price']
  end

  if attributes.key?(:'low_price_time')
    self.low_price_time = attributes[:'low_price_time']
  end

  if attributes.key?(:'trading_volume')
    self.trading_volume = attributes[:'trading_volume']
  end

  if attributes.key?(:'trading_volume_time')
    self.trading_volume_time = attributes[:'trading_volume_time']
  end

  if attributes.key?(:'vwap')
    self.vwap = attributes[:'vwap']
  end

  if attributes.key?(:'trading_value')
    self.trading_value = attributes[:'trading_value']
  end

  if attributes.key?(:'bid_qty')
    self.bid_qty = attributes[:'bid_qty']
  end

  if attributes.key?(:'bid_price')
    self.bid_price = attributes[:'bid_price']
  end

  if attributes.key?(:'bid_time')
    self.bid_time = attributes[:'bid_time']
  end

  if attributes.key?(:'bid_sign')
    self.bid_sign = attributes[:'bid_sign']
  end

  if attributes.key?(:'market_order_sell_qty')
    self.market_order_sell_qty = attributes[:'market_order_sell_qty']
  end

  if attributes.key?(:'sell1')
    self.sell1 = attributes[:'sell1']
  end

  if attributes.key?(:'sell2')
    self.sell2 = attributes[:'sell2']
  end

  if attributes.key?(:'sell3')
    self.sell3 = attributes[:'sell3']
  end

  if attributes.key?(:'sell4')
    self.sell4 = attributes[:'sell4']
  end

  if attributes.key?(:'sell5')
    self.sell5 = attributes[:'sell5']
  end

  if attributes.key?(:'sell6')
    self.sell6 = attributes[:'sell6']
  end

  if attributes.key?(:'sell7')
    self.sell7 = attributes[:'sell7']
  end

  if attributes.key?(:'sell8')
    self.sell8 = attributes[:'sell8']
  end

  if attributes.key?(:'sell9')
    self.sell9 = attributes[:'sell9']
  end

  if attributes.key?(:'sell10')
    self.sell10 = attributes[:'sell10']
  end

  if attributes.key?(:'ask_qty')
    self.ask_qty = attributes[:'ask_qty']
  end

  if attributes.key?(:'ask_price')
    self.ask_price = attributes[:'ask_price']
  end

  if attributes.key?(:'ask_time')
    self.ask_time = attributes[:'ask_time']
  end

  if attributes.key?(:'ask_sign')
    self.ask_sign = attributes[:'ask_sign']
  end

  if attributes.key?(:'market_order_buy_qty')
    self.market_order_buy_qty = attributes[:'market_order_buy_qty']
  end

  if attributes.key?(:'buy1')
    self.buy1 = attributes[:'buy1']
  end

  if attributes.key?(:'buy2')
    self.buy2 = attributes[:'buy2']
  end

  if attributes.key?(:'buy3')
    self.buy3 = attributes[:'buy3']
  end

  if attributes.key?(:'buy4')
    self.buy4 = attributes[:'buy4']
  end

  if attributes.key?(:'buy5')
    self.buy5 = attributes[:'buy5']
  end

  if attributes.key?(:'buy6')
    self.buy6 = attributes[:'buy6']
  end

  if attributes.key?(:'buy7')
    self.buy7 = attributes[:'buy7']
  end

  if attributes.key?(:'buy8')
    self.buy8 = attributes[:'buy8']
  end

  if attributes.key?(:'buy9')
    self.buy9 = attributes[:'buy9']
  end

  if attributes.key?(:'buy10')
    self.buy10 = attributes[:'buy10']
  end

  if attributes.key?(:'over_sell_qty')
    self.over_sell_qty = attributes[:'over_sell_qty']
  end

  if attributes.key?(:'under_buy_qty')
    self.under_buy_qty = attributes[:'under_buy_qty']
  end

  if attributes.key?(:'total_market_value')
    self.total_market_value = attributes[:'total_market_value']
  end

  if attributes.key?(:'clearing_price')
    self.clearing_price = attributes[:'clearing_price']
  end

  if attributes.key?(:'iv')
    self.iv = attributes[:'iv']
  end

  if attributes.key?(:'gamma')
    self.gamma = attributes[:'gamma']
  end

  if attributes.key?(:'theta')
    self.theta = attributes[:'theta']
  end

  if attributes.key?(:'vega')
    self.vega = attributes[:'vega']
  end

  if attributes.key?(:'delta')
    self.delta = attributes[:'delta']
  end

  if attributes.key?(:'security_type')
    self.security_type = attributes[:'security_type']
  end
end

Instance Attribute Details

#ask_priceObject

最良買気配値段 ※①
※株式・先物・オプション銘柄の場合のみ



127
128
129
# File 'lib/kabustation_client/models/board_success.rb', line 127

def ask_price
  @ask_price
end

#ask_qtyObject

最良買気配数量 ※①
※株式・先物・オプション銘柄の場合のみ



124
125
126
# File 'lib/kabustation_client/models/board_success.rb', line 124

def ask_qty
  @ask_qty
end

#ask_signObject

最良買気配フラグ ※①
※株式・先物・オプション銘柄の場合のみ <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>0000</td> <td>事象なし</td> </tr> <tr> <td>0101</td> <td>一般気配</td> </tr> <tr> <td>0102</td> <td>特別気配</td> </tr> <tr> <td>0103</td> <td>注意気配</td> </tr> <tr> <td>0107</td> <td>寄前気配</td> </tr> <tr> <td>0108</td> <td>停止前特別気配</td> </tr> <tr> <td>0109</td> <td>引け後気配</td> </tr> <tr> <td>0116</td> <td>寄前気配約定成立ポイントなし</td> </tr> <tr> <td>0117</td> <td>寄前気配約定成立ポイントあり</td> </tr> <tr> <td>0118</td> <td>連続約定気配</td> </tr> <tr> <td>0119</td> <td>停止前の連続約定気配</td> </tr> <tr> <td>0120</td> <td>買い上がり売り下がり中</td> </tr> </tbody> </table>



133
134
135
# File 'lib/kabustation_client/models/board_success.rb', line 133

def ask_sign
  @ask_sign
end

#ask_timeObject

最良買気配時刻 ※①
※株式銘柄の場合のみ



130
131
132
# File 'lib/kabustation_client/models/board_success.rb', line 130

def ask_time
  @ask_time
end

#bid_priceObject

最良売気配値段 ※①
※株式・先物・オプション銘柄の場合のみ



92
93
94
# File 'lib/kabustation_client/models/board_success.rb', line 92

def bid_price
  @bid_price
end

#bid_qtyObject

最良売気配数量 ※①
※株式・先物・オプション銘柄の場合のみ



89
90
91
# File 'lib/kabustation_client/models/board_success.rb', line 89

def bid_qty
  @bid_qty
end

#bid_signObject

最良売気配フラグ ※①
※株式・先物・オプション銘柄の場合のみ <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>0000</td> <td>事象なし</td> </tr> <tr> <td>0101</td> <td>一般気配</td> </tr> <tr> <td>0102</td> <td>特別気配</td> </tr> <tr> <td>0103</td> <td>注意気配</td> </tr> <tr> <td>0107</td> <td>寄前気配</td> </tr> <tr> <td>0108</td> <td>停止前特別気配</td> </tr> <tr> <td>0109</td> <td>引け後気配</td> </tr> <tr> <td>0116</td> <td>寄前気配約定成立ポイントなし</td> </tr> <tr> <td>0117</td> <td>寄前気配約定成立ポイントあり</td> </tr> <tr> <td>0118</td> <td>連続約定気配</td> </tr> <tr> <td>0119</td> <td>停止前の連続約定気配</td> </tr> <tr> <td>0120</td> <td>買い上がり売り下がり中</td> </tr> </tbody> </table>



98
99
100
# File 'lib/kabustation_client/models/board_success.rb', line 98

def bid_sign
  @bid_sign
end

#bid_timeObject

最良売気配時刻 ※①
※株式銘柄の場合のみ



95
96
97
# File 'lib/kabustation_client/models/board_success.rb', line 95

def bid_time
  @bid_time
end

#buy1Object

Returns the value of attribute buy1.



138
139
140
# File 'lib/kabustation_client/models/board_success.rb', line 138

def buy1
  @buy1
end

#buy10Object

Returns the value of attribute buy10.



156
157
158
# File 'lib/kabustation_client/models/board_success.rb', line 156

def buy10
  @buy10
end

#buy2Object

Returns the value of attribute buy2.



140
141
142
# File 'lib/kabustation_client/models/board_success.rb', line 140

def buy2
  @buy2
end

#buy3Object

Returns the value of attribute buy3.



142
143
144
# File 'lib/kabustation_client/models/board_success.rb', line 142

def buy3
  @buy3
end

#buy4Object

Returns the value of attribute buy4.



144
145
146
# File 'lib/kabustation_client/models/board_success.rb', line 144

def buy4
  @buy4
end

#buy5Object

Returns the value of attribute buy5.



146
147
148
# File 'lib/kabustation_client/models/board_success.rb', line 146

def buy5
  @buy5
end

#buy6Object

Returns the value of attribute buy6.



148
149
150
# File 'lib/kabustation_client/models/board_success.rb', line 148

def buy6
  @buy6
end

#buy7Object

Returns the value of attribute buy7.



150
151
152
# File 'lib/kabustation_client/models/board_success.rb', line 150

def buy7
  @buy7
end

#buy8Object

Returns the value of attribute buy8.



152
153
154
# File 'lib/kabustation_client/models/board_success.rb', line 152

def buy8
  @buy8
end

#buy9Object

Returns the value of attribute buy9.



154
155
156
# File 'lib/kabustation_client/models/board_success.rb', line 154

def buy9
  @buy9
end

#calc_priceObject

計算用現値



44
45
46
# File 'lib/kabustation_client/models/board_success.rb', line 44

def calc_price
  @calc_price
end

#change_previous_closeObject

前日比



53
54
55
# File 'lib/kabustation_client/models/board_success.rb', line 53

def change_previous_close
  @change_previous_close
end

#change_previous_close_perObject

騰落率



56
57
58
# File 'lib/kabustation_client/models/board_success.rb', line 56

def change_previous_close_per
  @change_previous_close_per
end

#clearing_priceObject

清算値
※先物銘柄の場合のみ



168
169
170
# File 'lib/kabustation_client/models/board_success.rb', line 168

def clearing_price
  @clearing_price
end

#current_priceObject

現値



32
33
34
# File 'lib/kabustation_client/models/board_success.rb', line 32

def current_price
  @current_price
end

#current_price_change_statusObject

現値前値比較 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>0000</td> <td>事象なし</td> </tr> <tr> <td>0056</td> <td>変わらず</td> </tr> <tr> <td>0057</td> <td>UP</td> </tr> <tr> <td>0058</td> <td>DOWN</td> </tr> <tr> <td>0059</td> <td>中断板寄り後の初値</td> </tr> <tr> <td>0060</td> <td>ザラバ引け</td> </tr> <tr> <td>0061</td> <td>板寄り引け</td> </tr> <tr> <td>0062</td> <td>中断引け</td> </tr> <tr> <td>0063</td> <td>ダウン引け</td> </tr> <tr> <td>0064</td> <td>逆転終値</td> </tr> <tr> <td>0066</td> <td>特別気配引け</td> </tr> <tr> <td>0067</td> <td>一時留保引け</td> </tr> <tr> <td>0068</td> <td>売買停止引け</td> </tr> <tr> <td>0069</td> <td>サーキットブレーカ引け</td> </tr> <tr> <td>0431</td> <td>ダイナミックサーキットブレーカ引け</td> </tr> </tbody> </table>



38
39
40
# File 'lib/kabustation_client/models/board_success.rb', line 38

def current_price_change_status
  @current_price_change_status
end

#current_price_statusObject

現値ステータス <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>現値</td> </tr> <tr> <td>2</td> <td>不連続歩み</td> </tr> <tr> <td>3</td> <td>板寄せ</td> </tr> <tr> <td>4</td> <td>システム障害</td> </tr> <tr> <td>5</td> <td>中断</td> </tr> <tr> <td>6</td> <td>売買停止</td> </tr> <tr> <td>7</td> <td>売買停止・システム停止解除</td> </tr> <tr> <td>8</td> <td>終値</td> </tr> <tr> <td>9</td> <td>システム停止</td> </tr> <tr> <td>10</td> <td>概算値</td> </tr> <tr> <td>11</td> <td>参考値</td> </tr> <tr> <td>12</td> <td>サーキットブレイク実施中</td> </tr> <tr> <td>13</td> <td>システム障害解除</td> </tr> <tr> <td>14</td> <td>サーキットブレイク解除</td> </tr> <tr> <td>15</td> <td>中断解除</td> </tr> <tr> <td>16</td> <td>一時留保中</td> </tr> <tr> <td>17</td> <td>一時留保解除</td> </tr> <tr> <td>18</td> <td>ファイル障害</td> </tr> <tr> <td>19</td> <td>ファイル障害解除</td> </tr> <tr> <td>20</td> <td>Spread/Strategy</td> </tr> <tr> <td>21</td> <td>ダイナミックサーキットブレイク発動</td> </tr> <tr> <td>22</td> <td>ダイナミックサーキットブレイク解除</td> </tr> <tr> <td>23</td> <td>板寄せ約定</td> </tr> </tbody> </table>



41
42
43
# File 'lib/kabustation_client/models/board_success.rb', line 41

def current_price_status
  @current_price_status
end

#current_price_timeObject

現値時刻



35
36
37
# File 'lib/kabustation_client/models/board_success.rb', line 35

def current_price_time
  @current_price_time
end

#deltaObject

デルタ
※オプション銘柄かつ日通しの場合のみ



183
184
185
# File 'lib/kabustation_client/models/board_success.rb', line 183

def delta
  @delta
end

#exchangeObject

市場コード
※株式・先物・オプション銘柄の場合のみ <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>東証</td> </tr> <tr> <td>3</td> <td>名証</td> </tr> <tr> <td>5</td> <td>福証</td> </tr> <tr> <td>6</td> <td>札証</td> </tr> <tr> <td>2</td> <td>日通し</td> </tr> <tr> <td>23</td> <td>日中</td> </tr> <tr> <td>24</td> <td>夜間</td> </tr> </tbody> </table>



26
27
28
# File 'lib/kabustation_client/models/board_success.rb', line 26

def exchange
  @exchange
end

#exchange_nameObject

市場名称
※株式・先物・オプション銘柄の場合のみ



29
30
31
# File 'lib/kabustation_client/models/board_success.rb', line 29

def exchange_name
  @exchange_name
end

#gammaObject

ガンマ
※オプション銘柄かつ日通しの場合のみ



174
175
176
# File 'lib/kabustation_client/models/board_success.rb', line 174

def gamma
  @gamma
end

#high_priceObject

高値



65
66
67
# File 'lib/kabustation_client/models/board_success.rb', line 65

def high_price
  @high_price
end

#high_price_timeObject

高値時刻



68
69
70
# File 'lib/kabustation_client/models/board_success.rb', line 68

def high_price_time
  @high_price_time
end

#ivObject

インプライド・ボラティリティ
※オプション銘柄かつ日通しの場合のみ



171
172
173
# File 'lib/kabustation_client/models/board_success.rb', line 171

def iv
  @iv
end

#low_priceObject

安値



71
72
73
# File 'lib/kabustation_client/models/board_success.rb', line 71

def low_price
  @low_price
end

#low_price_timeObject

安値時刻



74
75
76
# File 'lib/kabustation_client/models/board_success.rb', line 74

def low_price_time
  @low_price_time
end

#market_order_buy_qtyObject

買成行数量
※株式銘柄の場合のみ



136
137
138
# File 'lib/kabustation_client/models/board_success.rb', line 136

def market_order_buy_qty
  @market_order_buy_qty
end

#market_order_sell_qtyObject

売成行数量
※株式銘柄の場合のみ



101
102
103
# File 'lib/kabustation_client/models/board_success.rb', line 101

def market_order_sell_qty
  @market_order_sell_qty
end

#opening_priceObject

始値



59
60
61
# File 'lib/kabustation_client/models/board_success.rb', line 59

def opening_price
  @opening_price
end

#opening_price_timeObject

始値時刻



62
63
64
# File 'lib/kabustation_client/models/board_success.rb', line 62

def opening_price_time
  @opening_price_time
end

#over_sell_qtyObject

OVER気配数量
※株式銘柄の場合のみ



159
160
161
# File 'lib/kabustation_client/models/board_success.rb', line 159

def over_sell_qty
  @over_sell_qty
end

#previous_closeObject

前日終値



47
48
49
# File 'lib/kabustation_client/models/board_success.rb', line 47

def previous_close
  @previous_close
end

#previous_close_timeObject

前日終値日付



50
51
52
# File 'lib/kabustation_client/models/board_success.rb', line 50

def previous_close_time
  @previous_close_time
end

#security_typeObject

銘柄種別 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>0</td> <td>指数</td> </tr> <tr> <td>1</td> <td>現物</td> </tr> <tr> <td>101</td> <td>日経225先物</td> </tr> <tr> <td>103</td> <td>日経225OP</td> </tr> <tr> <td>107</td> <td>TOPIX先物</td> </tr> <tr> <td>121</td> <td>JPX400先物</td> </tr> <tr> <td>144</td> <td>NYダウ</td> </tr> <tr> <td>145</td> <td>日経平均VI</td> </tr> <tr> <td>154</td> <td>グロース250先物</td> </tr> <tr> <td>155</td> <td>TOPIX_REIT</td> </tr> <tr> <td>171</td> <td>TOPIX CORE30</td> </tr> <tr> <td>901</td> <td>日経平均225ミニ先物</td> </tr> <tr> <td>907</td> <td>TOPIXミニ先物</td> </tr> </tbody> </table>



186
187
188
# File 'lib/kabustation_client/models/board_success.rb', line 186

def security_type
  @security_type
end

#sell1Object

Returns the value of attribute sell1.



103
104
105
# File 'lib/kabustation_client/models/board_success.rb', line 103

def sell1
  @sell1
end

#sell10Object

Returns the value of attribute sell10.



121
122
123
# File 'lib/kabustation_client/models/board_success.rb', line 121

def sell10
  @sell10
end

#sell2Object

Returns the value of attribute sell2.



105
106
107
# File 'lib/kabustation_client/models/board_success.rb', line 105

def sell2
  @sell2
end

#sell3Object

Returns the value of attribute sell3.



107
108
109
# File 'lib/kabustation_client/models/board_success.rb', line 107

def sell3
  @sell3
end

#sell4Object

Returns the value of attribute sell4.



109
110
111
# File 'lib/kabustation_client/models/board_success.rb', line 109

def sell4
  @sell4
end

#sell5Object

Returns the value of attribute sell5.



111
112
113
# File 'lib/kabustation_client/models/board_success.rb', line 111

def sell5
  @sell5
end

#sell6Object

Returns the value of attribute sell6.



113
114
115
# File 'lib/kabustation_client/models/board_success.rb', line 113

def sell6
  @sell6
end

#sell7Object

Returns the value of attribute sell7.



115
116
117
# File 'lib/kabustation_client/models/board_success.rb', line 115

def sell7
  @sell7
end

#sell8Object

Returns the value of attribute sell8.



117
118
119
# File 'lib/kabustation_client/models/board_success.rb', line 117

def sell8
  @sell8
end

#sell9Object

Returns the value of attribute sell9.



119
120
121
# File 'lib/kabustation_client/models/board_success.rb', line 119

def sell9
  @sell9
end

#symbolObject

銘柄コード



20
21
22
# File 'lib/kabustation_client/models/board_success.rb', line 20

def symbol
  @symbol
end

#symbol_nameObject

銘柄名



23
24
25
# File 'lib/kabustation_client/models/board_success.rb', line 23

def symbol_name
  @symbol_name
end

#thetaObject

セータ
※オプション銘柄かつ日通しの場合のみ



177
178
179
# File 'lib/kabustation_client/models/board_success.rb', line 177

def theta
  @theta
end

#total_market_valueObject

時価総額
※株式銘柄の場合のみ



165
166
167
# File 'lib/kabustation_client/models/board_success.rb', line 165

def total_market_value
  @total_market_value
end

#trading_valueObject

売買代金
※株式・先物・オプション銘柄の場合のみ



86
87
88
# File 'lib/kabustation_client/models/board_success.rb', line 86

def trading_value
  @trading_value
end

#trading_volumeObject

売買高
※株式・先物・オプション銘柄の場合のみ



77
78
79
# File 'lib/kabustation_client/models/board_success.rb', line 77

def trading_volume
  @trading_volume
end

#trading_volume_timeObject

売買高時刻
※株式・先物・オプション銘柄の場合のみ



80
81
82
# File 'lib/kabustation_client/models/board_success.rb', line 80

def trading_volume_time
  @trading_volume_time
end

#under_buy_qtyObject

UNDER気配数量
※株式銘柄の場合のみ



162
163
164
# File 'lib/kabustation_client/models/board_success.rb', line 162

def under_buy_qty
  @under_buy_qty
end

#vegaObject

ベガ
※オプション銘柄かつ日通しの場合のみ



180
181
182
# File 'lib/kabustation_client/models/board_success.rb', line 180

def vega
  @vega
end

#vwapObject

売買高加重平均価格(VWAP)
※株式・先物・オプション銘柄の場合のみ



83
84
85
# File 'lib/kabustation_client/models/board_success.rb', line 83

def vwap
  @vwap
end

Class Method Details

._deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
# File 'lib/kabustation_client/models/board_success.rb', line 729

def self._deserialize(type, value)
  case type.to_sym
  when :Time
    Time.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    # models (e.g. Pet) or oneOf
    klass = KabustationClient.const_get(type)
    klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



258
259
260
# File 'lib/kabustation_client/models/board_success.rb', line 258

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# File 'lib/kabustation_client/models/board_success.rb', line 189

def self.attribute_map
  {
    :'symbol' => :'Symbol',
    :'symbol_name' => :'SymbolName',
    :'exchange' => :'Exchange',
    :'exchange_name' => :'ExchangeName',
    :'current_price' => :'CurrentPrice',
    :'current_price_time' => :'CurrentPriceTime',
    :'current_price_change_status' => :'CurrentPriceChangeStatus',
    :'current_price_status' => :'CurrentPriceStatus',
    :'calc_price' => :'CalcPrice',
    :'previous_close' => :'PreviousClose',
    :'previous_close_time' => :'PreviousCloseTime',
    :'change_previous_close' => :'ChangePreviousClose',
    :'change_previous_close_per' => :'ChangePreviousClosePer',
    :'opening_price' => :'OpeningPrice',
    :'opening_price_time' => :'OpeningPriceTime',
    :'high_price' => :'HighPrice',
    :'high_price_time' => :'HighPriceTime',
    :'low_price' => :'LowPrice',
    :'low_price_time' => :'LowPriceTime',
    :'trading_volume' => :'TradingVolume',
    :'trading_volume_time' => :'TradingVolumeTime',
    :'vwap' => :'VWAP',
    :'trading_value' => :'TradingValue',
    :'bid_qty' => :'BidQty',
    :'bid_price' => :'BidPrice',
    :'bid_time' => :'BidTime',
    :'bid_sign' => :'BidSign',
    :'market_order_sell_qty' => :'MarketOrderSellQty',
    :'sell1' => :'Sell1',
    :'sell2' => :'Sell2',
    :'sell3' => :'Sell3',
    :'sell4' => :'Sell4',
    :'sell5' => :'Sell5',
    :'sell6' => :'Sell6',
    :'sell7' => :'Sell7',
    :'sell8' => :'Sell8',
    :'sell9' => :'Sell9',
    :'sell10' => :'Sell10',
    :'ask_qty' => :'AskQty',
    :'ask_price' => :'AskPrice',
    :'ask_time' => :'AskTime',
    :'ask_sign' => :'AskSign',
    :'market_order_buy_qty' => :'MarketOrderBuyQty',
    :'buy1' => :'Buy1',
    :'buy2' => :'Buy2',
    :'buy3' => :'Buy3',
    :'buy4' => :'Buy4',
    :'buy5' => :'Buy5',
    :'buy6' => :'Buy6',
    :'buy7' => :'Buy7',
    :'buy8' => :'Buy8',
    :'buy9' => :'Buy9',
    :'buy10' => :'Buy10',
    :'over_sell_qty' => :'OverSellQty',
    :'under_buy_qty' => :'UnderBuyQty',
    :'total_market_value' => :'TotalMarketValue',
    :'clearing_price' => :'ClearingPrice',
    :'iv' => :'IV',
    :'gamma' => :'Gamma',
    :'theta' => :'Theta',
    :'vega' => :'Vega',
    :'delta' => :'Delta',
    :'security_type' => :'SecurityType'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
# File 'lib/kabustation_client/models/board_success.rb', line 705

def self.build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  transformed_hash = {}
  openapi_types.each_pair do |key, type|
    if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = nil
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[attribute_map[key]].is_a?(Array)
        transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
      end
    elsif !attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
    end
  end
  new(transformed_hash)
end

.openapi_nullableObject

List of attributes with nullable: true



332
333
334
335
# File 'lib/kabustation_client/models/board_success.rb', line 332

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
# File 'lib/kabustation_client/models/board_success.rb', line 263

def self.openapi_types
  {
    :'symbol' => :'String',
    :'symbol_name' => :'String',
    :'exchange' => :'Integer',
    :'exchange_name' => :'String',
    :'current_price' => :'Float',
    :'current_price_time' => :'Time',
    :'current_price_change_status' => :'String',
    :'current_price_status' => :'Integer',
    :'calc_price' => :'Float',
    :'previous_close' => :'Float',
    :'previous_close_time' => :'Time',
    :'change_previous_close' => :'Float',
    :'change_previous_close_per' => :'Float',
    :'opening_price' => :'Float',
    :'opening_price_time' => :'Time',
    :'high_price' => :'Float',
    :'high_price_time' => :'Time',
    :'low_price' => :'Float',
    :'low_price_time' => :'Time',
    :'trading_volume' => :'Float',
    :'trading_volume_time' => :'Time',
    :'vwap' => :'Float',
    :'trading_value' => :'Float',
    :'bid_qty' => :'Float',
    :'bid_price' => :'Float',
    :'bid_time' => :'Time',
    :'bid_sign' => :'String',
    :'market_order_sell_qty' => :'Float',
    :'sell1' => :'BoardSuccessSell1',
    :'sell2' => :'BoardSuccessSell2',
    :'sell3' => :'BoardSuccessSell3',
    :'sell4' => :'BoardSuccessSell4',
    :'sell5' => :'BoardSuccessSell5',
    :'sell6' => :'BoardSuccessSell6',
    :'sell7' => :'BoardSuccessSell7',
    :'sell8' => :'BoardSuccessSell8',
    :'sell9' => :'BoardSuccessSell9',
    :'sell10' => :'BoardSuccessSell10',
    :'ask_qty' => :'Float',
    :'ask_price' => :'Float',
    :'ask_time' => :'Time',
    :'ask_sign' => :'String',
    :'market_order_buy_qty' => :'Float',
    :'buy1' => :'BoardSuccessBuy1',
    :'buy2' => :'BoardSuccessBuy2',
    :'buy3' => :'BoardSuccessBuy3',
    :'buy4' => :'BoardSuccessBuy4',
    :'buy5' => :'BoardSuccessBuy5',
    :'buy6' => :'BoardSuccessBuy6',
    :'buy7' => :'BoardSuccessBuy7',
    :'buy8' => :'BoardSuccessBuy8',
    :'buy9' => :'BoardSuccessBuy9',
    :'buy10' => :'BoardSuccessBuy10',
    :'over_sell_qty' => :'Float',
    :'under_buy_qty' => :'Float',
    :'total_market_value' => :'Float',
    :'clearing_price' => :'Float',
    :'iv' => :'Float',
    :'gamma' => :'Float',
    :'theta' => :'Float',
    :'vega' => :'Float',
    :'delta' => :'Float',
    :'security_type' => :'Integer'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
# File 'lib/kabustation_client/models/board_success.rb', line 622

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      symbol == o.symbol &&
      symbol_name == o.symbol_name &&
      exchange == o.exchange &&
      exchange_name == o.exchange_name &&
      current_price == o.current_price &&
      current_price_time == o.current_price_time &&
      current_price_change_status == o.current_price_change_status &&
      current_price_status == o.current_price_status &&
      calc_price == o.calc_price &&
      previous_close == o.previous_close &&
      previous_close_time == o.previous_close_time &&
      change_previous_close == o.change_previous_close &&
      change_previous_close_per == o.change_previous_close_per &&
      opening_price == o.opening_price &&
      opening_price_time == o.opening_price_time &&
      high_price == o.high_price &&
      high_price_time == o.high_price_time &&
      low_price == o.low_price &&
      low_price_time == o.low_price_time &&
      trading_volume == o.trading_volume &&
      trading_volume_time == o.trading_volume_time &&
      vwap == o.vwap &&
      trading_value == o.trading_value &&
      bid_qty == o.bid_qty &&
      bid_price == o.bid_price &&
      bid_time == o.bid_time &&
      bid_sign == o.bid_sign &&
      market_order_sell_qty == o.market_order_sell_qty &&
      sell1 == o.sell1 &&
      sell2 == o.sell2 &&
      sell3 == o.sell3 &&
      sell4 == o.sell4 &&
      sell5 == o.sell5 &&
      sell6 == o.sell6 &&
      sell7 == o.sell7 &&
      sell8 == o.sell8 &&
      sell9 == o.sell9 &&
      sell10 == o.sell10 &&
      ask_qty == o.ask_qty &&
      ask_price == o.ask_price &&
      ask_time == o.ask_time &&
      ask_sign == o.ask_sign &&
      market_order_buy_qty == o.market_order_buy_qty &&
      buy1 == o.buy1 &&
      buy2 == o.buy2 &&
      buy3 == o.buy3 &&
      buy4 == o.buy4 &&
      buy5 == o.buy5 &&
      buy6 == o.buy6 &&
      buy7 == o.buy7 &&
      buy8 == o.buy8 &&
      buy9 == o.buy9 &&
      buy10 == o.buy10 &&
      over_sell_qty == o.over_sell_qty &&
      under_buy_qty == o.under_buy_qty &&
      total_market_value == o.total_market_value &&
      clearing_price == o.clearing_price &&
      iv == o.iv &&
      gamma == o.gamma &&
      theta == o.theta &&
      vega == o.vega &&
      delta == o.delta &&
      security_type == o.security_type
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



800
801
802
803
804
805
806
807
808
809
810
811
812
# File 'lib/kabustation_client/models/board_success.rb', line 800

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


692
693
694
# File 'lib/kabustation_client/models/board_success.rb', line 692

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



698
699
700
# File 'lib/kabustation_client/models/board_success.rb', line 698

def hash
  [symbol, symbol_name, exchange, exchange_name, current_price, current_price_time, current_price_change_status, current_price_status, calc_price, previous_close, previous_close_time, change_previous_close, change_previous_close_per, opening_price, opening_price_time, high_price, high_price_time, low_price, low_price_time, trading_volume, trading_volume_time, vwap, trading_value, bid_qty, bid_price, bid_time, bid_sign, market_order_sell_qty, sell1, sell2, sell3, sell4, sell5, sell6, sell7, sell8, sell9, sell10, ask_qty, ask_price, ask_time, ask_sign, market_order_buy_qty, buy1, buy2, buy3, buy4, buy5, buy6, buy7, buy8, buy9, buy10, over_sell_qty, under_buy_qty, total_market_value, clearing_price, iv, gamma, theta, vega, delta, security_type].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



607
608
609
610
611
# File 'lib/kabustation_client/models/board_success.rb', line 607

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



776
777
778
# File 'lib/kabustation_client/models/board_success.rb', line 776

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



782
783
784
785
786
787
788
789
790
791
792
793
794
# File 'lib/kabustation_client/models/board_success.rb', line 782

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



770
771
772
# File 'lib/kabustation_client/models/board_success.rb', line 770

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



615
616
617
618
# File 'lib/kabustation_client/models/board_success.rb', line 615

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  true
end