Module: Cryptum::Event::Sell
- Defined in:
- lib/cryptum/event/sell.rb
Overview
This Module is used to Submit Limit Sell Orders
Class Method Summary collapse
-
.crypto(opts = {}) ⇒ Object
- Supported Method Parameters
-
Cryptum::Event::Sell.crypto( ).
-
.help ⇒ Object
Display Usage for this Module.
Class Method Details
.crypto(opts = {}) ⇒ Object
- Supported Method Parameters
-
Cryptum::Event::Sell.crypto( )
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/cryptum/event/sell.rb', line 11 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 |
.help ⇒ Object
Display Usage for this Module
35 36 37 38 39 |
# File 'lib/cryptum/event/sell.rb', line 35 public_class_method def self.help puts "USAGE: event_history = #{self}.crypto() " end |