Sha256: 2f8d73ac812862ededcd810bea2813ecbab6bc451bf1404098d950447a34d544

Contents?: true

Size: 818 Bytes

Versions: 3

Compression:

Stored size: 818 Bytes

Contents

module RbtcArbitrage
  class CLI < Thor

    desc "arbitrage", "Get information about the current arbitrage levels."
    option :live, type: :boolean, default: false, desc: "Execute live trades."
    option :cutoff, type: :numeric, default: 2, desc: "The minimum profit level required to execute a trade."
    option :volume, type: :numeric, default: 0.01, desc: "The amount of bitcoins to trade per transaction."
    option :verbose, type: :boolean, default: true, desc: "Whether you wish to log information."
    option :buyer, type: :string, default: "btce"
    option :seller, type: :string, default: "campbx"
    option :repeat, type: :numeric, default: nil
    option :notify, type: :boolean, default: false
    def trade
      RbtcArbitrage::Trader.new(options).trade
    end

    default_task :trade

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbtc_arbitrage_simple-2.1.1 lib/rbtc_arbitrage/cli.rb
rbtc_arbitrage_simple-2.1.0 lib/rbtc_arbitrage/cli.rb
rbtc_arbitrage_simple-2.0.1 lib/rbtc_arbitrage/cli.rb