Issue in getting Asset Symbol for options

I am trying to create an strategy in ICICI Direct Spring.



I am getting this error

 

[PLATFORM]
Fatal error in strategy:Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/blueshift/algorithm/algorithm.py", line 1051, in _back_test_generator
    self._USER_FUNC_DISPATCH.get(bar,self._bar_noop)(ts)
  File "/usr/local/lib/python3.8/dist-packages/blueshift/algorithm/algorithm.py", line 610, in handle_data
    self._scheduler.trigger_events(self.context,
  File "/usr/local/lib/python3.8/dist-packages/blueshift/utils/scheduler.py", line 629, in trigger_events
    self._algo_instance.handle_sub_strategy_error(
  File "/usr/local/lib/python3.8/dist-packages/blueshift/algorithm/algorithm.py", line 1817, in handle_sub_strategy_error
    raise e
  File "/usr/local/lib/python3.8/dist-packages/blueshift/utils/scheduler.py", line 627, in trigger_events
    e.callback(ctx, data)
  File "SCS.py", line 58, in scs
  File "/usr/local/lib/python3.8/dist-packages/blueshift/algorithm/api_decorator.py", line 54, in decorated
    return f(algo_instance, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/blueshift/algorithm/algorithm.py", line 3437, in order
    f'Cannot place order for {asset.symbol}, invalid type, expected Asset, got {type(asset)}.')
AttributeError: 'str' object has no attribute 'symbol'

And my Code
 
 if context.selected_option == 'CE':
        context.selected_option_strike = symbol('NIFTY-W0CE+50')
if context.selected_option == 'PE':
    context.selected_option_strike = symbol('NIFTY-W0PE-50')

option_current_price = data.current(context.selected_option_strike, 'close')
asset_strike = get_dated_asset(context.selected_option_strike)
order('ORD1', asset_strike, 100, 0, 0, side=0)
set_stoploss(asset_strike, 'AMOUNT', 500)
set_takeprofit(asset_strike, 'AMOUNT', 500)
print(asset_strike)</code></pre>

What could be the reason. Why I am Getting this error

You are using the order function in a wrong way. Please check the documentation here and here. The first argument must be an asset object, you are passing a string ("ORD1"). Also you are passing extra arguments (for e.g. "side") not recognized by the order function. Did you mean as below?

 

order(context.selected_option_strike, 100)


Note, this places a buy order for the selected option for amount 100. For sell, replace 100 with -100.