Class: Bitbot::Trader::OpenOrder

Inherits:
Object
  • Object
show all
Defined in:
lib/bitbot/trader/open_order.rb

Overview

Value object for user open order

Instance Method Summary collapse

Instance Method Details

#ask?Boolean

Checks if order is a ask order

Examples:

OpenOrder.new(bid: true).ask? #=> false

Returns:

  • (Boolean)


24
25
26
# File 'lib/bitbot/trader/open_order.rb', line 24

def ask?
  !bid?
end