I am trying to place a buy order followed by a stoploss order to restrict my losses. But when I do it the first order - buy, takes a margin. When a stoploss order is placed, again a margin is taken.
How can I place an order using a single margin for a buy with a stop loss?
I am using python library with place_order() function to do it. When the SL order is placed, I am getting insufficient funds error in the response. Please guide me to execute a buy order with a stoploss using the same margin.