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}}
Websocket Message 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
Websocket Tick Response¶
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. |