NIFTY Order Issue

Why for NIFTY_50, API says 150 is a invalid qty??

entry_qty: 150
tradsymbol :NIFTY25MAR23750CE
{‘status’: ‘error’, ‘errors’: [{‘errorCode’: ‘UDAPI1104’, ‘message’: ‘Quantity should be multiple of lot size’, ‘propertyPath’: ‘quantity’, ‘invalidValue’: 150, ‘error_code’: ‘UDAPI1104’, ‘property_path’: ‘quantity’, ‘invalid_value’: 150}]}

Hi @Rohit_K.A,

Could you confirm which API you used to place the order? It would also be helpful if you could share the cURL request for the order placement.

Thanks!

base_url = ‘https://api-v2.upstox.com

url_order = base_url + ‘/order/place’
json_data = {
‘quantity’: int(quantity),
‘product’: ‘D’,
‘validity’: ‘DAY’,
‘price’: 0.0,
‘tag’: ‘straddle’,
‘instrument_token’: instrument_key,
‘order_type’: ‘MARKET’,
‘transaction_type’: ‘BUY’,
‘disclosed_quantity’: 0.0,
‘trigger_price’: float(0.0),
‘is_amo’: ‘false’,
}

buy_order_id = requests.post(url_order, headers=headers, json=json_data)

headers = {
‘accept’: ‘application/json’,
‘Api-Version’: ‘2.0’,
‘Content-Type’: ‘application/json’,
‘Authorization’: f’Bearer {access_token}',
}

Hi,

Can you please share JSON data you are passing?