Please help me with some of the parameters in the TradeHull order_placement() method
I wonder how to use these parameters?
Also, when I run the margin_calculator() method, Can u please explain some of the outputs:-
margin = tsl.margin_calculator(tradingsymbol=‘NIFTY 09 APR 23250 CALL’, exchange=‘NFO’, transaction_type=‘SELL’,
quantity=75, trade_type=‘MARGIN’, price=0, trigger_price=0)
print(margin)
Output:-
{‘totalMargin’: 194925.83, ‘spanMargin’: 0.0, ‘exposureMargin’: 0.0, ‘availableBalance’: 0.0, ‘variableMargin’: 0.0, ‘insufficientBalance’: 0.0, ‘brokerage’: 0.0, ‘leverage’: ‘8.96X’}
I can see the ‘spanMargin’: 0.0, ‘exposureMargin’: 0.0 Why is that?
Please explain!
Thanks!