Not able to place multi order using Python SDK

I am getting the following error while using the multi order api for python sdk
Exception when calling OrderApi->place_order: b’{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100038”,“message”:“Invalid input passed to the API”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100038”,“property_path”:null,“invalid_value”:null}]}'. I am using the same input format as mentioned in the documentation

Hi @Bhawik_37243451
For multi order there is another function place_multi_order and here is an example for the same

import upstox_client
from upstox_client.rest import ApiException

configuration = upstox_client.Configuration()
configuration.access_token = '{your_access_token}'
api_instance = upstox_client.OrderApi(upstox_client.ApiClient(configuration))
body = [
    upstox_client.MultiOrderRequest(25, "D", "DAY", 0, "string", False, "NSE_FO|44166", "MARKET", "BUY",
                                    0, 0, True, "1")
]

try:
    api_response = api_instance.place_multi_order(body)
    print(api_response)
except ApiException as e:
    print("Exception when calling OrderApi->place_order: %s\n" % e.body)

You’ll see the same behavior in our API. We have a dedicated endpoint for multi-orders, and the documentation is available at: Place Multi Order | Upstox Developer API

Thanks!