Order and Trades
Multi Leg Order Book
POST
/NorenWClientAPI/MultiLegOrderBookAuthorization token is required. Enter your access_token from GenAcsTok above.
jData fields
Values are sent as a JSON string in the jData form field.
Logged in User Id
Product name
Authorization Token
Required for all API calls. Use the access_token from the GenAcsTok response as a Bearer token.
Request to be POSTed to url : /NorenWClientAPI/MultiLegOrderBook
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* | Logged in User Id | |
| prd | H / M / ... | Product name |
Example
curl https://apitest.kambala.co.in/NorenWClientAPI/MultiLegOrderBook \
-d "jData={\"uid\":\"VIDYA\"}"Response Details
Response data will be in json Array of objects with below fields in case of success.
| Json Fields | Possible value | Description |
|---|---|---|
| stat | Ok or Not_Ok | Order book success or failure indication. |
| exch | Exchange Segment | |
| tsym | Trading symbol / contract on which order is placed. | |
| norenordno | Noren Order Number | |
| prc | Order Price | |
| qty | Order Quantity | |
| prd | Display product alias name, using prarr returned in user details. | |
| status | Order status | |
| trantype | B / S | Transaction type of the order |
| prctyp | LMT / MKT | Price type |
| fillshares | Total Traded Quantity of this order | |
| avgprc | Average trade price of total traded quantity | |
| rejreason | If order is rejected, reason in text form | |
| exchordid | Exchange Order Number | |
| cancelqty | Canceled quantity for order which is in status cancelled. | |
| remarks | Any message Entered during order entry. | |
| dscqty | Order disclosed quantity. | |
| trgprc | Order trigger price | |
| ret | DAY / IOC / EOS | Order validity |
| bpprc | Book Profit Price applicable only if product is selected as B (Bracket order) | |
| blprc | Book loss Price applicable only if product is selected as H and B (High Leverage and Bracket order) | |
| trailprc | Trailing Price applicable only if product is selected as H and B (High Leverage and Bracket order) | |
| amo | Yes / No | |
| pp | Price precision | |
| ti | Tick size | |
| ls | Lot size | |
| tsym2 | Trading symbol of second leg, mandatory for price type 2L and 3L | |
| trantype2 | Transaction type of second leg, mandatory for price type 2L and 3L | |
| qty2 | Quantity for second leg, mandatory for price type 2L and 3L | |
| prc2 | Price for second leg, mandatory for price type 2L and 3L | |
| tsym3 | Trading symbol of third leg, mandatory for price type 3L | |
| trantype3 | Transaction type of third leg, mandatory for price type 3L | |
| qty3 | Quantity for third leg, mandatory for price type 3L | |
| prc3 | Price for third leg, mandatory for price type 3L | |
| fillshares2 | Total Traded Quantity of 2nd Leg | |
| avgprc2 | Average trade price of total traded quantity for 2nd leg | |
| fillshares3 | Total Traded Quantity of 3rd Leg | |
| avgprc3 | Average trade price of total traded quantity for 3rd leg | |
| dname2 | Broker specific contract display name of second leg, present only if applicable. | |
| dname3 | Broker specific contract display name of third leg, present only if applicable. |
Response data will be in json format with below fields in case of failure:
| Json Fields | Possible value | Description |
|---|---|---|
| stat | Not_Ok | Order book failure indication. |
| request_time | Response received time. | |
| emsg | Error message |
curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/MultiLegOrderBook' \
--header 'Content-Type: text/plain' \
--data 'jData={}'Response will appear here after sending a request