Skip to content

Market Data Websocket

Use WebSockets to maintain a live connection and receive real-time market data. A market data tick is sent whenever there is a trade happening for the instrument or a change in its price.

Note

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

Websocket URL

wss://easeapi-ws.venturasecurities.com/v1/easeapi_mktdata?app_key={{app_key}}&client_id={{x_client_id}}&authorization={{auth_token}}

LTP request

To receive the LTP (Last Traded Price) of an instrument you have to send exchange_token and to receive LTP of index you have to send the trading_symbol of the index as listed in the Instrument CSV file

{
    "actions": ["<exch>:ltp"],//exch = nse/bse/fno/bfo
    "token": ["2885"],
    "mode": "sub"  // mode = sub/unsub for subscribing and unsubscribing websocket        
}
{    
    "actions": ["index:ltp"], // action
    "token": ["Nifty 50"],    
    "mode": "sub"  // mode = sub/unsub for subscribing and unsubscribing websocket 
}

LTP response

[ 
    "nse:ltp",                // action
    2885,                     // instrument token
    1449.4,                   // Last traded price
    1453.5,                   // open
    1457,                     // high
    1446.1,                   // low
    1448.9,                   // close
    1178962,                  // volume
    "12/06/2025 10:24:12"     // timestamp
]
[
    "index:ltp",              // action
    "Nifty 50",               // index_name
    24737.25,                 // index_value/ltp
    24691.19921875,           // open
    24761.5,                  // high
    24613.099609375,          // low
    24620.19921875,           // close
    "05/06/2025 10:11:54"     // timestamp
]

Market depth request

To receive the Market Depth of an instrument you have to send exchange_token as listed in the Instrument CSV file. You will receive 5 levels of Bid/Ask in the market depth.

{
    "actions": ["<exch>:ltp_depth"], //exch = nse/bse/fno/bfo
    "token": ["2885"],
    "mode": "sub"  // mode = sub/unsub for subscribing and unsubscribing websocket        
}

Market depth response

[ 
    "nse:ltp_depth",                // action
    2885,                     // instrument token
    1449.4,                   // Last traded price
    1453.5,                   // open
    1457,                     // high
    1446.1,                   // low
    1448.9,                   // close
    1178962,                  // volume
    "12/06/2025 10:24:12",    // timestamp
    353156,                   // total buy quantity
    680920,                   // total sell quantity
    [
        [
            463,              // buy quantity
            157,              // sell quantity
            1,                // buy orders
            2,                // sell orders
            1446.7,           // buy price
            1446.8            // sell price
        ],
        .
        .
        .
    ]
]

Request Query parameters

Parameter
Description
app_key Your App key. Only individual app types are supported to connect to market data websocket.
client_id Your ventura client id.
authorization valid access token generated after doing EaseAPI Login. access token needed without Bearer prefix.