Sha256: 93567054336c76700b1d9d54b11c1ef074f7840ba774ec8abc0e3ec2349b5906

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

class AddIbBars < ActiveRecord::Migration

  def change
    # This is a single data point delivered by HistoricData or RealTimeBar messages.
    create_table(:ib_bars) do |t|
      t.float :open #       double:
      t.float :high #       double:
      t.float :low #        double:
      t.float :close #      double:
      t.float :wap #      double:
      t.integer :volume #
      t.integer :trades # Number of trades during the time period the bar covers
      t.boolean :has_gaps, :limit => 1 # Whether or not there are gaps in the data
      t.string :time, :limit => 18 # String! The order execution time
      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ib-ruby-0.8.4 db/migrate/111_add_ib_bars.rb
ib-ruby-0.8.3 db/migrate/111_add_ib_bars.rb