ib-symbols 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 160c32b60ae4d9cae82bb70cb77d672ce723b25f550cea69aa2768d7dc782f7a
4
- data.tar.gz: 1ebf09c27827661337a089968c9e7845d9dd0a484605b299dbf6a02c98133104
3
+ metadata.gz: 783f7b8ef15bf87574fbf9f8f10a0e1f45ce5fd62ea4613d0b2c06d05f5773db
4
+ data.tar.gz: 27a437d6c07ec60828a6153eb343a02f44a71e9801b6be49d0bb1b8c13c25a40
5
5
  SHA512:
6
- metadata.gz: 8844c32867280aac265c33d3bbe76c66843fe3149eef50276d6ec118cf477726717615d1887652cc59db481b936ec4b9b732393612a11fed82901e39a764b636
7
- data.tar.gz: 29baf9106e53d4c689addff490e8385932ae4197afb84663894f552bb1d36836122d1379e5e29c2745a61f261d6b762b822165a62d6e8fab2fbc95f2fa6f5b68
6
+ metadata.gz: 8f3bf5c3953c26a0b2d4526e77310c598ae2ad1ab20a87a2e5b46b9449fa4f04184797b793b833edcb8b7bce3698177623790fb57ee439bdb836fb1c10863c20
7
+ data.tar.gz: 3bd3a8fc68924ad4eb645b952d085397367566e79185070ad0c57fca6b20648c5aa7efe7d01a37ef30ce97e6c64c6030b7e0b3a0856bae32a084fa0f54373f40
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in ib-symbols.gemspec
4
4
  gemspec
