ClosePosition
Endpoint URL
Local Host : POST http://127.0.0.1:5000/api/v1/closeposition
Ngrok Domain : POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/closeposition
Custom Domain: POST https://<your-custom-domain>/api/v1/closepositionSample API Request
{
"apikey": "<your_app_apikey>",
"strategy": "Python"
}Sample cURL Request
curl -X POST http://127.0.0.1:5000/api/v1/closeposition \
-H 'Content-Type: application/json' \
-d '{
"apikey": "<your_app_apikey>",
"strategy": "Python"
}'Sample API Response
Sample API Response (No Positions)
Request Body
Parameter
Description
Mandatory/Optional
Default Value
Response Fields
Field
Type
Description
How It Works
Positions Closed
Exchange
Product Types Closed
Notes
Use Cases
Related Endpoints
Last updated