Unable to place the stoploss SL-L order
-
$order = $smart_api->PlaceOrder(array('variety' => 'STOPLOSS',
'tradingsymbol' => NIFTY07JUL2216000PE,
'symboltoken' => 40958,
'exchange' => NFO,
'transactiontype' => 'BUY',
'ordertype' => 'STOPLOSS_LIMIT',
'quantity' => '50',
'producttype' => 'CARRYFORWARD',
'price' => 2,
'triggerprice'=> 2.5,
'squareoff'=>0,
'stoploss'=>0,
'duration' => 'DAY')); -
@martinkokkadan flagle You can use integer for trigger price
-
@martinkokkadan
symbol and token are string
price are number -
@Developer
(
[tradingsymbol] => NIFTY21JUL2216350CE
[symboltoken] => 79916
[exchange] => NFO
[price] => 9
[triggerprice] => 10
[squareoff] => 0
[stoploss] => 0
[variety] => STOPLOSS
[transactiontype] => SELL
[ordertype] => STOPLOSS_LIMIT
[quantity] => 50
[producttype] => CARRYFORWARD
[duration] => DAY
)same as
-
@martinkokkadan try using integer for trigger price
-
any solution ? I already checked documentation