Infinn API Documentation
GTT

Get Pending GTT Order

POST/NorenWClientAPI/GetPendingGTTOrder

Authorization token is required. Enter your access_token from GenAcsTok above.

"Use proxy" sends this request through this website's server, which never logs request or response bodies. Infinn sees the docs server's IP, not yours. Turn it off to send directly from your browser instead.

jData fields

Values are sent as a JSON string in the jData form field.

User id of the logged in user

  • Example: YOUR_USER_ID
  • Where to get it: The ID you log in with at trade.infinn.in (User ID = Client ID). Also returned as uid by GenAcsTok.

Authorization Token

Required for all API calls. Use the access_token from the GenAcsTok response as a Bearer token.

⚠ When "Use proxy" is on, this token is sent through this website's server on its way to Infinn. It is never logged here, but if you would rather it never leave your browser, turn off "Use proxy" above or use the ready code with your own client instead.

Request to be POSTed to url : /NorenWClientAPI/GetPendingGTTOrder

Request Details
Parameter NamePossible valueDescription
jData*Should send json object with fields in below list
Authorization*Bearer <access_token>access_token from GenAcsTok response. Required for all API calls.
Json Fields Possible value Description
uid* User id of the logged in user
Response Details

Response data will have below fields:

Json Fields Possible value Description
stat GTT order success or failure indication.
ai_t Alert Type
al_id Alert Id
tsym Trading symbol
exch Exchange Segment
token Contract token
remarks Any message Entered during order entry.
validity* DAY or GTT Validity
d Data to be compared with LTP
trantype B / S B -> BUY, S -> SELL
prctyp LMT / MKT / SL-LMT / SL-MKT / DS / 2L / 3L
prd C / M / H Product name
ret DAY / EOS / IOC Retention type (Show options as per allowed exchanges)
actid Login users account ID
qty Order Quantity
prc Order Price
emsg This will be present only in case of errors.
That is:
  1. Invalid Input
  2. Session Expired
Sample Success Response
[
    {
        "stat":"Ok",
        "ai_t":"LTP_A",
        "Al_id":"21041500000002",
        "tsym":"ACC-EQ",
        "exch":"NSE",
        "Token":"22",
        "Remarks":"test",
        "validity":"DAY",
        "actid":"MOHINI",
        "trantype":"B",
        "prctyp":"LMT",
        "Qty":1,
        "Prc":"1305.00",
        "C":"C",
        "prd":"C",
        "ordersource":"MOB",
        "d":"1900.00"
    }
]
Sample Failure Response
{
    "stat":"Not_Ok",
    "emsg":"Session Expired : Invalid Session Key"
}
curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/GetPendingGTTOrder' \
  --header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
  --header 'Content-Type: text/plain' \
  --data 'jData={"uid":"YOUR_USER_ID"}'
Response will appear here after sending a request