# frozen_string_literal: true module Cryptum # This plugin is used to Submit a Limit Order # to Sell Crypto Currency module Event module Sell # Supported Method Parameters:: # Cryptum::Event::Sell.crypto( # ) public_class_method def self.crypto(opts = {}) option_choice = opts[:option_choice] env = opts[:env] price = opts[:price] size = opts[:size] event_history = opts[:event_history] bot_conf = opts[:bot_conf] buy_order_id = opts[:buy_order_id] Cryptum::API::Orders.submit_limit( option_choice: option_choice, env: env, price: price, size: size, buy_or_sell: :sell, event_history: event_history, bot_conf: bot_conf, buy_order_id: buy_order_id ) rescue Interrupt, StandardError => e Cryptum::Log.append(level: :error, msg: e, which_self: self, event_history: event_history) end # Display Usage for this Module public_class_method def self.help puts "USAGE: event_history = #{self}.crypto() " end end end end