Skip to main content

Placeorder

Endpoint URL

This API Function Place Orders to the Broker

Local Host   :  POST http://127.0.0.1:5000/api/v1/placeorder
Ngrok Domain : POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/placeorder
Custom Domain: POST https://<your-custom-domain>/api/v1/placeorder
{
"apikey": "<your_app_apikey>",
"strategy": "Test Strategy",
"symbol":"SAIL",
"action":"BUY",
"exchange":"NSE",
"pricetype":"MARKET",
"product":"MIS",
"quantity":"1"

}

Sample API Request

{
"apikey": "your_app_apikey",
"strategy": "Test Strategy",
"exchange": "NSE",
"symbol": "BHEL",
"action": "BUY",
"product": "MIS",
"pricetype": "MARKET",
"quantity": "1",
"price": "0",
"trigger_price": "0",
"disclosed_quantity": "0"
}

Sample API Response

{
"orderid": "240307000614705",
"status": "success"
}

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