<commit_before>module Coinmate::Model
  class Order < Base
    attr_writer :net
    attr_accessor :id, :timestamp, :type, :currency_pair, :price, :amount
  
    def initialize(attributes = {})
      super
      self.timestamp = Time.at(timestamp / 1000.0)
      self.price = BigDecimal.new(price, 8)
      self.amount = BigDecimal.new(amount, 12)
    end
    
    
    def cancel!
      @net.post('cancelOrder', orderId: id)
    end

  end
end<commit_msg>Added new attributes to "Order" model.<commit_after>module Coinmate::Model
  class Order < Base
    attr_writer :net
    attr_accessor :id, :timestamp, :type, :currency_pair, :price, :amount, :order_trade_type, :stop_price, :hidden
  
    def initialize(attributes = {})
      super
      self.timestamp = Time.at(timestamp / 1000.0)
      self.price = BigDecimal.new(price, 8)
      self.amount = BigDecimal.new(amount, 12)
    end
    
    
    def cancel!
      @net.post('cancelOrder', orderId: id)
    end

  end
end
{'fraction_non_alphanumeric': 0.11372950819672131, 'fraction_numerical': 0.01639344262295082, 'mean_word_length': 2.8464566929133857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5295439', 'n_tokens_mistral': 332, 'n_tokens_neox': 314, 'n_words': 77}