It looks like you're new here. If you want to get involved, click one of these buttons!
curl -s https://api.kite.trade/margins/orders \and divide 50000 by the margin amount returned to get the quantity. Is there a better way to do this?
-H 'X-Kite-Version: 3' \
-H 'Authorization: token xxx:yyy' \
-H 'Content-Type: application/json' \
-d '[
{
"exchange": "NSE",
"tradingsymbol": "SBIN",
"transaction_type": "BUY",
"variety": "bo",
"product": "MIS",
"order_type": "SL-M",
"quantity": 1,
"stoploss": 1,
"squareoff": 2
}
]'
Math.floor()
of the output and check if the output is the modulus of lot size.