Sha256: d27e687d63094084da8699c5ae1a191fc0436b5fc7330a6d551349dbafa9418f

Contents?: true

Size: 454 Bytes

Versions: 2

Compression:

Stored size: 454 Bytes

Contents

class AddIbUnderlyings < ActiveRecord::Migration

  def change
    # Calculated characteristics of underlying Contract (volatile)
    create_table(:ib_underlyings) do |t|
      t.references :contract
      t.integer :con_id #  # int: The unique contract identifier specifying the security
      t.float :delta # double: The underlying stock or future delta
      t.float :price #  double: The price of the underlying
      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ib-ruby-0.8.4 db/migrate/151_add_ib_underlyings.rb
ib-ruby-0.8.3 db/migrate/151_add_ib_underlyings.rb