Class: IbRubyProxy::Client::Ib::ContractDetails
- Inherits:
-
Struct
- Object
- Struct
- IbRubyProxy::Client::Ib::ContractDetails
- Defined in:
- lib/ib_ruby_proxy/client/ib/contract_details.rb
Instance Attribute Summary collapse
-
#agg_group ⇒ Object
Returns the value of attribute agg_group.
-
#bond_type ⇒ Object
Returns the value of attribute bond_type.
-
#callable ⇒ Object
Returns the value of attribute callable.
-
#category ⇒ Object
Returns the value of attribute category.
-
#contract ⇒ Object
Returns the value of attribute contract.
-
#contract_month ⇒ Object
Returns the value of attribute contract_month.
-
#convertible ⇒ Object
Returns the value of attribute convertible.
-
#coupon ⇒ Object
Returns the value of attribute coupon.
-
#coupon_type ⇒ Object
Returns the value of attribute coupon_type.
-
#cusip ⇒ Object
Returns the value of attribute cusip.
-
#desc_append ⇒ Object
Returns the value of attribute desc_append.
-
#ev_multiplier ⇒ Object
Returns the value of attribute ev_multiplier.
-
#ev_rule ⇒ Object
Returns the value of attribute ev_rule.
-
#industry ⇒ Object
Returns the value of attribute industry.
-
#issue_date ⇒ Object
Returns the value of attribute issue_date.
-
#last_trade_time ⇒ Object
Returns the value of attribute last_trade_time.
-
#liquid_hours ⇒ Object
Returns the value of attribute liquid_hours.
-
#long_name ⇒ Object
Returns the value of attribute long_name.
-
#market_name ⇒ Object
Returns the value of attribute market_name.
-
#market_rule_ids ⇒ Object
Returns the value of attribute market_rule_ids.
-
#maturity ⇒ Object
Returns the value of attribute maturity.
-
#md_size_multiplier ⇒ Object
Returns the value of attribute md_size_multiplier.
-
#min_tick ⇒ Object
Returns the value of attribute min_tick.
-
#next_option_date ⇒ Object
Returns the value of attribute next_option_date.
-
#next_option_partial ⇒ Object
Returns the value of attribute next_option_partial.
-
#next_option_type ⇒ Object
Returns the value of attribute next_option_type.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#order_types ⇒ Object
Returns the value of attribute order_types.
-
#price_magnifier ⇒ Object
Returns the value of attribute price_magnifier.
-
#putable ⇒ Object
Returns the value of attribute putable.
-
#ratings ⇒ Object
Returns the value of attribute ratings.
-
#real_expiration_date ⇒ Object
Returns the value of attribute real_expiration_date.
-
#sec_id_list ⇒ Object
Returns the value of attribute sec_id_list.
-
#subcategory ⇒ Object
Returns the value of attribute subcategory.
-
#time_zone_id ⇒ Object
Returns the value of attribute time_zone_id.
-
#trading_hours ⇒ Object
Returns the value of attribute trading_hours.
-
#under_conid ⇒ Object
Returns the value of attribute under_conid.
-
#under_sec_type ⇒ Object
Returns the value of attribute under_sec_type.
-
#under_symbol ⇒ Object
Returns the value of attribute under_symbol.
-
#valid_exchanges ⇒ Object
Returns the value of attribute valid_exchanges.
Instance Method Summary collapse
-
#initialize(contract: nil, market_name: nil, min_tick: 0, price_magnifier: 0, order_types: nil, valid_exchanges: nil, under_conid: 0, long_name: nil, contract_month: nil, industry: nil, category: nil, subcategory: nil, time_zone_id: nil, trading_hours: nil, liquid_hours: nil, ev_rule: nil, ev_multiplier: 0, md_size_multiplier: 0, sec_id_list: nil, agg_group: 0, under_symbol: nil, under_sec_type: nil, market_rule_ids: nil, real_expiration_date: nil, last_trade_time: nil, cusip: nil, ratings: nil, desc_append: nil, bond_type: nil, coupon_type: nil, callable: false, putable: false, coupon: 0, convertible: false, maturity: nil, issue_date: nil, next_option_date: nil, next_option_type: nil, next_option_partial: false, notes: nil) ⇒ ContractDetails
constructor
A new instance of ContractDetails.
- #to_ib ⇒ Object
Constructor Details
#initialize(contract: nil, market_name: nil, min_tick: 0, price_magnifier: 0, order_types: nil, valid_exchanges: nil, under_conid: 0, long_name: nil, contract_month: nil, industry: nil, category: nil, subcategory: nil, time_zone_id: nil, trading_hours: nil, liquid_hours: nil, ev_rule: nil, ev_multiplier: 0, md_size_multiplier: 0, sec_id_list: nil, agg_group: 0, under_symbol: nil, under_sec_type: nil, market_rule_ids: nil, real_expiration_date: nil, last_trade_time: nil, cusip: nil, ratings: nil, desc_append: nil, bond_type: nil, coupon_type: nil, callable: false, putable: false, coupon: 0, convertible: false, maturity: nil, issue_date: nil, next_option_date: nil, next_option_type: nil, next_option_partial: false, notes: nil) ⇒ ContractDetails
Returns a new instance of ContractDetails.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 9 def initialize(contract: nil, market_name: nil, min_tick: 0, price_magnifier: 0, order_types: nil, valid_exchanges: nil, under_conid: 0, long_name: nil, contract_month: nil, industry: nil, category: nil, subcategory: nil, time_zone_id: nil, trading_hours: nil, liquid_hours: nil, ev_rule: nil, ev_multiplier: 0, md_size_multiplier: 0, sec_id_list: nil, agg_group: 0, under_symbol: nil, under_sec_type: nil, market_rule_ids: nil, real_expiration_date: nil, last_trade_time: nil, cusip: nil, ratings: nil, desc_append: nil, bond_type: nil, coupon_type: nil, callable: false, putable: false, coupon: 0, convertible: false, maturity: nil, issue_date: nil, next_option_date: nil, next_option_type: nil, next_option_partial: false, notes: nil) self.contract = contract self.market_name = market_name self.min_tick = min_tick self.price_magnifier = price_magnifier self.order_types = order_types self.valid_exchanges = valid_exchanges self.under_conid = under_conid self.long_name = long_name self.contract_month = contract_month self.industry = industry self.category = category self.subcategory = subcategory self.time_zone_id = time_zone_id self.trading_hours = trading_hours self.liquid_hours = liquid_hours self.ev_rule = ev_rule self.ev_multiplier = ev_multiplier self.md_size_multiplier = md_size_multiplier self.sec_id_list = sec_id_list self.agg_group = agg_group self.under_symbol = under_symbol self.under_sec_type = under_sec_type self.market_rule_ids = market_rule_ids self.real_expiration_date = real_expiration_date self.last_trade_time = last_trade_time self.cusip = cusip self. = self.desc_append = desc_append self.bond_type = bond_type self.coupon_type = coupon_type self.callable = callable self.putable = putable self.coupon = coupon self.convertible = convertible self.maturity = maturity self.issue_date = issue_date self.next_option_date = next_option_date self.next_option_type = next_option_type self.next_option_partial = next_option_partial self.notes = notes end |
Instance Attribute Details
#agg_group ⇒ Object
Returns the value of attribute agg_group
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def agg_group @agg_group end |
#bond_type ⇒ Object
Returns the value of attribute bond_type
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def bond_type @bond_type end |
#callable ⇒ Object
Returns the value of attribute callable
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def callable @callable end |
#category ⇒ Object
Returns the value of attribute category
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def category @category end |
#contract ⇒ Object
Returns the value of attribute contract
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def contract @contract end |
#contract_month ⇒ Object
Returns the value of attribute contract_month
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def contract_month @contract_month end |
#convertible ⇒ Object
Returns the value of attribute convertible
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def convertible @convertible end |
#coupon ⇒ Object
Returns the value of attribute coupon
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def coupon @coupon end |
#coupon_type ⇒ Object
Returns the value of attribute coupon_type
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def coupon_type @coupon_type end |
#cusip ⇒ Object
Returns the value of attribute cusip
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def cusip @cusip end |
#desc_append ⇒ Object
Returns the value of attribute desc_append
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def desc_append @desc_append end |
#ev_multiplier ⇒ Object
Returns the value of attribute ev_multiplier
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def ev_multiplier @ev_multiplier end |
#ev_rule ⇒ Object
Returns the value of attribute ev_rule
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def ev_rule @ev_rule end |
#industry ⇒ Object
Returns the value of attribute industry
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def industry @industry end |
#issue_date ⇒ Object
Returns the value of attribute issue_date
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def issue_date @issue_date end |
#last_trade_time ⇒ Object
Returns the value of attribute last_trade_time
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def last_trade_time @last_trade_time end |
#liquid_hours ⇒ Object
Returns the value of attribute liquid_hours
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def liquid_hours @liquid_hours end |
#long_name ⇒ Object
Returns the value of attribute long_name
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def long_name @long_name end |
#market_name ⇒ Object
Returns the value of attribute market_name
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def market_name @market_name end |
#market_rule_ids ⇒ Object
Returns the value of attribute market_rule_ids
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def market_rule_ids @market_rule_ids end |
#maturity ⇒ Object
Returns the value of attribute maturity
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def maturity @maturity end |
#md_size_multiplier ⇒ Object
Returns the value of attribute md_size_multiplier
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def md_size_multiplier @md_size_multiplier end |
#min_tick ⇒ Object
Returns the value of attribute min_tick
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def min_tick @min_tick end |
#next_option_date ⇒ Object
Returns the value of attribute next_option_date
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def next_option_date @next_option_date end |
#next_option_partial ⇒ Object
Returns the value of attribute next_option_partial
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def next_option_partial @next_option_partial end |
#next_option_type ⇒ Object
Returns the value of attribute next_option_type
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def next_option_type @next_option_type end |
#notes ⇒ Object
Returns the value of attribute notes
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def notes @notes end |
#order_types ⇒ Object
Returns the value of attribute order_types
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def order_types @order_types end |
#price_magnifier ⇒ Object
Returns the value of attribute price_magnifier
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def price_magnifier @price_magnifier end |
#putable ⇒ Object
Returns the value of attribute putable
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def putable @putable end |
#ratings ⇒ Object
Returns the value of attribute ratings
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def @ratings end |
#real_expiration_date ⇒ Object
Returns the value of attribute real_expiration_date
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def real_expiration_date @real_expiration_date end |
#sec_id_list ⇒ Object
Returns the value of attribute sec_id_list
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def sec_id_list @sec_id_list end |
#subcategory ⇒ Object
Returns the value of attribute subcategory
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def subcategory @subcategory end |
#time_zone_id ⇒ Object
Returns the value of attribute time_zone_id
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def time_zone_id @time_zone_id end |
#trading_hours ⇒ Object
Returns the value of attribute trading_hours
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def trading_hours @trading_hours end |
#under_conid ⇒ Object
Returns the value of attribute under_conid
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def under_conid @under_conid end |
#under_sec_type ⇒ Object
Returns the value of attribute under_sec_type
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def under_sec_type @under_sec_type end |
#under_symbol ⇒ Object
Returns the value of attribute under_symbol
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def under_symbol @under_symbol end |
#valid_exchanges ⇒ Object
Returns the value of attribute valid_exchanges
8 9 10 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 8 def valid_exchanges @valid_exchanges end |
Instance Method Details
#to_ib ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/ib_ruby_proxy/client/ib/contract_details.rb', line 52 def to_ib ib_object = Java::ComIbClient::ContractDetails.new ib_object.contract(contract).to_java ib_object.marketName(market_name).to_java ib_object.minTick(min_tick).to_java ib_object.priceMagnifier(price_magnifier).to_java ib_object.orderTypes(order_types).to_java ib_object.validExchanges(valid_exchanges).to_java ib_object.underConid(under_conid).to_java ib_object.longName(long_name).to_java ib_object.contractMonth(contract_month).to_java ib_object.industry(industry).to_java ib_object.category(category).to_java ib_object.subcategory(subcategory).to_java ib_object.timeZoneId(time_zone_id).to_java ib_object.tradingHours(trading_hours).to_java ib_object.liquidHours(liquid_hours).to_java ib_object.evRule(ev_rule).to_java ib_object.evMultiplier(ev_multiplier).to_java ib_object.mdSizeMultiplier(md_size_multiplier).to_java ib_object.secIdList(sec_id_list).to_java ib_object.aggGroup(agg_group).to_java ib_object.underSymbol(under_symbol).to_java ib_object.underSecType(under_sec_type).to_java ib_object.marketRuleIds(market_rule_ids).to_java ib_object.realExpirationDate(real_expiration_date).to_java ib_object.lastTradeTime(last_trade_time).to_java ib_object.cusip(cusip).to_java ib_object.().to_java ib_object.descAppend(desc_append).to_java ib_object.bondType(bond_type).to_java ib_object.couponType(coupon_type).to_java ib_object.callable(callable).to_java ib_object.putable(putable).to_java ib_object.coupon(coupon).to_java ib_object.convertible(convertible).to_java ib_object.maturity(maturity).to_java ib_object.issueDate(issue_date).to_java ib_object.nextOptionDate(next_option_date).to_java ib_object.nextOptionType(next_option_type).to_java ib_object.nextOptionPartial(next_option_partial).to_java ib_object.notes(notes).to_java ib_object end |