code: def __convert_order_params_for_blotter(asset,
                                             limit_price,
                                             stop_price,
                                             style):
          
          if style:
              assert (limit_price, stop_price) == (None, None)
              return style
          if limit_price and stop_price:
              return StopLimitOrder(limit_price, stop_price, asset=asset)
          if limit_price:
              return LimitOrder(limit_price, asset=asset)
          if stop_price:
              return StopOrder(stop_price, asset=asset)
          else:
              return MarketOrder()
docs: Helper method for converting deprecated limit_price and stop_price
          arguments into ExecutionStyle instances.
  
          This function assumes that either style == None or (limit_price,
          stop_price) == (None, None).