Skip to content

Trade Book

A Tradebook contains all the transactions made in the stock market from a trading account.

Sample code

curl --location 'https://easeapi.venturasecurities.com/trade/v1/trades' \
--header 'x-client-id: AA0605' \
--header 'x-app-key: 8ab5rt7yp2lm9qw4s1ex' \
--header 'authorization: Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
import requests
url = "https://easeapi.venturasecurities.com/trade/v1/trades"
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/trade/v1/trades',
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": [
    {
      "order_id": "1191250120123",
      "trade_id": "200002694",
      "exchange": "NSE",
      "symbol": "RELIANCE",
      "token": "2885",
      "order_type": "MKT",
      "transaction_type": "B",
      "product": "C",
      "average_price": 1224.0,
      "quantity": 1,
      "filled_timestamp": "2025-02-17 14:30:08",
      "order_timestamp": "2025-02-17 14:30:08",
      "segment": "E"
    }
  ],
  "error_message": ""
}

Response parameters

Parameter
Description
order_id It is the order number
trade_id It is the single executed trade number
exchange_id Specifies the exchange where the instrument is traded, either in NSE (National Stock Exchange) or BSE (Bombay Stock Exchange)
symbol It is the name of the instrument
token Unique token number assigned to each tradable instrument
order_type Specifies the order type, such as market, limit, stop-loss, or stop-loss market
transaction_type Indicates whether it's a buy ("B") or sell ("S") transaction
product Specifies the product type, such as intraday ("I"), margin ("M"), MTF ("F"), Cash and Carry ("C")
average_price It is the average price at which quantity was filled
quantity The filled quantity in the trade
filled_timestamp Indicates the trade filled timestamp
order_timestamp Indicates the timestamp of the order
segment Indicates whether it's an equity ("E") or derivatives ("D") segment