class Moneymarket::Match

Attributes

ask[R]
bid[R]
market[R]
volume[RW]

Public Class Methods

new(_trigger, _match, _volume) click to toggle source
# File lib/moneymarket/core/match.rb, line 6
def initialize(_trigger, _match, _volume)
  @trigger = _trigger
  @bid = _trigger.bid? ? _trigger : _match
  @ask = _trigger.bid? ? _match : _trigger
  @match = _match
  @volume = _volume
end

Public Instance Methods

price_paid() click to toggle source
# File lib/moneymarket/core/match.rb, line 14
def price_paid
  match.limit
end