Skip to content

Orderbook

Single Order

Use this API to fetch your FOR365 orders and view their current status.

Note

If your app type is partner you will not be able to call this API. Please go to the EaseAPI For Business section to see how partners can use EaseAPI.

Sample code

curl --location 'https://easeapi.venturasecurities.com/for365/v1/orders' \
--header 'x-client-id: AA0605' \
--header 'x-app-key: 8ab5rt7yp2lm9qw4s1ex' \
--header 'Authorization: Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
import requests

url = "https://easeapi.venturasecurities.com/for365/v1/orders"

payload = {}
headers = {
    'x-client-id': 'AA0605',
    'x-app-key': '8ab5rt7yp2lm9qw4s1ex',
    'Authorization': 'Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
const axios = require('axios');

let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://easeapi.venturasecurities.com/for365/v1/orders',
headers: { 
    'x-client-id': 'AA0605', 
    'x-app-key': '8ab5rt7yp2lm9qw4s1ex', 
    'Authorization': 'Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
}
};

axios.request(config)
.then((response) => {
    console.log(JSON.stringify(response.data));
})
.catch((error) => {
    console.log(error);
});

Response

{
    "result": [
        {
            "type": "NFO",
            "symbol": "INFY",
            "token": "56995",
            "last_traded_price": 1576.3,
            "exchange": "NSE",
            "segment": "D",
            "order_number": "1132506091167",
            "action": "BUY",
            "product_type": "MARGIN",
            "order_type": "LMT",
            "trigger_price": 2000,
            "status": "CONFIRM",
            "total_quantity": 800,
            "price": 2000,
            "validity": "DAY",
            "lot_size": 400,
            "order_start_date": "2025-06-09 16:49:57",
            "order_end_date": "2026-06-09 16:49:57",
            "gtt_type": "G",               // Single Order
            "leg_no": "1"
        },
        {
            "type": "NFO",
            "symbol": "TCS",
            "token": "57250",
            "last_traded_price": 3436.3,
            "exchange": "NSE",
            "segment": "D",
            "order_number": "1132506091190",
            "action": "BUY",
            "product_type": "MARGIN",
            "order_type": "LMT",
            "trigger_price": 1500,
            "status": "CONFIRM",
            "total_quantity": 175,
            "price": 1500,
            "validity": "DAY",
            "lot_size": 175,
            "order_start_date": "2025-06-09 16:33:26",
            "order_end_date": "2026-06-09 16:33:26",
            "gtt_type": "O",            // OCO Order second leg
            "leg_no": "2"
        },
        {
            "type": "NFO",
            "symbol": "TCS",
            "token": "57250",
            "last_traded_price": 3436.3,
            "exchange": "NSE",
            "segment": "D",
            "order_number": "1132506091190",
            "action": "BUY",
            "product_type": "MARGIN",
            "order_type": "LMT",
            "trigger_price": 1400,
            "status": "CONFIRM",
            "total_quantity": 175,
            "price": 1400,
            "validity": "DAY",
            "lot_size": 175,
            "order_start_date": "2025-06-09 16:33:26",
            "order_end_date": "2026-06-09 16:33:26",
            "gtt_type": "O",            // OCO Order first leg
            "leg_no": "1"
        }
    ],
    "error_message": ""
}

Response parameters

Parameter
Description
type this is a type of a instrument its either STOCK,NFO or BFO
symbol It is the name of the instrument
token Unique token number assigned to each tradable instrument
last_traded_price Last traded price of the instrument
exchange Specifies the exchange where the instrument is traded, either in NSE (National Stock Exchange) or BSE (Bombay Stock Exchange)
segment Indicates whether it's an equity ("E") or derivatives ("D") segment
order_number It is a unique order number
action Indicates whether it's a 'BUY' or 'SELL' action
product_type Specifies the product type, such as margin ("M") or Cash and Carry ("C")
order_type Specifies the order type, such as market or limit
status Indicates the current status of the order, whether it's CONFIRM, MODIFIED or CANCELLED
total_quantity The total quantity of number of shares for equity or lots (F&O contracts) you want to buy/sell
trigger_price The order gets placed in the market when it gets achieved or attained.
price Indicates the limit price of the order
validity Specifies how long the order remains valid - either for DAY or Instant or Cancel (IOC)
lot_size Indicates the lot size of the instrument
order_start_date Specifies the date and time on which order was placed
order_end_date Specifies the date and time on which order will expire. Each order will be valid for 365 days
gtt_type Specifies type for order, its either G or single order or O for OCO order
leg_no Specifies the order leg, for single order this value will be 1 and for OCO order this value will be either 1 or 2