Sha256: dea00366a3374265ef5705e55d079bad15d939d5efa896596309fbab02ad6b3d
Contents?: true
Size: 426 Bytes
Versions: 16
Compression:
Stored size: 426 Bytes
Contents
# lib/sqa/trade.rb class SQA::Trade attr_accessor :df def initialize( filename = SQA::Config.trades_filename ) @df = SQA::DataFrame.load(filename) end def place(signal, ticker, shares, price=nil) # TODO: insert row into @df uuid = rand(100000) # FIXME: place holder end def confirm(uuid, shares, price) # TODO: update the row in the data frame end def save # TODO: save the data frame end end
Version data entries
16 entries across 16 versions & 1 rubygems