lib/cotcube-level/helpers.rb
# 3 simple, self-explaining helpers
3 simple, self-explaining helpers
3 simple self - explaining helpers
def mark_exceeded(swap:, datetime:, debug: false, sym: nil)
      to_save = {
        datetime: datetime,
        ref:      swap[:digest],
        side:     swap[:side],
        exceeded: datetime
      }
      sym ||=  Cotcube::Helpers.get_id_set(contract: swap[:contract])
      save_swaps to_save, interval: swap[:interval], swap_type: swap[:swap_type], sym: sym, contract: swap[:contract], quiet: (not debug)
      swap
    end
def mark_exceeded ( swap : , datetime : , debug : false , sym : nil ) to_save = { datetime : datetime , ref : swap [ :digest ] , side : swap [ :side ] , exceeded : datetime } sym ||= Cotcube :: Helpers . get_id_set ( contract : swap [ :contract ] ) save_swaps to_save , interval : swap [ :interval ] , swap_type : swap [ :swap_type ] , sym : sym , contract : swap [ :contract ] , quiet : ( not debug ) swap end
3 simple, self-explaining helpers
3 simple self - explaining helpers
swap
<not_specific>
datetime
<not_specific>
debug
<not_specific>
sym
<not_specific>