Order

Place GTT order

This API allows you to place GTT orders.

post/v3/order/gtt/place

Request

  • Base URL: https://api-v2.upstox.com
  • URL: https://api-v2.upstox.com/v3/order/gtt/place
  • 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

product'I' | 'D' | 'MTF' required

Signifies if the order was either Intraday, Delivery or MTF

instrument_tokenstring required

Key of the instrument

transaction_type'BUY' | 'SELL' required

Indicates whether its a buy or sell order

Example request

{
  "type": "SINGLE",
  "quantity": 1,
  "product": "D",
  "rules": [
    {
      "strategy": "ENTRY",
      "trigger_type": "ABOVE",
      "trigger_price": 1500.5,
      "trailing_gap": 0.5,
      "market_protection": 3
    }
  ],
  "instrument_token": "NSE_EQ|INE848E01016",
  "transaction_type": "BUY"
}

Response

Successful

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

Changes

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