Vikas
Correct me if I am wrong. TBQ and TSQ does not say how many were bought and sold, it only shows how many buy/sell orders are pending. Because at any given moment the amount of bought equals the amount sold.
NSE publishes the snapshot of the order book at hourly intervals for historical data.
Here is the extract giving the details
Order book snapshots database
NSE is a limit order book market, also known to economists as the `open electronic
limit order book market (OELOB)', or to practitioners as a market based on
`electronic order matching'. Liquidity on the OELOB market is embedded in the limit
orders present at any point in time; these limit orders (the right to trade against
them, without any obligation) are free options which others can exploit.
Measurement of this liquidity is possible with high accuracy using "order book
snapshots": pictures of the complete limit order book at a point in time. This is
discrete, in only conveying the picture at a few time points in the day. However, at
these time points, a variety of questions about liquidity can be accurately answered.
The order book snapshot can yield the bid-ask spread, and it can be used to measure
market impact cost for buying or selling any desired transaction (or for testing
whether a desired transaction is feasible).
The order book snapshots for 5 March, 1999 are stored in the directory
199903/Snapshots/19990305. The files that are found inside this have names of the
form hhmmss.gz, to convey the time at which the snapshot was taken. For example,
for 5 March, 1999 the CD/DVD contains 110000.gz, 130000.gz and 140000.gz.
These are order book snapshots at 11 AM, 12:00 PM, 1 PM and 2 PM.
It is available with NSE for a payment.