Skip to main content

SplitOrder

Endpoint URL

This API Function Place Split Orders to the Broker

Local Host   :  POST http://127.0.0.1:5000/api/v1/splitorder
Ngrok Domain : POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/splitorder
Custom Domain: POST https://<your-custom-domain>/api/v1/splitorder

Sample API Request

{
"apikey": "<your_app_apikey>",
"strategy": "Test Strategy",
"exchange": "NSE",
"symbol": "YESBANK",
"action": "SELL",
"quantity": "105",
"splitsize": "20",
"pricetype": "MARKET",
"product": "MIS"
}

Sample API Response

{
"results": [
{
"order_num": 1,
"orderid": "24120900343417",
"quantity": 20,
"status": "success"
},
{
"order_num": 2,
"orderid": "24120900343419",
"quantity": 20,
"status": "success"
},
{
"order_num": 3,
"orderid": "24120900343420",
"quantity": 20,
"status": "success"
},
{
"order_num": 4,
"orderid": "24120900343418",
"quantity": 20,
"status": "success"
},
{
"order_num": 5,
"orderid": "24120900343421",
"quantity": 20,
"status": "success"
},
{
"order_num": 6,
"orderid": "24120900343416",
"quantity": 5,
"status": "success"
}
],
"split_size": 20,
"status": "success",
"total_quantity": 105
}

Parameter Description

ParametersDescriptionMandatory/OptionalDefault Value
apikeyApp API keyMandatory-
strategyStrategy nameMandatory-
exchangeExchange codeMandatory-
symbolTrading symbolMandatory-
actionAction (BUY/SELL)Mandatory-
productProduct typeOptionalMIS
pricetypePrice typeOptionalMARKET
quantityQuantityMandatory-
pricePriceOptional0
trigger_priceTrigger priceOptional0
disclosed_quantityDisclosed quantityOptional0