5
-
6
- gem "ox"
data/README.md CHANGED
@@ -5,6 +5,8 @@ __Documentation: [https://ib-ruby.github.io/ib-doc/](https://ib-ruby.github.io/i
5
5
 
6
6
  __Questions, Contributions, Remarks: [Discussions are opened in ib-api](https://github.com/ib-ruby/ib-api/discussions)__
7
7
 
8
+ __Note: In July 2022 IB changed the exchange for german (and swiss) assets to »EUREX«.__ (Version 1.2)
9
+
8
10
  ---
9
11
 
10
12
  __Predefined symbols and watchlists for contracts__
data/bin/console CHANGED
@@ -49,6 +49,7 @@ read_yml = -> (key) do
49
49
  puts " Namespace is IB ! "
50
50
  puts
51
51
  puts '-'* 45
52
+ include LogDev
52
53
  include IB
53
54
  require 'irb'
54
55
  client_id = ARGV[1] || read_yml[:client_id]
@@ -65,7 +66,7 @@ read_yml = -> (key) do
65
66
  end
66
67
 
67
68
  ARGV.clear
68
- #logger = default_logger # Logger.new STDOUT
69
+ logger = default_logger # Logger.new STDOUT
69
70
 
70
71
  ## The Block takes instructions which are executed after initializing all instance-variables
71
72
  ## and prior to the connection-process
@@ -73,9 +74,9 @@ read_yml = -> (key) do
73
74
  if port > 0
74
75
  C = Connection.new client_id: client_id, port: port do |c| # future use__ , optional_capacities: "+PACEAPI" do |c|
75
76
 
76
- c.subscribe( :ContractData, :BondContractData) { |msg| c.logger.info { msg.contract.to_human } }
77
- c.subscribe( :Alert, :ContractDataEnd, :ManagedAccounts, :OrderStatus ) {| m| c.logger.info { m.to_human } }
78
- c.subscribe( :PortfolioValue, :AccountValue, :OrderStatus, :OpenOrderEnd, :ExecutionData ) {| m| c.logger.info { m.to_human }}
77
+ c.subscribe( :ContractData, :BondContractData) { |msg| logger.info { msg.contract.to_human } }
78
+ c.subscribe( :Alert, :ContractDataEnd, :ManagedAccounts, :OrderStatus ) {| m| logger.info { m.to_human } }
79
+ c.subscribe( :PortfolioValue, :AccountValue, :OrderStatus, :OpenOrderEnd, :ExecutionData ) {| m| logger.info { m.to_human }}
79
80
  # c.subscribe :ManagedAccounts do |msg|
80
81
  # puts "------------------------------- Managed Accounts ----------------------------------"
81
82
  # puts "Detected Accounts: #{msg.accounts.account.join(' -- ')} "
@@ -109,7 +109,7 @@ Returns count of created bunches
109
109
  else
110
110
  symbol.to_i
111
111
  end
112
- # ensure that every Sybmol::xxx.yyy entry has a description
112
+ # ensure that evey Sybmol::xxx.yyy entry has a description
113
113
  contract.description = contract.to_human[1..-2] if contract.description.nil?
114
114
  # overwrite contract if existing
115
115
  contracts[ symbol ] = contract.essential
@@ -63,50 +63,62 @@ module IB
63
63
  :description => "Mini-DJIA future"),
64
64
  :nq => IB::Future.new(:symbol => "NQ",
65
65
  :expiry => next_expiry,
66
- :exchange => "GLOBEX",
66
+ :exchange => "CME",
67
67
  :currency => "USD",
68
68
  :multiplier => 20,
69
69
  :description => "E-Mini Nasdaq 100 future"),
70
+ :micro_nq => IB::Future.new(:symbol => "MNQ",
71
+ :expiry => next_expiry,
72
+ :exchange => "CME",
73
+ :currency => "USD",
74
+ :multiplier => 2,
75
+ :description => "E-Mini Nasdaq 100 future"),
70
76
  :es => IB::Future.new(:symbol => "ES",
71
77
  :expiry => next_expiry,
72
- :exchange => "GLOBEX",
78
+ :exchange => "CME",
73
79
  :currency => "USD",
74
80
  :multiplier => 50,
75
81
  :description => "E-Mini S&P 500 future"),
76
82
  :micro_es => IB::Future.new(:symbol => "MES",
77
83
  :expiry => next_expiry,
78
- :exchange => "GLOBEX",
84
+ :exchange => "CME",
79
85
  :currency => "USD",
80
86
  :multiplier => 5,
81
87
  :description => "Micro E-Mini S&P 500 future"),
88
+ :russell => IB::Future.new(:symbol => "RTY",
89
+ :expiry => next_expiry,
90
+ :exchange => "CME
91
+ :currency => "USD",
92
+ :multiplier => 5,
93
+ :description => "Micro E-Mini Russell 2000 future"),
82
94
  :micro_russell => IB::Future.new(:symbol => "M2K",
83
95
  :expiry => next_expiry,
84
- :exchange => "GLOBEX",
96
+ :exchange => "CME
85
97
  :currency => "USD",
86
98
  :multiplier => 5,
87
99
  :description => "Micro E-Mini Russell 2000 future"),
88
- :zn => IB::Future.new( symbol: 'ZN',
89
- expiry: next_expiry,
90
- currency: 'USD',
91
- multiplier: 1000,
92
- exchange: 'ECBOT',
93
- description: 'US Treasury Note -- 10 Years'),
94
- :zb => IB::Future.new( symbol: 'ZB',
95
- expiry: next_expiry,
96
- currency: 'USD',
97
- multiplier: 1000,
98
- exchange: 'ECBOT',
99
- description: 'US Treasury Note -- 30 Years'),
100
+ :zn => IB::Future.new( symbol: 'ZN',
101
+ expiry: next_expiry,
102
+ currency: 'USD',
103
+ multiplier: 1000,
104
+ exchange: 'ECBOT',
105
+ description: 'US Treasury Note -- 10 Years'),
106
+ :zb => IB::Future.new( symbol: 'ZB',
107
+ expiry: next_expiry,
108
+ currency: 'USD',
109
+ multiplier: 1000,
110
+ exchange: 'ECBOT',
111
+ description: 'US Treasury Note -- 30 Years'),
100
112
  :mini_dax => IB::Future.new( symbol: 'DAX', exchange: 'EUREX',
101
113
  expiry: next_expiry,
102
114
  currency: 'EUR',
103
115
  multiplier: 5,
104
116
  description: 'Mini DAX-Future'),
105
- # :dax => IB::Future.new( symbol: 'DAX', exchange: 'EUREX',
106
- # expiry: next_expiry,
107
- # currency: 'EUR',
108
- # multiplier: 25,
109
- # description: 'DAX-Future'),
117
+ :dax => IB::Future.new( symbol: 'DAX', exchange: 'EUREX',
118
+ expiry: next_expiry,
119
+ currency: 'EUR',
120
+ multiplier: 25,
121
+ description: 'DAX-Future'),
110
122
  :stoxx=> IB::Future.new( symbol: 'ESTX50', exchange: 'EUREX',
111
123
  expiry: next_expiry,
112
124
  currency: 'EUR',
@@ -1,5 +1,5 @@
1
1
  module IB
2
2
  module Symbols
3
- VERSION = "1.2"
3
+ VERSION = "1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ib-symbols
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hartmut Bischoff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-25 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ib-api
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  requirements: []
167
- rubygems_version: 3.2.3
167
+ rubygems_version: 3.3.7
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Predefined symbols and watchlist, part of ib-ruby