CancelGttOrder

Endpoint URL

This API Function cancels an active GTT trigger by its trigger_id. Cancelling an OCO removes both legs atomically.

Local Host   :  POST http://127.0.0.1:5000/api/v1/cancelgttorder
Ngrok Domain :  POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/cancelgttorder
Custom Domain:  POST https://<your-custom-domain>/api/v1/cancelgttorder
{
    "apikey": "<your_app_apikey>",
    "strategy": "My GTT Strategy",
    "trigger_id": "23132604291205"
}

Sample API Request

{
    "apikey": "<your_app_apikey>",
    "strategy": "My GTT Strategy",
    "trigger_id": "23132604291205"
}

Sample API Response

Endpoint URL

This API Function modifies an active GTT trigger. The body is a full replacement of the trigger spec — same shape as placegttorder plus trigger_id. Send every field you want to keep — modify is not a patch.

Sample API Request

SINGLE — move the IDEA dip-buy from 9.55 → 9.65, raise the limit to 9.60

OCO — tighten the INFY bracket: stop 1480 → 1485, target 1620 → 1625

Sample API Response

Parameters
Description
Mandatory/Optional
Default Value

apikey

App API key

Mandatory

-

strategy

Strategy name (used in event logs)

Mandatory

-

trigger_id

The trigger ID of the active GTT to cancel (returned by placegttorder)

Mandatory

-

Last updated