code: def createLimitOrder(self, action, instrument, limitPrice, quantity):
      if instrument != common.btc_symbol:
          raise Exception("Only BTC instrument is supported")
  
      if action == broker.Order.Action.BUY_TO_COVER:
          action = broker.Order.Action.BUY
      elif action == broker.Order.Action.SELL_SHORT:
          action = broker.Order.Action.SELL
  
      if limitPrice * quantity < BacktestingBroker.MIN_TRADE_USD:
          raise Exception(
              "Trade must be >= %s" % (BacktestingBroker.MIN_TRADE_USD)
          )
  
      if action == broker.Order.Action.BUY:
          # Check that there is enough cash.
          fee = self.getCommission().calculate(
              None, limitPrice, quantity
          )
          cashRequired = limitPrice * quantity + fee
          if cashRequired > self.getCash(False):
              raise Exception("Not enough cash")
      elif action == broker.Order.Action.SELL:
          # Check that there are enough coins.
          if quantity > self.getShares(common.btc_symbol):
              raise Exception("Not enough %s" % (common.btc_symbol))
      else:
          raise Exception("Only BUY/SELL orders are supported")
  
      return super(BacktestingBroker, self).createLimitOrder(
          action, instrument, limitPrice, quantity
      )
  
file_path: pyalgotrade/pyalgotrade/bitstamp/broker.py
imports: from pyalgotrade import broker
  from pyalgotrade.broker import backtesting
  from pyalgotrade.bitstamp import common
  from pyalgotrade.bitstamp import livebroker
label_desc: Use image node_id 5 for calling the BacktestingBroker obj's underlying member method code with example usage: obj.createLimitOrder(action, instrument, limitPrice, quantity) and returns: super