ib-symbols 1.2 → 1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/README.md +2 -0
- data/bin/console +5 -4
- data/lib/ib/symbols/abstract.rb +1 -1
- data/lib/ib/symbols/futures.rb +33 -21
- data/lib/ib/symbols/version.rb +1 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 783f7b8ef15bf87574fbf9f8f10a0e1f45ce5fd62ea4613d0b2c06d05f5773db
         | 
| 4 | 
            +
              data.tar.gz: 27a437d6c07ec60828a6153eb343a02f44a71e9801b6be49d0bb1b8c13c25a40
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8f3bf5c3953c26a0b2d4526e77310c598ae2ad1ab20a87a2e5b46b9449fa4f04184797b793b833edcb8b7bce3698177623790fb57ee439bdb836fb1c10863c20
         | 
| 7 | 
            +
              data.tar.gz: 3bd3a8fc68924ad4eb645b952d085397367566e79185070ad0c57fca6b20648c5aa7efe7d01a37ef30ce97e6c64c6030b7e0b3a0856bae32a084fa0f54373f40
         | 
    
        data/Gemfile
    CHANGED
    
    
    
        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 | 
            -
               | 
| 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 | 
            -
             | 
| 77 | 
            -
             | 
| 78 | 
            -
             | 
| 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(' -- ')} " 
         | 
    
        data/lib/ib/symbols/abstract.rb
    CHANGED
    
    | @@ -109,7 +109,7 @@ Returns count of created bunches | |
| 109 109 | 
             
            		else
         | 
| 110 110 | 
             
            			symbol.to_i
         | 
| 111 111 | 
             
            		end
         | 
| 112 | 
            -
            	# ensure that  | 
| 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
         | 
    
        data/lib/ib/symbols/futures.rb
    CHANGED
    
    | @@ -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 => " | 
| 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 => " | 
| 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 => " | 
| 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 => " | 
| 96 | 
            +
                                              :exchange => "CME
         | 
| 85 97 | 
             
                                              :currency => "USD",
         | 
| 86 98 | 
             
                                              :multiplier => 5,
         | 
| 87 99 | 
             
                                              :description => "Micro E-Mini Russell 2000 future"),
         | 
| 88 | 
            -
             | 
| 89 | 
            -
             | 
| 90 | 
            -
             | 
| 91 | 
            -
             | 
| 92 | 
            -
             | 
| 93 | 
            -
             | 
| 94 | 
            -
             | 
| 95 | 
            -
             | 
| 96 | 
            -
             | 
| 97 | 
            -
             | 
| 98 | 
            -
             | 
| 99 | 
            -
             | 
| 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 | 
            -
             | 
| 106 | 
            -
             | 
| 107 | 
            -
             | 
| 108 | 
            -
             | 
| 109 | 
            -
             | 
| 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',
         | 
    
        data/lib/ib/symbols/version.rb
    CHANGED
    
    
    
        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. | 
| 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:  | 
| 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. | 
| 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
         |