Sha256: d2e0ee6b9367ce8300d134166cd25badb9013cfdc884bcd207103d461d41070b
Contents?: true
Size: 1.07 KB
Versions: 69
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true module Cryptum # Cryptum::Event Namespace module Event # This Module is used to Submit Limit Buy Orders module Buy # Supported Method Parameters:: # Cryptum::Event::Buy.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] Cryptum::API::Orders.submit_limit( option_choice: option_choice, env: env, price: price, size: size, buy_or_sell: :buy, event_history: event_history, bot_conf: bot_conf ) 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
Version data entries
69 entries across 69 versions & 1 rubygems