class_docstr: An algorithm that tries to make various invalid order calls, verifying that
  appropriate exceptions are raised.
class_docstr_tok: ["An","algorithm","that","tries","to","make","various","invalid","order","calls",",","verifying","that","appropriate","exceptions","are","raised","."]
code: def handle_data(self, data):
      from zipline.api import (
          order_percent,
          order_target,
          order_target_percent,
          order_target_value,
          order_value,
      )
  
      for style in [
          MarketOrder(),
          LimitOrder(10, asset=self.asset),
          StopOrder(10),
          StopLimitOrder(10, 10, asset=self.asset),
      ]:
          with assert_raises(UnsupportedOrderParameters):
              order(self.asset, 10, limit_price=10, style=style)
  
          with assert_raises(UnsupportedOrderParameters):
              order(self.asset, 10, stop_price=10, style=style)
  
          with assert_raises(UnsupportedOrderParameters):
              order_value(self.asset, 300, limit_price=10, style=style)
  
          with assert_raises(UnsupportedOrderParameters):
              order_value(self.asset, 300, stop_price=10, style=style)
  
          with assert_raises(UnsupportedOrderParameters):
              order_percent(
                  self.asset, 0.1, limit_price=10, style=style
              )
  
          with assert_raises(UnsupportedOrderParameters):
              order_percent(self.asset, 0.1, stop_price=10, style=style)
  
          with assert_raises(UnsupportedOrderParameters):
              order_target(self.asset, 100, limit_price=10, style=style)
  
          with assert_raises(UnsupportedOrderParameters):
              order_target(self.asset, 100, stop_price=10, style=style)
  
          with assert_raises(UnsupportedOrderParameters):
              order_target_value(
                  self.asset, 100, limit_price=10, style=style
              )
  
          with assert_raises(UnsupportedOrderParameters):
              order_target_value(
                  self.asset, 100, stop_price=10, style=style
              )
  
          with assert_raises(UnsupportedOrderParameters):
              order_target_percent(
                  self.asset, 0.2, limit_price=10, style=style
              )
  
          with assert_raises(UnsupportedOrderParameters):
              order_target_percent(
                  self.asset, 0.2, stop_price=10, style=style
              )
  
imports: import numpy
  from nose.tools import assert_raises
  from six import itervalues
  from zipline.algorithm import TradingAlgorithm
  from zipline.api import FixedSlippage, order, set_slippage, record, sid
  from zipline.errors import UnsupportedOrderParameters
  from zipline.finance.execution import LimitOrder, MarketOrder, StopLimitOrder, StopOrder
label_desc: Use image node_id 2 for calling the InvalidOrderAlgorithm obj's underlying member method code with example usage: obj.handle_data(data) without return types