Skip to content

Commit

Permalink
Add the USD/CAD currency cross to the Market Data binary
Browse files Browse the repository at this point in the history
  • Loading branch information
wdevauld committed Jul 3, 2009
1 parent 8aa46b8 commit a3c44bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bin/RequestMarketData
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ require File.expand_path(
@market =
{
123 => IB::Symbols::Forex[:gbpusd],
456 => IB::Symbols::Forex[:eurusd]
456 => IB::Symbols::Forex[:eurusd],
789 => IB::Symbols::Forex[:usdcad]
}


Expand Down
12 changes: 9 additions & 3 deletions lib/ib-ruby/symbols/forex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,31 @@ module Symbols
:currency => "USD",
:sec_type => Datatypes::Contract::SECURITY_TYPES[:forex],
:description => "GBPUSD"

}),

:eurusd => Datatypes::Contract.new({
:symbol => "EUR",
:exchange => "IDEALPRO",
:currency => "USD",
:sec_type => Datatypes::Contract::SECURITY_TYPES[:forex],
:description => "EURUSD"

}),

:usdjpy => Datatypes::Contract.new({
:symbol => "USD",
:exchange => "IDEALPRO",
:currency => "JPY",
:sec_type => Datatypes::Contract::SECURITY_TYPES[:forex],
:description => "USDJPY"
}),

:usdcad => Datatypes::Contract.new({
:symbol => "USD",
:exchange => "IDEALPRO",
:currency => "CAD",
:sec_type => Datatypes::Contract::SECURITY_TYPES[:forex],
:description => "USDCAD"
})

}
end # Contracts
end

0 comments on commit a3c44bb

Please sign in to comment.