Sha256: ad6e72d0da85131cd1abae59f34ac8c2c80637215a0348a13bcaa51e429c12c7
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
# 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 StandardError => e raise e 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cryptum-0.0.386 | lib/cryptum/event/sell.rb |
cryptum-0.0.385 | lib/cryptum/event/sell.rb |
cryptum-0.0.384 | lib/cryptum/event/sell.rb |