Skip to main content

Depth

Endpoint URL

This API Function get Market Depth from the Broker

Local Host   :  POST http://127.0.0.1:5000/api/v1/depth
Ngrok Domain : POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/depth
Custom Domain: POST https://<your-custom-domain>/api/v1/depth

Sample API Request

{
"apikey": "<your_app_apikey>",
"symbol": "NIFTY31JUL25FUT",
"exchange": "NFO"
}

Sample API Response

{
"data": {
"asks": [
{
"price": 25741.1,
"quantity": 3675
},
{
"price": 25744.9,
"quantity": 150
},
{
"price": 25745,
"quantity": 600
},
{
"price": 25745.1,
"quantity": 75
},
{
"price": 25745.2,
"quantity": 150
}
],
"bids": [
{
"price": 25741,
"quantity": 150
},
{
"price": 25740,
"quantity": 375
},
{
"price": 25739.9,
"quantity": 600
},
{
"price": 25739.8,
"quantity": 150
},
{
"price": 25739.7,
"quantity": 75
}
],
"high": 25772.3,
"low": 25635,
"ltp": 25741.1,
"ltq": 1050,
"oi": 15056100,
"open": 25695,
"prev_close": 25615,
"totalbuyqty": 789825,
"totalsellqty": 386175,
"volume": 3561150
},
"status": "success"
}

Request Body

ParametersDescriptionMandatory/OptionalDefault Value
apikeyApp API keyMandatory-
symbolTrading symbolMandatory-
exchangeExchange codeMandatory-

Response Fields

FieldTypeDescription
asksarrayList of 5 best ask prices
bidsarrayList of 5 best bid prices
totalbuyqtynumberTotal buy quantity
totalsellqtynumberTotal sell quantity
highnumberDay's high price
lownumberDay's low price
ltpnumberLast traded price
ltqnumberLast traded quantity
opennumberOpening price
prev_closenumberPrevious day's closing price
volumenumberTotal traded volume
oinumberOpen interest