Order

Modify GTT order

This API allows you to modify GTT orders.

put/v3/order/gtt/modify

Request

  • Base URL: https://api-v2.upstox.com
  • URL: https://api-v2.upstox.com/v3/order/gtt/modify
  • Auth: OAuth 2 (authorization code, authorization URL https://api-v2.upstox.com/v2/login/authorization/dialog, token URL https://api-v2.upstox.com/v2/login/authorization/token)

Headers

Originstring

Request body

type'SINGLE' | 'MULTIPLE' required

Type of GTT order. It can be one of the following: SINGLE refers to a single-leg GTT order MULTIPLE refers to a multi-leg GTT order

quantityinteger required

Quantity with which the order is to be placed

gtt_order_idstring required

Unique identifier of the GTT order to be modified

Example request

{
  "type": "SINGLE",
  "quantity": 1,
  "rules": [
    {
      "strategy": "ENTRY",
      "trigger_type": "ABOVE",
      "trigger_price": 1500.5,
      "trailing_gap": 0.5,
      "market_protection": 3
    }
  ],
  "gtt_order_id": "GTT-12345678"
}

Response

Successful

status'success' | 'error' | 'partial_success'

Changes

No recorded changes to this operation across all 1 revision of this API.