hunk.code_window:                             throw new ExchangeError (this.id + ' ' + this.json (response));
                           }
                       }
                   }
  
hunk.labels: keep replace keep keep
hunk.file_path: js/bitmex.js
hunk.type: replace
file: "use strict";
  
  module.exports = class Market {
  
      constructor (exchange, symbol) {
          this.exchange = exchange;
          this.symbol = symbol;
          this.market = exchange.markets[symbol];
      }
  
      amountToPrecision (amount) {
          return this.exchange.amountToPrecision (this.symbol, amount)
      }
  
      createLimitBuyOrder(amount, price) {
          return this.exchange.createLimitBuyOrder (this.symbol, amount, price)
      }
  
      createLimitSellOrder(amount, price) {
          return this.exchange.createLimitSellOrder (this.symbol, amount, price)
      }
  }
  