Modify GTT Order
/NorenWClientAPI/ModifyGTTOrderAuthorization 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.
Trading symbol
- Example:
RELIANCE-EQ - Where to get it: SearchScrip reply, or the TradingSymbol column of the exchange symbol file.
Exchange Segment
- Example:
NSE - Where to get it: 'exarr' array in the UserDetails response.
- Allowed: NSE, NFO, BSE, MCX, CDS, NCX, BFO, BCD
Alert Type
Alert Id
Any message Entered during order entry.
- Example:
my-order-tag - Where to get it: Any tag you choose to mark the order.
B -> BUY, S -> SELL
- Example:
B - Allowed: B = buy, S = sell
LMT / MKT / SL-LMT / SL-MKT / DS / 2L / 3L
- Example:
LMT - Allowed: LMT, MKT, SL-LMT, SL-MKT, DS, 2L, 3L
Product name
- Example:
C - Allowed: C = Delivery, M = Margin, H = Cover, I = Intraday, B = Bracket, F = MTF, S = Special, P = Special2
Retention type (Show options as per allowed exchanges)
- Example:
DAY - Allowed: DAY, EOS, IOC
Login users account ID
- Example:
YOUR_USER_ID - Where to get it: Same as User ID for individual accounts. Returned by GenAcsTok / UserDetails.
Order Quantity
- Example:
1 - Where to get it: Quantity in units (for F&O a multiple of the lot size).
Order Price
- Example:
1000 - Where to get it: Your limit price. Use "0" for MKT / SL-MKT orders.
Disclosed quantity (Max 10% for NSE, and 50% for MCX)
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/ModifyGTTOrder
Request Details
| Parameter Name | Possible value | Description |
|---|---|---|
| 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 | |
| tsym* | Trading symbol | |
| exch* | Exchange Segment | |
| ai_t* | Alert Type | |
| al_id | Alert Id | |
| validity* | DAY or GTT | Validity |
| d | Data to be compared with LTP | |
| remarks* | Any message Entered during order entry. | |
| 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 | |
| dscqty | Disclosed quantity (Max 10% for NSE, and 50% for MCX) |
Response Details
Response data will have below fields:
| Json Fields | Possible value | Description |
|---|---|---|
| stat | GTT order success or failure indication. | |
| request_time | This will be present only in a successful response. | |
| al_id | Alert Id | |
| emsg | This will be present only in case of errors. That is:
|
Sample Success Response
{
"request_time":"12:15:18 15-04-2021",
"stat":"Oi Replacedt",
"Al_id":"21041500000008"
}Sample Failure Response
{
"stat":"Not_Ok",
"emsg":"Session Expired : Invalid Session Key"
}curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/ModifyGTTOrder' \
--header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
--header 'Content-Type: text/plain' \
--data 'jData={"uid":"YOUR_USER_ID","tsym":"RELIANCE-EQ","exch":"NSE","ai_t":"","remarks":"my-order-tag","trantype":"B","prctyp":"LMT","prd":"C","ret":"DAY","actid":"YOUR_USER_ID","qty":"1","prc":"1000"}'