Class: ClickClient::FX::OrderResult

Inherits:
Base
  • Object
show all
Defined in:
lib/clickclient/fx.rb

Overview

注文結果

定義済みの属性の他に、レスポンスXMLの要素名、属性名でも値にアクセスできます。 レスポンスXMLについては、クリック証券提供のドキュメントを参照ください。

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#eql?, #hash, #method_missing, #to_s

Constructor Details

#initialize(item) ⇒ OrderResult

コンストラクタ

item

結果要素



766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
# File 'lib/clickclient/fx.rb', line 766

def initialize( item )
  super(item)
  str = item.text( "./chumonBango")
  if str == nil || str.length <= 0
    str = item.text( "./shinkiChumonBango")
  end
  @order_no = str != nil ? str.to_i : nil
  str = item.text( "./kessaiChumonBango" )
  @settlement_order_no = str != nil ? str.to_i : nil
  str = item.text( "./tategyokuBango" )
  @open_interest_no = str != nil ? str.to_i : nil

  str = item.text( "./sashineChumonBango" )
  @limit_order_no = str != nil ? str.to_i : nil
  str = item.text( "./gyakusashiChumonBango" )
  @stop_order_no = str != nil ? str.to_i : nil

end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClickClient::Base

Instance Attribute Details

#limit_order_noObject

指値注文番号(OCO取引のみ)



791
792
793
# File 'lib/clickclient/fx.rb', line 791

def limit_order_no
  @limit_order_no
end

#open_interest_noObject

建玉番号



787
788
789
# File 'lib/clickclient/fx.rb', line 787

def open_interest_no
  @open_interest_no
end

#order_noObject

注文番号



785
786
787
# File 'lib/clickclient/fx.rb', line 785

def order_no
  @order_no
end

#settlement_order_noObject

決済注文番号(IFD, IFD-OCO取引のみ)



789
790
791
# File 'lib/clickclient/fx.rb', line 789

def settlement_order_no
  @settlement_order_no
end

#stop_order_noObject

逆指値注文番号(OCO取引のみ)



793
794
795
# File 'lib/clickclient/fx.rb', line 793

def stop_order_no
  @stop_order_no
end