Does Order slicing work with API orders?

How can I place an order above 1 slice quantity using API. For ex: I would like to buy 2000 quantity of options for NIFTY with max slice quantity of 1800. Will this be split automatically by Upstox? Which API can issue for placing this order and getting the average price of execution?

I currently have the following REST based function, will this work if I place 2000 quantity order

def place_entry_order_delivery(instrument, quantity, access_token):

url = 'https://api.upstox.com/v2/order/place'
headers = {
    'Content-Type': 'application/json',
    'Accept': 'application/json',
    'Authorization': access_token,
}

data = {
    'quantity': quantity,
    'product': 'D',
    'validity': 'DAY',
    'price': 0,
    'tag': 'string',
    'instrument_token': instrument,
    'order_type': 'MARKET',
    'transaction_type': 'SELL',
    'disclosed_quantity': 0,
    'trigger_price': 0,
    'is_amo': False,
}

try:
    # Send the POST request
    response = requests.post(url, json=data, headers=headers)

    # Print the response status code and body
    print('Response Code:', response.status_code)
    print('Response Body:', response.json())

except Exception as e:
    # Handle exceptions
    print('Error:', str(e))

return response.json()

@Ketan @Pradeep_Jaiswar

Hi @sameer_siddiqui

This is releasing soon. Stay tuned on the community while where we’d update on the early access!